/* =============================================================================================
   Ionian Agri-Food Map — site stylesheet (on top of Bootstrap 5.3)

   Design read: public discovery site for visitors and residents of the Ionian Islands; calm,
   trustworthy, Mediterranean. Colours come from the Ionian Islands Region's official UI palette
   ("Design system base colors for Digital Platform"): Ionian Navy carries headings and identity,
   Ionian Blue every interactive element, Ionian Yellow is the single accent (badges,
   highlights), the light/mid blues tint surfaces and secondary badges, and real CMS photography
   does the rest.

   Shape rule: interactive controls (buttons, chips, inputs, selects) are full pills;
   containers (cards, panels, photos) use 14–20px radii.

   Sections:
     1. Fonts            6. Footer             11. Map
     2. Tokens            7. Page scaffolding   12. Detail pages
     3. Base              8. Home               13. Products
     4. Controls          9. Cards              14. States, about, misc
     5. Header           10. Filters & search
   ============================================================================================= */

/* 1. Fonts ----------------------------------------------------------------------------------- */
/* Commissioner (Kostas Bartsokas, SIL OFL) — a variable sans with first-class Greek. */
@font-face {
    font-family: "Commissioner Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/commissioner/commissioner-greek-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
    font-family: "Commissioner Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/commissioner/commissioner-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Commissioner Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/commissioner/commissioner-latin-wght-normal.woff2") format("woff2-variations");
    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;
}

/* 2. Tokens ---------------------------------------------------------------------------------- */
:root,
[data-bs-theme=light] {
    --ia-font: "Commissioner Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

    /* Official UI palette — Ionian Islands Region. Use these names, not raw hex values. */
    --ionian-navy: #072752;
    --ionian-blue: #205AA7;
    --ionian-light-blue: #91C0E8;
    --ionian-mid-blue: #6A9ACE;
    --ionian-yellow: #F6D701;
    --ionian-background: #F6F7FA;

    /* Measured contrast: white on Ionian Blue 6.8:1, navy on yellow 11:1, navy on light blue
       7.8:1, navy on mid blue 5.1:1, body ink on the background 13:1. */
    --ia-accent: var(--ionian-yellow);
    --ia-accent-ink: var(--ionian-navy);

    --ia-bg: var(--ionian-background);
    --ia-surface: #FFFFFF;
    --ia-surface-2: #EAF0F8;            /* background tinted with Ionian Light Blue */
    --ia-hero-top: #E6F0FA;
    --ia-ink: #172A45;
    --ia-ink-soft: #34465F;
    --ia-heading: var(--ionian-navy);
    --ia-muted: #56667C;
    --ia-line: #DCE4EE;
    --ia-line-strong: #C2D0E0;

    --ia-primary: var(--ionian-blue);
    --ia-primary-hover: #1A4B8C;
    --ia-primary-text: var(--ionian-blue);
    --ia-primary-soft: #E0EDF9;
    --ia-focus: rgb(32 90 167 / 45%);
    --ia-heart: #D6334B;

    --ia-shadow-sm: 0 1px 2px rgb(7 39 82 / 6%), 0 1px 3px rgb(7 39 82 / 6%);
    --ia-shadow: 0 1px 2px rgb(7 39 82 / 5%), 0 12px 28px -14px rgb(7 39 82 / 28%);
    --ia-scrim: rgb(4 22 48 / 78%);

    --ia-header-h: 68px;
    --ia-gutter: clamp(1rem, 4vw, 1.5rem);

    /* Bootstrap bridges */
    --bs-body-font-family: var(--ia-font);
    --bs-body-bg: var(--ia-bg);
    --bs-body-color: var(--ia-ink);
    --bs-emphasis-color: var(--ia-heading);
    --bs-secondary-color: var(--ia-muted);
    --bs-tertiary-bg: var(--ia-surface-2);
    --bs-border-color: var(--ia-line);
    --bs-primary: #205AA7;
    --bs-primary-rgb: 32, 90, 167;
    --bs-link-color: #205AA7;
    --bs-link-color-rgb: 32, 90, 167;
    --bs-link-hover-color: #072752;
    --bs-link-hover-color-rgb: 7, 39, 82;
    --bs-border-radius: .875rem;
    --bs-focus-ring-color: var(--ia-focus);
}

/* Dark: the same palette over deep Ionian Navy surfaces. */
[data-bs-theme=dark] {
    --ia-bg: #041630;
    --ia-surface: #0A2246;
    --ia-surface-2: #0F2B55;
    --ia-hero-top: #0A2246;
    --ia-ink: #E3EBF6;
    --ia-ink-soft: #C2D2E6;
    --ia-heading: var(--ionian-background);
    --ia-muted: #A3B6CE;
    --ia-line: #1C3A66;
    --ia-line-strong: #2A4C7E;

    --ia-primary: var(--ionian-blue);
    --ia-primary-hover: #2B6BC0;
    --ia-primary-text: var(--ionian-light-blue);
    --ia-primary-soft: #12335F;
    --ia-focus: rgb(145 192 232 / 50%);
    --ia-heart: #FF6B81;

    --ia-shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --ia-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 30px -14px rgb(0 0 0 / 60%);
    --ia-scrim: rgb(2 12 28 / 80%);

    --bs-body-bg: var(--ia-bg);
    --bs-body-color: var(--ia-ink);
    --bs-emphasis-color: var(--ia-heading);
    --bs-secondary-color: var(--ia-muted);
    --bs-tertiary-bg: var(--ia-surface-2);
    --bs-border-color: var(--ia-line);
    --bs-primary: #205AA7;
    --bs-primary-rgb: 32, 90, 167;
    --bs-link-color: #91C0E8;
    --bs-link-color-rgb: 145, 192, 232;
    --bs-link-hover-color: #C3DDF3;
    --bs-link-hover-color-rgb: 195, 221, 243;
}

/* 3. Base ------------------------------------------------------------------------------------ */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--ia-header-h) + 1rem);
}

body {
    font-family: var(--ia-font);
    line-height: 1.6;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4 {
    color: var(--ia-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    text-underline-offset: .18em;
}

h1:focus,
main:focus {
    outline: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--ia-focus);
    outline-offset: 2px;
}

::selection {
    background: rgb(246 215 1 / 45%);
    color: var(--ionian-navy);
}

.container-xxl {
    padding-inline: var(--ia-gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -120px;
    z-index: 1080;
    padding: .625rem 1rem;
    border-radius: .75rem;
    background: var(--ia-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: .75rem;
}

/* 4. Controls -------------------------------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .5625rem;
    --bs-btn-border-radius: 999px;
    --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--ia-focus);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 44px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    --bs-btn-padding-x: .875rem;
    --bs-btn-padding-y: .3125rem;
    --bs-btn-font-size: .875rem;
    min-height: 36px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ia-primary);
    --bs-btn-border-color: var(--ia-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ia-primary-hover);
    --bs-btn-hover-border-color: var(--ia-primary-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ia-primary-hover);
    --bs-btn-active-border-color: var(--ia-primary-hover);
    --bs-btn-disabled-bg: var(--ia-primary);
    --bs-btn-disabled-border-color: var(--ia-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--ia-primary-text);
    --bs-btn-bg: var(--ia-surface);
    --bs-btn-border-color: var(--ia-line-strong);
    --bs-btn-hover-color: var(--ia-primary-text);
    --bs-btn-hover-bg: var(--ia-primary-soft);
    --bs-btn-hover-border-color: var(--ia-primary-text);
    --bs-btn-active-color: var(--ia-primary-text);
    --bs-btn-active-bg: var(--ia-primary-soft);
    --bs-btn-active-border-color: var(--ia-primary-text);
}

.btn-accent {
    --bs-btn-color: var(--ia-accent-ink);
    --bs-btn-bg: var(--ia-accent);
    --bs-btn-border-color: var(--ia-accent);
    --bs-btn-hover-color: var(--ia-accent-ink);
    --bs-btn-hover-bg: #E9CB00;
    --bs-btn-hover-border-color: #E9CB00;
    --bs-btn-active-color: var(--ia-accent-ink);
    --bs-btn-active-bg: #D6BB00;
    --bs-btn-active-border-color: #D6BB00;
}

.btn-link {
    --bs-btn-color: var(--ia-primary-text);
    --bs-btn-hover-color: var(--ia-primary);
    text-decoration: none;
}

[data-bs-theme=dark] .btn-link {
    --bs-btn-hover-color: #C3DDF3;
}

.btn-link:hover {
    text-decoration: underline;
}

.form-select {
    min-height: 46px;
    border-radius: 999px;
    border-color: var(--ia-line-strong);
    background-color: var(--ia-surface);
    padding-left: 1.125rem;
    font-weight: 500;
}

.form-select:focus {
    border-color: var(--ia-primary-text);
    box-shadow: 0 0 0 .25rem var(--ia-focus);
}

.icon-btn {
    width: 42px;
    height: 42px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--ia-line);
    background: var(--ia-surface);
    color: var(--ia-ink);
    font-size: 1.0625rem;
    transition: background-color .15s ease;
}

.icon-btn:hover {
    background: var(--ia-surface-2);
}

.count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 .375rem;
    margin-left: .375rem;
    border-radius: 999px;
    background: var(--ia-accent);
    color: var(--ia-accent-ink);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}

.theme-icon-dark {
    display: none;
}

[data-bs-theme=dark] .theme-icon-light {
    display: none;
}

[data-bs-theme=dark] .theme-icon-dark {
    display: inline-block;
}

/* 5. Header ---------------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--ia-surface) 90%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ia-line);
    /* A thin Ionian Yellow line along the top (inset, so the header height stays exact). */
    box-shadow: inset 0 3px 0 var(--ionian-yellow);
}

@media (prefers-reduced-transparency: reduce) {
    .site-header {
        background: var(--ia-surface);
        backdrop-filter: none;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: var(--ia-header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    color: var(--ia-heading);
    text-decoration: none;
}

.brand:hover {
    color: var(--ia-heading);
}

/* Ionian Islands Region logo (extracted at high resolution from the official palette PDF; white
   ground). It is an official mark, so it is never recoloured: wherever the surface is not white
   it sits on a white plate instead. */
.brand-logo,
.footer-logo {
    flex: none;
    width: auto;
    object-fit: contain;
}

.brand-logo {
    height: 52px; /* the lettering in the mark is small: below ~50px it stops being legible */
}

[data-bs-theme=dark] .brand-logo,
.footer-logo {
    box-sizing: border-box;
    padding: 4px 7px;
    border-radius: 10px;
    background: #FFFFFF;
}

.brand-divider {
    flex: none;
    align-self: stretch;
    width: 1px;
    margin: 14px 0;
    background: var(--ia-line-strong);
}

@media (max-width: 575.98px) {
    .brand {
        gap: .625rem;
    }

    .brand-logo {
        height: 42px;
    }

    .brand-divider {
        margin: 16px 0;
    }

    /* Two short lines read better than one truncated line on a phone. (Scoped under .brand
       to outrank the base .brand-name rule, which comes later in this file.) */
    .brand .brand-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        font-size: .875rem;
        line-height: 1.15;
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-weight: 700;
    font-size: clamp(.9375rem, .85rem + .3vw, 1.0625rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    display: none;
    font-size: .75rem;
    color: var(--ia-muted);
    line-height: 1.3;
}

.site-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .125rem;
}

.site-link {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .875rem;
    border-radius: 999px;
    color: var(--ia-ink);
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.site-link:hover {
    background: var(--ia-surface-2);
    color: var(--ia-heading);
}

.site-link.active {
    background: var(--ia-primary-soft);
    color: var(--ia-primary-text);
}

.site-tools {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ia-line);
    border-radius: 999px;
    background: var(--ia-surface);
}

.lang-option {
    padding: .3125rem .6875rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ia-muted);
    text-decoration: none;
}

.lang-option:hover {
    color: var(--ia-heading);
}

.lang-option.is-active {
    background: var(--ia-primary);
    color: #fff;
}

.nav-toggle {
    margin-left: auto;
}

/* Below 1200px the links move into a drop-down panel (Greek labels are long). */
@media (max-width: 1199.98px) {
    .site-menu {
        display: none;
        position: fixed;
        inset: var(--ia-header-h) 0 auto 0;
        max-height: calc(100dvh - var(--ia-header-h));
        overflow-y: auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem var(--ia-gutter) 1.5rem;
        background: var(--ia-surface);
        border-bottom: 1px solid var(--ia-line);
        box-shadow: var(--ia-shadow);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-links {
        flex-direction: column;
        gap: .25rem;
    }

    .site-link {
        width: 100%;
        min-height: 48px;
        padding: .75rem 1rem;
        border-radius: 14px;
        font-size: 1.0625rem;
    }

    .site-tools {
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid var(--ia-line);
    }
}

@media (min-width: 1200px) {
    .nav-toggle {
        display: none;
    }

    .site-menu {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-left: auto;
    }

    .site-link i {
        display: none;
    }
}

@media (min-width: 1400px) {
    .brand-tagline {
        display: block;
    }
}

/* 6. Footer ---------------------------------------------------------------------------------- */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    background: var(--ia-surface-2);
    border-top: 1px solid var(--ia-line);
    font-size: .9375rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

.footer-brand p {
    color: var(--ia-muted);
    max-width: 48ch;
    margin: 1rem 0 0;
}

.footer-logo {
    display: block;
    height: 64px;
}

.footer-brand .footer-name {
    margin-top: 1.25rem;
    color: var(--ia-heading);
    font-weight: 700;
    font-size: 1.0625rem;
}

.footer-brand .footer-name + p {
    margin-top: .375rem;
}

.footer-heading {
    font-size: .9375rem;
    font-weight: 700;
    margin: .25rem 0 .75rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.site-footer a:not(.brand) {
    color: var(--ia-ink-soft);
    text-decoration: none;
}

.site-footer a:not(.brand):hover {
    color: var(--ia-primary-text);
    text-decoration: underline;
}

.footer-legal {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ia-line);
    color: var(--ia-muted);
    font-size: .8125rem;
}

/* 7. Page scaffolding ------------------------------------------------------------------------ */
.page-header {
    padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) 0 1.25rem;
}

.page-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.page-title {
    font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 .5rem;
}

.page-lede {
    color: var(--ia-muted);
    font-size: 1.0625rem;
    max-width: 60ch;
    margin: 0;
}

.page-body {
    padding-bottom: 2rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    padding: 0;
    margin: 0 0 .875rem;
    font-size: .875rem;
    color: var(--ia-muted);
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-width: 0;
}

.breadcrumbs li + li::before {
    content: "/";
    color: var(--ia-line-strong);
}

.breadcrumbs a {
    color: var(--ia-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ia-primary-text);
    text-decoration: underline;
}

.breadcrumbs [aria-current] {
    color: var(--ia-ink);
    font-weight: 500;
    max-width: 42ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section {
    padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section-tinted {
    background: var(--ia-surface-2);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0;
}

.section-lede {
    color: var(--ia-muted);
    max-width: 58ch;
    margin: .5rem 0 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    text-decoration: underline;
}

.section-note {
    color: var(--ia-muted);
    font-size: .9375rem;
    margin: -.5rem 0 1rem;
}

.section-head .section-note {
    margin: .375rem 0 0;
}

/* 8. Home ------------------------------------------------------------------------------------ */
.hero {
    padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
    background: linear-gradient(180deg, var(--ia-hero-top) 0%, var(--ia-bg) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 4rem;
    }
}

.hero-title {
    font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin: 0 0 1.125rem;
    max-width: 15ch;
}

.hero-lede {
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    color: var(--ia-muted);
    max-width: 44ch;
    margin: 0 0 2rem;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 560px;
    padding: .375rem .375rem .375rem 1.125rem;
    border: 1px solid var(--ia-line-strong);
    border-radius: 999px;
    background: var(--ia-surface);
    box-shadow: var(--ia-shadow);
}

.hero-search:focus-within {
    border-color: var(--ia-primary-text);
    box-shadow: 0 0 0 .25rem var(--ia-focus), var(--ia-shadow);
}

.hero-search > i {
    color: var(--ia-muted);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ia-ink);
    font-size: 1rem;
    padding: .5rem 0;
}

.hero-search input::-webkit-search-cancel-button {
    display: none;
}

.hero-search input::placeholder {
    color: var(--ia-muted);
}

.hero-actions {
    margin-top: .75rem;
}

.hero-actions .btn-link {
    padding-left: 0;
}

.hero-media {
    display: grid;
    /* minmax(0, …): photos must never widen their track (grid blow-out on phones). */
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    aspect-ratio: 5 / 4;
}

.hero-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--ia-surface-2);
    color: #fff;
    text-decoration: none;
}

.hero-tile-0 {
    grid-row: span 2;
}

.hero-tile img,
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.hero-fallback {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    border-radius: 20px;
}

.hero-tile:hover img {
    transform: scale(1.04);
}

.hero-tile-caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    padding: 2.5rem .875rem .75rem;
    background: linear-gradient(to top, var(--ia-scrim), transparent);
}

.hero-tile-title {
    font-weight: 650;
    font-size: .9375rem;
    line-height: 1.25;
}

.hero-tile-meta {
    font-size: .8125rem;
    opacity: .88;
}

.stats-band {
    background: var(--ia-surface);
    border-block: 1px solid var(--ia-line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    color: inherit;
    text-decoration: none;
    border-inline-start: 1px solid var(--ia-line);
    transition: background-color .15s ease;
}

.stat:hover {
    background: var(--ia-surface-2);
}

.stat:nth-child(odd) {
    border-inline-start: 0;
}

@media (min-width: 768px) {
    .stat:nth-child(odd) {
        border-inline-start: 1px solid var(--ia-line);
    }

    .stat:first-child {
        border-inline-start: 0;
    }
}

.stat-value {
    font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--ia-heading);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: .375rem;
    color: var(--ia-muted);
    font-size: .9375rem;
}

/* Carousel (Components/Shared/Carousel.razor + js/carousel.js) ---------------------------------
   Prefixed "ia-": Bootstrap's own .carousel-item floats with a -100% margin.
   --per-page items fill the viewport exactly; js/carousel.js pages by one viewport, wraps around
   and reveals the copies (.clone-N) needed to fill a short last page. */
.ia-carousel {
    --per-page: 1;
    --gap: 1.25rem;
    --track-pad: .375rem; /* room for the cards' hover lift inside the clipping viewport */
    position: relative;
    container-type: inline-size;
}

@media (min-width: 576px) {
    .ia-carousel { --per-page: 2; }
}

@media (min-width: 992px) {
    .ia-carousel { --per-page: 3; }
}

/* Keep the largest value in step with MaxPerPage in Carousel.razor. */
@media (min-width: 1200px) {
    .ia-carousel { --per-page: 4; }
}

.ia-carousel-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Arrows replace the scrollbar; touch and trackpad swiping still scroll natively. */
    scrollbar-width: none;
}

.ia-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.ia-carousel-track {
    position: relative;
    display: flex;
    gap: var(--gap);
    margin: 0;
    padding: var(--track-pad) 0 1rem;
    list-style: none;
}

.ia-carousel-item {
    display: flex;
    flex: 0 0 calc((100% - (var(--per-page) - 1) * var(--gap)) / var(--per-page));
    min-width: 0;
    scroll-snap-align: start;
}

.ia-carousel-item > * {
    width: 100%;
}

.ia-carousel-item.is-clone {
    display: none;
}

.ia-carousel[data-clones="1"] .clone-1,
.ia-carousel[data-clones="2"] :is(.clone-1, .clone-2),
.ia-carousel[data-clones="3"] :is(.clone-1, .clone-2, .clone-3) {
    display: flex;
}

.ia-carousel-arrow {
    position: absolute;
    z-index: 3;
    /* Centred on the cards' 4:3 photos: (item width × 3/4) / 2, item width from the container. */
    top: 30%;
    top: calc(var(--track-pad) + (100cqw - (var(--per-page) - 1) * var(--gap)) / var(--per-page) * .375);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ia-line);
    border-radius: 50%;
    background: var(--ia-surface);
    color: var(--ia-heading);
    font-size: 1.125rem;
    box-shadow: var(--ia-shadow);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.ia-carousel-arrow:hover {
    border-color: var(--ia-primary);
    background: var(--ia-primary);
    color: #fff;
}

.ia-carousel-arrow:active {
    transform: translateY(-50%) scale(.96);
}

.ia-carousel-prev {
    left: .5rem;
}

.ia-carousel-next {
    right: .5rem;
}

/* With room in the page gutter, the arrows straddle the row's edges instead of covering cards. */
@media (min-width: 768px) {
    .ia-carousel-prev { left: -22px; }
    .ia-carousel-next { right: -22px; }
}

/* No arrows until the script has measured the row, nor when everything fits on one page. */
.ia-carousel:not([data-pages]) .ia-carousel-arrow,
.ia-carousel[data-pages="1"] .ia-carousel-arrow {
    display: none;
}

.island-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

/* Phones: two compact columns instead of eight full-width postcards. */
@media (max-width: 575.98px) {
    .island-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .island-tile {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .island-tile-body {
        padding: .75rem .875rem;
    }

    .island-tile-name {
        font-size: 1.125rem;
    }

    .island-tile-count {
        font-size: .8125rem;
    }
}

.island-tile-mark {
    position: absolute;
    top: -1.25rem;
    right: -1rem;
    z-index: -1;
    font-size: 8rem;
    line-height: 1;
    opacity: .14;
}

.island-tile {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ionian-navy) 0%, var(--ionian-blue) 100%);
    color: #fff;
    text-decoration: none;
}

.island-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.island-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgb(4 22 48 / 82%) 0%, rgb(4 22 48 / 18%) 55%, transparent 100%);
}

.island-tile-plain::after {
    background: radial-gradient(120% 90% at 100% 0%, rgb(246 215 1 / 24%), transparent 60%);
}

.island-tile:hover {
    color: #fff;
}

.island-tile:hover img {
    transform: scale(1.05);
}

.island-tile-body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.125rem;
}

.island-tile-name {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.island-tile-count {
    font-size: .875rem;
    opacity: .9;
}

.products-split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .products-split {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 4rem;
        align-items: center;
    }
}

.scheme-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    gap: .625rem;
}

.scheme-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--ia-ink-soft);
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .4375rem 1.125rem .4375rem .4375rem;
    border: 1px solid var(--ia-line);
    border-radius: 999px;
    background: var(--ia-surface);
    color: var(--ia-heading);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.category-pill:hover {
    color: var(--ia-heading);
    border-color: var(--cat);
    box-shadow: var(--ia-shadow-sm);
    transform: translateY(-1px);
}

.category-pill-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat) 14%, var(--ia-surface));
    color: var(--cat);
    font-size: 1.0625rem;
}

.category-pill-count {
    color: var(--ia-muted);
    font-weight: 500;
    font-size: .875rem;
}

.highlight-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

@media (min-width: 992px) {
    .highlight-grid-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .highlight-grid-bento > :first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .highlight-grid-bento > :first-child .media-frame {
        flex: 1;
        aspect-ratio: auto;
        min-height: 320px;
    }

    .highlight-grid-bento > :first-child .place-card-title {
        font-size: 1.5rem;
    }
}

.map-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(2rem, 1rem + 3vw, 4rem);
    padding-block: clamp(4rem, 3rem + 5vw, 7rem);
    color: #fff;
}

.map-band-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(7 39 82 / 92%) 0%, rgb(7 39 82 / 70%) 55%, rgb(7 39 82 / 30%) 100%);
}

.map-band-title {
    color: #fff;
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 0 .75rem;
}

.map-band-lede {
    max-width: 42ch;
    font-size: 1.125rem;
    opacity: .92;
    margin: 0 0 1.75rem;
}

main:has(> .map-band:last-child) + .site-footer {
    margin-top: 0;
}

/* 9. Cards ----------------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.media-frame {
    position: relative;
    aspect-ratio: var(--ratio, 4 / 3);
    overflow: hidden;
    background: color-mix(in srgb, var(--tint, #205AA7) 14%, var(--ia-surface));
}

.media-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--tint, #205AA7);
    font-size: 2.25rem;
    opacity: .65;
}

[data-bs-theme=dark] .media-fallback {
    color: color-mix(in srgb, var(--tint, #205AA7) 55%, #fff);
}

.place-card,
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ia-line);
    border-radius: 16px;
    background: var(--ia-surface);
    transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease;
}

.place-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--ia-line-strong);
    box-shadow: var(--ia-shadow);
}

.place-card:focus-within,
.product-card:focus-within {
    border-color: var(--ia-primary-text);
}

.place-card .media-frame img,
.product-card .media-frame img {
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.place-card:hover .media-frame img,
.product-card:hover .media-frame img {
    transform: scale(1.03);
}

.place-card-body,
.product-card-body {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    flex: 1;
    padding: 1rem 1.125rem 1.125rem;
}

.cat-label {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: color-mix(in srgb, var(--cat, #205AA7) 85%, var(--ia-ink));
}

[data-bs-theme=dark] .cat-label {
    color: color-mix(in srgb, var(--cat, #205AA7) 45%, #fff);
}

.cat-label-lg {
    font-size: .9375rem;
}

.place-card-title,
.product-card-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.place-card-title a,
.product-card-title a {
    color: var(--ia-heading);
    text-decoration: none;
}

.place-card-title a:hover,
.product-card-title a:hover {
    color: var(--ia-primary-text);
}

.place-card-meta,
.product-card-meta {
    display: flex;
    align-items: baseline;
    gap: .375rem;
    margin: 0;
    color: var(--ia-muted);
    font-size: .875rem;
}

.place-card-teaser,
.product-card-teaser {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: .25rem 0 0;
    color: var(--ia-ink-soft);
    font-size: .9rem;
    line-height: 1.55;
}

.place-card-compact .place-card-body {
    padding: .875rem 1rem 1rem;
}

.place-card-compact .place-card-title {
    font-size: 1rem;
}

.featured-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .3125rem;
    padding: .25rem .625rem;
    border-radius: 999px;
    background: var(--ia-accent);
    color: var(--ia-accent-ink);
    font-size: .75rem;
    font-weight: 700;
}

.distance-pill {
    position: absolute;
    left: .625rem;
    bottom: .625rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .625rem;
    border-radius: 999px;
    background: var(--ia-scrim);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
}

.fav-btn-overlay {
    position: absolute;
    top: .625rem;
    right: .625rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: var(--ionian-navy);
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgb(4 22 48 / 22%);
    transition: transform .15s ease, color .15s ease;
}

.fav-btn-overlay:hover {
    transform: scale(1.07);
}

.fav-btn-overlay.is-saved,
.fav-btn.is-saved i {
    color: var(--ia-heart);
}

[data-bs-theme=dark] .fav-btn-overlay {
    background: rgb(10 34 70 / 92%);
    color: #E3EBF6;
}

.product-card-certs {
    position: absolute;
    top: .625rem;
    left: .625rem;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.product-card-certs-inline {
    display: flex;
    gap: .375rem;
}

.product-card-row {
    flex-direction: row;
    align-items: center;
}

.product-card-row .media-frame {
    flex: none;
    width: 88px;
    margin: .625rem;
    border-radius: 12px;
}

.product-card-row .product-card-body {
    padding: .75rem 1rem .75rem .25rem;
    gap: .25rem;
}

.product-card-row .product-card-title {
    font-size: 1rem;
}

.product-list {
    display: grid;
    gap: .75rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .3125rem;
    padding: .1875rem .5625rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    white-space: nowrap;
}

.cert-pdo { background: var(--ionian-yellow); color: var(--ionian-navy); }
.cert-pgi { background: var(--ionian-light-blue); color: var(--ionian-navy); }
.cert-tsg { background: var(--ionian-mid-blue); color: var(--ionian-navy); }
.cert-organic { background: #D9F0D7; color: #1C5420; }
.cert-other { background: var(--ia-surface-2); color: var(--ia-ink); }

.cert-badge-lg {
    padding: .375rem .875rem;
    font-size: .875rem;
}

.skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg, var(--ia-surface-2) 25%, color-mix(in srgb, var(--ia-surface-2) 45%, var(--ia-surface)) 50%, var(--ia-surface-2) 75%);
    background-size: 200% 100%;
    animation: ia-shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
    overflow: hidden;
    border: 1px solid var(--ia-line);
    border-radius: 16px;
    background: var(--ia-surface);
}

.skeleton-media {
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    padding: 1rem;
}

.skeleton-line { height: .75rem; }
.skeleton-title { height: 1.125rem; }
.skeleton-heading { height: 2.25rem; }

.skeleton-hero {
    aspect-ratio: 21 / 9;
    border-radius: 20px;
}

@keyframes ia-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* 10. Filters & search ----------------------------------------------------------------------- */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-box-icon {
    position: absolute;
    left: 1.0625rem;
    color: var(--ia-muted);
    pointer-events: none;
}

.search-box-input {
    width: 100%;
    height: 46px;
    padding: 0 2.875rem;
    border: 1px solid var(--ia-line-strong);
    border-radius: 999px;
    background: var(--ia-surface);
    color: var(--ia-ink);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.search-box-input::placeholder {
    color: var(--ia-muted);
}

.search-box-input::-webkit-search-cancel-button {
    display: none;
}

.search-box-input:focus {
    outline: none;
    border-color: var(--ia-primary-text);
    box-shadow: 0 0 0 .25rem var(--ia-focus);
}

.search-box-clear {
    position: absolute;
    right: .3125rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ia-muted);
}

.search-box-clear:hover {
    background: var(--ia-surface-2);
    color: var(--ia-heading);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    min-height: 38px;
    padding: .4375rem .875rem;
    border: 1px solid var(--ia-line-strong);
    border-radius: 999px;
    background: var(--ia-surface);
    color: var(--ia-ink);
    font-size: .875rem;
    font-weight: 550;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.chip:hover {
    border-color: var(--ia-primary-text);
    color: var(--ia-primary-text);
}

.chip.is-active {
    border-color: var(--ia-primary);
    background: var(--ia-primary);
    color: #fff;
}

.chip-count {
    padding: .0625rem .4375rem;
    border-radius: 999px;
    background: var(--ia-surface-2);
    color: var(--ia-muted);
    font-size: .75rem;
    font-weight: 600;
}

.chip.is-active .chip-count {
    background: rgb(255 255 255 / 18%);
    color: #fff;
}

.chip-category i {
    color: var(--cat);
}

[data-bs-theme=dark] .chip-category i {
    color: color-mix(in srgb, var(--cat) 50%, #fff);
}

.chip.is-active i {
    color: inherit;
}

.chip-tag {
    font-weight: 500;
}

.facets {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.facet {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.facet-title {
    float: none;
    width: auto;
    margin: 0 0 .75rem;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--ia-heading);
}

.active-filters {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 32px;
    padding: .25rem .5rem .25rem .75rem;
    border: 0;
    border-radius: 999px;
    background: var(--ia-primary-soft);
    color: var(--ia-primary-text);
    font-size: .8125rem;
    font-weight: 600;
}

.active-filter:hover {
    background: color-mix(in srgb, var(--ia-primary-soft) 70%, var(--ia-primary-text));
}

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.results-toolbar .search-box {
    flex: 1 1 260px;
}

.sort-select {
    width: auto;
    min-width: 11rem;
}

/* Phones/tablets: "Filters" and the sort menu share one row under the search box. */
@media (max-width: 991.98px) {
    .results-toolbar .filters-toggle {
        flex: 0 0 auto;
    }

    .results-toolbar .sort-select {
        flex: 1 1 140px;
        min-width: 0;
    }
}

.results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-bottom: 1.25rem;
}

.results-count {
    margin: 0;
    color: var(--ia-heading);
    font-weight: 650;
}

.load-more {
    margin-top: 2rem;
    text-align: center;
}

.view-switch {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--ia-line);
    border-radius: 999px;
    background: var(--ia-surface);
}

.view-option {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    padding: .4375rem 1rem;
    border-radius: 999px;
    color: var(--ia-muted);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.view-option:hover {
    color: var(--ia-heading);
}

.view-option.is-active {
    background: var(--ia-primary);
    color: #fff;
}

.explore-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.filters-toggle {
    gap: .5rem;
}

@media (min-width: 992px) {
    .explore-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 2.5rem;
    }

    .filters-panel {
        position: sticky;
        top: calc(var(--ia-header-h) + 1.25rem);
        align-self: start;
        max-height: calc(100dvh - var(--ia-header-h) - 2.5rem);
        overflow-y: auto;
        padding: .25rem .5rem 1rem 0;
        scrollbar-width: thin;
    }

    .filters-panel-header,
    .filters-panel-footer,
    .filters-toggle,
    .filters-backdrop {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .filters-panel {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1045;
        display: flex;
        flex-direction: column;
        width: min(92vw, 400px);
        background: var(--ia-surface);
        box-shadow: var(--ia-shadow);
        transform: translateX(100%);
        transition: transform .25s cubic-bezier(.16, 1, .3, 1);
        visibility: hidden;
    }

    .filters-panel.is-open {
        transform: none;
        visibility: visible;
    }

    .filters-panel .facets {
        flex: 1;
        overflow-y: auto;
        padding: 1.25rem;
    }

    .filters-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--ia-line);
    }

    .filters-panel-title {
        margin: 0;
        font-size: 1.25rem;
    }

    .filters-panel-footer {
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--ia-line);
    }

    .filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgb(4 22 48 / 50%);
    }
}

.inline-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .625rem .875rem;
    border-radius: 12px;
    background: var(--ia-surface-2);
    color: var(--ia-ink-soft);
    font-size: .9rem;
}

/* 11. Map ------------------------------------------------------------------------------------ */
.map-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.map-page + .site-footer,
main:has(.map-page) + .site-footer {
    margin-top: 0;
}

.map-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--ia-surface);
    border-right: 1px solid var(--ia-line);
}

.map-sidebar-head {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    padding: 1.25rem var(--ia-gutter) 1rem;
    border-bottom: 1px solid var(--ia-line);
}

.map-title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.map-sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: .625rem;
    scrollbar-width: thin;
}

.map-main {
    position: relative;
    order: -1;
    min-height: 56dvh;
}

@media (min-width: 992px) {
    .map-page {
        grid-template-columns: 400px minmax(0, 1fr);
        height: calc(100dvh - var(--ia-header-h));
    }

    .map-main {
        order: 0;
        min-height: 0;
    }

    .map-sidebar-head {
        padding-inline: 1.25rem;
    }
}

.map-filters {
    padding-top: .25rem;
}

.map-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 0;
    padding: 0;
}

.map-item {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem;
    border-radius: 14px;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.map-item:hover {
    background: var(--ia-surface-2);
}

.map-item.is-selected {
    background: var(--ia-primary-soft);
    box-shadow: inset 0 0 0 2px var(--ia-primary-text);
}

.map-item-focus {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .375rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.map-item-focus:disabled {
    cursor: default;
}

.map-item-thumb {
    flex: none;
    width: 68px;
    border-radius: 10px;
}

.map-item-thumb .media-fallback {
    font-size: 1.25rem;
}

.map-item-text {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    min-width: 0;
}

.map-item-title {
    color: var(--ia-heading);
    font-weight: 650;
    line-height: 1.25;
}

.map-item-meta {
    overflow: hidden;
    color: var(--ia-muted);
    font-size: .8125rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.map-item-link {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ia-primary-text);
}

.map-item-link:hover {
    background: var(--ia-surface);
}

.map-shell {
    position: relative;
    width: 100%;
    background: var(--ia-surface-2);
}

.map-fill {
    position: absolute;
    inset: 0;
}

.map-mini {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
}

.map-canvas {
    position: absolute;
    inset: 0;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.map-unavailable {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border: 1px dashed var(--ia-line-strong);
}

.map-unavailable.map-fill {
    border: 0;
}

.map-note {
    max-width: 38ch;
    text-align: center;
}

.map-note > i {
    color: var(--ia-muted);
    font-size: 2rem;
}

.map-note-title {
    margin: .5rem 0 .25rem;
    color: var(--ia-heading);
    font-weight: 650;
}

.map-note p:not(.map-note-title) {
    margin: 0;
    color: var(--ia-muted);
    font-size: .9375rem;
}

.map-note-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    max-width: none;
    padding: 1.5rem;
    background: var(--ia-surface-2);
}

/* Elements rendered inside the Google map (markers, clusters, info window). */
.map-pin {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--pin, #205AA7);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
    transition: transform .15s ease;
}

.map-pin:hover {
    transform: scale(1.12);
}

.map-cluster {
    min-width: 42px;
    height: 42px;
    padding: 0 .5rem;
    display: grid;
    place-items: center;
    border: 3px solid rgb(255 255 255 / 88%);
    border-radius: 999px;
    background: var(--ionian-navy);
    color: #fff;
    font: 700 .875rem/1 var(--ia-font);
    box-shadow: 0 3px 10px rgb(0 0 0 / 30%);
}

.map-info {
    width: 240px;
    color: #172A45;
    font-family: var(--ia-font);
}

.map-info-img {
    display: block;
    width: 100%;
    height: 124px;
    margin-bottom: .5rem;
    border-radius: 8px;
    object-fit: cover;
}

.map-info-kicker {
    color: #56667C;
    font-size: .75rem;
    font-weight: 600;
}

.map-info-title {
    display: block;
    margin: .125rem 0;
    color: #205AA7;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.map-info-title:hover {
    text-decoration: underline;
}

.map-info-meta {
    color: #56667C;
    font-size: .8125rem;
}

/* 12. Detail pages --------------------------------------------------------------------------- */
.detail {
    padding: 1.25rem 0 1rem;
}

.detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin: .5rem 0 1.5rem;
}

.detail-heading {
    min-width: 0;
    max-width: 52rem;
}

.detail-title {
    margin: .5rem 0;
    font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
    font-weight: 780;
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.detail-meta {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 0;
    color: var(--ia-muted);
    font-size: 1.0625rem;
}

.detail-meta a {
    color: inherit;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.detail-placeholder {
    margin-bottom: 2.5rem;
    border-radius: 20px;
}

.gallery {
    display: grid;
    gap: .625rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
}

.gallery-1 {
    grid-template-columns: 1fr;
}

.gallery-2 {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
}

.gallery-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
}

.gallery-3 .gallery-tile:first-child {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .gallery {
        aspect-ratio: 21 / 9;
    }

    .gallery-2 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr;
    }

    .gallery-3 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .gallery-3 .gallery-tile:first-child {
        grid-column: auto;
        grid-row: span 2;
    }
}

.gallery-tile {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--ia-surface-2);
    cursor: zoom-in;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.gallery-tile:hover img {
    transform: scale(1.03);
}

.gallery-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(4 22 48 / 55%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: grid;
    place-items: center;
}

.lightbox:focus {
    outline: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(2 12 28 / 93%);
}

.lightbox-figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(92vw, 1400px);
    margin: 0;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 82dvh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-figure figcaption {
    margin-top: .75rem;
    color: #DCE3EC;
    font-size: .875rem;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 1.25rem;
}

.lightbox-btn:hover {
    background: rgb(255 255 255 / 24%);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }

body:has(.lightbox) {
    overflow: hidden;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 4rem;
    }

    .detail-aside {
        position: sticky;
        top: calc(var(--ia-header-h) + 1.25rem);
        align-self: start;
    }
}

.detail-lead {
    max-width: 68ch;
    margin: 0 0 2.25rem;
    color: var(--ia-heading);
    font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
    line-height: 1.6;
    font-weight: 450;
}

.detail-section {
    margin-bottom: 2.75rem;
}

.detail-section .section-title {
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.prose {
    max-width: 68ch;
    color: var(--ia-ink);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.prose p {
    margin: 0 0 1.125rem;
}

.prose h2 {
    margin: 2.25rem 0 .75rem;
    font-size: 1.375rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--ia-line);
    border-radius: 18px;
    background: var(--ia-surface);
}

.facts {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.facts > div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: .75rem;
    padding: .625rem .25rem;
    border-bottom: 1px solid var(--ia-line);
}

.facts > div:last-child {
    border-bottom: 0;
}

.facts dt {
    color: var(--ia-muted);
    font-size: .875rem;
    font-weight: 600;
}

.facts dd {
    margin: 0;
    color: var(--ia-ink);
    font-size: .9375rem;
    overflow-wrap: anywhere;
}

.related {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ia-line);
}

.related .section-title {
    margin-bottom: 1.25rem;
}

.related .section-head .section-title {
    margin-bottom: 0;
}

/* 13. Products ------------------------------------------------------------------------------- */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.products-search {
    flex: 1 1 280px;
    max-width: 420px;
}

.explainer {
    margin-top: 3.5rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    border-radius: 20px;
    background: var(--ia-surface-2);
}

.explainer-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.explainer-list {
    display: grid;
    gap: 1.25rem;
    margin: 0;
}

@media (min-width: 768px) {
    .explainer-list {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.explainer-list > div {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
}

.explainer-list dt {
    flex: none;
}

.explainer-list dd {
    margin: 0;
    color: var(--ia-ink-soft);
    font-size: .9375rem;
    line-height: 1.6;
}

.product-hero {
    display: grid;
    gap: 2rem;
    margin-top: .5rem;
}

@media (min-width: 992px) {
    .product-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: start;
    }
}

.product-hero-media {
    margin: 0;
}

.product-hero-body .detail-meta {
    margin-bottom: 1.25rem;
}

.product-hero-media .media-frame {
    border-radius: 20px;
}

.product-hero-media figcaption {
    margin-top: .5rem;
    color: var(--ia-muted);
    font-size: .8125rem;
}

.cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.scheme-note {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    max-width: 68ch;
    margin: 0 0 .75rem;
    padding: .875rem 1rem;
    border-radius: 14px;
    background: var(--ia-surface-2);
    color: var(--ia-ink-soft);
    font-size: .9375rem;
    line-height: 1.6;
}

.scheme-note i {
    margin-top: .1875rem;
    color: var(--ia-primary-text);
}

/* 14. States, about, misc -------------------------------------------------------------------- */
.status-panel {
    max-width: 640px;
    margin: 1rem auto;
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
    border: 1px dashed var(--ia-line-strong);
    border-radius: 20px;
    background: var(--ia-surface);
    text-align: center;
}

.status-icon {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--ia-surface-2);
    color: var(--ia-primary-text);
    font-size: 1.75rem;
}

.status-error .status-icon {
    background: #FDECEC;
    color: #B42318;
}

[data-bs-theme=dark] .status-error .status-icon {
    background: rgb(180 35 24 / 22%);
    color: #F97066;
}

.status-title {
    margin: 0 0 .5rem;
    font-size: 1.375rem;
}

.status-message {
    max-width: 46ch;
    margin: 0 auto 1.5rem;
    color: var(--ia-muted);
}

.about-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 4rem;
    }
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    object-fit: cover;
}

.about-counts {
    color: var(--ia-heading);
    font-weight: 650;
}

.credits {
    margin-top: 3rem;
}

.credits .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ia-ink);
    --bs-table-border-color: var(--ia-line);
}

.credits caption {
    caption-side: top;
    padding-bottom: .75rem;
    color: var(--ia-heading);
    font-size: 1.125rem;
    font-weight: 650;
}

.credit-thumb {
    border-radius: 8px;
    object-fit: cover;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1070;
    padding: .875rem 3rem .875rem 1.25rem;
    background: #FFF4E5;
    color: #4A2A00;
    box-shadow: 0 -4px 16px rgb(0 0 0 / 15%);
}

#blazor-error-ui .reload {
    margin-left: .75rem;
    color: #4A2A00;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .5rem;
    right: .75rem;
    border: 0;
    background: transparent;
    color: #4A2A00;
    font-size: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
