/* Layout: one-screen app — header, a single active view, bottom tab bar; sheet and AR layer over it. */
:root {
  --sea: #0b2130;        /* deep Ionian */
  --aqua: #0e9aa0;       /* Melissani water */
  --limestone: #eef1ee;  /* cool limestone ground */
  --land: #e3ddc9;       /* map land */
  --sun: #e4a63c;        /* late light on Myrtos */
  --olive: #5f7344;
  --bg: var(--limestone);
  --surface: #ffffff;
  --surface-2: #f6f8f6;
  --fg: #12232e;
  --muted: #586972;
  --line: #d6dedb;
  --map-sea: #cfe6e8;
  --map-sea-2: #b6d9dd;
  --map-land: #ece6d3;
  --map-stroke: #9f9579;
  --pin: #0b2130;
  --on-accent: #ffffff;
  --shadow: 0 10px 30px rgba(11, 33, 48, .14);
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071822; --surface: #0e2431; --surface-2: #12303f; --fg: #e5eeec; --muted: #9db0b5; --line: #1f3d4c;
    --map-sea: #0a2532; --map-sea-2: #0d3040; --map-land: #2a3a33; --map-stroke: #4e6157; --pin: #f2e9d4;
    --aqua: #2bb9bd; --shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071822; --surface: #0e2431; --surface-2: #12303f; --fg: #e5eeec; --muted: #9db0b5; --line: #1f3d4c;
  --map-sea: #0a2532; --map-sea-2: #0d3040; --map-land: #2a3a33; --map-stroke: #4e6157; --pin: #f2e9d4;
  --aqua: #2bb9bd; --shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, select, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

.app { height: 100%; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--sea); color: #f2ede0;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--sun); }
.brand h1 { font: 21px/1.1 var(--font-display); margin: 0; letter-spacing: .04em; }
.tagline { margin: 2px 0 0; font-size: 11.5px; color: #a9c3c6; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #f2ede0; border-radius: 999px; padding: 6px 10px; max-width: 132px; }
.lang option { color: #12232e; }

main { position: relative; overflow: hidden; min-height: 0; }
.view { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* map */
#view-map { display: grid; grid-template-rows: 1fr auto auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.map-wrap { position: relative; min-height: 0; background: radial-gradient(120% 90% at 30% 20%, var(--map-sea), var(--map-sea-2)); touch-action: none; }
#map { width: 100%; height: 100%; display: block; cursor: grab; }
#map .land { fill: var(--map-land); stroke: var(--map-stroke); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
#map .contour { fill: none; stroke: var(--map-stroke); stroke-opacity: .25; vector-effect: non-scaling-stroke; }
#map .sea-label { font: italic 13px var(--font-display); fill: var(--muted); letter-spacing: .3em; }
#map .town { font: 600 11px var(--font-body); fill: var(--muted); }
.pin { cursor: pointer; }
.pin .halo { fill: var(--aqua); opacity: .16; }
.pin .dot { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin text { font: 700 10px var(--font-body); fill: #fff; pointer-events: none; }
.pin.visited .dot { fill: var(--olive) !important; }
.pin.active .halo { opacity: .35; }
.me .acc { fill: #2f7ff0; opacity: .12; }
.me .core { fill: #2f7ff0; stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-ctrl { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: 12px; display: grid; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; font-size: 22px; line-height: 1; box-shadow: var(--shadow); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

.tour-bar { display: flex; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.tour-status { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.tour-status p { margin: 0; font-size: 13px; color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.pulse.on { background: #1fbf6a; box-shadow: 0 0 0 0 rgba(31,191,106,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(31,191,106,0); } }

.nearest { display: flex; gap: 10px; overflow-x: auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); scrollbar-width: none; }
.nearest::-webkit-scrollbar { display: none; }
.chip-card { flex: none; width: 210px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); text-align: left; cursor: pointer; }
.chip-card img, .chip-card .glyph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--map-sea); }
.chip-card b { display: block; font-size: 13px; line-height: 1.25; }
.chip-card small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--aqua); border-color: var(--aqua); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:active { transform: translateY(1px); }

/* sites */
.passport { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.passport strong { display: block; font: 26px var(--font-display); font-variant-numeric: tabular-nums; }
.stamps { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 60%; }
.stamps i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); }
.stamps i.on { background: var(--olive); border-color: var(--olive); }
.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-list { list-style: none; margin: 0; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; }
.site-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; }
.site-item img, .site-item .glyph { width: 76px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--map-sea); }
.site-item h3 { margin: 0; font: 17px/1.2 var(--font-display); text-wrap: balance; }
.site-item p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.site-item .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.site-item .d .ok { display: block; color: var(--olive); font-weight: 700; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 4px; }
.badge-ar { background: var(--sun); color: #2a1a00; }
.glyph { display: grid; place-items: center; }
.glyph svg { width: 60%; height: 60%; color: var(--aqua); }

/* stay */
#view-stay { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.stay { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; }
.stay-art svg { display: block; width: 100%; height: 170px; }
.stay-body { padding: 18px; display: grid; gap: 10px; }
.stay h2 { margin: 0; font: 26px/1.15 var(--font-display); text-wrap: balance; }
.stay p { margin: 0; color: var(--muted); }
.perks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.perks li { padding-left: 24px; position: relative; font-weight: 500; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }
.phone { text-align: center; font-weight: 600; user-select: all; }
.install { max-width: 560px; margin: 14px auto 0; }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* tabs */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 4px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.tabs button { background: none; border: 0; padding: 8px 4px; display: grid; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs svg { width: 22px; height: 22px; }
.tabs button[aria-current="page"] { color: var(--aqua); }

/* sheet */
.sheet-scrim { position: fixed; inset: 0; background: rgba(4, 16, 24, .45); z-index: 20; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom, 0px); animation: up .28s ease-out; }
@media (min-width: 760px) { .sheet { left: auto; right: 20px; bottom: 20px; top: 84px; width: 420px; max-height: none; border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto; }
.sheet-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.sheet-media { margin: 0 16px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #cfe6e8, #e9dfc6); aspect-ratio: 16 / 9; max-width: 100%; position: relative; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-media .cap { position: absolute; left: 10px; bottom: 10px; background: rgba(11,33,48,.72); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.sheet-media .glyph { width: 100%; height: 100%; }
.sheet-body { padding: 14px max(18px, env(safe-area-inset-right, 0px)) 22px max(18px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; }
.sheet h2 { margin: 0; font: 26px/1.15 var(--font-display); text-wrap: balance; }
.dist { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.narration { margin: 4px 0 0; font-size: 16px; line-height: 1.7; max-width: 65ch; }
.narration span { transition: background .2s, color .2s; border-radius: 4px; }
.narration span.now { background: color-mix(in srgb, var(--sun) 35%, transparent); }
.player .bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.player .bar span { display: block; height: 100%; width: 0; background: var(--aqua); transition: width .3s; }
.voice-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.stay-link { display: block; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.stay-link::after { content: " →"; color: var(--aqua); }

/* toast */
.toast { position: fixed; z-index: 30; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--sea); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; max-width: calc(100% - 32px); animation: up .3s ease-out; }
.toast small { display: block; font-weight: 500; color: #a9c3c6; font-size: 12px; }

/* AR */
.ar { position: fixed; inset: 0; z-index: 40; background: linear-gradient(#9fd0e8 0%, #d7ecf1 55%, #e8e0c8 100%); color: #fff; }
.ar video, .ar canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar video { display: none; }
.ar.is-cam video { display: block; }
.ar canvas { touch-action: none; }
.ar-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(4,16,24,.65), transparent); }
.ar-top h2 { margin: 2px 0 0; font: 22px/1.15 var(--font-display); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ar-top .eyebrow { color: #f6d79a; }
.ar-top .icon-btn { background: rgba(4,16,24,.55); color: #fff; border-color: rgba(255,255,255,.25); }
.ar-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(transparent, rgba(4,16,24,.75)); display: grid; gap: 10px; }
.ar-hint { margin: 0; font-size: 13px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.slider-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.slider-row.small { font-size: 11px; }
.slider-row .btn { text-transform: none; letter-spacing: 0; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
input[type=range] { width: 100%; accent-color: var(--sun); }
body.ar-open .app { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 900px) {
  #view-map { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 1fr auto; }
  .map-wrap { grid-row: 1 / span 2; }
  .tour-bar { border-left: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nearest { flex-direction: column; overflow-y: auto; border-left: 1px solid var(--line); padding-top: 12px; }
  .chip-card { width: 100%; }
  #view-map { grid-template-rows: auto 1fr; }
  .tour-bar { grid-column: 2; grid-row: 1; }
  .nearest { grid-column: 2; grid-row: 2; }
}

.scene { width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.scene svg { width: 100%; height: 100%; display: block; }
.chip-card .scene, .site-item .scene { width: 44px; height: 44px; border-radius: 10px; }
.site-item .scene { width: 76px; height: 64px; }

/* ---------- rich map ---------- */
.map-wrap { background: #0f6a90; }
#map .coast { fill: none; stroke: #8a7a4e; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#map .ferry { fill: none; stroke: #ffffff; stroke-opacity: .75; stroke-width: 1.6; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
#map .road-casing { fill: none; stroke: #9c8a5a; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .6; }
#map .road { fill: none; stroke: #fff7e0; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#map .peak { fill: #5b4a2e; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#map .peak-label { font: 700 11px var(--font-body); fill: #3d3220; paint-order: stroke; stroke: rgba(255,250,235,.85); stroke-width: 3px; }
#map .town-dot { fill: #fff; stroke: #3d3220; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
#map .town { font: 600 11px var(--font-body); fill: #2b2416; paint-order: stroke; stroke: rgba(255,250,235,.9); stroke-width: 3px; }
#map .town.big { font-size: 13px; font-weight: 800; }
#map .sea-label { font: italic 16px var(--font-display); fill: #d8f3f8; fill-opacity: .8; letter-spacing: .4em; }
#map .sea-label.isl { font-size: 12px; fill: #5a4d2e; fill-opacity: .9; }
#map .island-label { font: 22px var(--font-display); fill: #6d5f3a; fill-opacity: .35; letter-spacing: .5em; }
#map .area-ring { fill: rgba(255, 214, 120, .16); stroke: #ffd678; stroke-width: 2.5; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; animation: ring 1.2s linear infinite; }
@keyframes ring { to { stroke-dashoffset: -28; } }
.pin .halo { fill: #fff; opacity: .28; }
.pin .dot { stroke: #fff; stroke-width: 2.4; }
.pin .pin-name { font: 700 12px var(--font-body); fill: #1d1a12; paint-order: stroke; stroke: rgba(255,250,235,.95); stroke-width: 3.5px; display: none; }
#map.zoomed .pin .pin-name, .pin.active .pin-name, .pin.hover .pin-name { display: inline; }
.pin.dim { opacity: .35; }
.pin.active .halo, .pin.hover .halo { fill: #ffd678; opacity: .6; }
.pin { transition: opacity .25s; }
.compass { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: 12px; width: 44px; height: 44px; pointer-events: none; }
.compass svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.compass span { position: absolute; left: 0; right: 0; top: -14px; text-align: center; font: 800 11px var(--font-body); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---------- area side panel ---------- */
.area { position: absolute; z-index: 5; left: 12px; top: 12px; bottom: 12px; width: min(360px, calc(100% - 76px)); overflow-y: auto; background: var(--surface); color: var(--fg); border-radius: 18px; box-shadow: 0 18px 40px rgba(4, 30, 45, .35); padding: 0 0 14px; animation: slideIn .25s ease-out; }
@keyframes slideIn { from { transform: translateX(-16px); opacity: 0; } }
@media (max-width: 640px) {
  .area { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 62%; animation-name: up; }
}
.area-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 14px 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.area-head h2 { margin: 2px 0 0; font: 21px/1.15 var(--font-display); text-wrap: balance; }
.area-head .icon-btn { box-shadow: none; width: 34px; height: 34px; flex: none; }
.area-list { list-style: none; margin: 0; padding: 10px 10px 0; display: grid; gap: 8px; }
.area-item { width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; text-align: left; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .2s, transform .2s; }
.area-item:hover { border-color: var(--aqua); transform: translateY(-1px); }
.area-item.focus { border-color: #e4a63c; box-shadow: 0 0 0 2px rgba(228,166,60,.35); }
.area-media { width: 84px; height: 72px; border-radius: 10px; overflow: hidden; background: #cfe6e8; display: block; }
.area-media img, .area-media .scene, .area-media .glyph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.area-media .glyph svg { width: 50%; height: 50%; color: var(--aqua); }
.area-txt { display: grid; gap: 2px; min-width: 0; }
.area-meta { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.area-meta i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.area-meta em { font-style: normal; margin: 0; }
.area-txt b { font: 16px/1.2 var(--font-display); }
.area-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.area-txt small { font-size: 11.5px; color: var(--aqua); font-weight: 600; font-variant-numeric: tabular-nums; }
.area-extra { padding: 4px 10px 0; display: grid; gap: 6px; }
.area-extra .eyebrow { margin: 8px 4px 0; }

.pin:focus { outline: none; }
.pin:focus-visible .halo { fill: #ffd678; opacity: .8; }
#map { transition: none; }

/* ---------- real photos gallery + access ---------- */
.sheet-media { aspect-ratio: auto; background: #0b2130; }
.sheet-media .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; max-width: 100%; }
.sheet-media .slides::-webkit-scrollbar { display: none; }
.sheet-media .slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: center; background: linear-gradient(160deg, #cfe6e8, #e9dfc6); }
.sheet-media .slide > img, .sheet-media .slide > .scene, .sheet-media .slide > .glyph { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-media .slide.broken img { display: none; }
.sheet-media figcaption { position: absolute; right: 8px; bottom: 8px; max-width: 80%; font-size: 10.5px; background: rgba(0,0,0,.55); padding: 3px 7px; border-radius: 6px; }
.sheet-media figcaption a { color: #fff; text-decoration: none; }
.sheet-media figcaption.note { left: 8px; right: 8px; max-width: none; color: #fff; font-size: 12px; }
.sdots { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: center; gap: 6px; }
.sdots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width .2s; }
.sdots button.on { width: 20px; border-radius: 4px; background: var(--aqua); }
.sheet-media { overflow: visible; margin-bottom: 14px; }
.sheet-media .slides { border-radius: 16px; }
.access { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 10px; }
.access h3 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acc-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.acc-chips svg { width: 17px; height: 17px; color: var(--aqua); }
.acc-chips .acc-ticket svg, .acc-chips .acc-noon svg, .acc-chips .acc-sunset svg { color: #d48a1c; }
.acc-chips .acc-dress svg { color: #7a4b8f; }
.acc-dist { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: 13px; color: var(--muted); }
.acc-dist b { color: var(--fg); font-variant-numeric: tabular-nums; }
.acc-dist small { font-size: 11px; opacity: .8; }
.ph-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #cfe6e8, #e9dfc6); }
.sheet-media .slide .cap { top: 10px; bottom: auto; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: none; position: sticky; top: 0; z-index: 2; background: var(--bg); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.filters button small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.filters button[aria-selected="true"] { background: var(--aqua); border-color: var(--aqua); color: #fff; }
.filters button[aria-selected="true"] small { color: rgba(255,255,255,.85); }
.acc-chips .acc-turtles svg { color: #3f8f4a; }

.credits { max-width: 560px; margin: 10px auto 0; font-size: 12px; color: var(--muted); }
.credits summary { cursor: pointer; text-align: center; font-weight: 600; }
.credits ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.credits a { color: inherit; }

.credits { text-align: center; font-size: 11px; opacity: .6; margin: 6px auto 0; }
.credits a { color: var(--muted); text-decoration: none; }

/* header fits long titles (e.g. Greek) without touching the language selector */
.top { flex-wrap: nowrap; }
.brand { flex: 1 1 auto; min-width: 0; }
.brand > div { min-width: 0; }
.brand h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(16px, 4.6vw, 21px); }
.tagline { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.lang { flex: none; }
.lang select { max-width: 112px; font-size: 13px; padding: 6px 8px; }
@media (max-width: 380px) { .brand-mark { width: 28px; height: 28px; } .lang select { max-width: 96px; } }
