:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --ink: #14212b;
  --ink-2: #4a5a66;
  --muted: #7b8894;
  --line: #e6dfd3;
  --navy: #0f2a3d;
  --sea: #1f7a8c;
  --sea-soft: #e3f1f3;
  --terra: #d9643a;
  --terra-soft: #fbe9e0;
  --olive: #5b8a3c;
  --olive-soft: #e8f1df;
  --gold: #c9962b;
  --gold-soft: #f8efd9;
  --red: #c2413a;
  --red-soft: #f8e1df;
  --shadow: 0 1px 2px rgba(20, 33, 43, .06), 0 6px 24px rgba(20, 33, 43, .06);
  --radius: 16px;
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1820; --surface: #14232e; --surface-2: #182a36; --ink: #eef2f4; --ink-2: #b9c6cf; --muted: #8596a2;
    --line: #243845; --navy: #0a1c28; --sea: #47a9ba; --sea-soft: #16333c; --terra: #ec8a60; --terra-soft: #3a2419;
    --olive: #8fbf6b; --olive-soft: #1f2e18; --gold: #e2b556; --gold-soft: #33290f; --red: #ea7169; --red-soft: #3a1c1a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1820; --surface: #14232e; --surface-2: #182a36; --ink: #eef2f4; --ink-2: #b9c6cf; --muted: #8596a2;
  --line: #243845; --navy: #0a1c28; --sea: #47a9ba; --sea-soft: #16333c; --terra: #ec8a60; --terra-soft: #3a2419;
  --olive: #8fbf6b; --olive-soft: #1f2e18; --gold: #e2b556; --gold-soft: #33290f; --red: #ea7169; --red-soft: #3a1c1a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--sea); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--red); font-size: 14px; margin: 8px 0 0; }
[hidden] { display: none !important; }

/* ——— Login ——— */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 80% at 80% 0%, #1f7a8c 0%, #0f2a3d 55%, #0a1c28 100%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 22px; padding: 32px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.login-card h1 { font-size: 32px; margin: 8px 0 6px; }
.login-mark { font-size: 40px; }
.login-card .field { text-align: left; margin: 22px 0 14px; }
.who-pick { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); }
.who-pick label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* ——— Form elemanları ——— */
.field { display: block; }
.field > span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea, .inp {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.field textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s; color: var(--ink); }
.btn:hover { border-color: var(--sea); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .btn.primary { background: var(--sea); border-color: var(--sea); color: #06141b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--sea); border-color: var(--sea); color: #06141b; } }
.btn.accent { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn.wide { width: 100%; padding: 13px; }
.gbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gbtn:hover { border-color: var(--sea); }
.gbtn .g { width: 14px; height: 14px; flex: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ——— Kabuk ——— */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #dfe8ee; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 22px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 20px; }
.brand b { font-family: var(--display); font-size: 19px; color: #fff; display: block; font-weight: 600; }
.brand span { font-size: 12px; color: #9fb3c1; }
.nav-btn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; border: 0; background: transparent; color: #c5d3dc; font-weight: 500; cursor: pointer; text-align: left; width: 100%; }
.nav-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-btn.on { background: rgba(255,255,255,.12); color: #fff; }
.nav-btn .ico { width: 20px; text-align: center; font-size: 17px; }
.side-foot { margin-top: auto; font-size: 12px; color: #8ea3b1; padding: 8px; display: grid; gap: 8px; }
.side-foot button { background: rgba(255,255,255,.08); border: 0; color: #dfe8ee; border-radius: 9px; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.main { min-width: 0; }
.view { max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }
.topbar { display: none; }
.bottomnav { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--terra); }

/* ——— Kartlar ——— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.cards { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--display); font-size: 26px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(120deg, rgba(15,42,61,.96), rgba(31,122,140,.88)), radial-gradient(80% 120% at 100% 0%, #e0703f, transparent 60%); }
.hero h1 { font-size: 36px; }
.hero p { color: #d5e4ea; margin: 8px 0 0; max-width: 560px; }
.hero .route-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; font-weight: 600; font-size: 14px; }
.hero .route-line span.dot { opacity: .5; }
.hero .count { position: absolute; right: 28px; top: 26px; text-align: right; }
.hero .count b { font-family: var(--display); font-size: 48px; display: block; line-height: 1; }
.hero .count span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #cfe0e7; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge.sea { background: var(--sea-soft); color: var(--sea); border-color: transparent; }
.badge.terra { background: var(--terra-soft); color: var(--terra); border-color: transparent; }
.badge.olive { background: var(--olive-soft); color: var(--olive); border-color: transparent; }
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }

.guide { display: flex; gap: 12px; background: var(--gold-soft); border-radius: 13px; padding: 13px 15px; color: var(--ink); font-size: 14px; }
.guide .gi { font-size: 20px; line-height: 1.2; }
.guide b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: 2px; }

/* ——— Rezervasyon ——— */
.bk { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.bk:first-child { border-top: 0; padding-top: 0; }
.bk .bi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--sea-soft); }
.bk.flight .bi { background: var(--terra-soft); }
.bk h4 { margin: 0; font-size: 15px; }
.bk .when { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.bk .det { font-size: 13px; color: var(--muted); margin-top: 3px; }
.bk .btnrow { margin-top: 9px; }

/* ——— Rota / günler ——— */
.days-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.days-nav::-webkit-scrollbar { display: none; }
.dchip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 9px 14px; cursor: pointer; text-align: left; }
.dchip b { display: block; font-size: 14px; }
.dchip span { font-size: 12px; color: var(--muted); }
.dchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dchip.on span { color: #b9ccd6; }
.day { padding: 0; overflow: hidden; }
.day-head { padding: 22px 22px 16px; display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.day-date { display: flex; gap: 14px; align-items: center; }
.day-num { width: 56px; height: 56px; border-radius: 15px; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1; flex: none; }
.day-num b { font-family: var(--display); font-size: 24px; display: block; }
.day-num span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.day-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.day-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.day-body > div { padding: 18px 22px 22px; min-width: 0; }
.day-body > div + div { border-left: 1px solid var(--line); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 7px 0; position: relative; font-size: 14px; }
.tl li::before { content: ""; position: absolute; left: 66px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); }
.tl li::after { content: ""; position: absolute; left: 69.5px; top: 25px; bottom: -9px; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; padding-top: 1px; }
.tl .x { padding-left: 16px; }
.gframe { width: 100%; height: 300px; border: 0; border-radius: 13px; background: var(--surface-2); display: block; }
.gframe-wrap { position: relative; }
.gframe-ph { height: 300px; border-radius: 13px; background: var(--surface-2); border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; }
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opt { border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: var(--surface-2); }
.opt.sel { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-soft); }
.opt h4 { margin: 0 0 3px; font-size: 14.5px; }
.opt p { margin: 0 0 9px; font-size: 13px; color: var(--ink-2); }
.mini-places { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

/* ——— Oylama ——— */
.votes { display: grid; gap: 6px; }
.vrow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vrow .nm { width: 52px; color: var(--muted); font-weight: 600; font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on[data-v="evet"] { background: var(--olive); color: #fff; }
.seg button.on[data-v="belki"] { background: var(--gold); color: #fff; }
.seg button.on[data-v="hayir"] { background: var(--red); color: #fff; }
.seg.ro button { cursor: default; }
.vote-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }

/* ——— Yerler ——— */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.place { display: flex; flex-direction: column; gap: 10px; }
.place-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.place h3 { font-size: 17px; }
.place .area { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.place p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.place .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.place .foot { margin-top: auto; display: grid; gap: 10px; padding-top: 4px; }
.consensus { font-size: 12px; font-weight: 700; }
.decide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.decide .kpi { cursor: pointer; }
.decide .kpi.on { outline: 2px solid var(--sea); }

/* ——— Rehber ——— */
.rates-bar { background: var(--sea-soft); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.subtabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 16px; overflow-x: auto; }
.subtabs button { flex: 1; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.subtabs button.on { background: var(--navy); color: #fff; }
.gstar { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.gstar .muted { font-weight: 500; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.price-row:first-child { border-top: 0; }
.price-row b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.menu { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.src { font-size: 12px; color: var(--muted); }
.src.warn { color: var(--terra); background: var(--terra-soft); border-radius: 10px; padding: 8px 10px; }
.kvs { display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv > span { color: var(--muted); font-weight: 600; }
.dish { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.dish:first-of-type { border-top: 0; }
.where { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; cursor: pointer; font-size: 13px; text-align: left; color: var(--ink); }
.where:hover { border-color: var(--sea); }
.where b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .dish { grid-template-columns: 1fr; gap: 8px; }
  .kv { grid-template-columns: 96px 1fr; }
  .price-row { flex-direction: column; gap: 1px; }
  .price-row b { text-align: left; color: var(--sea); }
  .where { flex-direction: column; gap: 2px; }
}

/* ——— Bütçe ——— */
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.catrow { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; font-size: 13.5px; padding: 7px 0; }
.catrow .n { font-weight: 600; }
.catrow .a { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ring { width: 150px; height: 150px; flex: none; }
.budget-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.xlist { display: grid; }
.xrow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.xrow:hover { background: var(--surface-2); }
.xrow:first-child { border-top: 0; }
.xrow .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); }
.xrow .tt { font-weight: 600; font-size: 14px; }
.xrow .sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.xrow .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.xrow .amt small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.xrow.zero .amt { color: var(--terra); }
.owe { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 13px; background: var(--sea-soft); font-size: 14px; }
.owe b { font-family: var(--display); font-size: 20px; }

/* ——— Liste ——— */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--olive); margin-top: 1px; flex: none; cursor: pointer; }
.check .ct { flex: 1; font-size: 14px; }
.check.done .ct { text-decoration: line-through; color: var(--muted); }
.check .by { font-size: 11.5px; color: var(--muted); }
.check .x { opacity: .35; border: 0; background: none; cursor: pointer; font-size: 16px; padding: 0 4px; }
.check .x:hover { opacity: 1; color: var(--red); }
.addrow { display: flex; gap: 8px; margin-top: 12px; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.progress .bar { flex: 1; }
.tip { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tip:first-child { border-top: 0; padding-top: 0; }
.tip b { display: block; margin-bottom: 2px; }

/* ——— Harita ——— */
.mapview { position: fixed; inset: 0 0 0 250px; display: none; z-index: 5; }
.mapview.on { display: block; }
#map { position: absolute; inset: 0; background: var(--surface-2); }
.map-panel { position: absolute; z-index: 500; top: 16px; left: 16px; width: 300px; max-height: calc(100% - 32px); overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 16px; }
.map-panel h3 { font-size: 20px; }
.map-panel .grp { margin-top: 14px; }
.map-panel .grp > b { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.toggle { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.toggle input { accent-color: var(--sea); width: 17px; height: 17px; }
.toggle .sw { width: 22px; height: 6px; border-radius: 3px; flex: none; }
.toggle .mk { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; flex: none; font-weight: 700; }
.map-toggle-btn { display: none; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.pin > span { transform: rotate(45deg); font-size: 14px; line-height: 1; }
.pin.faded { opacity: .45; }
.ppin { width: 22px; height: 22px; border-radius: 6px; background: #2563eb; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; font: 13.5px/1.45 var(--font); min-width: 230px; }
.pop h4 { margin: 0 0 2px; font-family: var(--display); font-size: 17px; }
.pop p { margin: 6px 0 10px; color: var(--ink-2); }
.pop .btnrow { gap: 6px; }
.pop .gbtn { font-size: 12px; padding: 5px 9px; }

/* ——— Modal ——— */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 18, 25, .55); z-index: 2000; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: rise .2s; }
.modal h3 { font-size: 22px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }
.segsel { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.segsel label { flex: 1; text-align: center; padding: 9px 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-left: 1px solid var(--line); background: var(--surface-2); }
.segsel label:first-child { border-left: 0; }
.segsel input { display: none; }
.segsel label:has(input:checked) { background: var(--navy); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 3000; box-shadow: var(--shadow); animation: rise .2s; }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--terra); color: #fff; font-size: 28px; box-shadow: 0 10px 30px rgba(217,100,58,.45); cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.sheet-map { width: 100%; height: 260px; border: 0; border-radius: 13px; margin: 12px 0; }

/* ——— Mobil ——— */
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .two, .day-body { grid-template-columns: 1fr; }
  .day-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .decide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 800; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .topbar b { font-family: var(--display); font-size: 18px; font-weight: 600; }
  .topbar .who { font-size: 12px; background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 5px 10px; }
  .bottomnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; cursor: pointer; }
  .bottomnav button .ico { font-size: 19px; line-height: 1.1; filter: grayscale(1); opacity: .7; }
  .bottomnav button.on { color: var(--sea); }
  .bottomnav button.on .ico { filter: none; opacity: 1; }
  .view { padding: 18px 16px calc(var(--nav-h) + 40px); }
  h2 { font-size: 23px; }
  .hero { padding: 22px 18px; border-radius: 18px; }
  .hero h1 { font-size: 27px; padding-right: 76px; }
  .hero .count { right: 18px; top: 20px; }
  .hero .count b { font-size: 36px; }
  .kpi { padding: 13px; }
  .kpi .v { font-size: 21px; }
  .card { padding: 16px; }
  .day-head { padding: 16px; }
  .day-body > div { padding: 14px 16px 18px; }
  .pgrid { grid-template-columns: 1fr; }
  .mapview { inset: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom)) 0; top: calc(52px + env(safe-area-inset-top)); }
  .map-panel { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 55%; transform: translateY(calc(100% + 20px)); transition: transform .25s; }
  .map-panel.open { transform: none; }
  .map-toggle-btn { display: inline-flex; position: absolute; z-index: 600; left: 12px; bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  .fab { bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); right: 16px; }
  .toast { bottom: calc(var(--nav-h) + 24px); }
  .catrow { grid-template-columns: 96px 1fr 76px; gap: 8px; }
  .gframe, .gframe-ph { height: 240px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .modal { padding: 18px; border-radius: 18px; }
}
