/* =====================================================================
   Hat haritası (harita.php) · v8
   Üstte otobüsün ışıklı hedef tabelası (sarı gövde çerçeveli LED), sıcak kâğıt tonlu harita,
   altta sürüklenebilir panel: tek satır yön seçici, (birden çok araç varsa) küçük araç çipleri,
   durak çizelgesi, LED durak panosu. Haritadaki otobüsün tabelasında hat numarası yazar.
   ===================================================================== */
:root {
    --led: #0E1116; --led-yazi: #FFD21F; --led-sonuk: rgba(255, 210, 31, .10); --led-isilti: rgba(255, 196, 0, .55);
    --pano: #13161C; --pano-kenar: #262A33; --pano-cizgi: rgba(255, 255, 255, .075); --pano-yazi: #F4EFE4; --pano-ikinci: #D5CFC2; --pano-soluk: #9AA0AA;
    --harita-zemin: #E4E8E1;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pano: #0B0A08; --pano-kenar: #2C271E; --harita-zemin: #1A1712; } }
:root[data-theme="dark"] { --pano: #0B0A08; --pano-kenar: #2C271E; --harita-zemin: #1A1712; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#map { position: fixed; inset: 0; z-index: 0; background: var(--harita-zemin); }
.leaflet-container { font-family: inherit; background: var(--harita-zemin); }
/* Harita zemini: OSM karoları sıcak, sakin bir kâğıt tonuna çekilir; güzergâh ve otobüsler öne çıkar */
.harita-zemin { filter: saturate(.78) contrast(.95) brightness(1.03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .harita-zemin { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.84) contrast(.9); } }
:root[data-theme="dark"] .harita-zemin { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.84) contrast(.9); }

.leaflet-bottom.leaflet-left { bottom: var(--panel-px, 0px); }
.leaflet-control-attribution { font-size: 10px; padding: 1px 7px !important; border-radius: 7px 7px 0 0; background: color-mix(in srgb, var(--yuz) 84%, transparent) !important; color: var(--soluk) !important; }
.leaflet-control-attribution a { color: var(--soluk) !important; }
.leaflet-tooltip { font-weight: 700; border-radius: 9px; border: 0; padding: 3px 9px; box-shadow: var(--e2); background: var(--yuz); color: var(--ink); }
.leaflet-tooltip-top::before { border-top-color: var(--yuz); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--e3) !important; border-radius: 16px !important; overflow: hidden; margin: calc(3.875rem + var(--guv-ust)) .75rem 0 0 !important; }   /* üst çubuğun altında */
.leaflet-control-zoom a { width: 2.75rem !important; height: 2.75rem !important; line-height: 2.75rem !important; background: var(--yuz) !important; color: var(--ink) !important; border-color: var(--cizgi) !important; }

/* ---------- Üst: tek satır (geri · ışıklı hedef tabelası · yönü değiştir) ---------- */
.ust { position: fixed; z-index: 900; left: 0; right: 0; top: 0; padding: calc(.5rem + var(--guv-ust)) .625rem 0; display: flex; gap: .5rem; align-items: center; pointer-events: none; }
.ust > * { pointer-events: auto; }
.geri, .yon-degis { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--yuz); color: var(--ink); border: 1px solid var(--cizgi); box-shadow: var(--e3); transition: transform var(--hiz) var(--egri); }
.geri:active, .yon-degis:active { transform: scale(.92); }
.yon-degis[hidden] { display: none; }
.geri .ikon, .yon-degis .ikon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.tabela {
    position: relative; flex: 1; min-width: 0; height: 2.75rem; display: flex; align-items: stretch; overflow: hidden; border-radius: 12px;
    background: radial-gradient(var(--led-sonuk) .65px, transparent 1px) 0 0 / 2.6px 2.6px, var(--led);
    box-shadow: 0 0 0 2px #FFDA00, 0 0 0 3px rgba(90, 64, 0, .35), 0 8px 18px -6px rgba(30, 22, 8, .45), inset 0 2px 5px rgba(0, 0, 0, .7);
}
.tabela::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle, transparent 0 .78px, rgba(9, 11, 15, .45) 1.12px) 0 0 / 2.6px 2.6px, linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 48%); }
.tb-no { position: relative; flex: none; display: grid; place-items: center; min-width: 3.25rem; padding: 0 .7rem 0 .9rem; color: var(--led-yazi);
    font-size: 1.5rem; font-weight: 800; font-stretch: 75%; letter-spacing: .03em; line-height: 1; text-shadow: 0 0 9px var(--led-isilti); border-right: 1px solid rgba(255, 210, 31, .16); }
.tb-no::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lv, #1F5FA8); }
.tb-m { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 .25rem 0 .7rem; }
.tb-yon { display: block; overflow: hidden; white-space: nowrap; color: var(--led-yazi); font-size: 1rem; font-weight: 800; font-stretch: 75%; letter-spacing: .06em; line-height: 1.15;
    text-transform: uppercase; text-shadow: 0 0 8px var(--led-isilti); }
.tb-yon > span { display: inline-block; }
/* Sığmayan hedef bir kez kayıp geri döner ve durur (durmadan kayan yazı göz yorar); sağ kenar solarak devamı
   olduğunu gösterir. Tabelaya dokununca bir kez daha kayar. */
.tabela.kayar { cursor: pointer; }
.tabela.kayar .tb-yon { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent); }
.tabela.kayar .tb-yon > span { animation: tb-kay var(--kay-sure, 4s) ease-in-out 1.2s 2 alternate both; }
@keyframes tb-kay { 0%, 10% { transform: none; } 90%, 100% { transform: translateX(var(--kay)); } }
.tabela.gel .tb-yon { animation: tb-gel .5s cubic-bezier(.2, .8, .2, 1) both; }   /* yön değişince yeni hedef alttan gelir */
@keyframes tb-gel { 0% { transform: translateY(80%); opacity: 0; } 35% { opacity: .35; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tb-yon { text-overflow: ellipsis; } .tb-yon > span { display: inline; } }
/* Canlı durum: tabelanın sağında nokta + araç sayısı (ayrıntı panel başlığında ve ekran okuyucu metninde) */
.durum { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: .375rem; padding: 0 .75rem 0 .25rem; font-size: .875rem; font-weight: 800; color: #B9B3A6; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.durum .dn { width: .5rem; height: .5rem; border-radius: 50%; background: #8E8878; }
.durum.canli { color: #7BE3BB; } .durum.canli .dn { background: #3FD69B; box-shadow: 0 0 6px rgba(63, 214, 155, .8); animation: nabiz 1.8s ease-in-out infinite; }
.durum.hata { color: #FF9C8C; } .durum.hata .dn { background: #FF6B57; }

/* ---------- Sağ düğmeler: konumum + tüm hatta odaklan (panelin hemen üstünde) ---------- */
.yan { position: fixed; z-index: 900; right: .75rem; bottom: calc(var(--panel-px, 0px) + .75rem); display: flex; flex-direction: column; gap: .5rem; transition: opacity .2s, visibility .2s; }
.panel-tam .yan, .panel-tam .leaflet-control-attribution, .panel-tam .as { opacity: 0; visibility: hidden; }
.yan > * { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--yuz); color: var(--ink); border: 1px solid var(--cizgi); box-shadow: var(--e3); transition: background-color var(--hiz), transform var(--hiz) var(--egri); }
.yan > *:active { background: var(--yuz3); transform: scale(.94); }
.yan .ikon { width: 1.25rem; height: 1.25rem; }

/* ---------- Alt panel (sürüklenebilir): kapalıyken tek satır özet, yukarı çekince yön + durak çizelgesi ---------- */
.panel {
    position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; height: calc(100dvh - 3.875rem - var(--guv-ust));
    display: flex; flex-direction: column; background: var(--yuz); border-radius: 22px 22px 0 0; box-shadow: var(--golge-ust);
    transform: translate3d(0, 82%, 0); will-change: transform; contain: layout paint;
}
.tutamac { flex: none; padding: .4375rem 1rem .125rem; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tutma { width: 2.25rem; height: .25rem; border-radius: 2px; background: var(--cizgi2); margin: 0 auto .375rem; }
.ozet { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; }
.ozet > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.ozet > span:first-child small { font-size: .75rem; font-weight: 700; color: var(--soluk); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozet > span:first-child small:empty { display: none; }
.ozet > span:first-child b { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ozet > small { flex: none; font-weight: 800; font-size: .8125rem; color: var(--ink2); }
.ozet > small:not(:empty) { padding: .25rem .65rem; border-radius: 999px; background: var(--yuz3); }
.ozet > small.eta { padding: .3rem .65rem; border-radius: 9px; font-size: 1rem; font-stretch: 78%; letter-spacing: .03em; color: var(--led-yazi); text-shadow: 0 0 7px var(--led-isilti);
    background: radial-gradient(var(--led-sonuk) .6px, transparent .95px) 0 0 / 2.4px 2.4px, var(--led); }
.ozet-bilgi { flex: none; width: 2.75rem; height: 2.75rem; margin-right: -.625rem; display: grid; place-items: center; border-radius: 50%; color: var(--soluk); transition: background-color var(--hiz); }
.ozet-bilgi:active { background: var(--yuz3); }
.ozet-bilgi .ikon { width: 1.35rem; height: 1.35rem; }
.ust-alan { padding: 0 0 .25rem; }   /* yön seçici + araç satırı + duyurular: durak listesiyle birlikte kayar */
#duy:empty { display: none; }
.ust-alan .duyuru, .ust-alan .veri-uyari { margin: .625rem 0 0; }
/* Sefer saati: kutusuz tek satır (saat simgesiyle). Sefer saati dışındaysa uyarı kutusu kalır. */
.ust-alan .sefer-not { position: relative; margin: .625rem 0 0; padding: 0 .125rem 0 1.3rem; border-radius: 0; background: none; font-size: .78rem; line-height: 1.45; }
.ust-alan .sefer-not::before { content: ""; position: absolute; left: .125rem; top: .19rem; width: .875rem; height: .875rem; background: currentColor; opacity: .85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.ust-alan .sefer-not.dis { padding: .5rem .7rem .5rem 1.95rem; border-radius: 12px; background: color-mix(in srgb, var(--kirmizi) 8%, var(--yuz)); }
.ust-alan .sefer-not.dis::before { left: .7rem; top: .69rem; }

/* Yön seçici: tek satırlık iki parçalı anahtar */
.yonler { display: flex; gap: 3px; padding: 3px; border-radius: 14px; background: var(--yuz3); }
.yonler button { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; padding: 0 .65rem; border-radius: 11px;
    color: var(--soluk); font-size: .875rem; line-height: 1.15; transition: background-color var(--hiz), color var(--hiz), box-shadow var(--hiz); }
.yonler button[aria-pressed="true"] { background: var(--yuz); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 44, 36, .1), 0 3px 10px -3px rgba(20, 44, 36, .22); }
.yonler button::before { content: ""; position: absolute; inset: -3px 0; }   /* 40px görünüm, 46px dokunma */
.yonler .nokta-y { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--yc); opacity: .5; transition: opacity var(--hiz), box-shadow var(--hiz); }
.yonler button[aria-pressed="true"] .nokta-y { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--yc) 22%, transparent); }
.yonler b { min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yonler small { flex: none; margin-left: -.1rem; font-size: .75rem; font-weight: 600; }
.yonler button[aria-pressed="false"] small { display: none; }   /* yer açılsın: seçili olmayan yönde yalnız durak adı */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yonler { background: #12100B; } :root:not([data-theme="light"]) .yonler button[aria-pressed="true"] { background: var(--yuz3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] .yonler { background: #12100B; }
:root[data-theme="dark"] .yonler button[aria-pressed="true"] { background: var(--yuz3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 8px rgba(0, 0, 0, .4); }

.arac-yok { margin-top: .625rem; padding: 0 .125rem; color: var(--soluk); font-weight: 600; font-size: .8125rem; line-height: 1.5; }
.disarida { color: var(--turuncu-yazi) !important; }

/* Konum notu (akıcı hareket / yalnız GPS): durak listesinin altında */
.liste-alt { padding-top: .875rem; }
.liste-alt:empty, .liste-alt:has(> [hidden]:only-child) { display: none; }
.konum-not { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding: .25rem .25rem .25rem .5rem; border-radius: 14px; background: var(--yuz2); border: 1px solid var(--cizgi); font-size: .8125rem; line-height: 1.45; color: var(--soluk); font-weight: 600; }
.konum-not .kn-ac { flex: 1; min-width: 0; min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; text-align: left; color: var(--ink); }
.konum-not .kn-ac b { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konum-not .kn-i { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font: 800 .75rem/1 inherit; font-style: normal; color: var(--soluk); }
.konum-not .kn-dug { flex: none; min-height: 2.75rem; padding: 0 .875rem; border-radius: 999px; border: 1px solid var(--cizgi2); background: var(--yuz); color: var(--ink); font-weight: 800; font-size: .8125rem; white-space: nowrap; cursor: pointer; }
.konum-not .kn-uzun { flex-basis: 100%; margin: 0 .25rem .375rem 0; }
.konum-not .kn-ornek { display: inline-block; width: .9rem; height: .9rem; margin: 0 .15rem -.15rem; border-radius: 4px; border: 2px dashed var(--soluk); }

/* ---------- Durak çizelgesi ---------- */
.kaydir { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--cizgi); padding: .5rem 1rem calc(1rem + var(--guv-alt) + var(--liste-pad, 0px)); }
.gec-ozet { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.75rem; padding: 0 .25rem 0 3.25rem; font-weight: 700; font-size: .875rem; color: var(--soluk); text-align: left; border-radius: 12px; }
.gec-ozet .ikon { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.gec-ozet[aria-expanded="true"] .ikon { transform: rotate(180deg); }
.sat { position: relative; display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; min-height: 3.375rem; cursor: pointer; border-radius: 14px; transition: background-color var(--hiz); }
.sat:active { background: var(--yuz2); }
@media (hover: hover) { .sat:hover { background: var(--yuz2); } }
.ray { position: relative; align-self: stretch; display: grid; place-items: center; }
.ray::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; margin-left: -2.5px; background: var(--hat-renk); }
.sat:first-child .ray::before, .ilk .ray::before { top: 50%; border-radius: 3px 3px 0 0; }
.son .ray::before { bottom: 50%; border-radius: 0 0 3px 3px; }
.nk { position: relative; width: .875rem; height: .875rem; border-radius: 50%; background: var(--yuz); border: 3px solid var(--hat-renk); }
.ilk .nk, .son .nk { width: 1.25rem; height: 1.25rem; border-width: 4px; border-radius: 6px; }
.sat.gecti .ray::before { background: var(--cizgi2); } .sat.gecti .nk { border-color: var(--cizgi2); background: var(--cizgi2); }
.sat.gecti .ad { color: var(--soluk); }
.sat.sira .nk { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--hat-renk); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hat-renk) 22%, transparent); animation: sira-nabiz 2.2s ease-in-out infinite; }
@keyframes sira-nabiz { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--hat-renk) 0%, transparent); } }
button.ad { background: none; border: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer; min-width: 0; min-height: 2.75rem; }
button.ad:focus-visible { outline: 3px solid var(--sari); outline-offset: -2px; border-radius: 10px; }
.ad { padding: .5rem .5rem .5rem .25rem; font-weight: 600; font-size: .9688rem; line-height: 1.25; overflow-wrap: anywhere; }
.sat.sira .ad { font-weight: 800; }
.ad small { display: block; margin-top: .1rem; font-size: .6875rem; font-weight: 800; color: var(--hat-renk); }
.sag { display: flex; align-items: center; gap: .125rem; padding-right: .125rem; }
.dk { min-width: 3rem; text-align: right; font-weight: 800; font-size: 1.0625rem; font-stretch: 80%; letter-spacing: .005em; }
.dk small { font-size: .6875rem; font-weight: 700; color: var(--soluk); margin-left: .15rem; font-stretch: 100%; }
.sat.sira .dk { min-width: 0; margin-right: .25rem; padding: .3rem .55rem; border-radius: 9px; font-size: 1.1875rem; color: var(--led-yazi); text-shadow: 0 0 7px var(--led-isilti);
    background: radial-gradient(var(--led-sonuk) .6px, transparent .95px) 0 0 / 2.4px 2.4px, var(--led); }
.sat.sira .dk small { color: color-mix(in srgb, var(--led-yazi) 70%, transparent); }
.durakta { font-size: .8125rem; font-weight: 800; color: #fff; background: var(--yesil); padding: .25rem .65rem; border-radius: 999px; }
.fav { position: relative; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--cizgi2); border-radius: 50%; }
.fav::before, .paylas-ib::before { content: ""; position: absolute; inset: -2px; }   /* 40px → 44px dokunma alanı */
.fav .ikon { width: 1.25rem; height: 1.25rem; }
.fav[aria-pressed="true"] { color: #E5A400; } .fav[aria-pressed="true"] .ikon { fill: currentColor; }
.sat.secili { background: color-mix(in srgb, var(--hat-renk) 9%, var(--yuz)); }
.arac-sat { display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; min-height: 3.875rem; }
.arac-sat .ray { align-self: stretch; }
.arac-sat .bus-ikon { --yon-renk: var(--hat-renk); position: relative; z-index: 1; }
.chip { justify-self: start; max-width: 100%; margin-left: .25rem; padding: .4rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--hat-renk) 12%, var(--yuz)); color: var(--ink); font-weight: 800; font-size: .8125rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip span { font-weight: 600; color: var(--soluk); margin-left: .35rem; }
/* "Bu otobüsü paylaş" (canlı takip linki): araç satırında yuvarlak düğme */
.paylas-ib { position: relative; width: 2.5rem; height: 2.5rem; margin: 0 .125rem 0 .375rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--cizgi); background: var(--yuz); color: var(--ink2); transition: background-color var(--hiz); }
.paylas-ib .ikon { width: 1.05rem; height: 1.05rem; }
.paylas-ib:active { background: var(--yuz3); }
.liste-bos { padding: 2rem 1rem; text-align: center; color: var(--soluk); font-weight: 600; }
.uyari { margin: .5rem 0; padding: .7rem .875rem; border-radius: 14px; background: color-mix(in srgb, var(--safran) 16%, var(--yuz)); border: 1px solid color-mix(in srgb, var(--safran) 45%, transparent); font-weight: 600; font-size: .875rem; line-height: 1.4; }

/* ---------- Durak bilgi kartı: ışıklı durak panosu + eylemler ---------- */
.durak-bilgi { margin: .5rem 0 .75rem; }
.db-pano { position: relative; padding: 1rem 1rem .375rem; border-radius: 18px; overflow: hidden; color: var(--pano-yazi);
    background: radial-gradient(var(--pano-cizgi) .6px, transparent .9px) 0 0 / 3px 3px, linear-gradient(180deg, color-mix(in srgb, var(--pano) 86%, #3A4150), var(--pano));
    border: 1px solid var(--pano-kenar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--e2); }
.db-pano::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yon-renk); }
.db-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.db-ust b { font-size: 1.1875rem; font-weight: 800; font-stretch: 85%; letter-spacing: .005em; line-height: 1.2; }
.db-ust .ib { flex: none; width: 2.25rem; height: 2.25rem; margin: -.375rem -.375rem 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--pano-ikinci); background: rgba(255, 255, 255, .08); font-size: .85rem; }
.db-yurume { display: block; margin-top: .2rem; font-size: .8125rem; font-weight: 600; color: var(--pano-soluk); }
.db-bos { margin-top: .625rem; padding: .75rem 0 .625rem; border-top: 1px solid var(--pano-cizgi); color: var(--pano-soluk); font-weight: 600; font-size: .9rem; }
/* Gelen araç satırı: [hat no levhası] [kaç durak önce / Kapı · mesafe] [dakika] */
.db-arac { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; min-height: 3.25rem; padding: .3rem 0; border-top: 1px solid var(--pano-cizgi); }
.db-ust + .db-arac { margin-top: .625rem; }
.db-arac .levha.mini { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.db-ad { min-width: 0; font-size: .875rem; font-weight: 700; color: var(--pano-yazi); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-ad small { display: block; margin-top: .1rem; font-size: .75rem; font-weight: 600; color: var(--pano-soluk); overflow: hidden; text-overflow: ellipsis; }
.db-dk { min-width: 3.25rem; text-align: right; font-weight: 800; font-size: 1.3125rem; font-stretch: 76%; color: var(--led-yazi); text-shadow: 0 0 8px var(--led-isilti); white-space: nowrap; }
.db-dk small { font-size: .75rem; margin-left: .12rem; color: color-mix(in srgb, var(--led-yazi) 70%, transparent); text-shadow: none; }
.db-dk.ilk { font-size: 1.625rem; }
.db-dk.simdi { min-width: 0; font-size: .8125rem; font-stretch: 100%; color: #08281C; background: #3FD69B; padding: .3rem .7rem; border-radius: 999px; text-shadow: none; box-shadow: 0 0 12px rgba(63, 214, 155, .45); }
.db-eylem { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.db-zil .ikon { width: 1.05rem; height: 1.05rem; margin-right: .35rem; }
.db-ust .ib .ikon { width: 1rem; height: 1rem; }
.db-zil { flex: 1 1 auto; width: auto; min-height: 2.5rem; font-size: .8125rem; justify-content: center; text-align: center; padding: .375rem .85rem; box-shadow: none; }
.db-zil[aria-pressed="true"] { background: color-mix(in srgb, var(--yesil) 12%, var(--yuz)); border-color: color-mix(in srgb, var(--yesil) 40%, transparent); color: var(--yesil-yazi); }
.db-bildir { display: inline-block; margin: .75rem .25rem 0; font-size: .8125rem; font-weight: 600; color: var(--soluk); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Harita işaretleri ---------- */
/* Otobüs önü: sarı gövde + üstte LED tabela (HAT NO, gerçek otobüsün ön tabelası gibi) + cam + farlar. Kenarlık yön rengi. */
.bus-ikon { position: relative; width: 2.25rem; height: 2.5rem; box-sizing: border-box; border-radius: 10px 10px 7px 7px;
    background: linear-gradient(#FFE45C, #FFDA00 55%, #E9C600); border: 2.5px solid var(--yon-renk); outline: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: opacity .2s; }
.bus-ikon.ozel { background: linear-gradient(#5B97F7, #2563EB 55%, #1D4FC8); }   /* özel halk otobüsü: mavi */
.bus-ikon .led { position: absolute; left: 3px; right: 3px; top: 3px; height: .9375rem; border-radius: 4px; overflow: hidden;
    display: grid; place-items: center; font-style: normal; font-weight: 800; font-stretch: 80%; font-size: .71875rem; letter-spacing: .03em; line-height: 1; white-space: nowrap;
    color: #FFDA00; text-shadow: 0 0 5px rgba(255, 218, 0, .6);
    background: radial-gradient(rgba(255, 218, 0, .18) .5px, transparent .8px) 0 0 / 2.5px 2.5px, linear-gradient(#242a34, #13171e); }
.bus-ikon .on { position: absolute; left: 3.5px; right: 3.5px; bottom: 3px; height: .8125rem; }
.bus-ikon .on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .4rem; border-radius: 3px; background: linear-gradient(160deg, #5C7394 0 30%, #2A3B57 31%, #1B2840); }
.bus-ikon .on::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 0; height: 4px;
    background: radial-gradient(circle at 2px 2px, #fff 0 1.6px, transparent 2.2px) left / 6px 4px no-repeat, radial-gradient(circle at 4px 2px, #fff 0 1.6px, transparent 2.2px) right / 6px 4px no-repeat; }
.bus-ikon .ok { position: absolute; inset: -10px; pointer-events: none; display: none; transition: transform .6s linear; }
.bus-ikon .ok::before { content: ""; position: absolute; left: 50%; top: -2px; margin-left: -6px; border: 6px solid transparent; border-bottom: 9px solid var(--yon-renk); border-top: 0; filter: drop-shadow(0 0 1.5px #fff); }
.bus-ikon.disi { filter: grayscale(1); opacity: .6; }
.bus-ikon.diger { opacity: .45; }
.bus-ikon.bekle::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #fff; background: #F2A900 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2.5' y='2' width='2.5' height='8' rx='.6' fill='%23fff'/%3E%3Crect x='7' y='2' width='2.5' height='8' rx='.6' fill='%23fff'/%3E%3C/svg%3E") center / 70% no-repeat; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.bus-ikon.tahmin { border-style: dashed; }
.bus-ikon.secili { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px color-mix(in srgb, #FFDA00 45%, transparent), 0 4px 12px rgba(0, 0, 0, .32); z-index: 10; }
.bus-ikon.mini { width: 1.875rem; height: 2.125rem; border-radius: 8px 8px 6px 6px; border-width: 2px; outline-width: 1.5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.bus-ikon .led.uzun { font-size: .59375rem; letter-spacing: 0; }   /* 4+ karakterli hat kodu */
.bus-ikon.mini .led { height: .8125rem; font-size: .625rem; left: 2px; right: 2px; top: 2px; }
.bus-ikon.mini .led.uzun { font-size: .5rem; }
.bus-ikon.mini .on { bottom: 2.5px; left: 3px; right: 3px; height: .6875rem; }
.durak-etiket { background: var(--yuz); color: var(--ink); border: 0; border-radius: 8px; padding: 2px 7px; font-weight: 700; font-size: 11px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.leaflet-tooltip-right.durak-etiket::before, .leaflet-tooltip-left.durak-etiket::before { display: none; }
.konum-nk { width: 1rem; height: 1rem; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26, 115, 232, .25); }

/* ---------- Araç şeridi (üst çubuğun altında yatay çipler) + seçili aracın tek satırlık ayrıntısı (panelde) ---------- */
.as { position: fixed; z-index: 850; left: 0; right: 0; top: calc(3.875rem + var(--guv-ust)); display: flex; gap: .625rem; overflow-x: auto; padding: 5px .75rem 9px; scrollbar-width: none; pointer-events: none; touch-action: pan-x; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; transition: opacity .2s, visibility .2s; }
.as::-webkit-scrollbar { display: none; }
.as:empty { display: none; }
.as .ak-cip { pointer-events: auto; flex: none; }
.as .ak-cip:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.ak-satir small { margin-left: .25rem; font-size: .75rem; font-weight: 700; opacity: .85; }
.ak-satir { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem 1rem; margin-top: .5rem; font-size: .8125rem; font-weight: 700; color: var(--ink2); line-height: 1.6; }
.ak-satir > span { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.ak-satir .ikon { width: 1rem; height: 1rem; stroke-width: 2.2; }
.ak-satir .ak-hiz b { font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ak-satir .hareket { color: var(--yesil-yazi); }
.ak-satir .bekle { color: var(--turuncu-yazi); }
.ak-satir .disi { color: var(--soluk); }
.ak-satir .ak-rampa-p { color: var(--yesil-yazi); }
.ak-satir .ak-rampa-p.yok { color: var(--soluk); font-weight: 600; }

/* ---------- Geniş ekran: panel solda yüzen kart ---------- */
@media (min-width: 900px) {
    .ust { right: auto; width: 26rem; padding-left: 1rem; padding-top: calc(1rem + var(--guv-ust)); }
    .panel { left: 1rem; right: auto; width: 26rem; top: calc(4.5rem + var(--guv-ust)); bottom: 1rem; height: auto; border-radius: 22px; border: 1px solid var(--cizgi); box-shadow: var(--e3); transform: none !important; }
    .tutamac { cursor: default; pointer-events: none; padding-top: 1rem; } .tutma { display: none; }
    .ozet-bilgi { pointer-events: auto; }
    .kaydir { padding-bottom: 1rem; }
    .yan { bottom: 1.5rem; right: 1rem; }
    .as { left: 27.5rem; top: 1rem; padding-top: 4px; }
    .leaflet-bottom.leaflet-left { bottom: 0; left: 27.5rem; }
    .leaflet-control-zoom { margin: 1rem 1rem 0 0 !important; }
}
/* Telefon yatay: panel solda, harita sağda (masaüstü yerleşiminin dar hali) */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 899px) {
    .ust { right: auto; width: min(21rem, 46vw); padding: calc(.5rem + var(--guv-ust)) 0 0 calc(.5rem + env(safe-area-inset-left, 0px)); }
    .panel { left: calc(.5rem + env(safe-area-inset-left, 0px)); right: auto; width: min(21rem, 46vw); top: calc(3.875rem + var(--guv-ust)); bottom: .5rem; height: auto; border-radius: 18px; border: 1px solid var(--cizgi); box-shadow: var(--e3); transform: none !important; }
    .tutamac { cursor: default; pointer-events: none; padding-top: .5rem; } .tutma { display: none; }
    .ozet-bilgi { pointer-events: auto; }
    .panel { overflow-y: auto; overscroll-behavior: contain; }
    .kaydir { flex: none; overflow: visible; min-height: auto; padding-bottom: .75rem; }
    .yan { bottom: .75rem; right: calc(.75rem + env(safe-area-inset-right, 0px)); }
    .as { left: calc(min(21rem, 46vw) + 1rem); top: calc(.5rem + var(--guv-ust)); padding-top: 4px; }
    .leaflet-bottom.leaflet-left { bottom: 0; left: calc(min(21rem, 46vw) + 1rem); }
}

.db-saat { margin-top: .625rem; padding: .6rem .8rem; border-radius: var(--r); background: var(--yuz2); border: 1px solid var(--cizgi); display: grid; gap: .15rem; font-size: .875rem; }
.db-saat b { font-weight: 800; } .db-saat span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); } .db-saat small { color: var(--soluk); font-weight: 600; font-size: .75rem; }

/* v6.12 · LED tabela ve sayı yüzleri: dar Archivo */
.bus-ikon .led,
.db-dk,
.dk,
.ozet > small.eta,
.tb-no,
.tb-yon { font-family: var(--f-led); }

/* v6.13: haritada kapı numarası çip şeridi yok; otobüs seçmek için haritadaki otobüse dokunulur */
.as { display: none !important; }


/* ===== v6.24 · Ana sayfayla aynı dil: sakin zemin, yapışık sol panel (bilgisayar), daha net durak ve düğmeler ===== */
.leaflet-tooltip.durak-etiket { background: var(--yuz); border: 1px solid var(--cizgi); border-radius: 8px; padding: .1875rem .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 1px 3px rgba(20, 44, 36, .18); }
.geri, .yon-degis, .yan > *, .leaflet-control-zoom { box-shadow: 0 2px 8px rgba(20, 44, 36, .16) !important; }
.panel { border-radius: 26px 26px 0 0; border-top: 1px solid var(--cizgi); box-shadow: 0 -8px 28px rgba(20, 44, 36, .14); }
.tutma { width: 2.5rem; height: .3125rem; border-radius: 3px; }
.ozet > span:first-child b { font-size: 1.0625rem; }
.yonler { border-radius: 16px; background: color-mix(in srgb, var(--marka, #1d6b52) 9%, var(--yuz3)); }
.yonler button[aria-pressed="true"] { border: 1px solid var(--cizgi); }
@media (min-width: 900px) {
    .ust { left: 0; width: 26rem; padding: calc(.75rem + var(--guv-ust)) .75rem .75rem 1rem; background: var(--gok-1, var(--yuz)); border-bottom: 1px solid var(--cizgi); box-shadow: 1px 0 0 var(--cizgi); }
    .panel { left: 0; top: calc(4.25rem + var(--guv-ust)); bottom: 0; width: 26rem; border-radius: 0; border: 0; border-right: 1px solid var(--cizgi); box-shadow: none; }
    .leaflet-bottom.leaflet-left { left: 26rem; }
    .as { left: 27.5rem; }
}
