/* Tır Rota arayüzü. Tek yazı tipi ailesi (sistem), sınırlı palet, dokunma hedefi ≥ 48 px, metin ≥ 16 px.
   Faz 4b-2c yerleşimi: telefon dikey = üstte tek kart + altta çekmece (küçük / orta / tam); telefon yatay = solda dar panel
   (genişliğin en fazla %40'ı); masaüstü = solda 420 px panel. --gh (görünür alan yüksekliği), --ust-y ve --alt-y (haritanın
   üstten ve alttan kapanan kısmı) app.js yerlesimGuncelle() tarafından gerçek ölçülerden yazılır. */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --yuzey: #ffffff;
  --yuzey-2: #f3f4f6;
  --metin: #111827;
  --soluk: #4b5563;
  --cizgi: #d1d5db;
  --ana: #1d4ed8;
  --ana-metin: #ffffff;
  --rota: #2563eb;
  --dikkat: #ea580c;
  --tehlike: #dc2626;
  --odak: #1d4ed8;
  --golge: 0 1px 3px rgba(0, 0, 0, 0.18);
  --r: 12px;
  --gh: 100dvh;
  --ust-y: 64px;
  --alt-y: 0px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
:root[data-tema="koyu"] {
  --bg: #0f1115;
  --yuzey: #171a21;
  --yuzey-2: #222632;
  --metin: #f3f4f6;
  --soluk: #a1a1aa;
  --cizgi: #333948;
  --ana: #2563eb;
  --ana-metin: #ffffff;
  --rota: #60a5fa;
  --dikkat: #fb923c;
  --tehlike: #f87171;
  --odak: #93c5fd;
  --golge: 0 1px 3px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.4; color: var(--metin); background: var(--bg); overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; }

#map { position: fixed; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 12px; }
.maplibregl-ctrl-group button { width: 44px; height: 44px; }
/* Atıf her zaman görünür: çekmecenin / alt çubuğun hemen üstünde */
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: var(--alt-y); }
/* Pusula (Faz 6b-2c): sağ üstte; telefonda üst kartın (navigasyonda talimat kartının) hemen altında, masaüstünde + / − altında.
   Yalnız harita döndürülmüş ya da eğikken görünür (app.js pusulaGuncelle). İğnenin kırmızı ucu kuzey. */
/* "Rotadan çıktınız" şeridi açıkken (Faz 6b-2d) pusula şeridin altına iner: --cikti-y = şerit yüksekliği + 8 px (app.js ciktiGoster) */
.maplibregl-ctrl-top-right { top: calc(var(--ust-y) + var(--cikti-y, 0px)); right: var(--sr); }
.pusula { background: var(--yuzey); border: 1px solid var(--cizgi); }
.pusula button { display: grid; place-items: center; }
.pusula-igne { transition: transform 0.1s linear; }
.pusula-igne .kuzey { fill: #dc2626; }
.pusula-igne .guney { fill: var(--soluk); }

.ikon { width: 24px; height: 24px; flex: none; }
.ikon.kucuk { width: 20px; height: 20px; }
.logo { font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.logo b { font-weight: 800; color: var(--ana); }
.logo.buyuk { font-size: 32px; display: block; margin-bottom: 16px; }

/* ---------------------------------------------------------------- üst bölüm (telefon dikey) */
.panel { display: contents; }
.ust { display: none; align-items: center; justify-content: space-between; background: var(--yuzey); border-radius: var(--r);
  padding: 0 4px 0 14px; }
.ikon-dugme { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; border-radius: 10px; cursor: pointer; color: var(--metin); flex: none; }
.ikon-dugme:hover { background: var(--yuzey-2); }
.ikon-dugme.buyuk { min-width: 56px; min-height: 56px; border: 1px solid var(--cizgi); }

.arama { position: fixed; z-index: 12; top: calc(8px + var(--st)); left: calc(8px + var(--sl)); right: calc(8px + var(--sr));
  background: var(--yuzey); border-radius: var(--r); box-shadow: var(--golge); padding: 2px 4px; }
.ozet { display: flex; align-items: center; min-height: 48px; }
.ozet-dugme { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
  text-align: left; padding: 0 4px 0 10px; font-size: 17px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.ozet-metin { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozet-dugme .ikon { color: var(--soluk); }
.alan { display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; min-height: 50px; }
.alan + .alan { border-top: 1px solid var(--cizgi); }
.alan-ikon { color: var(--soluk); }
.alan input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 12px 0; outline: none; }
.alan input::placeholder { color: var(--soluk); }
.temizle { min-width: 48px; min-height: 48px; border: 0; background: transparent; color: var(--soluk); cursor: pointer; border-radius: 8px; flex: none; }
.oneriler { list-style: none; margin: 4px 0 0; padding: 0; max-height: calc(var(--gh) * 0.45); overflow-y: auto; border-top: 1px solid var(--cizgi); }
.oneriler li button { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; min-height: 52px; cursor: pointer;
  display: block; border-radius: 8px; }
.oneriler li button:hover, .oneriler li button:focus-visible { background: var(--yuzey-2); }
.oneri-ad { display: block; font-size: 16px; }
.oneri-alt { display: block; font-size: 16px; color: var(--soluk); }
.ipucu { margin: 6px 10px 6px; font-size: 16px; color: var(--soluk); }
.hata { margin: 6px 10px; color: var(--tehlike); font-size: 16px; }

/* ---------------------------------------------------------------- rota kartı: alt çekmece (telefon dikey) */
.kart { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--yuzey);
  border-radius: 16px 16px 0 0; box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.25);
  padding: 0 calc(14px + var(--sr)) calc(8px + var(--sb)) calc(14px + var(--sl));
  max-height: calc(var(--gh) - var(--ust-y) - 36px); }   /* tam konumda da üst kart, atıf ve tutamaç görünür */
.kart[data-konum="orta"] { height: calc(var(--gh) * 0.6); }
.kart[data-konum="tam"] { height: calc(var(--gh) - var(--ust-y) - 36px); }
.kart[data-konum="kucuk"]:not(.surukleniyor) .kart-govde { display: none; }
.tutamac { position: relative; flex: none; width: 100%; height: 22px; border: 0; background: transparent; display: flex; align-items: center;
  justify-content: center; cursor: grab; touch-action: none; }
.tutamac::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -12px; }   /* dokunma alanı 48 px */
.tutamac span { width: 44px; height: 5px; border-radius: 3px; background: var(--cizgi); }
.kart-bas { flex: none; }
.lejant { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 2px; font-size: 14px; color: var(--soluk); }
.cizgi { display: inline-block; width: 20px; height: 0; border-top: 4px solid var(--rota); vertical-align: middle; margin-right: 6px; }
.cizgi.turuncu { border-top-color: var(--dikkat); }
.cizgi.kirmizi { border-top: 4px dashed var(--tehlike); }
/* Uyarı kutusu (Faz 4b-2d): ana uyarı tam metin, en fazla 3 satır; diğerleri aynı kutuda açılır */
.uyari-kutu { margin: 8px 0 0; padding: 6px 10px; border: 1px solid var(--cizgi); border-left: 4px solid var(--dikkat); border-radius: 10px; }
.uyari-ana { display: flex; align-items: flex-start; gap: 10px; }
.uyari-ana .ikon { flex: none; color: var(--dikkat); margin-top: 1px; }
#k-uyari-metin { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.uyari-liste { list-style: none; margin: 6px 0 0; padding: 6px 0 0 34px; border-top: 1px solid var(--cizgi); font-size: 16px; line-height: 1.3;
  max-height: calc(var(--gh) * 0.3); overflow-y: auto; overscroll-behavior: contain; }
.uyari-liste li { margin: 0 0 6px; overflow-wrap: anywhere; }
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--cizgi); background: var(--yuzey); cursor: pointer; font-size: 17px; font-weight: 600; width: 100%; }
.dugme.ana { background: var(--ana); border-color: var(--ana); color: var(--ana-metin); }
.dugme.ana:disabled, .dugme.ana[aria-disabled="true"] { opacity: 0.5; }
.dugme.ikincil { background: transparent; }
.dugme.tehlike { background: transparent; border-color: var(--tehlike); color: var(--tehlike); width: auto; }
.dugme.kucuk { min-height: 48px; font-size: 16px; width: auto; }
#btn-baslat { margin-top: 8px; min-height: 48px; }
.kart-govde { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin-top: 10px;
  border-top: 1px solid var(--cizgi); padding-top: 4px; }
.baglanti { border: 0; background: transparent; color: var(--ana); padding: 12px 0; min-height: 48px; cursor: pointer; text-align: left;
  font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
:root[data-tema="koyu"] .baglanti { color: var(--odak); }
.baglanti.satir-ici { padding: 0; min-height: 0; display: inline; }
.sorumluluk { margin: 6px 0 0; font-size: 16px; color: var(--soluk); }
.not { margin: 6px 0 0; font-size: 16px; color: var(--soluk); }
.ayrinti-liste { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 16px; }
.ayrinti-liste dt { color: var(--soluk); }
.ayrinti-liste dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.alt-baslik { font-size: 16px; margin: 14px 0 6px; }
.talimat-listesi { margin: 0 0 12px; padding-left: 0; list-style: none; font-size: 16px; }
.talimat-listesi li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--cizgi); }
.talimat-listesi .ikon { width: 22px; height: 22px; color: var(--soluk); }
.talimat-listesi .t-mesafe { color: var(--soluk); white-space: nowrap; }

/* ---------------------------------------------------------------- harita üstü öğeler */
.secim { position: fixed; z-index: 20; left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); bottom: calc(8px + var(--sb)); background: var(--yuzey);
  border-radius: var(--r); box-shadow: var(--golge); padding: 14px; }
.secim-ad { margin: 0 44px 12px 0; font-weight: 600; }
.secim-dugmeler { display: flex; gap: 10px; }
.secim .kapat { position: absolute; top: 4px; right: 4px; }

/* ---------------------------------------------------------------- navigasyon (dikey: üst kart + alt çubuk ≤ görünür alanın %30'u) */
.nav-ust { position: fixed; z-index: 30; left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); top: calc(8px + var(--st)); display: grid;
  grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: center; background: var(--yuzey); border-radius: var(--r);
  box-shadow: var(--golge); padding: 8px 14px 10px; }
.nav-metin { display: contents; }
/* Faz 6a: hız sınırı tabelası (kırmızı halka); aşımda dolu kırmızı */
.nav-ust { grid-template-columns: auto 1fr auto; }
.hiz-tabela { grid-column: 3; grid-row: 1; width: 48px; height: 48px; border-radius: 50%; border: 5px solid #dc2626; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.hiz-tabela { flex-direction: column; line-height: 1; }
.hiz-tir { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; margin-top: 1px; }
.hiz-tabela.asim { background: #dc2626; color: #fff; animation: hiz-yanip 1s steps(2, start) infinite; }
@keyframes hiz-yanip { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .hiz-tabela.asim { animation: none; } }
.nav-ikon { width: 36px; height: 36px; color: var(--ana); }
:root[data-tema="koyu"] .nav-ikon { color: var(--rota); }
.nav-mesafe { font-size: 26px; font-weight: 800; line-height: 1.15; min-height: 30px; }
.nav-talimat { grid-column: 1 / -1; font-size: 17px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nav-cikti { position: fixed; z-index: 30; left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); top: calc(var(--ust-y) + 8px); display: flex;
  justify-content: space-between; align-items: center; gap: 12px; padding: 6px 12px; border-radius: var(--r); background: var(--yuzey);
  border: 2px solid var(--tehlike); color: var(--tehlike); font-weight: 700; }
.nav-alt { position: fixed; z-index: 30; left: calc(8px + var(--sl)); right: calc(8px + var(--sr)); bottom: calc(8px + var(--sb)); display: flex; gap: 16px;
  align-items: center; justify-content: space-between; background: var(--yuzey); border-radius: var(--r); box-shadow: var(--golge); padding: 6px 14px; }
.nav-deger { font-size: 20px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.nav-etiket { font-size: 16px; line-height: 1.25; color: var(--soluk); }
.nav-alt .dugme { min-height: 48px; }
.ses-dugme { flex: none; border: 1px solid var(--cizgi); border-radius: 12px; background: var(--yuzey); color: var(--metin); cursor: pointer; }
.ses-dugme[aria-pressed="false"] { color: var(--soluk); }
.ses-dugme[aria-disabled="true"] { opacity: 0.5; }
.ses-secim { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px; font-size: 16px; }
.ses-secim select { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); color: var(--metin); padding: 0 8px; }
.ses-denemesi { margin: 0 0 12px; padding-left: 24px; font-size: 16px; }
.ses-denemesi li { margin: 0 0 6px; }
.ses-denemesi button { margin-left: 8px; min-height: 32px; padding: 0 10px; border: 1px solid var(--cizgi); border-radius: 8px; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }
body.nav .arama, body.nav .kart, body.nav .ust { display: none; }
.ortala { position: fixed; z-index: 30; right: calc(8px + var(--sr)); bottom: calc(var(--alt-y) + 36px); width: auto; background: var(--yuzey);
  box-shadow: var(--golge); }
.yon-oku { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.yon-oku .ikon { width: 40px; height: 40px; color: #ffffff; fill: var(--rota); stroke: #ffffff; stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }

/* ---------------------------------------------------------------- tam ekran ve sayfalar */
.ekran { position: fixed; z-index: 50; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--st)) calc(24px + var(--sr)) calc(24px + var(--sb)) calc(24px + var(--sl)); overflow-y: auto; }
.ekran.alt { background: rgba(0, 0, 0, 0.45); align-items: flex-end; padding: 0; }
.ekran-icerik { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; margin: auto; }
.ekran.alt .ekran-icerik { background: var(--yuzey); border-radius: 16px 16px 0 0; padding: 20px 16px calc(16px + var(--sb)); max-width: 560px;
  margin: 0 auto; max-height: var(--gh); overflow-y: auto; }
.ekran h1 { font-size: 24px; margin: 0; }
.ekran h2 { font-size: 22px; margin: 0; }
.ekran p { margin: 0; color: var(--soluk); }
.ekran input[type=password], textarea { width: 100%; min-height: 52px; border: 1px solid var(--cizgi); border-radius: 10px; padding: 12px; background: var(--yuzey); font-size: 16px; }
.yukseklik { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 8px 0; }
.yukseklik-deger { font-size: 32px; font-weight: 700; min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.gb-dugmeler { display: flex; flex-direction: column; gap: 10px; }
.dugme.gb { min-height: 64px; font-size: 19px; }
.dugme.gb[aria-pressed="true"] { border-color: var(--ana); border-width: 2px; color: var(--ana); }
:root[data-tema="koyu"] .dugme.gb[aria-pressed="true"] { border-color: var(--odak); color: var(--odak); }
.gb-durum { margin: 0; color: var(--metin) !important; font-weight: 600; }
.gb-etiket { font-size: 16px; color: var(--soluk); margin-top: 4px; }
.baglanti.atla { align-self: center; color: var(--soluk); padding: 12px 16px; }
.satir { display: flex; gap: 10px; }
.sayfa { position: fixed; z-index: 45; inset: 0; background: var(--bg); overflow-y: auto;
  padding: calc(12px + var(--st)) calc(16px + var(--sr)) calc(24px + var(--sb)) calc(16px + var(--sl)); }
.sayfa-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sayfa h2 { font-size: 22px; margin: 0; }
.sayfa h3 { font-size: 17px; margin: 20px 0 8px; }
.sayfa .metin { max-width: 640px; color: var(--metin); }
.sayfa .metin p, .sayfa .metin li { margin: 0 0 10px; }
.kucuk-not { font-size: 16px; color: var(--soluk); }
.secenekler { display: flex; flex-direction: column; gap: 4px; }
.secenekler label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.secenekler input { width: 20px; height: 20px; accent-color: var(--ana); }

.bildirim { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--alt-y) + 36px); background: var(--metin);
  color: var(--bg); padding: 12px 16px; border-radius: 10px; font-size: 16px; max-width: calc(100% - 24px); }

/* ---------------------------------------------------------------- telefon yatay: solda dar panel (genişliğin en fazla %40'ı), harita sağda */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --panel-w: calc(min(40vw, 360px) - var(--sl)); }
  #map { left: calc(var(--panel-w) + var(--sl)); }
  .panel { display: flex; flex-direction: column; gap: 6px; position: fixed; z-index: 10; left: 0; top: 0; bottom: 0;
    width: calc(var(--panel-w) + var(--sl)); padding: calc(6px + var(--st)) 6px calc(6px + var(--sb)) calc(6px + var(--sl));
    background: var(--bg); border-right: 1px solid var(--cizgi); overflow-y: auto; overscroll-behavior: contain; }
  .arama, .kart { position: static; box-shadow: none; border: 1px solid var(--cizgi); border-radius: var(--r); }
  .kart, .kart[data-konum] { display: block; height: auto; max-height: none; padding: 8px 10px; }
  .kart .tutamac { display: none; }
  .kart .kart-govde, .kart[data-konum="kucuk"]:not(.surukleniyor) .kart-govde { display: block; overflow: visible; }
  .etiket { font-size: 16px; padding: 0 8px; }
  .secim { left: calc(var(--panel-w) + var(--sl) + 8px); }
  /* Navigasyon: talimat ve alt çubuk sol sütunda, harita sağda açık kalır */
  .nav-ust, .nav-alt, .nav-cikti { left: calc(6px + var(--sl)); right: auto; width: calc(var(--panel-w) - 12px); }
  .nav-ust { top: calc(6px + var(--st)); }
  .nav-talimat { -webkit-line-clamp: 4; line-clamp: 4; }
  .nav-alt { bottom: calc(6px + var(--sb)); gap: 8px; padding: 6px 10px; }
  .nav-cikti { top: auto; bottom: calc(76px + var(--sb)); flex-direction: column; align-items: stretch; gap: 4px; }
  .ortala { bottom: 36px; }
  .bildirim { left: calc(var(--panel-w) + var(--sl) + (100% - var(--panel-w) - var(--sl)) / 2); bottom: 36px; max-width: 55%; }
}

/* ---------------------------------------------------------------- masaüstü: panel solda */
@media (min-width: 900px) and (min-height: 521px) {
  #map { left: 420px; }
  .panel { display: flex; flex-direction: column; gap: 12px; position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; width: 420px; padding: 12px;
    background: var(--bg); border-right: 1px solid var(--cizgi); overflow-y: auto; }
  .ust { display: flex; border: 1px solid var(--cizgi); flex: none; }
  .ayar-mobil { display: none; }
  .arama, .kart { position: static; box-shadow: none; border: 1px solid var(--cizgi); border-radius: var(--r); }
  .arama { padding: 6px; }
  .kart, .kart[data-konum] { display: block; height: auto; max-height: none; padding: 14px; }
  .kart .tutamac { display: none; }
  .kart .kart-govde, .kart[data-konum="kucuk"]:not(.surukleniyor) .kart-govde { display: block; overflow: visible; }
  #btn-baslat { min-height: 52px; margin-top: 12px; }
  .secim { left: 432px; right: auto; width: 380px; }
  .nav-ust, .nav-cikti, .nav-alt { left: 432px; right: auto; width: 560px; max-width: calc(100% - 444px); }
  .nav-ust { padding: 14px 16px; }
  .nav-talimat { font-size: 19px; -webkit-line-clamp: 3; line-clamp: 3; }
  .ortala { right: 24px; bottom: 36px; }
  body.nav .panel { display: flex; }
  body.nav .ust, body.nav .arama, body.nav .kart { display: flex; opacity: 0.5; pointer-events: none; }
  body.nav .arama, body.nav .kart { display: block; }
  .ekran.alt { align-items: center; }
  .ekran.alt .ekran-icerik { border-radius: 16px; }
  .bildirim { bottom: 36px; }
}

/* Faz 6b-1: konum izni kartı */
.izin-talimat { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--metin); font-size: 16px; line-height: 1.4; }

/* ---------------------------------------------------------------- tasarım (Faz 6b-2a önerisi C; 6b-2b'de varsayılan): sakin
   uyarı kutusu, büyük süre, Rahat / Kısa seçenek kartları, başlangıç / hedef işaretleri, süre baloncukları, navigasyon kartı. */
.kart { border-radius: 18px 18px 0 0; }
.t-ozet { margin: 0 0 2px; }
.t-ust { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.t-sure { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.t-meta { font-size: 17px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.t-not { font-size: 16px; color: var(--soluk); margin-top: 2px; }
.t-secenekler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.t-secenek { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 7px 12px; text-align: left;
  border: 1px solid var(--cizgi); border-radius: 12px; background: var(--yuzey); cursor: pointer; }
.t-secenek[aria-pressed="true"] { border: 2px solid var(--rota); padding: 6px 11px; background: color-mix(in srgb, var(--rota) 8%, var(--yuzey)); }
.t-secenek-ad { font-size: 16px; font-weight: 600; color: var(--soluk); }
.t-secenek-deger { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Uyarı: ince renkli sol kenar, ikon, kısa başlık (+N), tek satır ve kesilmeden; dokununca tam cümle ve diğerleri */
.uyari-kutu { position: relative; margin-top: 10px; padding: 8px 34px 8px 10px; border: 0; border-left: 3px solid var(--dikkat);
  border-radius: 4px 10px 10px 4px; background: var(--yuzey-2); cursor: pointer; }
.uyari-kutu::after { content: attr(data-sayi); position: absolute; right: 10px; top: 8px; font-size: 16px; font-weight: 700; color: var(--soluk); }
.uyari-ana { align-items: center; gap: 8px; }
.uyari-ana .ikon { width: 18px; height: 18px; margin: 0; }
#k-uyari-metin { font-size: 16px; -webkit-line-clamp: 1; line-clamp: 1; }
.uyari-kutu.acik #k-uyari-metin { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.uyari-kutu.acik::after { content: ""; }
.uyari-liste { padding-left: 26px; font-size: 16px; }
.dugme.ana { border-radius: 14px; }
/* İşaretler: başlangıç beyaz dolgulu mavi halkalı daire; hedef iğne */
.t-isaret.t-bas { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--rota); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.t-isaret.t-hedef { width: 28px; height: 38px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.t-isaret .t-igne { fill: #1f2937; stroke: #ffffff; stroke-width: 1.5; }
.t-isaret .t-igne-ic { fill: #ffffff; }
:root[data-tema="koyu"] .t-isaret .t-igne { fill: #f3f4f6; stroke: #0b0d12; }
:root[data-tema="koyu"] .t-isaret .t-igne-ic { fill: #0b0d12; }
/* Rota baloncukları (MapLibre işaretçisi: position absolute kalmalı, burada position verilmez) */
.t-baloncuk { font: 700 16px/1 var(--font); padding: 6px 10px; border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); border: 0; }
.t-baloncuk.secili { --bal-bg: var(--rota); background: var(--rota); color: #fff; }
:root[data-tema="koyu"] .t-baloncuk.secili { color: #0b0d12; }
.t-baloncuk.diger { --bal-bg: var(--yuzey); background: var(--yuzey); color: var(--soluk); border: 1px solid var(--cizgi); cursor: pointer; min-height: 30px; }
.t-baloncuk.diger::before { content: ""; position: absolute; inset: -9px -6px; }   /* dokunma alanı 48 px */
/* Baloncuğun ucu (10 px, tasarim.js UC) rota çizgisine değer: uc-ust = baloncuk çizginin üstünde, ucu altta */
.t-baloncuk::after { content: ""; position: absolute; width: 0; height: 0; border: 7px solid transparent; }   /* 7 px genişlik, 10 px boy */
.t-baloncuk.uc-ust::after { top: 100%; left: 50%; margin-left: -7px; border-bottom-width: 0; border-top-width: 10px; border-top-color: var(--bal-bg); }
.t-baloncuk.uc-alt::after { bottom: 100%; left: 50%; margin-left: -7px; border-top-width: 0; border-bottom-width: 10px; border-bottom-color: var(--bal-bg); }
.t-baloncuk.uc-sol::after { left: 100%; top: 50%; margin-top: -7px; border-right-width: 0; border-left-width: 10px; border-left-color: var(--bal-bg); }
.t-baloncuk.uc-sag::after { right: 100%; top: 50%; margin-top: -7px; border-left-width: 0; border-right-width: 10px; border-right-color: var(--bal-bg); }
/* Navigasyon kartı ve hız tabelası */
.nav-ust { border-radius: 18px; padding: 12px 14px; column-gap: 12px; }
.nav-ikon { width: 44px; height: 44px; padding: 7px; border-radius: 12px; background: var(--rota); color: #fff; }
:root[data-tema="koyu"] .nav-ikon { color: #0b0d12; }
.nav-mesafe { font-size: 30px; font-variant-numeric: tabular-nums; }
.nav-talimat { font-size: 18px; margin-top: 2px; }
.hiz-tabela { width: 54px; height: 54px; border-width: 5px; font-size: 21px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.nav-alt { border-radius: 18px; }
