/* ==========================================================================
   edjerba.com - front-end theme
   Mediterranean editorial: warm off-white, deep sea blue, terracotta accents.
   No framework: this file replaces Bootstrap + Font Awesome on public pages.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("fonts/playfair-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("fonts/playfair-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Playfair Display";
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/playfair-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

/* ---------- Design tokens ---------- */
:root {
    --bg: #fffdf9;
    --surface: #ffffff;
    --sand: #f6efe4;
    --sand-deep: #ecdfcb;
    --ink: #15232d;
    --ink-soft: #33434f;
    --muted: #64737e;
    --line: #e9e2d6;
    --sea: #0b6e8a;
    --sea-deep: #07475a;
    --sea-night: #052f3c;
    --sea-light: #e3f1f4;
    --terracotta: #c4553b;
    --terracotta-dark: #a5432c;
    --gold: #e0a43a;

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(21, 35, 45, .06), 0 2px 8px rgba(21, 35, 45, .05);
    --shadow: 0 10px 30px -12px rgba(21, 35, 45, .25);
    --shadow-lg: 0 24px 60px -20px rgba(7, 71, 90, .35);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h5, h6 { font-family: var(--font-sans); font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons & chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-align: center;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); color: #fff; }
.btn-accent, .btn-cta { background: var(--terracotta); color: #fff; }
.btn-accent:hover, .btn-cta:hover { background: var(--terracotta-dark); color: #fff; }
.btn-outline, .btn-outline-primary { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover, .btn-outline-primary:hover { background: var(--sea); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }

.chip {
    display: inline-flex; align-items: center; gap: .35em;
    padding: .3em .8em; border-radius: 999px;
    background: var(--sea-light); color: var(--sea-deep);
    font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
a.chip:hover { background: var(--sea); color: #fff; }
.chip--accent { background: #fbe9e3; color: var(--terracotta-dark); }
.chip--light { background: rgba(255, 255, 255, .92); color: var(--sea-deep); }
.eyebrow { display: inline-block; color: var(--terracotta); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }

/* ---------- Header ---------- */
.reading-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--terracotta), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 253, 249, .88);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21, 35, 45, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-toggle-sub {
    display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink-soft); font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav a:hover, .nav-toggle-sub:hover, .main-nav .is-current > a { color: var(--sea); background: var(--sea-light); }
.has-sub { position: relative; }
.has-sub > .submenu {
    position: absolute; top: calc(100% + 8px); left: 50%; min-width: 230px;
    list-style: none; margin: 0; padding: 8px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub > .submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { padding: 9px 12px; font-size: .92rem; }
.nav-toggle-sub .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open .nav-toggle-sub .icon { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn .icon { width: 22px; height: 22px; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
    .menu-btn { display: inline-grid; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
        background: var(--bg); overflow-y: auto; padding: 16px var(--gutter) 40px;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .main-nav a, .nav-toggle-sub { padding: 16px 4px; font-size: 1.1rem; justify-content: space-between; width: 100%; border-radius: 0; }
    .main-nav a:hover, .nav-toggle-sub:hover { background: none; }
    .has-sub > .submenu {
        position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
        padding: 0 0 12px 12px; display: none; background: transparent;
    }
    .has-sub.is-open > .submenu { display: block; transform: none; }
    .has-sub:hover > .submenu { transform: none; }
    .submenu a { font-size: 1rem; padding: 10px 4px; color: var(--muted); }
}

/* ---------- Search panel ---------- */
.search-panel {
    position: fixed; inset: 0; z-index: 70; display: grid; place-items: start center;
    padding: 12vh var(--gutter) 0; background: rgba(5, 47, 60, .55); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.search-panel.is-open { opacity: 1; visibility: visible; }
.search-panel__box { width: 100%; max-width: 680px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.search-panel__box h2 { font-size: 1.5rem; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; }
.search-form input {
    flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px;
    border: 2px solid var(--line); background: var(--bg); font: inherit; font-size: 1rem; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--sea); }
.search-form .btn { min-height: 52px; }
.search-panel__close { float: right; margin: -12px -12px 0 0; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2, .section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sea); white-space: nowrap; }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(3px); }
.section-foot { margin-top: 32px; text-align: center; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.hero-feature {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px);
    background: linear-gradient(135deg, var(--sand) 0%, #fbf6ee 60%, var(--sea-light) 140%);
    border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden;
}
.hero-feature::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    border: 42px solid rgba(11, 110, 138, .07); pointer-events: none;
}
.hero-feature__title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 12px 0 16px; }
.hero-feature__title a { color: inherit; }
.hero-feature__title a:hover { color: var(--sea-deep); }
.hero-feature__excerpt { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 24px; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-feature__media { position: relative; z-index: 1; }
.hero-feature__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-feature__badge { position: absolute; left: -14px; bottom: 24px; background: var(--surface); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; }
.hero-feature__badge .icon { color: var(--terracotta); width: 22px; height: 22px; }
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 900px) {
    .hero-feature { grid-template-columns: 1fr; }
    .hero-feature__media { order: -1; }
    .hero-feature__badge { left: 12px; }
    .hero-strip { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }

.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media .chip { position: absolute; left: 12px; top: 12px; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.post-card__title a { color: var(--ink); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card:hover .post-card__title a { color: var(--sea-deep); }
.post-card__excerpt { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.post-card--large .post-card__media { aspect-ratio: 16 / 11; }
.post-card--large .post-card__title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.post-card--large .post-card__excerpt { -webkit-line-clamp: 3; font-size: 1rem; }
.post-card--row { flex-direction: row; align-items: stretch; }
.post-card--row .post-card__media { width: 38%; aspect-ratio: auto; flex: none; min-height: 120px; }
.post-card--row .post-card__body { padding: 14px 16px; }
.post-card--row .post-card__title { font-size: 1.05rem; }
.post-card--row .post-card__excerpt { -webkit-line-clamp: 2; }

.feature-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(18px, 2.5vw, 28px); }
.feature-layout__list { display: grid; gap: 16px; align-content: start; }
@media (max-width: 900px) { .feature-layout { grid-template-columns: 1fr; } }

/* ---------- Destinations & topics ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dest-tile {
    position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; border-radius: var(--radius);
    overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm);
    background: linear-gradient(160deg, var(--sea) 0%, var(--sea-night) 100%);
}
.dest-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.dest-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 47, 60, 0) 35%, rgba(5, 47, 60, .85) 100%); }
.dest-tile:hover img { transform: scale(1.06); }
.dest-tile:hover { color: #fff; }
.dest-tile__body { padding: 18px; }
.dest-tile__name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; line-height: 1.1; display: block; }
.dest-tile__meta { font-size: .8rem; opacity: .85; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
/* Postcard style when there is no photo */
.dest-tile--postcard { background:
    radial-gradient(circle at 80% 18%, rgba(224, 164, 58, .95) 0 34px, transparent 35px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px),
    linear-gradient(170deg, #1287a6 0%, var(--sea-deep) 60%, var(--sea-night) 100%); }
.dest-tile--postcard::before { background: linear-gradient(180deg, transparent 50%, rgba(5, 47, 60, .55)); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.topic-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.topic-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.topic-card strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; }
.topic-card span { color: var(--muted); font-size: .85rem; }

/* ---------- Page header (listings, legal pages, search) ---------- */
.page-hero { background: var(--sand); padding-block: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(196, 85, 59, .07); }
.page-hero__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 8px 0 12px; }
.page-hero__lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 65ch; margin: 0; }
.page-hero__lead p:last-child { margin: 0; }
.page-hero__media img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.page-hero__count { margin-top: 14px; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__media { display: none; } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--sand-deep); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sea); }
.breadcrumb [aria-current] { color: var(--ink-soft); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Article ---------- */
.article-header { padding-block: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 48px); }
.article-header__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 18px; }
.article-header h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin: 14px 0 16px; }
.article-header__lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-header__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
    .article-header__grid { grid-template-columns: 1fr; }
    .article-header__media { order: -1; }
    .article-header__media img { aspect-ratio: 4 / 3; }
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: 64px; }
@media (max-width: 1023px) { .article-layout { grid-template-columns: 1fr; } }
.article-body { min-width: 0; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-weight: 600; font-size: .9rem; margin-right: 4px; }
.share a, .share button {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.share a:hover, .share button:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.share .icon { width: 18px; height: 18px; }
.share button.is-copied { background: var(--sea); color: #fff; }
.article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.affiliate-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff8ea; border: 1px solid #f3e1b9; color: #6b5420; font-size: .86rem; margin-bottom: 28px; }
.affiliate-note .icon { color: var(--gold); margin-top: 2px; }

/* Table of contents */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc__title { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--terracotta); font-weight: 700; font-size: .78rem; padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--sea-light); color: var(--sea-deep); }
.toc--inline { margin-bottom: 32px; }
@media (min-width: 1024px) { .toc--inline { display: none; } }
@media (max-width: 1023px) { .aside-sticky .toc { display: none; } }

/* ---------- Prose (article & page content from the editor) ---------- */
.prose { font-size: 1.075rem; line-height: 1.78; color: var(--ink-soft); }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); color: var(--ink); margin: 2em 0 .7em; padding-top: .2em; }
.prose h2::before { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; background: var(--terracotta); margin-bottom: .6em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); color: var(--ink); margin: 1.7em 0 .6em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--sea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(11, 110, 138, .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose ul li::marker { color: var(--terracotta); }
.prose ol li::marker { color: var(--terracotta); font-weight: 700; }
.prose li > p { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; width: auto; max-width: 100%; height: auto !important; }
.prose p > img:only-child, .prose p > a:only-child > img { margin-block: .4em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .6em; }
/* Image alignment chosen in the editor (CKEditor image2) */
.prose figure img { margin: 0 auto; }
.prose .image-center { display: table; margin-inline: auto; text-align: center; }
.prose img.image-center { display: block; }
.prose .image-left, .prose .image-right { max-width: 46%; margin-top: .3em; margin-bottom: 1em; }
.prose .image-left { float: left; margin-right: 1.4em; }
.prose .image-right { float: right; margin-left: 1.4em; }
.prose .image-left img, .prose .image-right img, .prose img.image-left, .prose img.image-right { margin: 0; }
.prose h2, .prose h3, .prose hr, .prose .info-box, .prose .tip-box, .prose .cta-box { clear: both; }
@media (max-width: 600px) {
  .prose .image-left, .prose .image-right { float: none; max-width: 100%; margin-inline: 0; }
}
.prose blockquote { margin: 1.8em 0; padding: 1.2em 1.4em; border-left: 4px solid var(--terracotta); background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .65em .85em; text-align: left; vertical-align: top; }
.prose th, .prose thead td { background: var(--sand); color: var(--ink); font-weight: 600; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; }
.prose .table-responsive, .prose .markdown-table-wrapper { overflow-x: auto; }

/* Components editors can use in the article editor (source mode) */
.cta-box, .info-box, .tip-box { border-radius: var(--radius); padding: 1.4em 1.6em; margin: 2em 0; }
.cta-box { background: linear-gradient(135deg, var(--sea-deep), var(--sea)); color: #e9f6f9; display: grid; gap: .6em; }
.cta-box h3, .cta-box h4, .cta-box strong { color: #fff; margin-top: 0; }
.cta-box p { margin: 0; }
.cta-box .btn-cta, .prose .btn-cta { justify-self: start; text-decoration: none; color: #fff; }
.info-box { background: var(--sea-light); border: 1px solid #c7e3ea; }
.tip-box { background: #fff8ea; border: 1px solid #f3e1b9; }
.info-box > :last-child, .tip-box > :last-child { margin-bottom: 0; }
.prose a.is-affiliate::after { content: "↗"; font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }

/* ---------- Sidebar widgets ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget__title { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-post { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.mini-post img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-post span { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; font-size: .98rem; }
.mini-post:hover span { color: var(--sea); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.tag-cloud a:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.tag-cloud small { color: var(--muted); margin-left: 4px; }
.tag-cloud a:hover small { color: #d5eef3; }
.partner-ad img { border-radius: var(--radius-sm); margin-bottom: 10px; width: 100%; }

/* ---------- Ads ---------- */
.ad-slot { margin: 32px 0; text-align: center; }
.ad-slot__label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot ins { display: block; min-height: 250px; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(233, 226, 214, .35) 10px 20px); border-radius: var(--radius-sm); }
.ad-slot--sidebar ins { min-height: 600px; }
.ad-slot--feed { grid-column: 1 / -1; margin: 8px 0; }
.ad-slot--feed ins { min-height: 120px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-weight: 600; }
.pagination a:hover { border-color: var(--sea); color: var(--sea); }
.pagination [aria-current] { background: var(--sea); border-color: var(--sea); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ---------- Empty states, 404 ---------- */
.empty-state { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--sand-deep); border-radius: var(--radius-lg); }
.empty-state h2 { font-size: 1.6rem; }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.error-page { text-align: center; padding-block: clamp(48px, 10vw, 120px); }
.error-page__code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--sea); margin: 0; }
.error-page h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 12px 0; }
.error-page p { color: var(--muted); max-width: 55ch; margin: 0 auto 28px; }
.error-page .search-form { max-width: 520px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-night); color: #b9d3da; margin-top: 0; }
.site-footer a { color: #e3f1f4; }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 38ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-social a:hover { background: var(--terracotta); color: #fff; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8fb2bc; }
.footer-bottom a { color: #b9d3da; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: var(--sea); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terracotta); }

/* ---------- Cookie notice ---------- */
.cookie-notice {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; max-width: 760px; margin-inline: auto;
    display: flex; align-items: center; gap: 20px 28px; padding: 22px 26px;
    background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); font-size: .92rem;
    opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-open { opacity: 1; transform: none; }
.cookie-notice h2 { font-size: 1.15rem; margin-bottom: .35em; }
.cookie-notice p { margin: 0; }
.cookie-notice a { text-decoration: underline; }
.cookie-notice__actions { display: flex; gap: 10px; flex: none; }
.cookie-notice__actions .btn { min-height: 42px; padding-inline: 1.2em; }
@media (max-width: 640px) {
    .cookie-notice { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; padding: 18px; }
    .cookie-notice__actions .btn { flex: 1; }
}
/* ---------- Ad blocker wall ---------- */
.adblock-wall {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; overflow-y: auto;
    background: rgba(5, 47, 60, .72); -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
    opacity: 0; transition: opacity .35s var(--ease);
}
.adblock-wall[hidden] { display: none; }
.adblock-wall.is-open { opacity: 1; }
.adblock-wall__box {
    position: relative; width: 100%; max-width: 520px; padding: 44px 36px 32px; text-align: center;
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
    transform: translateY(24px) scale(.97); transition: transform .45s var(--ease);
}
.adblock-wall.is-open .adblock-wall__box { transform: none; }
.adblock-wall__box::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 6px;
    background: linear-gradient(90deg, var(--sea), var(--gold), var(--terracotta));
}
.adblock-wall__badge {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, var(--terracotta), var(--gold));
    box-shadow: 0 12px 28px -10px rgba(196, 85, 59, .7);
}
.adblock-wall .eyebrow { display: block; margin-bottom: 6px; }
.adblock-wall h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-bottom: .5em; }
.adblock-wall p { color: var(--ink-soft); }
.adblock-wall__help { margin: 18px 0 24px; text-align: left; background: var(--sand); border-radius: var(--radius); padding: 4px 18px; font-size: .9rem; }
.adblock-wall__help summary { cursor: pointer; font-weight: 600; color: var(--sea-deep); padding: 10px 0; }
.adblock-wall__help ul { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 8px; }
.adblock-wall__reload { width: 100%; }
.adblock-wall__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) { .adblock-wall__box { padding: 36px 20px 24px; } }

.footer-link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #e3f1f4; text-align: left; }
.footer-link-btn:hover { color: var(--gold); }

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .article-aside, .ad-slot, .share, .to-top, .cookie-notice, .reading-progress, .related { display: none !important; }
    body { background: #fff; }
}

/* ---------- Layout helpers used by templates and the page builder ---------- */
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .card-grid--2 { grid-template-columns: 1fr; } }
.card-grid--after { margin-top: clamp(18px, 2.5vw, 28px); }
.prose--narrow { max-width: 760px; margin-inline: auto; }
.prose--wide { max-width: 880px; margin-inline: auto; }
.page-content > .section:first-child { padding-top: clamp(32px, 5vw, 56px); }
.page-content > .section:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.page-content .prose h2:first-child::before { display: none; }
.page-hero .search-form { max-width: 560px; margin-top: 18px; }
.page-hero__meta { margin-top: 16px; }

/* ---------- Legal pages ---------- */
.legal .last-updated { display: inline-block; font-size: .85rem; color: var(--muted); background: var(--sand); padding: 4px 12px; border-radius: 999px; }
.legal .warning-box, .legal .note, .legal .contact-info { background: var(--sea-light); border: 1px solid #c7e3ea; border-radius: var(--radius); padding: 1.2em 1.4em; margin: 1.6em 0; }
.legal .warning-box h2 { margin-top: 0; }
.legal .warning-box h2::before { display: none; }
.legal .warning-box > :last-child, .legal .note > :last-child, .legal .contact-info > :last-child { margin-bottom: 0; }
.legal .cookie-table { display: table; }

/* ---------- Refinements ---------- */
[hidden] { display: none !important; }
.hero-feature .chip { margin-left: 6px; vertical-align: 1px; }
/* Postcard tiles: three palettes so a grid without photos still feels varied */
.dest-tile--postcard:nth-child(3n+2) { background:
    radial-gradient(circle at 78% 22%, rgba(255, 236, 200, .95) 0 30px, transparent 31px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px),
    linear-gradient(175deg, #f0a35e 0%, var(--terracotta) 45%, #5b2a3a 100%); }
.dest-tile--postcard:nth-child(3n) { background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .9) 0 26px, transparent 27px),
    radial-gradient(ellipse 120% 40% at 50% 100%, #b9793d 0 60%, transparent 61%),
    radial-gradient(ellipse 90% 35% at 10% 95%, #d39a55 0 60%, transparent 61%),
    linear-gradient(180deg, #f6d29a 0%, #e9b06a 55%, #c98745 100%); }
.aside-sticky .toc { max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; overscroll-behavior: contain; }
.article-header__grid--text { grid-template-columns: minmax(0, 860px); }

/* ---------- Recipes ---------- */
.prose .recipe-facts {
    list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.prose .recipe-facts li { background: var(--surface); padding: 14px 16px; margin: 0; display: grid; gap: 2px; }
.prose .recipe-facts li::marker { content: none; }
.prose .recipe-facts span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prose .recipe-facts strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }
.prose .recipe-heading { display: flex; align-items: center; gap: 10px; }
.prose .recipe-heading::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); flex: none; }
.prose .recipe-ingredients { list-style: none; padding: 1.2em 1.4em; background: var(--sand); border-radius: var(--radius); columns: 2 220px; column-gap: 2em; }
.prose .recipe-ingredients li { break-inside: avoid; padding-left: 28px; position: relative; }
.prose .recipe-ingredients li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 5px;
    border: 2px solid var(--terracotta); background: var(--surface);
}
/* Lining figures for numbers set in the display font */
.prose .recipe-facts strong, .error-page__code, .pagination, .dest-tile__name { font-variant-numeric: lining-nums; }

/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header bar */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 253, 249, .9);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.menu-btn .icon-close, .nav-open .menu-btn .icon-open { display: none; }
.nav-open .menu-btn .icon-close { display: block; }
