@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --navy-950: #041a2f;
    --navy-900: #082b4b;
    --navy-800: #0b3b64;
    --navy-700: #12527f;
    --sky: #7dc8eb;
    --sky-strong: #36a9dd;
    --coral: #f05c65;
    --cream: #f8f5ed;
    --white: #fff;
    --ink: #122233;
    --muted: #6c7a89;
    --glass: rgba(5, 28, 50, .84);
    --glass-strong: rgba(5, 28, 50, .94);
    --panel-shadow: 0 22px 65px rgba(1, 18, 34, .24);
    --topbar-h: 68px;
    --panel-w: 360px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    background: #d7e9f1;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: #d9edf5; color: var(--white); }
button, input, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(54, 169, 221, .55); outline-offset: 2px; }

.app-shell { width: 100%; height: 100dvh; min-height: 100%; display: grid; grid-template-rows: var(--topbar-h) minmax(0, 1fr); background: #dcecf3; }

.topbar {
    position: relative;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--topbar-h);
    padding: 0 16px 0 18px;
    background:
        radial-gradient(circle at 17% -120%, rgba(66, 178, 226, .44), transparent 38%),
        linear-gradient(110deg, #062541 0%, #082f52 56%, #06223c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 28px rgba(5, 30, 51, .17);
}

.brand { justify-self: start; display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { width: 109px; height: 40px; object-fit: contain; object-position: left center; }
.brand-copy { display: flex; flex-direction: column; gap: 0; min-width: 0; padding-left: 11px; border-left: 1px solid rgba(255,255,255,.16); line-height: 1.08; }
.brand-copy strong { font: 700 13px/1.2 "Manrope", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.brand-copy small { margin-top: 3px; color: rgba(255,255,255,.59); font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }

.face-switcher { justify-self: center; display: flex; padding: 4px; gap: 2px; border-radius: 13px; background: rgba(0, 12, 25, .32); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.face-tab { min-width: 100px; height: 40px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: rgba(255,255,255,.64); background: transparent; cursor: pointer; text-decoration: none; transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.face-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.face-tab:active { transform: scale(.98); }
.face-tab.active { color: var(--navy-950); background: #fff; box-shadow: 0 7px 20px rgba(0, 11, 23, .18); font-weight: 700; }
.face-tab-icon { font-size: 16px; line-height: 1; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 7px; }
.icon-btn, .text-btn { height: 40px; min-width: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: rgba(255,255,255,.055); color: rgba(255,255,255,.88); cursor: pointer; text-decoration: none; transition: .18s ease; }
.icon-btn { padding: 0 10px; }
.text-btn { padding: 0 9px; font-weight: 700; font-size: 12px; letter-spacing: .05em; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .text-btn:hover { color: #fff; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.2); }
.icon-btn:disabled { opacity: .42; cursor: wait; }
.desktop-label { font-size: 12px; font-weight: 700; }
.theme-toggle .theme-icon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
.theme-toggle { position: relative; }

.workspace { position: relative; min-height: 0; overflow: hidden; }
.map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; background: #d9e8ee; cursor: grab; }
.map-viewport.dragging { cursor: grabbing; }
.map-viewport::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 18%, rgba(255,255,255,.52), transparent 36%),
        linear-gradient(135deg, rgba(4,43,75,.08), rgba(125,200,235,.05));
}
.map-scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-images, .hotspot-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; opacity: 0; transition: opacity .18s ease; filter: drop-shadow(0 20px 30px rgba(4, 34, 54, .18)); }
.map-image.visible { opacity: 1; }
.map-image.full-detail { z-index: 3; opacity: 0; transition: opacity .22s ease; }
.map-image.full-detail.visible { opacity: 1; }
.hotspot-layer { z-index: 10; pointer-events: none; transition: opacity .18s ease; }
.hotspot-layer.hidden { opacity: 0; }

.hotspot {
    position: absolute;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.hotspot::before {
    content: "";
    width: clamp(14px, 52%, 30px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.96);
    background: rgba(9, 57, 91, .64);
    box-shadow: 0 0 0 4px rgba(54,169,221,.24), 0 4px 13px rgba(0,28,49,.25);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.hotspot::after {
    content: "";
    position: absolute;
    width: clamp(22px, 78%, 42px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(54,169,221,.54);
    animation: hotspotPulse 2.8s ease-out infinite;
}
.hotspot:hover::before, .hotspot:focus-visible::before, .hotspot.selected::before { transform: scale(1.2); background: var(--coral); box-shadow: 0 0 0 5px rgba(240,92,101,.22), 0 6px 18px rgba(0,28,49,.3); }
.hotspot.selected::after { border-color: rgba(240,92,101,.7); }
.hotspot[hidden] { display: none; }
@keyframes hotspotPulse { 0%, 55% { transform: scale(.72); opacity: 0; } 65% { opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

.explore-panel {
    position: absolute;
    z-index: 80;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: var(--panel-w);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    color: var(--ink);
    background: rgba(255,255,255,.965);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--panel-shadow);
    overflow: hidden;
    transform: translateX(calc(-100% - 28px));
    opacity: 0;
    pointer-events: none;
    transition: transform .27s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
    backdrop-filter: blur(18px);
}
.explore-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 20px 14px; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--navy-700); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.panel-head h1, .mobile-sheet-head h2 { margin: 0; color: var(--navy-950); font: 800 23px/1.12 "Manrope", sans-serif; letter-spacing: -.03em; }
.panel-close, .detail-close, .detail-share, .mobile-sheet-head button { border: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eef3f6; color: #536575; cursor: pointer; font-size: 23px; line-height: 1; }
.panel-close:hover, .detail-close:hover, .detail-share:hover, .mobile-sheet-head button:hover { background: #e5edf1; color: var(--navy-900); }

.search-box { height: 46px; margin: 0 16px 11px; padding: 0 10px 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #d9e3e9; border-radius: 13px; background: #f7fafb; transition: .17s ease; }
.search-box:focus-within { border-color: rgba(18,82,127,.42); background: #fff; box-shadow: 0 0 0 3px rgba(54,169,221,.09); }
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #7a8995; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #95a2ac; }
.search-box button { border: 0; width: 25px; height: 25px; border-radius: 8px; background: #e9eff3; color: #657581; cursor: pointer; font-size: 17px; }

.category-strip { padding: 0 16px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-chip { height: 29px; flex: 0 0 auto; border: 1px solid #dae5ea; border-radius: 999px; padding: 0 10px; background: #fff; color: #61717d; cursor: pointer; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.category-chip:hover { border-color: #b9d6e3; color: var(--navy-800); }
.category-chip.active { color: #fff; border-color: var(--navy-700); background: var(--navy-700); }
.result-meta { height: 33px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f3; border-bottom: 1px solid #edf1f3; color: #84929c; font-size: 10.5px; }
.result-meta button { padding: 0; border: 0; background: none; color: var(--navy-700); cursor: pointer; font-size: 10.5px; font-weight: 700; }

.results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 9px 10px; scrollbar-width: thin; scrollbar-color: #cbd8de transparent; }
.result-card { width: 100%; padding: 11px 11px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-radius: 13px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: .15s ease; }
.result-card:hover { background: #f0f6f8; }
.result-card.selected { background: #e8f3f8; box-shadow: inset 0 0 0 1px rgba(54,169,221,.18); }
.result-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #e9f3f7; color: var(--navy-700); font-size: 16px; }
.result-icon.food { background: #fff0e9; color: #b5522d; }
.result-icon.attraction { background: #eaf4eb; color: #37794b; }
.result-icon.mobility { background: #eaf0fb; color: #395f9d; }
.result-icon.shopping { background: #f5ecfb; color: #7b4a98; }
.result-main { min-width: 0; }
.result-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #243746; font-size: 12.5px; font-weight: 700; }
.result-review { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #6f7f8b; font-size: 9.7px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.result-main small { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #88959e; font-size: 9.8px; }
.face-pill { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 999px; color: var(--navy-700); background: #e9f3f8; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.result-arrow { color: #a0acb4; font-size: 17px; transition: transform .15s ease; }
.result-card:hover .result-arrow { color: var(--navy-700); transform: translateX(2px); }
.empty-state { padding: 36px 24px; color: #778894; text-align: center; font-size: 12px; line-height: 1.5; }
.panel-foot { min-height: 39px; padding: 0 17px; display: flex; align-items: center; gap: 8px; color: #8c99a2; background: #f7fafb; border-top: 1px solid #eaf0f3; font-size: 9.5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #39a66f; box-shadow: 0 0 0 3px rgba(57,166,111,.11); }

.map-toolbar {
    position: absolute;
    z-index: 60;
    right: 18px;
    bottom: 18px;
    height: 45px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 14px;
    background: var(--glass-strong);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 28px rgba(1,20,35,.24);
    backdrop-filter: blur(16px);
}
.map-toolbar button { height: 36px; min-width: 37px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.8); cursor: pointer; font-size: 18px; transition: .15s ease; }
.map-toolbar button:hover, .map-toolbar button.active { color: #fff; background: rgba(255,255,255,.1); }
.map-toolbar .toolbar-wide { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; }
.toolbar-separator { width: 1px; height: 22px; background: rgba(255,255,255,.13); margin: 0 3px; }
.dot-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(125,200,235,.13); }
.fold-icon, .fit-icon { font-size: 15px; line-height: 1; }
.zoom-indicator { position: absolute; z-index: 58; right: 20px; bottom: 69px; min-width: 44px; padding: 4px 7px; border-radius: 8px; background: rgba(5,28,50,.72); color: rgba(255,255,255,.72); text-align: center; font-size: 9px; backdrop-filter: blur(10px); opacity: 0; transform: translateY(4px); transition: .16s ease; pointer-events: none; }
.zoom-indicator.show { opacity: 1; transform: translateY(0); }

/* Desktop reading magnifier: preserve the complete printed-map overview while
   making dense labels readable without forcing a global zoom/crop. */
.map-magnifier-toggle .magnifier-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    opacity: .78;
}
.map-magnifier-toggle .magnifier-icon::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 1.6px;
    right: -5px;
    bottom: -2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}
.map-magnifier-toggle.active .magnifier-icon { opacity: 1; }
.map-magnifier {
    position: absolute;
    z-index: 66;
    width: clamp(280px, 22vw, 350px);
    height: clamp(205px, 16.5vw, 252px);
    overflow: hidden;
    border: 1px solid rgba(223, 244, 252, .6);
    border-radius: 15px;
    background: #061b2c;
    box-shadow: 0 22px 54px rgba(0, 12, 22, .38), 0 3px 10px rgba(0, 12, 22, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) scale(.985);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
    pointer-events: none;
    isolation: isolate;
}
.map-magnifier.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.map-magnifier-image {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}
.map-magnifier::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    pointer-events: none;
}
.map-magnifier-chrome {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 34px;
    padding: 8px 11px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(240, 249, 253, .92);
    background: linear-gradient(180deg, rgba(4, 25, 41, 0), rgba(4, 25, 41, .9) 48%);
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.map-magnifier-chrome span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .025em;
}
.map-magnifier-chrome strong {
    font: 800 11px/1 "Manrope", sans-serif;
    letter-spacing: .04em;
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 500px) {
    .map-magnifier-toggle,
    .map-magnifier { display: none !important; }
}

.detail-card { position: absolute; z-index: 85; right: 18px; top: 18px; width: min(400px, calc(100vw - 40px)); max-height: calc(100% - 36px); padding: 19px; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.82); box-shadow: var(--panel-shadow); backdrop-filter: blur(18px); transform: translateY(-10px) scale(.97); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .24s cubic-bezier(.2,.7,.2,1); }
.detail-card.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.detail-close, .detail-share { position: absolute; top: 12px; }
.detail-close { right: 12px; }
.detail-share { right: 52px; }
.detail-share-icon { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .16s ease, transform .16s ease; }
.detail-share-icon--check { opacity: 0; transform: scale(.72); }
.detail-share[data-share-state="copied"] .detail-share-icon--share { opacity: 0; transform: scale(.72); }
.detail-share[data-share-state="copied"] .detail-share-icon--check { opacity: 1; transform: scale(1); }
.detail-share[data-share-state="failed"] { color: var(--coral); }
.detail-share-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.detail-kicker { display: block; padding-right: 82px; color: var(--navy-700); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-card h2 { margin: 7px 86px 7px 0; color: var(--navy-950); font: 800 22px/1.14 "Manrope", sans-serif; letter-spacing: -.03em; }
.detail-card > p#detailText { margin: 0 0 7px; color: #61727f; font-size: 12px; line-height: 1.52; }
.detail-occurrence { display: block; margin-bottom: 13px; color: #8a98a2; font-size: 9.5px; }
.detail-facts { display: grid; gap: 7px; margin: 0 0 12px; }
.detail-fact { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; align-items: start; padding: 9px 10px; border: 1px solid #e3eaee; border-radius: 12px; background: #f7fafb; }
.detail-fact[hidden], .detail-directions[hidden] { display: none; }
.detail-fact-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e9f3f8; color: var(--navy-700); font-size: 14px; }
.detail-fact small { display: block; margin-bottom: 2px; color: #8a98a2; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-fact strong { display: block; color: #334755; font-size: 10.7px; font-weight: 600; line-height: 1.38; }
.detail-card .detail-live-note { margin: 0 0 13px; color: #8b98a1; font-size: 9.3px; line-height: 1.4; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.primary-cta, .secondary-cta { min-height: 39px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; font-size: 11px; font-weight: 700; }
.primary-cta { flex: 1; padding: 0 14px; background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.primary-cta:hover { background: var(--navy-700); }
.secondary-cta { padding: 0 12px; border: 1px solid #d9e3e8; background: #f7fafb; color: var(--navy-700); }
.secondary-cta:hover { background: #edf5f8; }

.gesture-hint { position: absolute; z-index: 55; left: 50%; bottom: 19px; max-width: 560px; transform: translateX(-50%); min-height: 54px; padding: 9px 38px 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 16px; background: rgba(4,28,50,.88); border: 1px solid rgba(255,255,255,.11); box-shadow: 0 10px 28px rgba(0,23,40,.18); backdrop-filter: blur(15px); transition: opacity .25s ease, transform .25s ease; }
.gesture-hint.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.gesture-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: rgba(54,169,221,.18); }
.gesture-hint strong { display: block; font-size: 10.5px; }
.gesture-hint small { display: block; margin-top: 2px; color: rgba(255,255,255,.57); font-size: 8.8px; white-space: nowrap; }
.gesture-hint button { position: absolute; right: 7px; top: 7px; width: 27px; height: 27px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.58); cursor: pointer; font-size: 17px; }
.gesture-hint button:hover { background: rgba(255,255,255,.08); color: #fff; }

.loading-screen { position: absolute; z-index: 110; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, #062743, #0d436b); transition: opacity .35s ease, visibility .35s ease; }
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-brand { width: min(250px, 70vw); text-align: center; }
.loading-brand img { width: 150px; height: 66px; object-fit: contain; }
.loading-line { height: 3px; margin: 17px 0 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.13); }
.loading-line span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--sky); animation: loadingMove 1.25s ease-in-out infinite alternate; }
.loading-brand small { color: rgba(255,255,255,.58); font-size: 10.5px; }
@keyframes loadingMove { from { transform: translateX(-20%); } to { transform: translateX(145%); } }

.mobile-explore, .mobile-sheet, .mobile-sheet-backdrop { display: none; }

/* The printed reverse is useful as a physical artifact, not as the primary web
   interface. Guide mode therefore turns that content into a native, scrollable
   destination guide while keeping the original reverse one click away. */
.guide-hub {
    position: absolute;
    z-index: 70;
    inset: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    color: #122d42;
    background:
        radial-gradient(circle at 90% -8%, rgba(54,169,221,.28), transparent 34%),
        radial-gradient(circle at 8% 72%, rgba(240,92,101,.13), transparent 30%),
        linear-gradient(145deg, #eef8fb 0%, #dfeff5 48%, #f5f1e9 100%);
    transition: opacity .2s ease, visibility .2s ease;
}
.workspace.guide-digital .guide-hub { visibility: visible; opacity: 1; pointer-events: auto; }
.workspace.guide-digital .map-viewport { visibility: hidden; pointer-events: none; }
.workspace.guide-digital .explore-panel,
.workspace.guide-print .explore-panel { transform: translateX(calc(-100% - 28px)) !important; opacity: 0 !important; pointer-events: none !important; }
.workspace.guide-digital .detail-card { opacity: 0 !important; pointer-events: none !important; }
.app-shell.guide-mode .desktop-explore-toggle:disabled { opacity: .3; cursor: default; }

.guide-scroll { width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(18,82,127,.35) transparent; }
.guide-inner { width: min(1320px, 100%); margin: 0 auto; padding: 38px clamp(22px, 4vw, 62px) 70px; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .62fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding: 10px 0 38px; }
.guide-eyebrow, .guide-section-kicker { display: block; color: #15638e; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guide-hero h1 { max-width: 800px; margin: 9px 0 12px; color: #062943; font: 800 clamp(36px, 4.2vw, 58px)/.99 "Manrope", sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.guide-hero-copy > p { max-width: 720px; margin: 0; color: #526b7b; font-size: clamp(13px, 1.2vw, 16px); line-height: 1.6; }
.guide-print-panel { position: relative; min-height: 155px; padding: 22px 20px 18px; overflow: hidden; border: 1px solid rgba(18,82,127,.13); border-radius: 23px; background: rgba(255,255,255,.58); box-shadow: 0 18px 45px rgba(16,61,87,.09); backdrop-filter: blur(15px); }
.guide-print-panel::before { content: ""; position: absolute; width: 140px; height: 140px; right: -46px; top: -54px; border: 1px solid rgba(54,169,221,.22); border-radius: 50%; box-shadow: 0 0 0 24px rgba(54,169,221,.05), 0 0 0 48px rgba(54,169,221,.035); pointer-events: none; }
.guide-print-icon { position: absolute; right: 17px; top: 13px; color: rgba(18,82,127,.34); font-size: 25px; }
.guide-print-panel p { position: relative; margin: 0 28px 15px 0; color: #597181; font-size: 11.5px; line-height: 1.5; }
.guide-print-cta { position: relative; min-height: 39px; padding: 0 13px; border: 1px solid rgba(18,82,127,.17); border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #0d4e74; cursor: pointer; font-size: 10.5px; font-weight: 800; box-shadow: 0 7px 18px rgba(9,57,91,.08); }
.guide-print-cta:hover { border-color: rgba(18,82,127,.32); transform: translateY(-1px); }
.guide-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.guide-section-head h2 { margin: 5px 0 0; color: #0a304b; font: 800 clamp(24px, 2.5vw, 34px)/1.08 "Manrope", sans-serif; letter-spacing: -.04em; }
.guide-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(18,82,127,.14); border-radius: 999px; color: #617c8d; background: rgba(255,255,255,.55); font-size: 9.5px; font-weight: 700; }
.guide-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }
.guide-card { position: relative; grid-column: span 4; min-height: 390px; overflow: hidden; border-radius: 24px; background: #08243a; color: #fff; box-shadow: 0 18px 46px rgba(4,39,62,.17); isolation: isolate; }
.guide-card--wide { grid-column: span 6; min-height: 430px; }
.guide-card-media, .guide-card-shade { position: absolute; inset: 0; }
.guide-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.002); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.guide-card-shade { z-index: 1; background: linear-gradient(180deg, rgba(2,14,25,.04) 0%, rgba(2,16,28,.16) 35%, rgba(3,20,34,.93) 78%, rgba(3,20,34,.99) 100%); }
.guide-card::after { content: ""; position: absolute; z-index: 1; inset: 0; border: 1px solid rgba(255,255,255,.14); border-radius: inherit; pointer-events: none; }
.guide-card:hover .guide-card-media img { transform: scale(1.035); filter: saturate(1.06) contrast(1.02); }
.guide-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 21px 21px 19px; }
.guide-card-kicker { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #d6f3ff; background: rgba(5,31,50,.5); backdrop-filter: blur(10px); font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide-card h3 { margin: 8px 0 5px; color: #fff; font: 800 24px/1.08 "Manrope", sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.guide-card-review { display: -webkit-box; overflow: hidden; margin: 0; color: rgba(237,248,253,.78); font-size: 11px; line-height: 1.43; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guide-card--wide .guide-card-review { max-width: 92%; font-size: 11.5px; -webkit-line-clamp: 3; }
.guide-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.guide-card-fact { min-width: 0; padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(2,18,31,.46); backdrop-filter: blur(9px); }
.guide-card-fact small { display: block; margin-bottom: 2px; color: rgba(166,221,245,.75); font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-card-fact span { display: -webkit-box; overflow: hidden; color: rgba(245,250,253,.83); font-size: 8.5px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guide-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.guide-card-primary, .guide-card-secondary { min-height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-size: 9.5px; font-weight: 800; }
.guide-card-primary { padding: 0 13px; border: 1px solid #fff; background: #fff; color: #082b48; }
.guide-card-secondary { padding: 0 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(10px); }
.guide-card-primary:hover { background: #eaf7fc; }
.guide-card-secondary:hover { background: rgba(255,255,255,.14); }
.guide-footer { margin-top: 24px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid rgba(18,82,127,.13); color: #718692; font-size: 9.5px; line-height: 1.5; }
.guide-footer > span:first-child { color: #2696c6; }
.guide-return { position: absolute; z-index: 75; top: 16px; left: 16px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(5,28,50,.94); box-shadow: 0 12px 30px rgba(1,20,35,.24); backdrop-filter: blur(14px); cursor: pointer; font-size: 10.5px; font-weight: 800; }
.guide-return:hover { background: #0a3d61; }
.guide-return[hidden] { display: none; }

html[data-theme="dark"] .guide-hub {
    color: #e8f6fc;
    background:
        radial-gradient(circle at 88% -8%, rgba(54,169,221,.19), transparent 35%),
        radial-gradient(circle at 8% 70%, rgba(240,92,101,.1), transparent 30%),
        linear-gradient(145deg, #031522 0%, #06263e 54%, #071c2b 100%);
}
html[data-theme="dark"] .guide-eyebrow,
html[data-theme="dark"] .guide-section-kicker { color: #75cef3; }
html[data-theme="dark"] .guide-hero h1,
html[data-theme="dark"] .guide-section-head h2 { color: #f0faff; }
html[data-theme="dark"] .guide-hero-copy > p { color: #9eb6c4; }
html[data-theme="dark"] .guide-print-panel { border-color: rgba(125,200,235,.14); background: rgba(6,36,57,.7); box-shadow: 0 18px 48px rgba(0,7,15,.24); }
html[data-theme="dark"] .guide-print-panel p { color: #96afbe; }
html[data-theme="dark"] .guide-print-icon { color: rgba(125,200,235,.38); }
html[data-theme="dark"] .guide-print-cta { border-color: rgba(125,200,235,.2); background: #0b3552; color: #dff5ff; box-shadow: none; }
html[data-theme="dark"] .guide-print-cta:hover { background: #104462; }
html[data-theme="dark"] .guide-count { border-color: rgba(125,200,235,.13); color: #8da8b8; background: rgba(8,42,65,.72); }
html[data-theme="dark"] .guide-footer { border-color: rgba(125,200,235,.13); color: #809aa9; }

/* The shared 3D module keeps its rendering core. Public-facing overrides remove
   proofing jargon while retaining the tactile fold experience. */
.tour3d-title span { opacity: .62; }
.tour3d-overlay { z-index: 5000 !important; }
.tour3d-topbar { background: rgba(5, 28, 50, .94) !important; }
.tour3d-btn.primary { background: rgba(54,169,221,.18) !important; border-color: rgba(125,200,235,.34) !important; color: #e8f7ff !important; }

@media (max-width: 720px) {
    .tour3d-btn { min-width: 44px !important; min-height: 44px !important; }
    #tour3dClose {
        width: 44px !important;
        min-width: 44px !important;
        flex: 0 0 44px !important;
    }
}

/* Dark is the product default. The printed map itself is never recolored or
   inverted: only the application chrome around it changes theme. */
html[data-theme="dark"] { color-scheme: dark; background: #031522; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] body { background: #031522; color: #eef8fd; }
html[data-theme="dark"] .app-shell { background: #031522; }
html[data-theme="dark"] .map-viewport { background: #041827; }
html[data-theme="dark"] .map-viewport::before {
    background:
        radial-gradient(circle at 70% 18%, rgba(66,178,226,.11), transparent 36%),
        linear-gradient(135deg, rgba(1,12,22,.36), rgba(18,82,127,.12));
}
html[data-theme="dark"] .map-image { filter: drop-shadow(0 22px 34px rgba(0, 7, 14, .48)); }
html[data-theme="dark"] .explore-panel,
html[data-theme="dark"] .detail-card {
    color: #e9f5fb;
    background: rgba(5, 28, 50, .965);
    border-color: rgba(125,200,235,.15);
    box-shadow: 0 24px 70px rgba(0, 7, 15, .48);
}
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .detail-kicker { color: #83d2f4; }
html[data-theme="dark"] .panel-head h1,
html[data-theme="dark"] .mobile-sheet-head h2,
html[data-theme="dark"] .detail-card h2 { color: #f3fbff; }
html[data-theme="dark"] .panel-close,
html[data-theme="dark"] .detail-close,
html[data-theme="dark"] .detail-share,
html[data-theme="dark"] .mobile-sheet-head button { background: #0d3553; color: #b9cfdb; }
html[data-theme="dark"] .panel-close:hover,
html[data-theme="dark"] .detail-close:hover,
html[data-theme="dark"] .detail-share:hover,
html[data-theme="dark"] .mobile-sheet-head button:hover { background: #124666; color: #fff; }
html[data-theme="dark"] .search-box { border-color: #19445f; background: #082640; }
html[data-theme="dark"] .search-box:focus-within { border-color: rgba(125,200,235,.55); background: #0a2d49; box-shadow: 0 0 0 3px rgba(54,169,221,.13); }
html[data-theme="dark"] .search-box svg { stroke: #82a0b2; }
html[data-theme="dark"] .search-box input { color: #edf8fd; }
html[data-theme="dark"] .search-box input::placeholder { color: #7892a3; }
html[data-theme="dark"] .search-box button { background: #113a56; color: #a8becb; }
html[data-theme="dark"] .category-chip { border-color: #19445f; background: #082640; color: #a7bdca; }
html[data-theme="dark"] .category-chip:hover { border-color: #33729a; color: #e7f7ff; }
html[data-theme="dark"] .category-chip.active { color: #fff; border-color: #1875a5; background: #14618d; }
html[data-theme="dark"] .result-meta { border-color: #15384f; color: #7f9aac; }
html[data-theme="dark"] .result-meta button { color: #80d0f3; }
html[data-theme="dark"] .results { scrollbar-color: #2a536b transparent; }
html[data-theme="dark"] .result-card { color: #e8f4fa; }
html[data-theme="dark"] .result-card:hover { background: #0b304a; }
html[data-theme="dark"] .result-card.selected { background: #0d3854; box-shadow: inset 0 0 0 1px rgba(125,200,235,.18); }
html[data-theme="dark"] .result-icon { background: #103a55; color: #8dd9f8; }
html[data-theme="dark"] .result-icon.food { background: #41271f; color: #ffb38f; }
html[data-theme="dark"] .result-icon.attraction { background: #183a2a; color: #8ed5a7; }
html[data-theme="dark"] .result-icon.mobility { background: #18304d; color: #9abcf4; }
html[data-theme="dark"] .result-icon.shopping { background: #352641; color: #d5a6ed; }
html[data-theme="dark"] .result-main strong { color: #eaf6fc; }
html[data-theme="dark"] .result-review { color: #9aafbb; }
html[data-theme="dark"] .result-main small { color: #829cac; }
html[data-theme="dark"] .face-pill { color: #8ed9f8; background: #103a55; }
html[data-theme="dark"] .result-arrow { color: #678699; }
html[data-theme="dark"] .result-card:hover .result-arrow { color: #8ed9f8; }
html[data-theme="dark"] .empty-state { color: #89a0ae; }
html[data-theme="dark"] .panel-foot { color: #839aa8; background: #06223a; border-color: #15384f; }
html[data-theme="dark"] .detail-card p { color: #9eb2be; }
html[data-theme="dark"] .detail-occurrence { color: #7793a4; }
html[data-theme="dark"] .detail-fact { border-color: #19445f; background: #082640; }
html[data-theme="dark"] .detail-fact-icon { background: #103a55; color: #8dd9f8; }
html[data-theme="dark"] .detail-fact small { color: #7593a5; }
html[data-theme="dark"] .detail-fact strong { color: #d9e9f1; }
html[data-theme="dark"] .secondary-cta { border-color: #214b65; background: #0b304a; color: #9adcf7; }
html[data-theme="dark"] .secondary-cta:hover { background: #103b57; }
html[data-theme="dark"] .mobile-sheet { color: #e9f5fb; background: rgba(5,28,50,.992); box-shadow: 0 -20px 60px rgba(0,7,15,.5); }
html[data-theme="dark"] .sheet-handle { background: #31556b; }
html[data-theme="dark"] .mobile-sheet-backdrop { background: rgba(0,8,15,.56); }

@media (max-width: 1100px) {
    .guide-card { grid-column: span 6; }
    .guide-card:last-child { grid-column: span 12; min-height: 350px; }
}

@media (max-width: 980px) {
    :root { --topbar-h: 62px; }
    .guide-inner { padding-top: 30px; }
    .guide-hero { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 24px; }
    .guide-hero h1 { font-size: clamp(34px, 5vw, 48px); }
    .topbar { padding-inline: 12px; }
    .brand img { width: 96px; }
    .brand-copy { display: none; }
    .face-tab { min-width: 88px; height: 38px; }
    .desktop-label { display: none; }
    .detail-card { top: 12px; right: 12px; }
    .gesture-hint { bottom: 75px; }
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 500px) {
    :root { --topbar-h: calc(60px + var(--safe-top)); }
    .topbar {
        grid-template-columns: auto minmax(100px, 1fr) auto;
        gap: 4px;
        height: var(--topbar-h);
        padding: var(--safe-top) max(6px, var(--safe-right)) 0 max(6px, var(--safe-left));
    }
    .brand { overflow: hidden; }
    .brand img { width: 54px; height: 32px; }
    .guide-inner { padding: 18px max(12px, var(--safe-right)) calc(30px + var(--safe-bottom)) max(12px, var(--safe-left)); }
    .guide-hero { grid-template-columns: 1fr; gap: 17px; padding: 6px 0 25px; }
    .guide-hero h1 { margin-top: 7px; font-size: clamp(30px, 9.2vw, 42px); line-height: 1.02; }
    .guide-hero-copy > p { font-size: 12.5px; line-height: 1.52; }
    .guide-print-panel { min-height: 0; padding: 16px; border-radius: 18px; }
    .guide-print-panel p { margin-right: 28px; font-size: 10.5px; }
    .guide-print-cta { min-height: 44px; }
    .guide-section-head { align-items: flex-start; margin-bottom: 12px; }
    .guide-section-head h2 { font-size: 24px; }
    .guide-count { margin-top: 2px; white-space: nowrap; }
    .guide-cards { grid-template-columns: 1fr; gap: 12px; }
    .guide-card, .guide-card--wide, .guide-card:last-child { grid-column: 1; min-height: 430px; border-radius: 20px; }
    .guide-card-content { padding: 18px 17px 16px; }
    .guide-card h3 { font-size: 22px; }
    .guide-card-review, .guide-card--wide .guide-card-review { font-size: 10.5px; -webkit-line-clamp: 3; }
    .guide-card-fact span { font-size: 8.3px; }
    .guide-card-primary, .guide-card-secondary { min-height: 44px; font-size: 10px; }
    .guide-footer { margin-top: 18px; padding-inline: 5px; }
    .guide-return { top: max(8px, var(--safe-top)); left: max(8px, var(--safe-left)); min-height: 46px; padding-inline: 13px; }
    .face-switcher { padding: 3px; border-radius: 11px; }
    .face-tab { min-width: 48px; height: 44px; padding: 0 5px; gap: 4px; border-radius: 8px; font-size: 10px; }
    .face-tab-icon { display: none; }
    .desktop-explore-toggle { display: none; }
    .top-actions { gap: 2px; }
    .icon-btn, .text-btn { height: 44px; min-width: 44px; border-radius: 10px; padding-inline: 6px; }
    .text-btn { font-size: 10.5px; }
    .icon-btn svg { width: 16px; height: 16px; }
    .explore-panel { display: none; }
    .detail-card { top: auto; right: max(8px, var(--safe-right)); left: max(8px, var(--safe-left)); bottom: calc(72px + var(--safe-bottom)); width: auto; max-height: min(58dvh, 480px); padding: 16px; border-radius: 18px; }
    .detail-close, .detail-share { width: 44px; height: 44px; }
    .detail-share { right: 60px; }
    .detail-card h2 { font-size: 18px; }
    .detail-actions { flex-wrap: wrap; }
    .primary-cta, .secondary-cta { min-height: 44px; }
    .primary-cta { min-width: min(170px, 100%); }
    .secondary-cta { flex: 0 0 auto; }
    .map-toolbar { left: auto; right: max(8px, var(--safe-right)); bottom: calc(8px + var(--safe-bottom)); height: 52px; transform: none; white-space: nowrap; }
    #zoomOut, #zoomIn { display: none; }
    .map-toolbar button { height: 44px; min-width: 44px; padding-inline: 9px; }
    .map-toolbar .toolbar-wide span:not(.dot-icon):not(.fold-icon):not(.fit-icon) { display: none; }
    .map-toolbar .toolbar-wide { min-width: 44px; justify-content: center; padding-inline: 9px; }
    .zoom-indicator { right: max(10px, var(--safe-right)); bottom: calc(70px + var(--safe-bottom)); }
    .gesture-hint { left: max(8px, var(--safe-left)); right: max(8px, var(--safe-right)); bottom: calc(70px + var(--safe-bottom)); max-width: none; min-height: 58px; padding: 9px 44px 9px 10px; transform: none; }
    .gesture-hint.hidden { transform: translateY(10px); }
    .gesture-hint > div { min-width: 0; }
    .gesture-hint strong { font-size: 10px; }
    .gesture-hint small { white-space: normal; overflow-wrap: anywhere; font-size: 8.7px; line-height: 1.3; }
    .gesture-hint button { top: 50%; right: 2px; width: 44px; height: 44px; transform: translateY(-50%); }
    .mobile-explore { position: absolute; z-index: 62; left: max(8px, var(--safe-left)); bottom: calc(8px + var(--safe-bottom)); height: 52px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #fff; background: rgba(5,28,50,.94); box-shadow: 0 10px 26px rgba(1,20,35,.23); backdrop-filter: blur(14px); cursor: pointer; font-size: 10.5px; font-weight: 700; }
    .mobile-explore svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
    .mobile-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: rgba(125,200,235,.18); color: #dff5ff; font-size: 9px; }
    .mobile-sheet-backdrop { position: fixed; z-index: 200; inset: var(--topbar-h) 0 0; display: block; background: rgba(1,15,28,.38); opacity: 0; transition: opacity .22s ease; backdrop-filter: blur(2px); }
    .mobile-sheet-backdrop[hidden] { display: none; }
    .mobile-sheet-backdrop.open { opacity: 1; }
    .mobile-sheet { position: fixed; z-index: 210; left: 0; right: 0; bottom: 0; height: min(78dvh, 700px); max-height: calc(100dvh - var(--safe-top) - 6px); padding-bottom: var(--safe-bottom); display: flex; flex-direction: column; border-radius: 23px 23px 0 0; color: var(--ink); background: rgba(255,255,255,.985); box-shadow: 0 -20px 60px rgba(0,24,42,.24); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.72,.2,1); overflow: hidden; }
    .mobile-sheet.open { transform: translateY(0); }
    .sheet-handle { width: 38px; height: 4px; flex: 0 0 auto; margin: 8px auto 3px; border-radius: 99px; background: #d1dce1; }
    .mobile-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 15px; }
    .mobile-sheet-head h2 { font-size: 19px; }
    .mobile-sheet-head button { width: 44px; height: 44px; flex: 0 0 auto; }
    #mobileExploreContent { min-height: 0; flex: 1; display: flex; flex-direction: column; }
    #mobileExploreContent .search-box { height: 50px; margin-top: 3px; }
    #mobileExploreContent .search-box input { font-size: 16px; }
    #mobileExploreContent .search-box button { width: 40px; height: 40px; }
    #mobileExploreContent .category-strip { padding-bottom: 12px; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
    #mobileExploreContent .category-chip { height: 44px; padding-inline: 14px; font-size: 11.5px; scroll-snap-align: start; }
    #mobileExploreContent .result-meta { height: 38px; }
    #mobileExploreContent .result-card { min-height: 64px; padding-block: 12px; }
    #mobileExploreContent .results { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
    #mobileExploreContent .panel-foot { display: none; }
}

@media (max-width: 340px) {
    .topbar { gap: 3px; padding-inline: 4px; }
    .brand img { width: 50px; }
    .face-tab { min-width: 45px; padding-inline: 4px; }
    .top-actions { gap: 1px; }
    .icon-btn, .text-btn { min-width: 44px; padding-inline: 5px; }
    .mobile-explore { padding-inline: 10px; }
    .map-toolbar { gap: 1px; padding-inline: 3px; }
    .map-toolbar button, .map-toolbar .toolbar-wide { min-width: 44px; padding-inline: 7px; }
    .toolbar-separator { margin-inline: 1px; }
}

@media (max-width: 900px) and (max-height: 500px) {
    .guide-inner { padding-top: 12px; }
    .guide-hero { grid-template-columns: 1.4fr .8fr; align-items: center; padding-bottom: 18px; }
    .guide-hero h1 { font-size: 28px; }
    .guide-print-panel { padding: 12px 14px; }
    .guide-card, .guide-card--wide, .guide-card:last-child { min-height: 320px; }
    .gesture-hint { display: none; }
    .detail-card { max-height: calc(100% - 76px); }
}

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