/* ==========================================================================
   SADRİ'NİN ROTASI — RENAULT T520 & CANLI WEB TAKİP STİL SİSTEMİ
   ========================================================================== */

:root {
  --bg-main: #06080d;
  --bg-card: rgba(14, 19, 31, 0.78);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-glass-heavy: rgba(10, 14, 24, 0.88);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-gold: #ffd166;
  --accent-gold-bright: #ffbe0b;
  --accent-neon-green: #00e676;
  --accent-red: #ff3366;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   0. INITIAL FULLSCREEN LOADER
   ========================================================================== */

.initial-loader {
  position: fixed;
  inset: 0;
  background: #06080d;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.initial-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.truck-spinner {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.6));
  animation: truckBounce 1.2s ease-in-out infinite alternate;
  margin-bottom: 16px;
}

.loader-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.loader-bars span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: barPulse 1s ease-in-out infinite;
}

.loader-bars span:nth-child(2) { animation-delay: 0.2s; background: var(--accent-blue); }
.loader-bars span:nth-child(3) { animation-delay: 0.4s; background: var(--accent-gold); }

.loader-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   1. LANDING & INDEX SCREEN (Renault T520 Arka Plan & Logo)
   ========================================================================== */

.landing-section {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Renault T520 Backdrop with Cinematic Movements */
.truck-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.truck-img-wrapper {
  position: absolute;
  inset: -20px;
  animation: slowCameraMove 24s ease-in-out infinite alternate;
}

.truck-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(0.68) contrast(1.15) saturate(1.1);
}

/* Headlight Beam Pulsing Effect */
.truck-headlight-beams {
  position: absolute;
  bottom: 15%;
  left: 18%;
  width: 350px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(0, 242, 254, 0.08) 50%, transparent 80%);
  filter: blur(25px);
  pointer-events: none;
  animation: beamFlicker 4s ease-in-out infinite alternate;
}

/* Trailer Glow Accent */
.trailer-glow-accent {
  position: absolute;
  top: 35%;
  left: 55%;
  width: 280px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.25) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  animation: trailerGlow 3s ease-in-out infinite alternate;
}

/* Dark Vignette to keep text readable */
.truck-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 9, 14, 0.4) 0%, rgba(6, 8, 13, 0.92) 85%);
  pointer-events: none;
}

.truck-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.4;
}

/* Container */
.landing-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top Center Brand Logo */
.top-logo-header {
  margin-bottom: 24px;
}

.logo-wrapper {
  width: 320px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 242, 254, 0.3));
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.brand-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Center Hero Status Area */
.hero-status-area {
  margin-bottom: 24px;
}

.live-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseCyan 1.5s infinite;
}

.live-pill-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.landing-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffd166 0%, #ffbe0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 209, 102, 0.4));
}

.landing-sub-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
}

/* Warning & Info Card (No code input) */
.access-warning-card {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.warning-icon-badge {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.lock-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 209, 102, 0.4);
  animation: rotateDial 12s linear infinite;
}

.warning-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.warning-paragraph {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.warning-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: #ff6b8b;
}

.warning-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Footer Chips */
.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   2. LIVE TRACKER SCREEN (Web Viewer & Map)
   ========================================================================== */

.tracker-main {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #e8ecef;
}

/* Natural Google Maps aesthetic: clear streets, vivid water and crisp labels */
.leaflet-tile-pane {
  /* Natural map coloring without artificial invert filters */
}

/* Map Layer Switcher (Google Maps Style: Harita / Uydu) */
.map-layer-switcher {
  position: absolute;
  top: 76px;
  right: 16px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.layer-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.layer-switch-btn.active {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050a14;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.4);
}

.layer-switch-btn svg {
  flex-shrink: 0;
}

/* Glass Card Helper */
.glass-card {
  background: var(--bg-glass-heavy);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Top Navigation Bar */
.top-nav {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.link-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  text-transform: capitalize;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.connection-status.online {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-neon-green);
}

.connection-status.offline {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: var(--accent-red);
}

.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
}

.exit-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Active Note Card */
.note-card {
  position: absolute;
  top: 76px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 999;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid var(--accent-gold);
  animation: slideDown 0.3s ease;
}

.note-icon {
  font-size: 20px;
}

.note-content {
  flex: 1;
}

.note-author {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.note-message {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #fff;
}

.note-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

/* Destination Card (Açılıp Kapanabilir Varış Noktası Kartı) */
.destination-card {
  position: absolute;
  top: 76px;
  left: 16px;
  z-index: 998;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: slideDown 0.3s ease;
  max-width: 320px;
}

.dest-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.dest-info {
  flex: 1;
  min-width: 0;
}

.dest-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dest-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dest-metrics {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dest-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dest-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Collapsed Mini Destination Chip (Hedef gizlendiğinde görünen kompakt buton) */
.dest-min-chip {
  position: absolute;
  top: 76px;
  left: 16px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInDown 0.25s ease;
}

.dest-min-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(13, 19, 31, 0.95);
  transform: translateY(-1px);
}

.dest-min-icon {
  font-size: 13px;
}

.dest-min-text {
  color: var(--accent-cyan);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dest-min-arrow {
  color: var(--text-muted);
}

/* Bottom HUD Panel (Açılıp Kapanabilir) */
.hud-panel {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  max-width: 620px;
  margin: 0 auto;
  z-index: 1000;
  border-radius: var(--radius-xl);
  padding: 12px 18px 14px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Header & Toggle Handle */
.hud-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding-bottom: 2px;
}

.hud-drag-handle {
  width: 38px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.hud-header:hover .hud-drag-handle {
  background: var(--accent-cyan);
  width: 48px;
}

.hud-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hud-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  flex-shrink: 0;
}

.hud-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Mini summary shown when HUD is collapsed */
.hud-mini-summary {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
}

.mini-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

.hud-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hud-toggle-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hud-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-header:hover .hud-toggle-btn {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.hud-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Collapsible Content Area */
.hud-collapsible-body {
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin-top 0.3s ease;
}

/* When Collapsed */
.hud-panel.collapsed {
  padding-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.hud-panel.collapsed .hud-collapsible-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  overflow: hidden;
}

.hud-panel.collapsed .hud-mini-summary {
  display: inline-flex;
}

.hud-panel.collapsed .hud-chevron {
  transform: rotate(180deg);
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hud-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hud-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hud-value-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.hud-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.hud-speed .hud-value {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.hud-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-icon {
  font-size: 13px;
  margin-right: 2px;
}

.motion-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.motion-pill.moving {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-neon-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.motion-pill.idle {
  background: rgba(255, 209, 102, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-secondary);
}

.last-seen {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulseCyan 1.5s infinite;
}

/* Custom Car Marker Styling in Leaflet */
.car-marker-container {
  position: relative;
  width: 72px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.car-marker-halo {
  position: absolute;
  top: 4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  border: 1.5px solid var(--accent-cyan);
  animation: markerPulse 2s ease-out infinite;
  pointer-events: none;
}

.car-marker-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  background: #0d131f;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
  transition: transform 0.4s ease;
}

/* Marker name label below the icon */
.marker-label {
  position: relative;
  z-index: 3;
  margin-top: 4px;
  padding: 2px 7px;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowCameraMove {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-10px, -6px); }
  100% { transform: scale(1.02) translate(10px, 4px); }
}

@keyframes logoFloat {
  0% { transform: translateY(0); filter: drop-shadow(0 8px 30px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(0, 242, 254, 0.25)); }
  100% { transform: translateY(-6px); filter: drop-shadow(0 14px 40px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(0, 242, 254, 0.5)); }
}

@keyframes beamFlicker {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.8; transform: scale(0.96); }
}

@keyframes trailerGlow {
  0% { opacity: 0.6; filter: blur(30px); }
  100% { opacity: 1; filter: blur(45px); }
}

@keyframes rotateDial {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes truckBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes barPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes markerPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Custom styling for Leaflet Zoom Controls */
.leaflet-bar {
  border: 1px solid var(--bg-card-border) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: rgba(13, 19, 31, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 15px !important;
  transition: all 0.2s ease;
}

.leaflet-bar a:hover {
  background-color: rgba(0, 242, 254, 0.2) !important;
  color: var(--accent-cyan) !important;
}

/* ==========================================================================
   Responsive & Mobile First Optimizations
   ========================================================================== */
@media (max-width: 600px) {
  /* Landing Screen on Mobile */
  .landing-screen {
    padding: 20px 12px;
    align-items: flex-start;
  }
  .landing-container {
    padding-top: 10px;
  }
  .top-logo-header {
    margin-bottom: 16px;
  }
  .logo-wrapper {
    width: 230px;
    max-width: 82vw;
  }
  .hero-status-area {
    margin-bottom: 16px;
  }
  .landing-main-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .landing-sub-desc {
    font-size: 0.86rem;
  }
  .access-warning-card {
    padding: 16px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
  }
  .warning-icon-badge {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  .warning-heading {
    font-size: 1.05rem;
  }
  .warning-paragraph {
    font-size: 0.84rem;
  }
  .footer-chip {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Live Tracker Nav on Mobile */
  .top-nav {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
  }
  .nav-left {
    gap: 6px;
    min-width: 0;
  }
  .nav-brand {
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .link-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .nav-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .connection-status {
    padding: 3px 6px;
    font-size: 10px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }

  /* Map Layer Switcher on Mobile */
  .map-layer-switcher {
    top: 54px;
    right: 8px;
    padding: 2px;
  }
  .layer-switch-btn {
    font-size: 11px;
    padding: 4px 8px;
    gap: 4px;
  }

  /* Cards on Mobile */
  .note-card {
    top: 54px;
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    padding: 8px 12px;
  }

  .destination-card {
    top: 54px;
    left: 8px;
    right: auto;
    max-width: calc(100% - 135px);
    padding: 6px 10px;
    gap: 8px;
  }
  .dest-icon { font-size: 16px; }
  .dest-name { font-size: 0.82rem; }
  .dest-metrics { font-size: 0.72rem; }
  .dest-close-btn { width: 22px; height: 22px; }

  .dest-min-chip {
    top: 54px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .dest-min-text { max-width: 85px; }

  /* Bottom HUD on Mobile */
  .hud-panel {
    bottom: 8px;
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    padding: 8px 12px 10px 12px;
    border-radius: var(--radius-lg);
  }
  .hud-drag-handle {
    width: 32px;
    height: 3px;
    margin-bottom: 6px;
  }
  .hud-tag {
    font-size: 10px;
  }
  .hud-mini-summary {
    font-size: 11px;
    gap: 5px;
  }
  .hud-toggle-label {
    display: none; /* Save space on mobile */
  }
  .hud-toggle-btn {
    width: 24px;
    height: 24px;
  }
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
  }
  .hud-item {
    padding: 6px 8px;
  }
  .hud-label {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .hud-value {
    font-size: 1.25rem;
  }
  .hud-footer {
    font-size: 10px;
    padding-top: 6px;
  }

  /* Reposition zoom buttons so they never clash with HUD on mobile */
  .leaflet-bottom.leaflet-right {
    bottom: auto !important;
    top: 96px !important;
    right: 8px !important;
  }
}
