/* Harita Navigasyon Modu — Faz 1 (gt-nav.js). style.css'e dokunulmaz; renkler uygulamanın değişkenlerinden (--primary, --surface …). */
.gt-nav { position: fixed; inset: 0; z-index: 2000000; background: var(--bg, #F7FAFC); color: var(--text, #2D3748); font-family: inherit; overflow: hidden; touch-action: none; }
.gt-nav .material-symbols-outlined { font-size: 22px; line-height: 1; }
.gt-nav-harita { position: absolute; inset: 0; }
.gt-nav-ust { position: absolute; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 3; display: flex; align-items: center; gap: 12px;
    min-height: 64px; padding: 10px 14px; border-radius: 18px; background: #3C4BC4; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.22); box-sizing: border-box; }
body.dark-mode .gt-nav-ust { background: #2A3470; }
.gt-nav-ust > .material-symbols-outlined { font-size: 34px; flex: 0 0 auto; }
.gt-nav-ust-y { min-width: 0; flex: 1; }
.gt-nav-ust-y b { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-nav-ust-y small { display: block; font-size: 13px; opacity: 0.9; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-nav-ust.sap { background: #DD6B20; }
.gt-nav-ust.vardi { background: #38A169; }
.gt-nav-ust.bekle { background: var(--surface, #fff); color: var(--text, #2D3748); border: 1px solid var(--border, #E2E8F0); }
.gt-nav-yd { position: absolute; right: 12px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0;
    background: var(--surface, #fff); color: var(--text, #2D3748); border: 1px solid var(--border, #E2E8F0); box-shadow: 0 3px 10px rgba(0,0,0,0.18); cursor: pointer; }
/* 1.1.20: üst şerit / alt çubuk / ses kartı yükseklikleri gt-nav.js olc() ile ölçülür */
.gt-nav-yon { top: calc(var(--gt-nav-ust, calc(env(safe-area-inset-top, 0px) + 74px)) + 18px); }
.gt-nav-ortala { bottom: calc(var(--gt-nav-alt, calc(env(safe-area-inset-bottom, 0px) + 76px)) + 20px); }
.gt-nav-ortala.etkin { background: var(--primary, #5A67D8); color: #fff; border-color: var(--primary, #5A67D8); }
.gt-nav-alt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; box-sizing: border-box;
    padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px); background: var(--surface, #fff); border-top: 1px solid var(--border, #E2E8F0); border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.12); }
.gt-nav-alt-b { flex: 1; min-width: 0; }
.gt-nav-alt-b b { display: block; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--success, #38A169); }   /* 1.1.20: yanında Google düğmesi var; uzun dilde 2 satır, kesilmez */
.gt-nav-alt-b div { font-size: 12px; color: var(--text-muted, #718096); }
.gt-nav-google { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; max-width: 122px; min-height: 48px; padding: 4px 14px 4px 10px; margin: 0; border-radius: 24px; border: 1px solid #B6D0F7; background: #E8F0FE; color: #174EA6;
    font: inherit; font-size: 13px; line-height: 1.15; font-weight: 700; text-align: left; cursor: pointer; }
.gt-nav-google span:last-child { max-width: 74px; }
body.dark-mode .gt-nav-google { background: #1E3A66; border-color: #3B5E96; color: #D6E4FF; }
/* araç modunda üst şeridin altındaki satır; sağda yön düğmesine yer kalır */
.gt-nav-arac { position: absolute; left: 10px; right: 72px; top: calc(var(--gt-nav-ust, calc(env(safe-area-inset-top, 0px) + 74px)) + 18px); z-index: 3; display: flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 48px; width: auto; margin: 0;
    padding: 6px 14px; border-radius: 16px; border: 1px solid #B6D0F7; background: #E8F0FE; color: #174EA6; font: inherit; font-size: 14px; line-height: 1.2; font-weight: 700; text-align: left; box-shadow: 0 3px 10px rgba(0,0,0,0.18); cursor: pointer; }
body.dark-mode .gt-nav-arac { background: #1E3A66; border-color: #3B5E96; color: #D6E4FF; }
.gt-nav.ozetli .gt-nav-arac { display: none; }
/* Google seçimi (alttan kart); rota panelinden de açılır */
.gt-nav-gs { position: fixed; inset: 0; z-index: 2000005; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,0.4); }
.gt-nav-gs .material-symbols-outlined { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.gt-nav-gs-k { width: 100%; max-width: 520px; max-height: 80vh; display: flex; flex-direction: column; box-sizing: border-box; padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); border-radius: 22px 22px 0 0; background: var(--surface, #fff); color: var(--text, #2D3748); }
.gt-nav-gs-bas { display: flex; align-items: center; gap: 8px; }
.gt-nav-gs-bas b { flex: 1; min-width: 0; font-size: 18px; line-height: 1.25; }
.gt-nav-gs-x { width: 48px; height: 48px; margin: 0 -8px 0 0; padding: 0; border: none; border-radius: 50%; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gt-nav-gs-k p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--text-muted, #5F6B7C); }
.gt-nav-gs-l { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; padding-top: 4px; }
.gt-nav-gs-s { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; flex: 0 0 auto; margin: 0; padding: 8px 14px; box-sizing: border-box; border-radius: 14px; border: 1px solid var(--border, #E2E8F0); background: var(--bg, #F7FAFC); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gt-nav-gs-s > .material-symbols-outlined:first-child { color: var(--primary, #5A67D8); }
.gt-nav-gs-s > .material-symbols-outlined:last-child { font-size: 18px; color: var(--text-muted, #5F6B7C); }
.gt-nav-gs-s.acildi > .material-symbols-outlined:first-child { color: var(--success, #2F855A); }
.gt-nav-gs-y { flex: 1; min-width: 0; }
.gt-nav-gs-y b { display: block; font-size: 15px; font-weight: 700; }
.gt-nav-gs-y small { display: block; font-size: 13px; line-height: 1.3; color: var(--text-muted, #5F6B7C); overflow-wrap: anywhere; }
body.gt-nav-acik #modal-step-nav-overlay { z-index: 2000006 !important; }
.gt-nav-bitir { width: 48px; height: 48px; border-radius: 50%; border: none; background: #FED7D7; color: #C53030; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; }
body.dark-mode .gt-nav-bitir { background: #742A2A; color: #FED7D7; }
/* sesli rehber kartı (1.1.20): alt çubuğun üstünde; varışta özet kartının içinde */
.gt-nav-ses { position: absolute; left: 10px; right: 10px; bottom: calc(var(--gt-nav-alt, calc(env(safe-area-inset-bottom, 0px) + 76px)) + 10px); z-index: 3; display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 60px;
    padding: 6px 8px 6px 14px; border-radius: 16px; overflow: hidden; background: var(--surface, #fff); color: var(--text, #2D3748); border: 1px solid var(--border, #E2E8F0); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.gt-nav-ses[hidden] { display: none; }
.gt-nav-ses > .material-symbols-outlined { color: var(--primary, #5A67D8); flex: 0 0 auto; }
.gt-nav-ses-y { flex: 1; min-width: 0; }
.gt-nav-ses-y b, .gt-nav-ses-y small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-nav-ses-y b { font-size: 15px; font-weight: 700; }
.gt-nav-ses-y small { font-size: 12px; color: var(--text-muted, #718096); margin-top: 1px; }
.gt-nav-ses-d { width: 48px; height: 48px; border-radius: 50%; border: none; padding: 0; margin: 0; background: var(--primary, #5A67D8); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; }
.gt-nav-ses-d .material-symbols-outlined { font-size: 28px; }
.gt-nav-ses-c { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--success, #38A169); }
.gt-nav.sesli .gt-nav-ortala { bottom: calc(var(--gt-nav-alt, calc(env(safe-area-inset-bottom, 0px) + 76px)) + var(--gt-nav-ses, 60px) + 22px); }
.gt-nav.sesli .gt-nav-atif { bottom: calc(var(--gt-nav-alt, calc(env(safe-area-inset-bottom, 0px) + 76px)) + var(--gt-nav-ses, 60px) + 16px); }
.gt-nav-ozet .gt-nav-ses { position: relative; left: auto; right: auto; bottom: auto; margin: 0 0 12px; box-shadow: none; }
/* atıf (kullanıcı görüşü 22 Kas: harita etiketinin üstüne biniyordu) → biraz yukarıda, daha küçük ve yarı şeffaf; etiket altından okunur */
.gt-nav-atif { position: absolute; left: 6px; bottom: calc(var(--gt-nav-alt, calc(env(safe-area-inset-bottom, 0px) + 76px)) + 16px); z-index: 2; font-size: 9px; line-height: 1.3; padding: 0 5px; border-radius: 5px;
    background: rgba(255,255,255,0.35); color: rgba(45,55,72,0.8); max-width: 62%; pointer-events: none; }
.gt-nav-atif a { color: inherit; text-decoration: none; pointer-events: auto; }
body.dark-mode .gt-nav-atif { background: rgba(26,32,44,0.35); color: rgba(226,232,240,0.8); }
.gt-nav-durak { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    background: #38A169; color: #fff; border: 2px solid #fff; font-size: 13px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.gt-nav-durak.gecildi { background: #A0AEC0; }
.gt-nav-durak.foto { width: 40px; height: 40px; position: relative; overflow: hidden; background: #38A169; }
.gt-nav-durak.foto .gt-pin-foto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gt-nav-durak-no { position: relative; }
/* alt durak numarası "2.1": daire hap olur (ana haritadaki gibi) */
.gt-nav-durak.alt { width: auto; min-width: 26px; padding: 0 6px; border-radius: 13px; font-size: 12px; }
.gt-nav-durak.alt.foto, .gt-nav-durak.alt.gecildi { width: 26px; padding: 0; border-radius: 50%; }
.gt-nav-durak.alt.foto { width: 40px; }
.gt-nav-durak.foto .gt-nav-durak-no { font-size: 11px; }
/* misafir giriş penceresi navigasyonun üstünde görünsün (özet kartı altta kalır) */
body.gt-nav-acik #gt-misafir-pencere { z-index: 2000010 !important; }
/* rota paneli girişi (map-engine sarmalanarak eklenir) */
.gt-nav-baslat { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 0; border: none; border-radius: 23px;
    background: var(--primary, #5A67D8); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(90,103,216,0.25); }
.gt-nav-baslat .material-symbols-outlined { font-size: 22px; }
.gt-nav-durak .material-symbols-outlined { font-size: 16px; }
/* oynatıcı Yol tarifi satırı: "Haritada yürü" eklenince iki düğme arasında boşluk (tek düğmeli satır değişmez) */
.gt-gp-dir-row:has(> .gt-gp-nav) { gap: 8px; flex-wrap: wrap; }
.gt-nav-ben { width: 44px; height: 44px; position: relative; pointer-events: none; }
.gt-nav-ben-nokta { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #3C4BC4; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 6px rgba(60,75,196,0.2); }
.gt-nav-ben-ok { position: absolute; left: 14px; top: 0; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid #3C4BC4; }
.gt-nav-ben.yonsuz .gt-nav-ben-ok { display: none; }
.gt-nav-bos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--text-muted, #718096); }
.gt-nav-bos .material-symbols-outlined { font-size: 48px; }
.gt-nav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: none; background: var(--primary, #5A67D8); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gt-nav-btn .material-symbols-outlined { font-size: 20px; }
/* KN3 dönüş ipucu: üst şeritte büyük ok + kısa yazı (alt satır: sıradaki durak) */
.gt-nav-ust.donus > .material-symbols-outlined { font-size: 42px; }
.gt-nav-ust.donus .gt-nav-ust-y b { font-size: 20px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }   /* uzun dillerde (RU / DE) yön kesilmesin: 2 satır */
/* KN3 Ayarlar → Navigasyon (Profili Düzenle → Hesap sekmesi, "Yasal ve Hesap"ın üstünde) */
.gt-nav-ayar { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.gt-nav-ayar-bas { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--text-muted, #718096); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 2px 4px; }
.gt-nav-ayar-bas .material-symbols-outlined { font-size: 16px; }
.gt-nav-ayar-satir { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface, #fff); border: 1px solid var(--border, #E2E8F0); color: var(--text, #2D3748); cursor: pointer; }
.gt-nav-ayar-satir > .material-symbols-outlined { font-size: 20px; color: var(--primary, #5A67D8); flex: 0 0 auto; }
.gt-nav-ayar-y { flex: 1; min-width: 0; }
.gt-nav-ayar-y b { display: block; font-size: 14px; font-weight: 600; }
.gt-nav-ayar-y small { display: block; font-size: 12px; color: var(--text-muted, #718096); margin-top: 1px; }
.gt-nav-ayar-satir--yon { flex-wrap: wrap; cursor: default; }
/* anahtar: uygulamanın genel onay kutusu stili (style.css) ezilir — yalnız bu kutunun içinde */
#gt-nav-ayar input.gt-nav-anahtar { appearance: none !important; -webkit-appearance: none !important; flex: 0 0 auto; width: 44px !important; height: 26px !important; min-width: 44px; min-height: 26px; margin: 0 !important; padding: 0 !important;
    border: none !important; border-radius: 13px !important; background: var(--border, #CBD5E0) !important; box-shadow: none !important; position: relative; cursor: pointer; transition: background 0.15s; accent-color: auto; }
#gt-nav-ayar input.gt-nav-anahtar::before { content: none !important; display: none !important; }
#gt-nav-ayar input.gt-nav-anahtar::after { content: '' !important; display: block !important; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left 0.15s; transform: none !important; }
#gt-nav-ayar input.gt-nav-anahtar:checked { background: var(--success, #38A169) !important; }
#gt-nav-ayar input.gt-nav-anahtar:checked::after { left: 21px; }
#gt-nav-ayar input.gt-nav-anahtar:focus-visible { outline: 2px solid var(--primary, #5A67D8); outline-offset: 2px; }
.gt-nav-ayar-secim { display: flex; width: 100%; gap: 0; border: 1px solid var(--border, #E2E8F0); border-radius: 10px; overflow: hidden; }
.gt-nav-ayar-secim button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 8px; border: none; background: transparent; color: var(--text, #2D3748); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.gt-nav-ayar-secim button + button { border-left: 1px solid var(--border, #E2E8F0); }
.gt-nav-ayar-secim button.secili { background: var(--primary, #5A67D8); color: #fff; }
body.dark-mode #gt-nav-ayar input.gt-nav-anahtar:not(:checked) { background: #4A5568 !important; }
/* KN4 bitiş özeti: varışta alt çubuğun yerine alttan kart (mesafe · süre · durak) + "Gezi günlüğüne ekle" / "Kapat" */
.gt-nav.ozetli .gt-nav-alt, .gt-nav.ozetli .gt-nav-ortala, .gt-nav.ozetli .gt-nav-atif { display: none; }
.gt-nav-ozet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; box-sizing: border-box; padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: var(--surface, #fff); color: var(--text, #2D3748); border-top: 1px solid var(--border, #E2E8F0); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,0.16); }
/* 25 Kas: anı formu kaydedilmeden kapanınca geri gelen aynı kart (navigasyon kapalı) */
.gt-nav-ozet-kap { position: fixed; inset: 0; z-index: 2000000; background: rgba(15,23,42,0.4); font-family: inherit; }
.gt-nav-ozet-kap .material-symbols-outlined { font-size: 22px; line-height: 1; }
.gt-nav-ozet-bas { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 12px; }
.gt-nav-ozet-bas .material-symbols-outlined { color: var(--success, #38A169); font-size: 26px; }
.gt-nav-ozet-sat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gt-nav-ozet-k { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--bg, #F7FAFC); border: 1px solid var(--border, #E2E8F0); text-align: center; min-width: 0; }
.gt-nav-ozet-k .material-symbols-outlined { font-size: 20px; color: var(--primary, #5A67D8); }
.gt-nav-ozet-k b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.gt-nav-ozet-k small { font-size: 12px; color: var(--text-muted, #718096); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-nav-ozet-l { margin: 10px 2px 0; font-size: 13px; color: var(--text-muted, #718096); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gt-nav-ozet-d { display: flex; gap: 8px; margin-top: 14px; }
.gt-nav-ozet-d button { min-height: 48px; border-radius: 24px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; }
.gt-nav-ozet-ekle { flex: 1 1 auto; min-width: 0; border: none; background: var(--primary, #5A67D8); color: #fff; }
.gt-nav-ozet-ekle span:last-child { line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* RU / DE uzun: 2 satır */
.gt-nav-ozet-ekle .material-symbols-outlined { font-size: 20px; }
.gt-nav-ozet-kapat { flex: 0 0 auto; border: 1px solid var(--border, #CBD5E0); background: transparent; color: var(--text, #2D3748); }
