/* ==============================================================================
   TAKSICO - Müşteri Arayüzü Stilleri (customer.css)
   Profesyonel, Hızlı, Vektör İkonlu, Kesinlikle Emojisiz
   ============================================================================== */

.customer-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  position: relative;
}

/* Üst Başlık / Navigasyon */
.customer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.92) 0%, rgba(8, 11, 17, 0.6) 70%, rgba(8, 11, 17, 0) 100%);
  backdrop-filter: blur(8px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080b11;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.brand-logo span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Harita Alanı */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 52vh;
  height: 52dvh;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  background-color: #0e1117;
}

/* Karanlık Harita: Bembeyaz Yollar & Ultra Net Sokak/Cadde/Mahalle İsimleri */
.map-dark-base .leaflet-tile {
  filter: brightness(2.2) contrast(3.4) grayscale(0.85);
}

.map-dark-labels .leaflet-tile {
  filter: brightness(3.2) contrast(2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 1px #000000);
}

/* Harita Sabit Merkez İğnesi */
.map-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 400;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-bubble {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-primary);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  margin-bottom: 4px;
}

.pin-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.locate-btn {
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 400;
  width: 42px;
  height: 42px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}
.locate-btn:hover {
  background-color: var(--border-strong);
  color: var(--primary);
}

/* Alt Aksiyon Paneli */
.action-panel {
  flex: 1;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom));
  margin-top: -16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.pickup-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.pickup-box:hover {
  border-color: var(--border-primary);
}

.pickup-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pickup-details {
  flex: 1;
  overflow: hidden;
}

.pickup-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.pickup-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-call-btn {
  height: 54px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.quick-call-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==============================================================================
   Çağrı Durum Ekranı (Tam Ortalanmış, Profesyonel UI/UX)
   ============================================================================== */
.call-status-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
  margin-top: 60px;
  padding: 1.5rem 1rem calc(2rem + var(--safe-bottom));
  width: 100%;
  position: relative;
}

.call-status-card {
  max-width: 520px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-out;
}

.status-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.radar-spinner {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
  animation: pulseRadar 2.2s infinite ease-out;
}

@keyframes pulseRadar {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 24px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.call-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  max-width: 100%;
}

.call-meta-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dinamik İpuçları Kutusu (Bilgilendirme Ticker) */
.call-tips-container {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tip-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tip-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}

/* Sürücü Kartı & ETA */
.driver-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.driver-eta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.eta-stat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eta-stat-item .stat-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.eta-stat-info {
  display: flex;
  flex-direction: column;
}

.eta-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.eta-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.driver-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.driver-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 2px solid var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Çift İletişim Butonları (Ara & WhatsApp) */
.driver-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.call-action-btn {
  height: 46px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
}

/* Yıldız Değerlendirmesi */
.star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-dim);
  fill: none;
}
.star-btn.active svg {
  stroke: var(--primary);
  fill: var(--primary);
}

.test-driver-btn {
  margin-top: 1rem;
  background: transparent;
  border: 1px dashed var(--border-primary);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.test-driver-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-style: solid;
}

@media (min-width: 768px) {
  .map-wrapper {
    height: 62vh;
  }
  .action-panel {
    max-width: 480px;
    margin: -24px auto 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
  }
}

