/* =====================================================================
   Guru Temples — public site
   Signature: the kasavu (gold double band) border of a Kerala mundu.
   ===================================================================== */

:root {
    --ink: #1E2A23;
    --ink-2: #44524A;
    --muted: #6B776F;
    --line: #E4E2D8;
    --paper: #FFFFFF;
    --sand: #F5F4EE;
    --yellow: #F2C230;
    --yellow-2: #E0AE14;
    --gold: #B8932A;
    --leaf: #2F5D46;
    --leaf-2: #244A37;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --nav-h: 64px;
    --shadow: 0 1px 2px rgba(30,42,35,.06), 0 8px 24px rgba(30,42,35,.08);
    --f-display: 'Marcellus', 'Noto Sans Malayalam', Georgia, serif;
    --f-body: 'Mukta', 'Noto Sans Malayalam', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: .005em; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; }
[hidden] { display: none !important; }

/* ---------- Kasavu band ---------- */
.kasavu {
    height: 7px;
    background:
        linear-gradient(var(--gold), var(--gold)) top / 100% 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom / 100% 3px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .55rem 1.1rem;
    border-radius: var(--r-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c3b32; color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { min-height: 38px; padding: .4rem .8rem; font-size: .88rem; }

/* ---------- Top nav ---------- */
.topnav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.topnav-inner {
    max-width: 1320px; margin: 0 auto; height: var(--nav-h);
    padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 12%; border: 2px solid var(--gold); flex-shrink: 0; }
.brand-name { display: block; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .5rem .8rem; border-radius: var(--r-sm); }
.nav-links a:hover { color: var(--ink); background: var(--sand); }
.nav-links .nav-admin { border: 1px solid var(--line); margin-left: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: auto; }
.footer-inner {
    max-width: 1320px; margin: 0 auto; padding: 2rem 1.25rem 2.25rem;
    display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 12%; border: 1px solid var(--gold); }
.footer-brand span { font-family: var(--f-display); font-size: 1.05rem; }
.footer-quote { font-family: var(--f-display); color: var(--yellow); font-size: 1.05rem; }
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.55); width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; color: #fff; background: #26332b; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,28,23,.92) 0%, rgba(20,28,23,.72) 45%, rgba(20,28,23,.25) 100%);
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 4.5rem 1.25rem 3.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.hero-lede { margin-top: .9rem; max-width: 52ch; font-size: 1.1rem; color: rgba(255,255,255,.82); }
.hero-search { margin-top: 1.75rem; max-width: 620px; display: flex; background: #fff; border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.hero-search label { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 0 .75rem; color: var(--muted); min-width: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; height: 46px; }
.hero-search .btn { min-height: 46px; }
.hero-facts { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; color: rgba(255,255,255,.75); font-size: .98rem; }
.hero-facts b { color: #fff; font-weight: 600; font-size: 1.15rem; margin-right: .3rem; }
.hero-near { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.hero > .kasavu { position: relative; }

/* ---------- Explorer toolbar ---------- */
.toolbar { position: sticky; top: calc(var(--nav-h) + 7px); z-index: 900; background: var(--paper); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 7px); }
.toolbar-inner { max-width: 1320px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.sel {
    appearance: none; -webkit-appearance: none;
    height: 42px; min-width: 150px; padding: 0 2.1rem 0 .85rem;
    border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--paper);
    font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2344524A' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center;
}
.sel:hover { border-color: #c9c6b8; }
.sel.is-set { border-color: var(--leaf); background-color: #F0F5F2; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.result-count { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.result-count b { color: var(--ink); }
.link-btn { background: none; border: 0; color: var(--leaf); font-weight: 600; cursor: pointer; padding: .4rem; text-decoration: underline; text-underline-offset: 3px; }
.only-mobile { display: none !important; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; background: var(--sand); }
.seg button { border: 0; background: transparent; padding: .4rem .8rem; border-radius: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Explorer body ---------- */
.explorer { --tb: 67px; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.explorer.view-list { grid-template-columns: 1fr; }
.explorer.view-list .map-pane { display: none; }
.explorer.view-list .temple-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.list-pane { padding: .5rem 1.25rem 3rem; min-width: 0; }
.map-pane { position: sticky; top: calc(var(--nav-h) + 7px + var(--tb)); height: calc(100vh - var(--nav-h) - 7px - var(--tb)); padding: 1rem 1.25rem 1rem 0; }
.map-box { position: relative; width: 100%; height: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #e9eee9; }
#templeMap { position: absolute; inset: 0; }
.map-tools { position: absolute; z-index: 500; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.map-tool { width: 40px; height: 40px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.map-tool:hover { background: var(--sand); }
.map-tool.is-on { background: var(--leaf); color: #fff; border-color: var(--leaf); }

.list-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0 .4rem; gap: 1rem; }
.list-head h2 { font-size: 1.5rem; }
.sort-note { color: var(--muted); font-size: .9rem; }

/* Temple row */
.temple { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 90px); }
.temple.is-hidden { display: none; }
.temple.is-active .t-name a { color: var(--leaf); }
.temple.is-active .t-thumb { box-shadow: 0 0 0 3px var(--yellow); }
.t-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--sand); display: block; }
.t-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.t-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #EEF1EC, #E3E8E1); }
.t-thumb-ph img { width: 54%; height: auto; opacity: .55; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 12%; }
.t-body { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.t-place { color: var(--leaf); font-size: .88rem; font-weight: 500; }
.t-name { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; }
.t-name a { color: var(--ink); text-decoration: none; }
.t-name a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.t-addr { color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .88rem; }
.t-meta:empty { display: none; }
.t-meta a { color: inherit; text-decoration: none; }
.t-meta a:hover { color: var(--leaf); }
.t-dist { color: var(--ink); font-weight: 600; }
.t-dist:empty { display: none; }
.t-actions { display: flex; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.btn.is-busy i { animation: gt-spin 1s linear infinite; }
@keyframes gt-spin { to { transform: rotate(360deg); } }
.explorer.view-list .list-head { grid-column: 1 / -1; }

.empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-2); }
.empty h3 { font-size: 1.35rem; margin-bottom: .4rem; color: var(--ink); }
.empty p { margin-bottom: 1rem; }

/* Mobile floating view switch */
.fab-switch { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 950; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-radius: 999px; padding: 0 1.4rem; min-height: 48px; }

/* Filter sheet backdrop (mobile) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20,28,23,.45); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.filters .sheet-head, .filters .sheet-foot, .filters .fl { display: none; }
body.sheet-open .toolbar { z-index: 1300; }
body.sheet-open .fab-switch { display: none !important; }

/* ---------- Leaflet skin ---------- */
.leaflet-container { font-family: var(--f-body); }
.pin { width: 30px; height: 40px; }
.pin svg { width: 30px; height: 40px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.pin.is-active svg path { fill: var(--yellow); stroke: var(--ink); }
.pin.is-active svg circle { fill: var(--ink); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2a6fdb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42,111,219,.25); }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); padding: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.leaflet-popup .leaflet-popup-content { margin: 0; width: 250px !important; line-height: 1.4; }
.pop-img { height: 110px; background: var(--sand); }
.pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-body { padding: .8rem .9rem .9rem; }
.pop-place { color: var(--leaf); font-size: .82rem; }
.pop-name { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.25; margin: .1rem 0 .6rem; color: var(--ink); }
.pop-actions { display: flex; gap: .4rem; }
.pop-actions .btn { flex: 1; min-height: 36px; font-size: .85rem; padding: .35rem .5rem; }
.leaflet-container a.pop-actions, .pop-actions a.btn-primary { color: var(--ink); }
.pop-actions a.btn-ghost { color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; background: rgba(0,0,0,.45); border-radius: 50%; width: 26px; height: 26px; top: 6px; right: 6px; font: 18px/24px sans-serif; text-align: center; }
.leaflet-container .marker-cluster-small, .leaflet-container .marker-cluster-medium, .leaflet-container .marker-cluster-large { background: rgba(47,93,70,.25); }
.leaflet-container .marker-cluster-small div, .leaflet-container .marker-cluster-medium div, .leaflet-container .marker-cluster-large div { background: var(--leaf); color: #fff; font-weight: 700; font-family: var(--f-body); }

/* =====================================================================
   DETAIL
   ===================================================================== */
.d-hero { position: relative; background: #26332b; color: #fff; overflow: hidden; }
.d-hero-media { position: absolute; inset: 0; }
.d-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.d-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,23,.35) 0%, rgba(20,28,23,.9) 100%); }
.d-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 7rem 1.25rem 2.25rem; }
.d-hero > .kasavu { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .92rem; color: rgba(255,255,255,.78); margin: 0 0 .75rem; list-style: none; padding: 0; }
.crumbs a { color: #fff; }
.crumbs li + li::before { content: '/'; margin-right: .3rem; color: rgba(255,255,255,.45); }
.d-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 22ch; }
.d-addr { margin-top: .6rem; max-width: 60ch; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.d-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.d-actions .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.d-actions .btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }

.d-body { max-width: 1180px; margin: 0 auto; padding: 2.25rem 1.25rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.d-section + .d-section { margin-top: 2.25rem; }
.d-section h2 { font-size: 1.55rem; margin-bottom: .75rem; }
.d-about { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); max-width: 68ch; white-space: pre-line; }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 2rem; }
.facts dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.copy-btn { margin-left: .5rem; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: .1rem .5rem; font-size: .82rem; cursor: pointer; color: var(--ink-2); }

.d-map-card { position: sticky; top: calc(var(--nav-h) + 23px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.d-map { height: 340px; background: #e9eee9; }
.d-map-foot { padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.d-map-foot .btn-primary { grid-column: 1 / -1; }
.no-coords { padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--sand); }

.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1.5rem; }
.nearby a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nearby a:hover .nb-name { color: var(--leaf); }
.nb-img { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); }
.nb-img img { width: 100%; height: 100%; object-fit: cover; }
.nb-name { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; }
.nb-meta { color: var(--muted); font-size: .88rem; }

.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); opacity: 0; transition: .2s; z-index: 2000; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .explorer.view-list .temple-list { grid-template-columns: 1fr; }
    .sel { min-width: 128px; }
    .seg button { padding: .4rem .6rem; }
}

@media (max-width: 900px) {
    :root { --nav-h: 58px; }
    .brand-sub { display: none; }
    .brand-name { font-size: 1.1rem; }
    .nav-links .nav-home, .nav-links .nav-find { display: none; }

    .hero-inner { padding: 2.75rem 1rem 2.25rem; }
    .hero-media::after { background: linear-gradient(180deg, rgba(20,28,23,.7) 0%, rgba(20,28,23,.9) 100%); }
    .hero-lede { font-size: 1rem; }

    .toolbar-inner { padding: .6rem 1rem; }
    .only-mobile { display: inline-flex !important; }
    .only-desktop { display: none !important; }

    /* filters become a bottom sheet */
    .filters {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
        background: var(--paper); border-radius: 18px 18px 0 0;
        padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom));
        flex-direction: column; align-items: stretch; gap: .7rem;
        transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
        box-shadow: 0 -10px 40px rgba(0,0,0,.2);
        max-height: 85vh; overflow-y: auto;
    }
    .filters.open { transform: translateY(0); visibility: visible; }
    .filters .sheet-head { display: flex; justify-content: space-between; align-items: center; }
    .filters .sheet-head h3 { font-size: 1.3rem; }
    .filters .fl { display: block; font-size: .88rem; color: var(--muted); margin-bottom: -.45rem; }
    .filters .sel { width: 100%; height: 48px; font-size: 1rem; }
    .filters .sheet-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: .4rem; }

    .explorer, .explorer.view-list { grid-template-columns: 1fr; }
    .explorer .map-pane { display: none; }
    .explorer.view-map .list-pane { display: none; }
    .explorer.view-map .map-pane { display: block; position: relative; top: 0; height: calc(100svh - var(--nav-h) - 7px - 63px); padding: 0; }
    .explorer.view-map .map-box { border-radius: 0; border: 0; }
    body.map-mode .site-footer { display: none; }
    .list-pane { padding: 0 1rem 3rem; }
    .temple { grid-template-columns: 92px minmax(0, 1fr); gap: .85rem; }
    .t-name { font-size: 1.1rem; }
    .leaflet-popup .leaflet-popup-content { width: 230px !important; }

    .d-hero-inner { padding: 5rem 1rem 1.75rem; }
    .d-hero .d-actions { display: none; }
    .d-body { grid-template-columns: 1fr; gap: 2rem; padding: 1.75rem 1rem 6.5rem; }
    .d-aside { order: -1; }
    .d-map-card { position: static; }
    .d-map { height: 260px; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr auto auto; gap: .5rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    }
    .mobile-bar .btn { min-height: 48px; min-width: 52px; }
}

@media (max-width: 520px) {
    .nav-links a { padding: .45rem .6rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-search { flex-direction: column; gap: 6px; }
    .hero-search label { padding: 0 .5rem; }
    .hero-search .btn { width: 100%; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { padding-bottom: 0; border-bottom: 0; font-size: .88rem; }
    .facts dd { padding-top: .1rem; }
    .t-actions .btn { flex: 1 1 auto; padding: .4rem .6rem; }
}
