/* ==========================================================================
   FastSpeech — main stylesheet
   Mobile-first; uses native CSS variables. No framework.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
    /* Light editorial palette — paper, ink, coral. Default; the dark variant
       is opt-in via [data-theme="dark"] on <html>. Both share the same
       Fraunces/Inter typography and the coral (#e26a3a) accent — only the
       lightness inverts. */
    --c-bg:           #faf7f1;
    --c-surface:      #ffffff;
    --c-surface-2:    #f1ecdf;
    --c-border:       rgba(12, 16, 21, .10);
    --c-border-2:     rgba(12, 16, 21, .22);

    --c-text:         #14171f;
    --c-text-muted:   #4d4836;
    --c-text-subtle:  #8b8578;

    --c-brand:        #e26a3a;
    --c-brand-hover:  #c95428;
    --c-brand-soft:   rgba(226, 106, 58, .10);
    --c-accent:       #e26a3a;
    --c-warn:         #b8861d;
    --c-danger:       #c84025;

    --c-rating:       #c98a18;

    /* Theme-conditional values used in places where rgba() doesn't read from
       a single colour token (header glass, button hover wash, hero glow). */
    --c-glass:           rgba(250, 247, 241, .78);
    --c-hover-soft:      rgba(20, 23, 31, .04);
    --c-glow-secondary:  rgba(20, 23, 31, .05);

    /* Layout */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --radius-1: 4px;
    --radius-2: 8px;
    --radius-3: 12px;
    --radius-4: 16px;

    --shadow-1: 0 1px 2px rgba(20, 23, 31, .06);
    --shadow-2: 0 4px 16px rgba(20, 23, 31, .08);
    --shadow-3: 0 30px 60px -20px rgba(20, 23, 31, .25);

    --max-width: 1200px;
    --header-h: 64px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

    --fs-12: .75rem;
    --fs-14: .875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-32: 2rem;
    --fs-40: 2.5rem;
    --fs-48: 3rem;

    --lh-tight:  1.2;
    --lh-normal: 1.5;
    --lh-loose:  1.7;

    --transition: 160ms cubic-bezier(.4, 0, .2, 1);
}

/* Dark variant — applied when <html data-theme="dark">. Same coral, just
   inverted background. The toggle is wired in assets/js/theme.js. */
:root[data-theme="dark"] {
    --c-bg:           #0c1015;
    --c-surface:      #161b22;
    --c-surface-2:    #1f262f;
    --c-border:       rgba(245, 241, 234, .12);
    --c-border-2:     rgba(245, 241, 234, .25);

    --c-text:         #f5f1ea;
    --c-text-muted:   #cfc6b3;
    --c-text-subtle:  #8b8578;

    --c-brand-hover:  #f4a16f;
    --c-brand-soft:   rgba(226, 106, 58, .12);
    --c-warn:         #ddb24f;
    --c-danger:       #e26a3a;
    --c-rating:       #ddb24f;

    --c-glass:           rgba(12, 16, 21, .72);
    --c-hover-soft:      rgba(245, 241, 234, .06);
    --c-glow-secondary:  rgba(245, 241, 234, .04);

    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 4px 16px rgba(0,0,0,.45);
    --shadow-3: 0 24px 60px -12px rgba(0,0,0,.6);
}

html { transition: background-color .35s ease, color .35s ease; }
body { transition: background-color .35s ease, color .35s ease; }

/* ---------- 3. Base ---------- */
html, body { height: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    line-height: var(--lh-normal);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--c-brand); color: var(--c-bg); }

a { color: var(--c-brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-brand-hover); text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--c-text);
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 300; }
h3 { font-size: var(--fs-24); font-weight: 400; }
h4 { font-size: var(--fs-20); font-weight: 500; line-height: var(--lh-tight); letter-spacing: -0.01em; }

h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--c-brand); }

p { color: var(--c-text-muted); }
small { font-size: var(--fs-14); color: var(--c-text-muted); }
strong { color: var(--c-text); }
.muted { color: var(--c-text-muted); }
.subtle { color: var(--c-text-subtle); }

:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
    border-radius: var(--radius-1);
}

::selection {
    background: var(--c-brand-soft);
    color: var(--c-text);
}

/* ---------- 4. Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-4);
}
@media (min-width: 768px) {
    .container { padding-inline: var(--space-5); }
}

main {
    flex: 1 0 auto;
}

.section {
    padding-block: var(--space-7);
}
@media (min-width: 768px) {
    .section { padding-block: var(--space-8); }
}

/* ---------- 5. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-glass);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--c-border);
    /* Height is locked from all sides — without min/max-height, a tall flex
       child (e.g. wrapping nav at narrow viewports) would stretch the header
       past var(--header-h), making the bar visually taller on some pages. */
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
    flex-shrink: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;                                    /* lock visual height */
    display: flex;
    align-items: center;
}
@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(15,17,21,.85); }
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: var(--fs-18);
    color: var(--c-text);
    text-decoration: none;
}
.brand__mark {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-brand) 90%);
    color: var(--c-bg);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 4px 12px -4px rgba(226, 106, 58, .35);
}
.nav-primary {
    display: none;
    gap: var(--space-5);
}
@media (min-width: 768px) {
    .nav-primary { display: flex; }
}
.nav-primary a {
    color: var(--c-text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}
.nav-primary a:hover { color: var(--c-text); }

/* Theme toggle — sun/moon icon button in the header. The two icons live in
   a single <button>; CSS hides whichever doesn't match the current theme. */
.theme-toggle {
    width: 36px; height: 36px;
    display: inline-grid; place-items: center;
    border-radius: 999px;
    color: var(--c-text-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover {
    color: var(--c-text);
    background: var(--c-hover-soft);
    border-color: var(--c-border-2);
    transform: rotate(-12deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- 6. Footer ---------- */
.site-footer {
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    padding-block: var(--space-7);
    margin-top: var(--space-8);
    color: var(--c-text-subtle);
    font-size: var(--fs-14);
}
.site-footer a { color: var(--c-text-muted); }
.site-footer a:hover { color: var(--c-text); }
.site-footer__grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
.site-footer h4 {
    color: var(--c-text);
    font-size: var(--fs-14);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: var(--space-3);
}
.site-footer ul li {
    margin-bottom: var(--space-2);
}
.site-footer__bottom {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ---------- 7. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: var(--fs-16);
    letter-spacing: .01em;
    transition: background .35s var(--ease, cubic-bezier(.2,.7,.2,1)),
                transform .35s var(--ease, cubic-bezier(.2,.7,.2,1)),
                color .35s var(--ease, cubic-bezier(.2,.7,.2,1)),
                box-shadow .35s var(--ease, cubic-bezier(.2,.7,.2,1)),
                border-color .35s var(--ease, cubic-bezier(.2,.7,.2,1));
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--c-text);
    color: var(--c-bg);
    box-shadow: 0 12px 30px -12px rgba(226, 106, 58, 0);
}
.btn--primary:hover {
    background: var(--c-brand);
    color: var(--c-text);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 18px 40px -12px rgba(226, 106, 58, .55);
}
.btn--secondary {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border-2);
}
.btn--secondary:hover {
    background: var(--c-hover-soft);
    border-color: var(--c-text);
    text-decoration: none;
}
.btn--ghost {
    background: transparent;
    color: var(--c-text-muted);
}
.btn--ghost:hover {
    color: var(--c-text);
    background: var(--c-hover-soft);
    text-decoration: none;
}
.btn--lg { padding: 14px 24px; font-size: var(--fs-18); }
.btn--sm { padding: 6px 12px; font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 8. Forms ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.field label {
    font-size: var(--fs-14);
    color: var(--c-text-muted);
    font-weight: 500;
}
.input, .select, .textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-border-2);
    border-radius: var(--radius-2);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-subtle); }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--c-brand);
    background: var(--c-surface-2);
    box-shadow: 0 0 0 3px rgba(226, 106, 58, .18);
    outline: none;
}
.textarea { resize: vertical; min-height: 110px; }

.input--lg {
    padding: 14px 18px;
    font-size: var(--fs-18);
    border-radius: var(--radius-3);
}

/* Search hero combo */
.search-form {
    display: flex;
    gap: var(--space-2);
    background: var(--c-surface);
    padding: var(--space-2);
    border-radius: 999px;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--c-border-2);
}
.search-form .btn { border-radius: 999px; }
.search-form .input { border: 0; box-shadow: none; flex: 1; }
.search-form .input:focus { box-shadow: none; }

/* ---------- 9. Cards ---------- */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-3);
    padding: var(--space-5);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover {
    background: var(--c-surface-2);
    border-color: var(--c-border-2);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Provider card variant */
.provider-card {
    display: grid;
    gap: var(--space-3);
}
.provider-card__head {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}
.provider-card__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 90%);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: var(--fs-24);
    color: var(--c-bg);
    flex-shrink: 0;
    box-shadow: 0 6px 18px -6px rgba(226, 106, 58, .55);
}
.provider-card__name {
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 2px;
}
.provider-card__creds {
    color: var(--c-text-muted);
    font-size: var(--fs-14);
}
.provider-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    color: var(--c-text-muted);
    font-size: var(--fs-14);
}

/* ---------- 10. Badges & chips ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: var(--fs-12);
    font-weight: 600;
    background: var(--c-brand-soft);
    color: var(--c-brand);
}
.badge--success { background: rgba(226, 106, 58, .12); color: var(--c-brand); }
.badge--warn    { background: rgba(221, 178, 79, .14); color: var(--c-warn); }
.badge--neutral { background: var(--c-surface-2); color: var(--c-text-muted); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-size: var(--fs-14);
    background: var(--c-bg);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip {
    background: var(--c-surface);
    border-color: var(--c-border-2);
    color: var(--c-text-muted);
}
.chip:hover { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-text-muted); }
.chip[aria-pressed="true"], .chip.is-active {
    background: var(--c-brand-soft);
    border-color: var(--c-brand);
    color: var(--c-brand);
}

/* ---------- 11. Rating stars ---------- */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--c-rating);
    font-size: var(--fs-14);
}
.stars__num {
    color: var(--c-text);
    font-weight: 600;
    margin-right: var(--space-1);
}
.stars__count {
    color: var(--c-text-muted);
    font-weight: 400;
}

/* ---------- 12. Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(72px, 12vw, 140px);
    background:
        radial-gradient(900px 600px at 80% 0%, var(--c-brand-soft), transparent 60%),
        radial-gradient(700px 700px at 0% 100%, var(--c-glow-secondary), transparent 60%),
        var(--c-bg);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(180deg, black 30%, transparent 95%);
    opacity: .6;
    pointer-events: none;
}
.hero h1 {
    max-width: 920px;
    margin-bottom: var(--space-5);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.hero p {
    max-width: 640px;
    color: var(--c-text-muted);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    margin-bottom: var(--space-6);
    line-height: 1.55;
}

/* ---------- 13. Search page layout ---------- */

/* Horizontal filter bar — replaces the old left sidebar. */
.search-filterbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--space-2);
    padding-block: var(--space-2);
    margin-block: var(--space-2);
    /* Allow vertical wrap on wide screens. */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
@media (min-width: 1024px) {
    .search-filterbar {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}
.search-filterbar .chip { flex: 0 0 auto; white-space: nowrap; }
.search-filterbar__sep {
    display: inline-block;
    width: 1px;
    align-self: stretch;
    background: var(--c-border);
    margin-inline: var(--space-1);
}

/* Filters panel kept for legacy templates (admin / older pages). */
.filters-panel {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-3);
    padding: var(--space-4);
}
.filters-group {
    border-top: 1px solid var(--c-border);
    padding-block: var(--space-4);
}
.filters-group:first-child { border-top: 0; padding-top: 0; }
.filters-group h3 {
    font-size: var(--fs-14);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin-bottom: var(--space-3);
}
.filters-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.map-canvas {
    width: 100%;
    height: 60vh;
    min-height: 360px;
    background: var(--c-surface-2);
    border-radius: var(--radius-3);
    overflow: hidden;
    position: relative;
}
@media (min-width: 1024px) {
    .map-canvas { height: 520px; }
}
/* Full-width variant on the search page — flush against viewport edges,
   no rounded corners. Breaks out of the surrounding .container. */
.map-canvas--full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    height: 60vh;
    min-height: 420px;
}
@media (min-width: 1024px) {
    .map-canvas--full { height: 70vh; max-height: 720px; }
}
.map-canvas__placeholder {
    position: absolute; inset: 0;
    display: grid;
    place-items: center;
    color: var(--c-text-muted);
    font-size: var(--fs-14);
}

.results-list {
    display: grid;
    gap: var(--space-3);
}
.results-list--grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .results-list--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
    .results-list--grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 14. Provider page ---------- */
.provider-hero {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--c-border);
    padding-top: var(--space-4);
}
@media (min-width: 768px) {
    .provider-hero {
        grid-template-columns: 120px 1fr;
        align-items: center;
    }
}

/* Two-column layout: main content + sticky sidebar with map. */
.provider-layout {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
    margin-top: var(--space-5);
    margin-bottom: var(--space-7);
}
@media (min-width: 1024px) {
    .provider-layout {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }
}
.provider-main { min-width: 0; }                              /* prevent grid blowout */

.provider-sidebar { /* container for sticky card */ }
@media (min-width: 1024px) {
    .provider-sidebar { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

.provider-sidecard { padding: 0; overflow: hidden; }
.provider-sidecard__body { padding: var(--space-4); }

.provider-map {
    width: 100%;
    height: 240px;
    background: var(--c-surface-2);
    position: relative;
    border-bottom: 1px solid var(--c-border);
}
.provider-map--empty {
    display: grid;
    place-items: center;
    height: 120px;
}
.provider-map .map-canvas__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--c-text-muted);
    font-size: var(--fs-14);
}
.provider-hero__avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--c-surface-2);
    display: grid;
    place-items: center;
    font-size: var(--fs-32);
    font-weight: 700;
    color: var(--c-text-muted);
}
.provider-hero__title h1 { margin-bottom: var(--space-1); }

.tabs {
    display: flex;
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
    gap: var(--space-1);
}
.tab {
    padding: var(--space-3) var(--space-4);
    color: var(--c-text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--c-text); }
.tab.is-active {
    color: var(--c-brand);
    border-bottom-color: var(--c-brand);
}

.tab-panel { padding-block: var(--space-5); }

/* ---------- 15. Reviews ---------- */
.review {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--c-border);
}
.review:last-child { border-bottom: 0; }
.review__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.review__author {
    font-weight: 600;
}
.review__date {
    color: var(--c-text-subtle);
    font-size: var(--fs-14);
}
.review__title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

/* ---------- 16. Breadcrumbs ---------- */
.breadcrumbs {
    font-size: var(--fs-14);
    color: var(--c-text-muted);
    padding-block: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-text); }
.breadcrumbs__sep { color: var(--c-border-2); }

/* ---------- 17. Utilities ---------- */
.muted     { color: var(--c-text-muted); }
.subtle    { color: var(--c-text-subtle); }
.text-center { text-align: center; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-5  { margin-top: var(--space-5); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-5  { margin-bottom: var(--space-5); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 18. Notice / alert ---------- */
.notice {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-2);
    background: var(--c-surface);
    border-left: 3px solid var(--c-brand);
    color: var(--c-text);
    font-size: var(--fs-14);
}
.notice--success { border-left-color: var(--c-accent); background: rgba(226, 106, 58, .08); }
.notice--warn    { border-left-color: var(--c-warn);   background: rgba(221, 178, 79, .10); }
.notice--danger  { border-left-color: var(--c-danger); background: rgba(226, 106, 58, .10); }

/* ---------- 18b. Home autocomplete dropdown ---------- */
#home-search { position: relative; }                              /* anchor for absolute list */

.suggest-list {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0; right: 0;
    z-index: 40;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-3);
    overflow: hidden;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}
.suggest-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: background var(--transition);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item.is-active,
.suggest-item:hover {
    background: var(--c-surface);
    text-decoration: none;
}
.suggest-item__icon {
    font-size: var(--fs-18);
    text-align: center;
    line-height: 1;
}
.suggest-item__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.suggest-item__label {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest-item__sub {
    color: var(--c-text-muted);
    font-size: var(--fs-14);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest-item__type {
    color: var(--c-text-subtle);
    font-size: var(--fs-12);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---------- 19a. Map markers ---------- */
.fsp-marker {
    background: var(--c-brand);
    color: var(--c-text);
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.fsp-marker svg {
    transform: rotate(45deg);
    width: 18px; height: 18px;
}
.fsp-marker:hover {
    background: var(--c-brand-hover);
}

.maplibregl-popup-content {
    border-radius: var(--radius-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-14);
    box-shadow: var(--shadow-2);
}

/* ---------- 19. Print ---------- */
@media print {
    .site-header, .site-footer, .map-canvas, .filters-panel, form { display: none; }
    a { color: inherit; text-decoration: none; }
}
