/* Görünür İstanbul: one stylesheet for every page. Map first, short cards, buttons instead of dropdowns. */
:root {
  --bg: #0b1418; --panel: rgba(11, 20, 24, 0.86); --panel-solid: #101d22; --line: rgba(207, 216, 214, 0.14);
  --ink: #eef2f0; --ink-2: #b9c6c3; --ink-3: #7f918e;
  --sea: #4fb3d9; --seen: #4fd1c5; --gap: #ff5d73; --d100: #ff7a59; --sand: #f2b35b;
  --radius: 14px; --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* top navigation */
.topnav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 4px;
  padding: 12px 18px; background: linear-gradient(180deg, rgba(11, 20, 24, 0.96), rgba(11, 20, 24, 0.72) 65%, rgba(11, 20, 24, 0)); pointer-events: none; }
.topnav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 13px; text-decoration: none; margin-right: auto; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--seen); box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.18); }
.topnav a[data-page] { text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.topnav a[data-page]:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.topnav a[data-page].on { color: var(--bg); background: var(--ink); }
.topnav a[data-page] { white-space: nowrap; }
.topnav .short { display: none; }

/* full screen map behind the story */
#map { position: fixed; inset: 0; z-index: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(11, 20, 24, 0.7) !important; color: var(--ink-3); }
.maplibregl-ctrl-attrib a { color: var(--ink-2); }

/* scroll story */
.story { position: relative; z-index: 10; pointer-events: none; }
.step { min-height: 100vh; display: flex; align-items: center; padding: 0 5vw; }
.step.right { justify-content: flex-end; }
.card { pointer-events: auto; width: min(420px, 100%); background: var(--panel); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card .kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.card h2 { font-size: 30px; line-height: 1.12; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 15px; }
.card .num { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.card .num b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.card .num span { color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.card .go { display: inline-flex; margin-top: 16px; font-size: 14px; color: var(--seen); text-decoration: none; font-weight: 600; }
.hero .card { width: min(560px, 100%); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0 0 14px; letter-spacing: -0.03em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); text-decoration: none; font-size: 14px; cursor: pointer; }
.pill.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* step navigator (right side) */
.stepnav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.stepnav button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; }
.stepnav button.on { background: var(--ink); transform: scale(1.3); }
.stepnav button:focus-visible { outline: 2px solid var(--seen); outline-offset: 3px; }

/* segmented buttons */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 11px; border-radius: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.seg-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px; }

/* panorama strip and four views */
.pano-strip { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
.views4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
.views4 figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.views4 figcaption { position: absolute; left: 6px; top: 6px; font-size: 11px; background: rgba(0, 0, 0, 0.55); padding: 2px 7px; border-radius: 6px; }

/* app pages: map + side panel */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(340px, 420px) 1fr; }
.app.wide { grid-template-columns: minmax(440px, 56%) 1fr; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.filters .seg-label { margin-top: 10px; }
.app.wide .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.app .side { position: relative; z-index: 5; overflow: auto; padding: 72px 20px 24px; background: var(--panel-solid); border-right: 1px solid var(--line); }
.app .side h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.02em; }
.app .side .lead { color: var(--ink-2); margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.app .mapwrap { position: relative; }
.app .mapwrap #map { position: absolute; inset: 0; }

/* search */
.searchbar { display: flex; gap: 8px; margin: 14px 0 8px; }
.searchbar input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: var(--ink); font-size: 15px; }
.searchbar input:focus { outline: 2px solid var(--seen); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chips button:hover { color: var(--ink); border-color: var(--ink-3); }
.status { font-size: 12px; color: var(--ink-3); margin: 10px 0; min-height: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid transparent; background: #0f1a1e; aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover, .tile.on { border-color: var(--seen); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: 11px; color: var(--ink-2);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }

/* dossier / lightbox */
.dossier { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(5, 10, 12, 0.92); overflow: auto; }
.dossier.open { display: block; }
.dossier .inner { max-width: 1100px; margin: 64px auto 40px; padding: 0 20px; }
.dossier .close { position: fixed; top: 14px; right: 18px; z-index: 81; }
.dossier h3 { font-size: 24px; margin: 0 0 6px; }
.dossier .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.dossier .desc { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 14px 0; }
.dossier .views4 { grid-template-columns: repeat(4, 1fr); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 14px 0; }
.facts div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.facts b { display: block; color: var(--ink); font-size: 15px; margin-top: 2px; }
.items { display: flex; flex-wrap: wrap; gap: 6px; }
.items span { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.items span.p { border-color: rgba(79, 209, 197, 0.55); color: var(--ink); }
details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
details summary { cursor: pointer; color: var(--ink); }
.note { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* mobile */
@media (max-width: 760px) {
  .app.wide { grid-template-columns: 1fr; }
  .app.wide .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .topnav { padding: 10px 12px; gap: 0; }
  .topnav a[data-page] { padding: 7px 9px; font-size: 13px; }
  .topnav .long { display: none; }
  .topnav .short { display: inline; }
  .brand span { display: none; }
  .step, .step.right { align-items: flex-end; justify-content: center; padding: 0 16px 28px; }
  .card { padding: 18px; }
  .card h2 { font-size: 24px; }
  .stepnav { right: 8px; }
  .app { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .app .side { order: 2; padding: 16px; border-right: 0; border-top: 1px solid var(--line); }
  .app .mapwrap { order: 1; }
  .dossier .views4 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* before / after comparison */
.compare { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #0f1a1e; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 8px; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); }
.compare .tag.l { left: 8px; } .compare .tag.r { right: 8px; color: var(--sand); }

/* v3: wide media (1280x704 sources), videos, look buttons */
.compare.wide { aspect-ratio: 1280 / 704; }
.card.wide { width: min(620px, 100%); }
.media { border-radius: 12px; overflow: hidden; background: #0f1a1e; border: 1px solid var(--line); }
.media video { display: block; width: 100%; aspect-ratio: 1280 / 704; background: #000; }
.label-ai { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(242, 179, 91, 0.6);
  color: var(--sand); margin-top: 10px; }
.meta-line { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.meta-line a { color: var(--ink-2); }
.stage { position: relative; overflow: auto; padding: 72px 28px 28px; background: radial-gradient(1200px 600px at 70% 0%, #13252b, var(--bg)); }
.stage .frame { max-width: 1180px; margin: 0 auto; }
.stage .frame .caption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chain { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; font-size: 12px; color: var(--ink-3); }
.chain span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.chain span.on { border-color: var(--seen); color: var(--ink); }
@media (max-width: 760px) {
  .stage { padding: 60px 12px 16px; }
  .app.media-first { grid-template-rows: auto 1fr; }
  .app .stage { order: 1; }
  .topnav a[data-page] { padding: 7px 7px; font-size: 12px; }
}
.card .label-ai { margin-right: 12px; }
