/* V4.33 — Tesla-inspired minimalist accessible navigation map.
   No Tesla branding/assets are used; only the spacious map-first interaction pattern. */
@media (max-width:760px){
  .tesla-map-layer{padding:0!important;overflow:hidden!important;background:#e9ecec!important}
  .tesla-map-screen{position:relative;width:100%;height:100svh;min-height:620px;overflow:hidden;background:#dfe4e4;color:#0e2535}
  .tesla-map-canvas{position:absolute;inset:0;z-index:1;background:#dfe4e4}
  .tesla-map-canvas .leaflet-tile-pane{filter:saturate(.72) contrast(.94) brightness(1.04)}
  .tesla-map-canvas .leaflet-control-attribution{font-size:7px!important;background:rgba(255,255,255,.72)!important}
  .tesla-map-canvas .leaflet-control-zoom{display:none!important}
  .tesla-map-canvas .leaflet-popup-content-wrapper{border-radius:16px;box-shadow:0 10px 30px rgba(20,32,40,.16)}
  .tesla-map-canvas .leaflet-popup-content{font-size:12px;font-weight:700;color:#12364d;margin:10px 13px}

  .tesla-map-topbar{position:absolute;z-index:500;left:10px;right:10px;top:calc(10px + env(safe-area-inset-top));display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid rgba(255,255,255,.72);border-radius:19px;background:rgba(248,250,250,.92);box-shadow:0 10px 28px rgba(17,34,45,.14);backdrop-filter:blur(18px)}
  .tesla-back,.tesla-top-actions button,.tesla-map-fab-stack button{border:0;background:#fff;color:#122e40;box-shadow:0 3px 14px rgba(22,42,54,.11);font-weight:900}
  .tesla-back{width:42px;height:42px;border-radius:14px;font-size:28px;line-height:1}
  .tesla-top-title{min-width:0;display:grid;gap:2px}
  .tesla-top-title small{font-size:8px;letter-spacing:.11em;color:#5d6d77;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-top-title h2{margin:0;font-size:17px;line-height:1.1;color:#102c3f;font-weight:900}
  .tesla-top-actions{display:flex;gap:6px}
  .tesla-top-actions button{width:40px;height:40px;border-radius:13px;font-size:17px}
  .tesla-top-actions button[aria-pressed="true"]{background:#0b7f62;color:#fff}

  .tesla-route-panel{position:absolute;z-index:480;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));display:grid;gap:9px;max-height:62%;overflow:auto;padding:12px;border:1px solid rgba(255,255,255,.8);border-radius:24px;background:rgba(249,250,250,.95);box-shadow:0 16px 42px rgba(19,36,47,.19);backdrop-filter:blur(20px);overscroll-behavior:contain}
  .tesla-auto-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:9px;align-items:center;padding:1px 2px 2px}
  .tesla-auto-dot{width:9px;height:9px;border-radius:50%;background:#13a36f;box-shadow:0 0 0 5px rgba(19,163,111,.11)}
  .tesla-auto-row>div{display:grid;gap:1px}.tesla-auto-row small{font-size:8px;letter-spacing:.13em;color:#64737d;font-weight:900}.tesla-auto-row strong{font-size:11px;color:#113249}
  .tesla-live-badge{font-size:9px;font-weight:900;letter-spacing:.08em;padding:6px 8px;border-radius:999px;background:#edf2f3;color:#66767f}.tesla-live-badge.is-live{background:#e6f7ef;color:#07865f}

  .tesla-field{display:grid;gap:5px;font-size:9px;font-weight:900;letter-spacing:.06em;color:#5d6e79}
  .tesla-field select{width:100%;min-height:48px;border:1px solid #dbe1e2;border-radius:15px;background:#fff;color:#102f44;padding:0 42px 0 13px;font-size:15px;font-weight:850;outline:none}
  .tesla-field select:focus{border-color:#0d7ca5;box-shadow:0 0 0 3px rgba(13,124,165,.12)}

  .tesla-profile-group{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .tesla-profile{min-height:48px;border:1px solid #dde2e3;border-radius:14px;background:#fff;color:#38505f;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:4px;padding:7px 8px;text-align:left;font-size:10px}
  .tesla-profile span{width:20px;height:20px;border-radius:7px;background:#edf2f4;display:grid;place-items:center;font-size:10px}.tesla-profile b{line-height:1.15}
  .tesla-profile.is-active{border-color:#0d7ca5;background:#eef8fb;color:#0b5f7c;box-shadow:0 0 0 2px rgba(13,124,165,.08)}.tesla-profile.is-active span{background:#0d7ca5;color:#fff}

  .tesla-destination-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border-radius:16px;background:#0f2738;color:#fff}
  .tesla-destination-card>div{display:grid;gap:2px;min-width:0}.tesla-destination-card small{font-size:8px;letter-spacing:.13em;color:#9cb2bf;font-weight:900}.tesla-destination-card strong{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tesla-destination-card span{font-size:9px;color:#c9d6dd;line-height:1.35}
  .tesla-guide-link{text-decoration:none;min-width:62px;min-height:40px;border-radius:12px;background:#fff;color:#173649;display:grid;place-items:center;font-size:10px;font-weight:900;padding:0 8px}

  .tesla-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
  .tesla-metrics>div{min-width:0;padding:8px 6px;border:1px solid #e0e4e5;border-radius:13px;background:#fff;text-align:center}.tesla-metrics small{display:block;font-size:7px;letter-spacing:.08em;color:#75838b;font-weight:900}.tesla-metrics strong{display:block;margin-top:3px;font-size:12px;color:#103047;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .tesla-route-warning{padding:9px 11px;border-radius:13px;background:#fff5dd;border:1px solid #efd38c;color:#6b5114;font-size:10px;font-weight:700;line-height:1.4}.tesla-route-warning.is-error{background:#fff0ef;border-color:#edc1bd;color:#8d3129}.tesla-route-warning.is-good{background:#eaf8f1;border-color:#bce1cf;color:#176744}
  .tesla-route-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tesla-route-actions button{min-height:44px;border:0;border-radius:13px;background:#e9eff1;color:#173649;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:900;font-size:10px}.tesla-route-actions button:first-child{background:#0d7ca5;color:#fff}.tesla-route-actions span{font-size:16px}

  .tesla-next-step{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:9px;padding:9px 11px;border-radius:15px;background:#fff;border:1px solid #dfe4e5}.tesla-turn-icon{width:42px;height:42px;border-radius:12px;background:#0d7ca5;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}.tesla-next-step>div{display:grid;gap:2px}.tesla-next-step small{font-size:7px;letter-spacing:.12em;color:#73828b;font-weight:900}.tesla-next-step strong{font-size:11px;line-height:1.3;color:#12344a}
  .tesla-safety{margin:0;padding:0 2px;color:#6d7a82;font-size:8px;line-height:1.35}

  .tesla-map-fab-stack{position:absolute;z-index:470;right:12px;top:calc(86px + env(safe-area-inset-top));display:grid;gap:7px}.tesla-map-fab-stack button{width:40px;height:40px;border-radius:13px;font-size:20px}

  .tesla-user-marker{width:24px;height:24px;border-radius:50%;background:#137ca8;border:4px solid #fff;box-shadow:0 0 0 5px rgba(19,124,168,.18),0 4px 14px rgba(17,38,52,.28)}
  .tesla-dest-marker{width:30px;height:30px;border-radius:50% 50% 50% 9px;background:#e84f46;border:4px solid #fff;transform:rotate(-45deg);box-shadow:0 6px 18px rgba(17,38,52,.28);position:relative}.tesla-dest-marker:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#fff;left:7px;top:7px}
  .tesla-place-marker{width:14px;height:14px;border-radius:50%;background:#f2b11d;border:3px solid #fff;box-shadow:0 3px 12px rgba(17,38,52,.25)}

  @media (orientation:landscape) and (min-width:620px){
    .tesla-route-panel{left:12px;right:auto;top:calc(84px + env(safe-area-inset-top));bottom:12px;width:330px;max-height:none}
    .tesla-map-topbar{left:355px}
    .tesla-map-fab-stack{right:14px;top:calc(84px + env(safe-area-inset-top))}
  }
}

/* V4.34 — live 3D-style navigation HUD and automatic accessible rerouting */
@media (max-width:760px){
  .tesla-map-stage{position:absolute;inset:0;z-index:1;overflow:hidden;background:#dfe4e4;perspective:1150px;perspective-origin:50% 78%}
  .tesla-map-stage .tesla-map-canvas{position:absolute;inset:-5%;z-index:1;transition:transform .42s ease,filter .42s ease;transform-origin:50% 82%;will-change:transform}
  .tesla-map-screen.is-3d .tesla-map-stage .tesla-map-canvas{transform:rotateX(12deg) scale(1.10);filter:saturate(.82) contrast(.98) brightness(1.02)}
  .tesla-perspective-horizon{position:absolute;z-index:2;pointer-events:none;inset:0;background:linear-gradient(to bottom,rgba(229,238,242,.42) 0,rgba(229,238,242,.10) 18%,rgba(255,255,255,0) 43%,rgba(10,36,55,.02) 100%);opacity:0;transition:opacity .35s ease}
  .tesla-map-screen.is-3d .tesla-perspective-horizon{opacity:1}

  .tesla-perspective-btn{font-size:11px!important;letter-spacing:.02em}
  .tesla-perspective-btn.is-active{background:#102f44!important;color:#fff!important}

  .tesla-maneuver-hud{position:absolute;z-index:495;left:12px;right:12px;top:calc(86px + env(safe-area-inset-top));min-height:74px;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:11px;padding:10px 13px;border:1px solid rgba(255,255,255,.82);border-radius:20px;background:rgba(13,44,65,.94);color:#fff;box-shadow:0 12px 34px rgba(14,35,48,.22);backdrop-filter:blur(18px)}
  .tesla-maneuver-hud[hidden]{display:none!important}
  .tesla-maneuver-arrow{width:52px;height:52px;border-radius:16px;background:#1185b6;color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
  .tesla-maneuver-hud>div{min-width:0;display:grid;gap:2px}
  .tesla-maneuver-hud small{font-size:11px;font-weight:900;letter-spacing:.08em;color:#8fd7f1}
  .tesla-maneuver-hud strong{font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-maneuver-hud span:not(.tesla-maneuver-arrow){font-size:10px;color:#c8d7df;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .tesla-access-hud{position:absolute;z-index:494;left:12px;right:64px;top:calc(168px + env(safe-area-inset-top));display:flex;gap:6px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:none;pointer-events:auto}
  .tesla-access-hud::-webkit-scrollbar{display:none}
  .tesla-access-hud[hidden]{display:none!important}
  .tesla-access-chip{flex:0 0 auto;min-height:30px;display:flex;align-items:center;padding:0 10px;border:1px solid rgba(255,255,255,.78);border-radius:999px;background:rgba(249,251,251,.93);color:#284658;font-size:9px;font-weight:900;box-shadow:0 5px 16px rgba(18,38,51,.11);backdrop-filter:blur(12px)}
  .tesla-access-chip.is-good{background:rgba(232,249,241,.96);border-color:#b8dec9;color:#0a7451}
  .tesla-access-chip.is-warn{background:rgba(255,247,222,.97);border-color:#efd591;color:#7b5a0d}
  .tesla-access-chip.is-bad{background:rgba(255,237,235,.97);border-color:#e8b4af;color:#913930}

  .tesla-user-marker{position:relative;width:28px;height:28px;border-radius:8px 8px 13px 13px;background:#0b7ea9;border:4px solid #fff;box-shadow:0 0 0 6px rgba(11,126,169,.18),0 4px 15px rgba(17,38,52,.30);transform-origin:50% 50%;transition:transform .22s linear}
  .tesla-user-marker:before{content:"";position:absolute;left:50%;top:-12px;transform:translateX(-50%);width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:13px solid #0b7ea9;filter:drop-shadow(0 -1px 0 #fff)}
  .tesla-user-marker:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#fff;left:7px;top:7px}

  .tesla-route-panel.is-navigating .tesla-auto-dot{animation:teslaPulse 1.4s ease-in-out infinite}
  .tesla-route-panel.is-navigating .tesla-live-badge{background:#daf4e8;color:#087c59}
  @keyframes teslaPulse{0%,100%{box-shadow:0 0 0 4px rgba(19,163,111,.10)}50%{box-shadow:0 0 0 9px rgba(19,163,111,.02)}}

  @media (prefers-reduced-motion:reduce){
    .tesla-map-stage .tesla-map-canvas,.tesla-perspective-horizon,.tesla-user-marker{transition:none!important}
    .tesla-route-panel.is-navigating .tesla-auto-dot{animation:none!important}
  }

  @media (orientation:landscape) and (min-width:620px){
    .tesla-map-screen.is-3d .tesla-map-stage .tesla-map-canvas{transform:rotateX(16deg) scale(1.13)}
    .tesla-maneuver-hud{left:365px;right:68px;top:calc(86px + env(safe-area-inset-top));max-width:560px}
    .tesla-access-hud{left:365px;right:68px;top:calc(168px + env(safe-area-inset-top));max-width:760px}
  }
}

/* V4.39 — sade Tesla tarzı Yürüme Modu.
   Rota hazırlandığında planlama kontrolleri geri plana alınır;
   harita, sonraki manevra ve sesli yönlendirme ana odak olur. */
@media (max-width:760px){
  .tesla-panel-head{display:none;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 4px;color:#123249}
  .tesla-panel-head strong{font-size:13px;font-weight:950}
  .tesla-panel-head button{width:38px;height:38px;border:0;border-radius:12px;background:#edf2f3;color:#173649;font-size:23px;font-weight:900}

  .tesla-walk-panel{position:absolute;z-index:492;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:none;gap:8px;padding:9px;border:1px solid rgba(255,255,255,.86);border-radius:22px;background:rgba(249,251,251,.96);box-shadow:0 16px 40px rgba(16,34,45,.18);backdrop-filter:blur(22px)}
  .tesla-walk-panel[hidden]{display:none!important}
  .tesla-map-screen.is-walking .tesla-walk-panel:not([hidden]){display:grid}

  .tesla-walk-summary{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:8px;padding:0 2px}
  .tesla-walk-summary>div{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"mode dest" "overview overview";column-gap:8px;align-items:center}
  .tesla-walk-mode{grid-area:mode;font-size:8px;letter-spacing:.11em;font-weight:950;color:#0b7f62;white-space:nowrap}
  .tesla-walk-destination{grid-area:dest;font-size:15px;font-weight:950;color:#102f44;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-walk-overview{grid-area:overview;margin-top:2px;font-size:9px;color:#667983;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-walk-details-btn{width:44px;height:44px;border:0;border-radius:14px;background:#edf2f3;color:#173649;font-size:20px;font-weight:950;box-shadow:inset 0 0 0 1px #dce4e6}

  .tesla-walk-next{display:grid;grid-template-columns:58px minmax(0,1fr) 46px;gap:10px;align-items:center;padding:10px;border-radius:18px;background:#102e42;color:#fff}
  .tesla-walk-arrow{width:54px;height:54px;border-radius:17px;background:#1185b6;color:#fff;display:grid;place-items:center;font-size:34px;font-weight:950;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
  .tesla-walk-next>div{min-width:0;display:grid;gap:2px}
  .tesla-walk-distance{font-size:10px;letter-spacing:.07em;font-weight:950;color:#8fd7f1}
  .tesla-walk-instruction{font-size:16px;line-height:1.15;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-walk-voice-btn{width:46px;height:46px;border:0;border-radius:15px;background:#fff;color:#173649;font-size:20px;box-shadow:none}
  .tesla-walk-voice-btn[aria-pressed="true"]{background:#0b8a69;color:#fff}

  /* Yürüme sırasında büyük ayar paneli tamamen gizlenir. */
  .tesla-map-screen.is-walking .tesla-route-panel{display:none}
  .tesla-map-screen.is-walking.show-route-details .tesla-route-panel{display:grid;z-index:510;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));max-height:72%;padding:12px;box-shadow:0 20px 60px rgba(8,25,37,.28)}
  .tesla-map-screen.is-walking.show-route-details .tesla-panel-head{display:flex}
  .tesla-map-screen.is-walking.show-route-details:after{content:"";position:absolute;z-index:505;inset:0;background:rgba(8,23,34,.25);pointer-events:none}
  .tesla-map-screen.is-walking.show-route-details .tesla-route-panel{pointer-events:auto}

  /* Rota hazırken üst bar daha sakin ve kompakt. */
  .tesla-map-screen.is-walking .tesla-map-topbar{grid-template-columns:44px minmax(0,1fr) auto;padding:8px 9px;border-radius:18px}
  .tesla-map-screen.is-walking .tesla-top-title small{display:none}
  .tesla-map-screen.is-walking .tesla-top-title h2{font-size:16px}
  .tesla-map-screen.is-walking .tesla-top-actions button{width:38px;height:38px;border-radius:12px}

  /* Sonraki manevra büyük, erişilebilirlik bilgileri ise tek satır ve yardımcı. */
  .tesla-map-screen.is-walking .tesla-maneuver-hud{top:calc(78px + env(safe-area-inset-top));left:12px;right:12px;min-height:72px;border-radius:19px;padding:9px 12px;grid-template-columns:56px minmax(0,1fr)}
  .tesla-map-screen.is-walking .tesla-maneuver-arrow{width:50px;height:50px;border-radius:15px}
  .tesla-map-screen.is-walking .tesla-maneuver-hud strong{font-size:18px}
  .tesla-map-screen.is-walking .tesla-access-hud{top:calc(158px + env(safe-area-inset-top));right:12px}
  .tesla-map-screen.is-walking .tesla-access-chip{min-height:28px;font-size:8.5px;padding:0 9px}

  /* Yürüme modunda harita kontrolleri tek bir dikey mini grup olarak kalır. */
  .tesla-map-screen.is-walking .tesla-map-fab-stack{right:12px;top:auto;bottom:calc(164px + env(safe-area-inset-bottom))}
  .tesla-map-screen.is-walking .tesla-map-fab-stack button{width:38px;height:38px;border-radius:12px;font-size:18px}

  /* Planlama modunda mevcut zengin panel korunur. */
  .tesla-map-screen:not(.is-walking) .tesla-walk-panel{display:none!important}

  @media (orientation:landscape) and (min-width:620px){
    .tesla-map-screen.is-walking .tesla-map-topbar{left:356px;right:12px}
    .tesla-map-screen.is-walking .tesla-maneuver-hud{left:356px;right:70px;top:calc(78px + env(safe-area-inset-top));max-width:620px}
    .tesla-map-screen.is-walking .tesla-access-hud{left:356px;right:70px;top:calc(158px + env(safe-area-inset-top));max-width:760px}
    .tesla-map-screen.is-walking .tesla-walk-panel:not([hidden]){left:12px;right:auto;bottom:12px;width:320px;display:grid}
    .tesla-map-screen.is-walking .tesla-map-fab-stack{right:14px;bottom:18px}
    .tesla-map-screen.is-walking.show-route-details .tesla-route-panel{left:12px;right:auto;top:calc(78px + env(safe-area-inset-top));bottom:12px;width:330px;max-height:none}
  }
}

/* V4.41 — canlı kişi / araç simgesi ve gerçek GPS hareketi */
@media (max-width:760px){
  .tesla-transport-block{display:grid;gap:6px}
  .tesla-transport-block>small{font-size:8px;letter-spacing:.12em;font-weight:950;color:#647782;padding-left:2px}
  .tesla-transport-group{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .tesla-transport{min-height:46px;border:1px solid #dde4e7;border-radius:14px;background:#fff;color:#26465a;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:900}
  .tesla-transport span{font-size:20px;line-height:1}.tesla-transport b{font-weight:950}
  .tesla-transport.is-active{border-color:#0c84b0;background:#eaf7fb;color:#075e7e;box-shadow:inset 0 0 0 1px rgba(12,132,176,.12)}
  .tesla-map-screen.is-car-mode .tesla-profile-group{display:none}

  .tesla-nav-start-btn{min-height:48px;border:0;border-radius:16px;background:#0d7ca5;color:#fff;font-size:14px;font-weight:950;letter-spacing:.01em;box-shadow:0 7px 18px rgba(13,124,165,.18)}
  .tesla-nav-start-btn.is-active{background:#102f44}

  .tesla-live-marker-host{background:transparent!important;border:0!important}
  .tesla-live-marker{--heading:0deg;position:relative;width:56px;height:56px;display:grid;place-items:center;transform:rotate(var(--heading));transform-origin:50% 50%;transition:filter .18s ease;filter:drop-shadow(0 7px 12px rgba(10,39,57,.26))}
  .tesla-live-pulse{position:absolute;inset:5px;border-radius:50%;background:rgba(11,126,169,.14);border:1px solid rgba(11,126,169,.23);transform:scale(.86);opacity:.72}
  .tesla-live-marker.is-live .tesla-live-pulse{animation:heartLivePulse 1.45s ease-out infinite}
  .tesla-live-heading{position:absolute;left:50%;top:-9px;width:0;height:0;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:14px solid #0b7ea9;filter:drop-shadow(0 -1px 0 #fff)}
  .tesla-live-symbol{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#0b7ea9;border:4px solid #fff;box-shadow:0 0 0 4px rgba(11,126,169,.15)}
  .tesla-live-symbol svg{width:23px;height:23px;fill:#fff}
  .tesla-live-marker--car .tesla-live-symbol{width:44px;height:34px;border-radius:12px;background:#102f44}
  .tesla-live-marker--car .tesla-live-symbol svg{width:29px;height:23px;transform:none}
  .tesla-live-marker--car .tesla-live-heading{border-bottom-color:#102f44}
  @keyframes heartLivePulse{0%{transform:scale(.75);opacity:.52}70%{transform:scale(1.32);opacity:.05}100%{transform:scale(1.4);opacity:0}}

  .tesla-map-screen.is-car-mode .tesla-walk-mode{color:#0d6e9a}
  .tesla-map-screen.is-car-mode .tesla-walk-arrow{background:#102f44}
  .tesla-map-screen.is-car-mode .tesla-access-hud{display:none!important}

  .tesla-safety-dock{bottom:220px}

  @media (prefers-reduced-motion:reduce){
    .tesla-live-marker{transition:none!important}.tesla-live-marker.is-live .tesla-live-pulse{animation:none!important}
  }
  @media (orientation:landscape) and (min-width:620px){
    .tesla-safety-dock{bottom:18px;right:70px;left:auto;width:auto}
  }
}

/* V4.43 - Rota başlatıldığında doğrudan canlı yol görünümü */
.tesla-map-screen.nav-live .tesla-route-panel{display:none!important}
.tesla-map-screen.nav-live .tesla-walk-panel:not([hidden]){display:grid}
.tesla-map-screen.nav-live .tesla-map-stage{filter:none}
.tesla-map-screen.nav-live .tesla-walk-summary{opacity:.98}
.tesla-map-screen.nav-live .tesla-nav-start-btn{background:#102f44}
@media (max-width:760px){
  .tesla-map-screen.nav-live .tesla-walk-panel{padding:8px 9px;border-radius:20px}
  .tesla-map-screen.nav-live .tesla-walk-overview{font-size:11px}
}

/* V4.44 — sade tek yönlendirme yüzeyi. Yürürken tek adres/yön bilgisi üst kartta kalır. */
@media (max-width:760px){
  .tesla-map-screen.nav-live .tesla-map-topbar{left:10px;right:10px;top:calc(10px + env(safe-area-inset-top));grid-template-columns:42px minmax(0,1fr) auto;padding:7px 8px;border-radius:18px}
  .tesla-map-screen.nav-live .tesla-top-title small{display:none!important}
  .tesla-map-screen.nav-live .tesla-top-title h2{font-size:17px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-map-screen.nav-live .tesla-top-actions{gap:5px}
  .tesla-map-screen.nav-live .tesla-top-actions button{width:38px;height:38px;border-radius:12px;font-size:17px}

  /* Tek ve büyük yönlendirme kartı. */
  .tesla-map-screen.nav-live .tesla-maneuver-hud{top:calc(72px + env(safe-area-inset-top));left:12px;right:12px;min-height:86px;padding:10px 13px;border-radius:20px;grid-template-columns:60px minmax(0,1fr);box-shadow:0 12px 32px rgba(8,31,48,.20)}
  .tesla-map-screen.nav-live .tesla-maneuver-arrow{width:56px;height:56px;border-radius:17px;font-size:35px}
  .tesla-map-screen.nav-live .tesla-maneuver-hud small{font-size:12px}
  .tesla-map-screen.nav-live .tesla-maneuver-hud strong{font-size:22px;line-height:1.05}
  .tesla-map-screen.nav-live .tesla-maneuver-hud span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* Yürüyüş sırasında erişilebilirlik detayları gizlenir; ayrıntılar menüsünden erişilir. */
  .tesla-map-screen.nav-live .tesla-access-hud{display:none!important}
  .tesla-map-screen.nav-live .tesla-map-fab-stack{display:none!important}

  /* Alt panel artık yalnız kalan rota özeti + durdur/detay. Tekrar yön tarifi yok. */
  .tesla-map-screen.nav-live .tesla-walk-panel{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px;border-radius:19px;background:rgba(250,251,251,.94);backdrop-filter:blur(20px);box-shadow:0 12px 34px rgba(8,29,43,.17)}
  .tesla-map-screen.nav-live .tesla-walk-summary{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;padding:0 2px}
  .tesla-map-screen.nav-live .tesla-walk-summary>div{display:flex;align-items:center;gap:7px;min-width:0}
  .tesla-map-screen.nav-live .tesla-walk-mode{font-size:8px;letter-spacing:.09em}
  .tesla-map-screen.nav-live .tesla-walk-destination{font-size:14px;max-width:44%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tesla-map-screen.nav-live .tesla-walk-overview{margin:0 0 0 auto;font-size:9px;white-space:nowrap;color:#687b87}
  .tesla-map-screen.nav-live .tesla-walk-details-btn{width:42px;height:42px;border-radius:13px}
  .tesla-map-screen.nav-live .tesla-compact-stats{grid-column:1;display:grid;grid-template-columns:auto minmax(0,1fr) 40px;gap:7px;align-items:center;min-height:48px;padding:6px 8px;border-radius:14px;background:#102f44;color:#fff}
  .tesla-map-screen.nav-live .tesla-compact-stats>span:first-child{font-size:14px;font-weight:950;color:#8fd7f1;white-space:nowrap}
  .tesla-map-screen.nav-live .tesla-compact-stats>span:nth-child(2){font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tesla-map-screen.nav-live .tesla-walk-voice-btn{width:40px;height:40px;border-radius:12px;background:#fff;color:#16364a;font-size:17px}
  .tesla-map-screen.nav-live .tesla-nav-start-btn{grid-column:2;width:48px;min-width:48px;max-width:48px;min-height:48px;border-radius:14px;font-size:0;padding:0;position:relative}
  .tesla-map-screen.nav-live .tesla-nav-start-btn:after{content:"■";font-size:18px;color:#fff;position:absolute;inset:0;display:grid;place-items:center}

  /* Canlı rota sırasında yalnız SOS görünür; diğer güvenlik araçları Detaylar içinden açılabilir. */
  .tesla-map-screen.nav-live .tesla-safety-dock{left:auto;right:12px;bottom:calc(78px + env(safe-area-inset-bottom));width:auto;padding:0;background:transparent;border:0;box-shadow:none;backdrop-filter:none}
  .tesla-map-screen.nav-live .tesla-safety-dock #safetyReportBtn,.tesla-map-screen.nav-live .tesla-safety-dock #safetyNearbyBtn{display:none!important}
  .tesla-map-screen.nav-live .tesla-safety-dock #safetyEmergencyBtn{width:46px;height:46px;min-width:46px;padding:0;border-radius:15px;display:grid;place-items:center;box-shadow:0 8px 18px rgba(140,28,22,.22)}
  .tesla-map-screen.nav-live .tesla-safety-dock #safetyEmergencyBtn span{display:none}.tesla-map-screen.nav-live .tesla-safety-dock #safetyEmergencyBtn b{font-size:11px}

  /* Google 3B katmanı açıkken eski Leaflet/perspektif görünümü görünmez. */
  .tesla-map-screen.is-google-live #teslaMapCanvas{visibility:hidden!important}
  .tesla-map-screen.is-google-live .tesla-perspective-horizon{display:none!important}

  @media (orientation:landscape) and (min-width:620px){
    .tesla-map-screen.nav-live .tesla-map-topbar{left:12px;right:12px}
    .tesla-map-screen.nav-live .tesla-maneuver-hud{left:12px;right:auto;width:min(500px,44vw)}
    .tesla-map-screen.nav-live .tesla-walk-panel{left:12px;right:auto;width:370px}
  }
}
@media (max-width:760px){
  .tesla-compact-stats{display:grid;grid-template-columns:auto minmax(0,1fr) 44px;gap:8px;align-items:center;padding:8px 10px;border-radius:16px;background:#102f44;color:#fff}
  .tesla-compact-stats>span:first-child{font-size:13px;font-weight:950;color:#8fd7f1;white-space:nowrap}
  .tesla-compact-stats>span:nth-child(2){font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
