:root {
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --text-2: #a3aec4;
  --text-3: #6b7790;
  --accent: #5cc8ff;
  --accent-2: #8b7bff;
  --warm: #ffb454;
  --hot: #ff6b6b;
  --cold: #6ea8ff;
  --rain: #4fa3ff;
  --green: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(92, 200, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(139, 123, 255, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.num, .tab-num { font-variant-numeric: tabular-nums; }

.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.app { min-height: 100%; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: linear-gradient(to bottom, rgba(10, 15, 30, 0.92), rgba(10, 15, 30, 0.75));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.loc-pill {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; text-align: left;
}
.loc-pill .ico { color: var(--accent); }
.loc-pill .chev { color: var(--text-3); width: 18px; height: 18px; }
.loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer;
}
.icon-btn:active, .loc-pill:active { transform: scale(0.98); }
.icon-btn.spin .ico { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- View ---------- */
.view {
  flex: 1;
  width: 100%; max-width: 860px; margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);
  outline: none;
}
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 26px 2px 10px;
}
.section-title h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.section-title .hint { font-size: 12px; color: var(--text-3); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 220px at 85% 0%, rgba(92, 200, 255, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.hero-top { display: flex; align-items: center; gap: 8px; }
.hero-icon { width: 108px; height: 108px; margin: -14px -8px -14px -14px; flex: none; }
.hero-temp { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.hero-temp sup { font-size: 28px; font-weight: 600; vertical-align: top; position: relative; top: 6px; margin-left: 2px; color: var(--text-2); }
.hero-desc { margin-top: 6px; font-weight: 600; }
.hero-meta { font-size: 13px; color: var(--text-2); }
.hero-updated { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--text-3); }

.params {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px;
}
@media (max-width: 480px) { .params { grid-template-columns: repeat(2, 1fr); } }
.param {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
}
.param-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.param-value { font-size: 17px; font-weight: 700; margin-top: 2px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.param-value small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.param-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-up { color: var(--warm); }
.trend-down { color: var(--cold); }

.wind-arrow { width: 16px; height: 16px; display: inline-block; transition: transform .3s; }
.wind-arrow svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ---------- Segmented ---------- */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }

/* ---------- Charts ---------- */
.chart-card { padding: 12px 6px 6px; }
.chart-block + .chart-block { margin-top: 4px; }
.chart-label {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 0 10px; font-size: 12px; color: var(--text-2); font-weight: 600;
}
.chart-label .key { display: inline-flex; align-items: center; gap: 5px; }
.chart-label .sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-label .sw.bar { height: 9px; width: 7px; }
.chart-label .sw.dash { background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px) !important; }
.uplot { font-family: inherit; }
.uplot .u-legend { display: none; }
.u-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(14, 21, 40, 0.95); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.u-tooltip b { display: block; margin-bottom: 2px; }

/* ---------- Hourly table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.hourly { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.hourly th, table.hourly td { padding: 8px 10px; text-align: right; white-space: nowrap; }
table.hourly th { position: sticky; top: 0; background: var(--bg-2); color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
table.hourly td:first-child, table.hourly th:first-child { text-align: left; position: sticky; left: 0; background: var(--bg-2); z-index: 1; }
table.hourly tr + tr td { border-top: 1px solid var(--border); }
table.hourly tr.day-row td { background: rgba(92, 200, 255, 0.08); color: var(--accent); font-weight: 700; text-align: left; position: static; }
table.hourly img { width: 28px; height: 28px; vertical-align: middle; margin: -6px 0; }
.td-wind { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }

/* ---------- Daily ---------- */
.daily { list-style: none; margin: 0; padding: 4px 0; }
.daily li {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 74px 38px 1fr 76px;
  padding: 8px 12px;
}
.daily li + li { border-top: 1px solid var(--border); }
.daily .d-day { font-weight: 700; }
.daily .d-day small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.daily img { width: 38px; height: 38px; }
.d-range { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.d-range .lo { color: var(--text-2); text-align: right; }
.d-range .hi { font-weight: 700; }
.range-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); }
.range-bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.d-extra { font-size: 12px; color: var(--text-2); text-align: right; line-height: 1.35; font-variant-numeric: tabular-nums; }
.d-extra .rain { color: var(--rain); font-weight: 600; }
.d-extra .wind { display: inline-flex; align-items: center; gap: 3px; }
.d-extra .wind .wind-arrow { width: 12px; height: 12px; }

/* ---------- Misc cards ---------- */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 img { width: 26px; height: 26px; margin: -4px 0; }
.card .muted { color: var(--text-3); font-size: 12px; margin: 10px 0 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.lvl-0 { background: rgba(74, 222, 128, 0.15); color: #86efac; }
.lvl-1 { background: rgba(250, 204, 21, 0.15); color: #fde047; }
.lvl-2 { background: rgba(251, 146, 60, 0.18); color: #fdba74; }
.lvl-3 { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }

.dust-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.dust-day { text-align: center; font-size: 12px; color: var(--text-2); }
.dust-col { height: 64px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.dust-col span { width: 60%; border-radius: 6px 6px 2px 2px; min-height: 3px; background: linear-gradient(to top, #b45309, #fbbf24); }
.dust-day b { display: block; color: var(--text); font-variant-numeric: tabular-nums; }

.footer-note { margin: 28px 4px 0; font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- States ---------- */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-2);
}
.empty .ico { width: 44px; height: 44px; color: var(--accent); margin-bottom: 10px; }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 18px; }
.empty p { margin: 0 auto; max-width: 420px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--accent); color: #04121f; font-weight: 700;
}
.soon-list { text-align: left; max-width: 420px; margin: 18px auto 0; padding: 0; list-style: none; }
.soon-list li { padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.soon-list li + li { margin-top: 6px; }

/* ---------- Sources ---------- */
.src-group + .src-group { margin-top: 12px; }
.src-group h3 { margin: 0 0 8px; }
.src-group p.desc { margin: -4px 0 10px; font-size: 13px; color: var(--text-2); }
.src-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .src-links { grid-template-columns: 1fr; } }
.src-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: rgba(0,0,0,0.18); border: 1px solid var(--border);
}
.src-links a:active { background: var(--surface-2); }
.src-links .fav { width: 20px; height: 20px; border-radius: 5px; flex: none; background: var(--surface-2); }
.src-links .t { min-width: 0; flex: 1; }
.src-links .t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-links .t small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); text-decoration: none; font-size: 10.5px; font-weight: 600;
  position: relative;
}
.tabbar a .ico { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* ---------- Location sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: 560px; max-height: 88vh;
  margin: auto auto 0; border-radius: 22px 22px 0 0;
  background: var(--bg-2); color: var(--text);
  border-top: 1px solid var(--border);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 22px; border: 1px solid var(--border); } }
.sheet::backdrop { background: rgba(3, 6, 14, 0.6); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetUp .22s ease-out; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }
.sheet-inner { padding: 16px 16px calc(20px + var(--safe-b)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; height: 48px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.search:focus-within { border-color: rgba(92, 200, 255, 0.5); }
.search .ico { color: var(--text-3); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 16px;
}
.gps-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 10px; padding: 12px; border-radius: 14px; cursor: pointer;
  background: rgba(92, 200, 255, 0.1); border: 1px solid rgba(92, 200, 255, 0.25);
  color: var(--accent); font-weight: 700;
}
.sheet-msg { font-size: 13px; color: var(--warm); margin: 10px 2px 0; }
.list-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 18px 2px 6px; }
.loc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.loc-list li { display: flex; align-items: center; gap: 4px; }
.loc-list li + li { border-top: 1px solid var(--border); }
.loc-item {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; background: none; border: 0; cursor: pointer; text-align: left;
}
.loc-item .flag { font-size: 22px; width: 28px; text-align: center; flex: none; }
.loc-item .t { min-width: 0; }
.loc-item b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-item small { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--text-3); }
.star-btn[aria-pressed="true"] { color: var(--warm); }
.star-btn[aria-pressed="true"] .ico { fill: currentColor; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 40;
  transform: translateX(-50%);
  padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(30, 40, 66, 0.97); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: toastIn .2s ease-out;
  max-width: calc(100% - 32px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- İndeksler ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
}
.chip small { font-size: 11px; color: var(--text-3); font-weight: 600; }
.chip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.idx-card { margin-top: 12px; padding: 14px 10px 10px; scroll-margin-top: 84px; }
.idx-card > .idx-head, .idx-card > .idx-sum, .idx-card > .muted { padding: 0 6px; }
.idx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.idx-head h3 { margin: 0; font-size: 18px; flex-direction: column; align-items: flex-start; gap: 0; }
.idx-head h3 small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.idx-val { text-align: right; font-size: 26px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.idx-val small { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.idx-val.pos { color: #fca5a5; }
.idx-val.warm { color: #fca5a5; }
.idx-val.neg { color: #93c5fd; }
.idx-sum { font-size: 13.5px; color: var(--text-2); margin: 8px 0 10px; }
.idx-sum b { color: var(--text); }
.mjo-wrap { display: flex; justify-content: center; padding: 4px 6px; }
.mjo-svg { width: 100%; max-width: 380px; height: auto; font-family: inherit; }
.mjo-ax { stroke: rgba(255,255,255,0.12); stroke-width: 0.6; }
.mjo-c { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.25); stroke-width: 0.7; }
.mjo-ph { fill: var(--text-3); font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.mjo-tk { fill: var(--text-3); font-size: 6px; text-anchor: middle; }
.mjo-reg { fill: var(--text-2); font-size: 6.5px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.03em; }
.mjo-last { fill: #ffb454; font-size: 7px; font-weight: 700; text-anchor: middle; }

/* ---------- Modeller ---------- */
.model-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.model-chips::-webkit-scrollbar { display: none; }
.mchip {
  flex: none; display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left;
  padding: 7px 12px 7px 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); opacity: 0.55;
  transition: opacity .15s, border-color .15s;
}
.mchip[aria-pressed="true"] { opacity: 1; border-color: rgba(255,255,255,0.18); background: var(--surface-2); }
.mchip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mchip b { display: block; font-size: 13px; }
.mchip small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctrl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 8px 0 10px; }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 34px 8px 12px; cursor: pointer;
}
.select::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; pointer-events: none;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg);
}
.select select option { background: var(--bg-2); }
table.cmp td, table.cmp th { text-align: center; }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; }
table.cmp td small { color: var(--text-3); }
table.cmp td.na { color: var(--text-3); }
table.cmp .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.prob-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; }
.prob-day { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-2); text-align: center; }
.prob-day .pd-name { font-weight: 600; line-height: 1.1; }
.prob-day .pd-name small { display: block; color: var(--text-3); font-weight: 500; }
.pd-bar { width: 14px; height: 46px; border-radius: 4px; background: rgba(255,255,255,0.06); display: flex; align-items: flex-end; margin: 4px 0; overflow: hidden; }
.pd-bar i { display: block; width: 100%; background: linear-gradient(to top, #2563eb, #60a5fa); }
.prob-day b { color: var(--text); font-variant-numeric: tabular-nums; }
.prob-day > small { font-size: 10px; color: var(--text-3); white-space: nowrap; }

/* ---------- Haritalar ---------- */
body.map-mode .view { max-width: none; padding: 0; }
body.map-mode .footer-note { display: none; }
.map-wrap { position: relative; width: 100%; overflow: hidden; background: #0b0f1a; }
#map { position: absolute; inset: 0; background: #0b0f1a; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { background: rgba(10,15,30,0.6) !important; color: var(--text-3) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.field-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.map-top { position: absolute; z-index: 600; left: 0; right: 0; top: 0; padding: 10px 12px 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-chips, .map-sub { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.map-chips::-webkit-scrollbar, .map-sub::-webkit-scrollbar { display: none; }
.map-chips button {
  flex: none; border: 1px solid var(--border); cursor: pointer;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-2);
  background: rgba(10,15,30,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.map-chips button[aria-pressed="true"] { color: #04121f; background: var(--accent); border-color: var(--accent); }
.map-sub { align-items: center; }
.map-sub .seg { flex: none; background: rgba(10,15,30,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.map-sub .seg button { white-space: nowrap; padding: 5px 10px; font-size: 12px; }
.select.sm select { padding: 6px 30px 6px 10px; font-size: 12px; background: rgba(10,15,30,0.78); backdrop-filter: blur(8px); }
.map-bottom { position: absolute; z-index: 600; left: 0; right: 0; bottom: 18px; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; pointer-events: none; }
.map-legend {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; pointer-events: auto;
  padding: 5px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--text-2);
  background: rgba(10,15,30,0.78); backdrop-filter: blur(8px);
}
.map-legend i { display: block; width: 120px; height: 8px; border-radius: 4px; }
.time-bar {
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  padding: 8px 12px 8px 8px; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(10,15,30,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.time-bar .play { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; cursor: pointer; background: var(--accent); }
.time-bar .play svg { width: 18px; height: 18px; fill: #04121f; }
.time-bar input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.time-label { flex: none; min-width: 92px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-label small { color: var(--text-3); font-weight: 600; }
.map-readout {
  position: absolute; z-index: 600; left: 12px; right: 12px; bottom: 112px;
  padding: 8px 12px; border-radius: 12px; font-size: 13px; border: 1px solid var(--border);
  background: rgba(10,15,30,0.9); backdrop-filter: blur(8px);
}
.map-readout small { display: block; color: var(--text-3); font-size: 11px; }
.map-loading { position: absolute; z-index: 650; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.map-loading span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(92,200,255,0.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@media (min-width: 900px) {
  .map-bottom { right: auto; width: 640px; }
  .map-readout { right: auto; width: 616px; }
}

/* ---------- Deprem ---------- */
.q-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.q-controls .seg button { padding: 6px 11px; white-space: nowrap; }
.q-search { display: flex; gap: 8px; }
.q-search .search { flex: 1; }
.q-search .icon-btn { width: 48px; height: 48px; }
.q-results { margin: 4px 0 0; }
.q-place { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(92,200,255,0.08); border: 1px solid rgba(92,200,255,0.2); }
.q-place .flag { font-size: 18px; }
.q-place b { margin-right: auto; }
.q-place .seg button { padding: 4px 8px; font-size: 12px; }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm .ico { width: 18px; height: 18px; }
.q-summary { margin-top: 12px; }
.q-sum-row { display: flex; align-items: center; gap: 14px; }
.q-big { font-size: 30px; font-weight: 800; line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.q-sum-text { font-size: 13px; color: var(--text-2); }
.q-sum-text b { color: var(--text); }
.q-map-card { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
#qMap { height: 320px; background: #0b0f1a; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: rgba(14,21,40,0.97); color: var(--text); border: 1px solid var(--border); }
.leaflet-popup-content { font-family: inherit; font-size: 13px; margin: 10px 12px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-3); }
.q-list { list-style: none; margin: 12px 0 0; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.q-list li + li { border-top: 1px solid var(--border); }
.q-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; cursor: pointer; text-align: left; }
.q-item:active { background: var(--surface-2); }
.q-mag { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: #0a0f1e; }
.q-mag.q1 { background: #7c8db5; } .q-mag.q2 { background: #4ade80; } .q-mag.q3 { background: #facc15; }
.q-mag.q4 { background: #fb923c; } .q-mag.q5 { background: #f87171; } .q-mag.q6 { background: #c084fc; }
.q-main { min-width: 0; }
.q-main b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-main small { display: block; color: var(--text-3); font-size: 12px; }
.q-place[hidden] { display: none; }
