/* Aegina Portal — single stylesheet, no build step. */
:root {
    --brand: #0b4f7c;
    --brand-dark: #083a5b;
    --brand-soft: #e8f1f8;
    --accent: #e8a33d;
    --text: #1d2730;
    --muted: #5d6b78;
    --line: #dde3e9;
    --bg: #f5f7f9;
    --surface: #fff;
    --ok: #1e7a46;
    --ok-soft: #e6f4ec;
    --error: #b42318;
    --error-soft: #fdecea;
    --radius: 10px;
    --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
    --wrap: 1180px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); }
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Utilities */
.visually-hidden, .hp {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { left: -9999px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.skip { position: absolute; left: .5rem; top: -3rem; z-index: 100; padding: .5rem 1rem; background: var(--surface); border-radius: var(--radius); }
.skip:focus { top: .5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.main { padding-top: 1.25rem; padding-bottom: 3rem; min-height: 60vh; }

/* Buttons & chips */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .55rem 1rem; border: 1px solid var(--brand); border-radius: 8px;
    background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--block { display: flex; width: 100%; margin-top: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    color: var(--text); font-size: .9rem; text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__count { font-size: .8rem; opacity: .7; }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.badge--prosfora-ergasias { background: #e6f4ec; color: #1e6b3f; }
.badge--zitisi-ergasias { background: #eef0ff; color: #3b45a3; }
.badge--enoikiaseis-akiniton { background: #fff4e0; color: #8a5300; }
.badge--poliseis-akiniton, .badge--poliseis-oikopedon { background: #fdecef; color: #9b2343; }
.badge--polisi-aftokiniton-skafon-mixanon { background: #e9f6f8; color: #136674; }
.badge--epaggelmatikos-eksoplismos { background: #f1ecfa; color: #5b3b96; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / 10%); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand__mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--accent); color: var(--brand-dark); font-weight: 800; }
.brand__text strong { font-weight: 800; }

.nav-toggle { display: none; margin-left: auto; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 1.4rem; height: 2px; background: #fff; position: relative; margin: 0 auto; transition: transform .2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1rem; flex: 1; }
.site-nav ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .45rem .75rem; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: rgb(255 255 255 / 12%); }
.site-nav a[aria-current="page"] { background: rgb(255 255 255 / 18%); }
.site-search { margin-left: auto; display: flex; }
.site-search input { width: 12rem; padding: .45rem .75rem; border: 0; border-radius: 8px 0 0 8px; font: inherit; }
.site-search button { padding: .45rem .75rem; border: 0; border-radius: 0 8px 8px 0; background: var(--accent); color: var(--brand-dark); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
    /* Without JS the menu stays open; site.js adds .has-js and collapses it. */
    .has-js .nav-toggle { display: block; }
    .site-header__inner { flex-wrap: wrap; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
    .has-js .site-nav:not(.is-open) { display: none; }
    .site-nav ul { flex-direction: column; }
    .site-search { margin-left: 0; }
    .site-search input { flex: 1; width: auto; }
}

/* Footer */
.site-footer { background: var(--brand-dark); color: #d6e3ee; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand { font-size: 1.1rem; color: #fff; }
.site-footer__legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 15%); font-size: .85rem; color: #a9bccc; }

/* Generic blocks */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.25rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; white-space: nowrap; }
.inline-search { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.inline-search input, .inline-search select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); }

.crumbs { font-size: .88rem; margin-bottom: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

.notice { border-left: 4px solid var(--accent); }
.notice--ok { background: var(--ok-soft); border: 1px solid #b7dfc6; border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 1rem 1.25rem; }
.notice--error { background: var(--error-soft); border: 1px solid #f5c2bd; border-left: 4px solid var(--error); border-radius: var(--radius); padding: .75rem 1.25rem; margin-bottom: 1rem; }
.notice--error ul { margin: 0; padding-left: 1.1rem; }
main > .notice { margin-top: 1.5rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0 0; }
.pager__current { color: var(--muted); }

/* News cards */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 1rem 0; }
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.card:hover { border-color: #b9c7d4; }
.card__media { aspect-ratio: 16 / 9; background: var(--brand-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.card__meta { margin: 0; font-size: .8rem; color: var(--muted); }
.card__meta a { color: var(--brand); text-decoration: none; font-weight: 600; }
.card__title { margin: 0; font-size: 1rem; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--brand); }
.card__meta a { position: relative; z-index: 1; }
.card__text { margin: 0; color: var(--muted); font-size: .92rem; }
.card--lead { margin-bottom: 1rem; }
.card--lead .card__title { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
@media (min-width: 700px) {
    .card--lead { flex-direction: row; }
    .card--lead .card__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 260px; }
    .card--lead .card__body { padding: 1.25rem 1.5rem; justify-content: center; }
}

.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-list li { padding: .55rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.headline-list li:first-child { border-top: 0; }
.headline-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.headline-list a:hover { color: var(--brand); text-decoration: underline; }
.headline-list time { font-size: .8rem; color: var(--muted); }

/* Classifieds */
.ad-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ad-row + .ad-row { border-top: 1px solid var(--line); }
.ad-row__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .8rem 1rem; color: var(--text); text-decoration: none; }
.ad-row__link:hover { background: var(--brand-soft); }
.ad-row__title { font-weight: 500; }
.ad-row__date { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.ad-list--compact { border: 0; border-radius: 0; background: transparent; }
.ad-list--compact .ad-row__link { grid-template-columns: 1fr; gap: .15rem; padding: .55rem 0; }
.ad-list--compact .ad-row__link:hover { background: transparent; color: var(--brand); }
.ad-list--compact .badge { justify-self: start; }
@media (max-width: 600px) {
    .ad-row__link { grid-template-columns: 1fr; gap: .25rem; }
    .ad-row .badge { justify-self: start; }
}

/* Directory */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { display: flex; justify-content: space-between; align-items: center; gap: .5rem; height: 100%; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--brand); color: var(--brand); }
.tile__name { font-weight: 600; }
.tile__count { min-width: 2rem; padding: .1rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .82rem; text-align: center; }

.biz-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.biz-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.biz-card:hover { border-color: var(--brand); }
.biz-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.biz-card__media { aspect-ratio: 3 / 2; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.biz-card__media img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__initial { font-size: 2.5rem; font-weight: 800; color: var(--brand); opacity: .5; }
.biz-card__body { padding: .8rem 1rem 1rem; }
.biz-card__name { margin: 0 0 .2rem; font-size: 1.02rem; }
.biz-card__meta { margin: 0; font-size: .85rem; color: var(--muted); }

.contact-box h2 { font-size: 1.1rem; }
.contact-box p { margin: 0 0 .4rem; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .95rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.map-embed { margin-top: 1rem; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Articles */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); min-width: 0; }
.article--narrow { max-width: 760px; margin: 0 auto; }
.article__head { margin-bottom: 1.25rem; }
.article__head .card__meta { margin-bottom: .5rem; }
.article__lead { font-size: 1.15rem; color: var(--muted); }
.article__hero { margin: 0 0 1.5rem; border-radius: 8px; overflow: hidden; }
.article__hero img { width: 100%; }
.article-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-layout > aside { position: sticky; top: 5rem; }
}
.article-related h2 { font-size: 1.05rem; }
.share { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.prose { overflow-wrap: break-word; }
.prose img { border-radius: 8px; margin: 1rem auto; }
.prose a { word-break: break-word; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 4px solid var(--brand-soft); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose ul.gallery { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.prose ul.gallery li { margin: 0; }
.prose ul.gallery a { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--brand-soft); }
.prose ul.gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .2s; }
.prose ul.gallery a:hover img { transform: scale(1.04); }

/* Home */
.home-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.home-news .headline-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1rem; }
.home-side { display: grid; gap: 1.25rem; }
.home-side .panel + .panel { margin-top: 0; }
.home-directory { margin-top: 2.5rem; }

/* Banners (local business ads) */
.banners { display: grid; gap: .75rem; }
.banners__label { margin: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.banner img { display: block; width: 100%; height: auto; }
a.banner:hover, a.banner:focus-visible { box-shadow: var(--shadow); }
.banners--top { margin-bottom: 1.5rem; }
.banners--top .banner { max-height: 180px; }
.banners--top .banner img { max-height: 180px; object-fit: cover; }
.banners--inline { margin: 1.25rem 0; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 599px) { .banners--inline { grid-template-columns: 1fr; } }
.banners--inline .banners__label { grid-column: 1 / -1; }
.banners--inline .banner { aspect-ratio: 5 / 1; }
.banners--inline .banner img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 959px) { .banners--sidebar { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .banners--sidebar .banners__label { grid-column: 1 / -1; } }

/* Ferries */
.ferry-day + .ferry-day { margin-top: 1.5rem; }
.ferry-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ferry-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel .ferry-table { border: 0; border-radius: 0; }
.panel .ferry-table + .ferry-table { margin-top: 1rem; }
.ferry-table h3 { margin: 0; padding: .65rem 1rem; background: var(--brand-soft); color: var(--brand-dark); font-size: .98rem; display: flex; justify-content: space-between; gap: .5rem; }
.panel .ferry-table h3 { padding: .4rem .6rem; border-radius: 6px; }
.ferry-table__day { font-weight: 400; color: var(--muted); font-size: .85rem; }
.ferry-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ferry-table th, .ferry-table td { padding: .45rem 1rem; text-align: left; border-top: 1px solid var(--line); }
.panel .ferry-table th, .panel .ferry-table td { padding: .4rem .6rem; }
.ferry-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.ferry-table__time { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; width: 4.5rem; }
.ferry-table tr.is-departed { color: #9aa6b1; }
.ferry-table tr.is-departed .ferry-table__time { text-decoration: line-through; font-weight: 400; }
.ferry-day ~ .notice { margin-top: 1.5rem; }
.agency-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.25rem; }
.agency-grid .panel + .panel { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 1rem; margin-top: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem 1rem; display: grid; gap: .75rem; margin: 0; }
.form legend { padding: 0 .4rem; font-weight: 700; }
.form input:not([type="checkbox"]), .form select, .form textarea {
    width: 100%; padding: .6rem .75rem; border: 1px solid #c5cfd9; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); outline-offset: 0; }
.form textarea { resize: vertical; min-height: 8rem; }
.form .check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.form .check input { margin-top: .3rem; }
.form .btn { justify-self: start; padding: .7rem 1.4rem; }
.cf-turnstile { min-height: 65px; }

@media print {
    .banners { display: none; }
    .site-header, .site-footer, .share, .article-related, .crumbs { display: none; }
    body { background: #fff; }
    .article, .panel { border: 0; box-shadow: none; }
}
