/**
 * NEW AIRPORT TAXI - INTERACTIVE ISTANBUL AIRPORTS MAP STYLES
 * Luxury Dark Glassmorphism | SVG Vector Transit Map
 */

.nat-map-widget {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nat-map-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, #fef08a, #38bdf8, #d4af37, transparent);
}

.nat-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nat-map-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nat-map-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nat-map-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nat-map-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nat-map-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: natMapPulse 2s infinite;
}

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

/* Route Selector Tabs */
.nat-map-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}
.nat-map-tabs::-webkit-scrollbar {
  display: none;
}

.nat-map-tab-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition:color 0.2s ease,background-color 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease,opacity 0.2s ease,transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nat-map-tab-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.3);
}

.nat-map-tab-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Map SVG Canvas Container */
.nat-map-canvas-container {
  background: radial-gradient(circle at 50% 50%, #0d1527 0%, #060a14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
}

.nat-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Map Elements Styling */
.nat-map-water {
  fill: #08101e;
}

.nat-map-land-eu {
  fill: #111c33;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.nat-map-land-asia {
  fill: #0f192d;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.nat-map-bosphorus {
  fill: none;
  stroke: #070d1a;
  stroke-width: 16;
}

.nat-map-highway {
  fill: none;
  stroke: rgba(212, 175, 55, 0.25);
  stroke-width: 2.5;
  stroke-dasharray: 4, 4;
}

.nat-map-route-active {
  fill: none;
  stroke: #d4af37;
  stroke-width: 3.5;
  stroke-dasharray: 8, 4;
  animation: natRouteFlow 1.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

@keyframes natRouteFlow {
  to {
    stroke-dashoffset: -24;
  }
}

.nat-map-pin {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nat-map-pin:hover {
  transform: scale(1.15);
}

.nat-map-pin.active {
  transform: scale(1.2);
}

.nat-map-pin-pulse {
  animation: natPinPulse 2s infinite;
  transform-origin: center;
}

@keyframes natPinPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.8; }
}

.nat-map-label {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  fill: #ffffff;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.nat-map-sublabel {
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 500;
  fill: #94a3b8;
  pointer-events: none;
}

/* Active Route Information Card */
.nat-map-route-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nat-map-route-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 260px;
}

.nat-map-route-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nat-map-route-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.nat-map-route-fare-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.nat-map-route-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.nat-map-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nat-map-sep {
  color: rgba(212, 175, 55, 0.4);
}

.nat-map-guarantee-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nat-map-guarantee-line::-webkit-scrollbar {
  display: none;
}

.nat-map-feat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #cbd5e1;
  font-weight: 500;
}

.nat-map-check {
  color: #34d399;
  font-weight: 700;
}

/* WhatsApp CTA */
.nat-map-btn-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 18px rgba(16, 185, 129, 0.3);
  transition:color 0.2s cubic-bezier(0.4, 0, 0.2, 1),background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.nat-map-btn-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 24px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.nat-map-btn-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Responsive Layout & Touch Optimizations */
@media (max-width: 768px) {
  .nat-map-widget {
    padding: 1.15rem 0.9rem;
    margin: 1.5rem 0;
    border-radius: 14px;
  }

  .nat-map-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
  }

  .nat-map-title-wrap {
    gap: 0.55rem;
  }

  .nat-map-title-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  .nat-map-title {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .nat-map-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }

  .nat-map-tabs {
    gap: 0.45rem;
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .nat-map-tab-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.48rem 0.8rem;
    font-size: 0.78rem;
    -webkit-tap-highlight-color: transparent;
  }

  .nat-map-canvas-container {
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .nat-map-route-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
    padding: 1.1rem 0.95rem;
    border-radius: 12px;
  }

  .nat-map-route-info {
    min-width: 100%;
    align-items: center;
  }

  .nat-map-route-title-row {
    justify-content: center;
    gap: 0.55rem;
  }

  .nat-map-route-name {
    font-size: 1.05rem;
  }

  .nat-map-route-fare-badge {
    font-size: 1.35rem;
  }

  .nat-map-route-stats {
    justify-content: center;
    font-size: 0.82rem;
    gap: 0.55rem;
  }

  .nat-map-guarantee-line {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.4rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .nat-map-btn-cta {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
    box-sizing: border-box;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .nat-map-widget {
    padding: 0.95rem 0.7rem;
    border-radius: 12px;
  }

  .nat-map-title {
    font-size: 0.96rem;
  }

  .nat-map-tab-btn {
    font-size: 0.75rem;
    padding: 0.42rem 0.7rem;
  }

  .nat-map-route-name {
    font-size: 0.95rem;
  }

  .nat-map-route-fare-badge {
    font-size: 1.25rem;
  }

  .nat-map-guarantee-line {
    font-size: 0.73rem;
  }
}
