/* ==========================================================================
   TICHEMA RIDER APP — MODERN LIGHT THEME
   ========================================================================== */

.app-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: #FFFFFF;
}

/* Sidebar / Booking Console */
.app-sidebar {
  width: 440px;
  min-width: 400px;
  height: 100%;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
  position: relative;
}

.app-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.app-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FFFFFF;
}

/* Map Container */
.app-map-container {
  flex: 1;
  width: calc(100vw - 440px);
  height: 100vh;
  min-height: 100vh;
  position: relative;
  background: #E2E8F0;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 1;
  background: #E2E8F0;
}

/* Location Inputs & Auto-suggest */
.location-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.loc-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.loc-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
}

.loc-input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 12px 12px 42px;
  color: #0F172A;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.loc-input:focus {
  outline: none;
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
  list-style: none;
}

.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.suggestion-item:hover {
  background: #FEF3C7;
}

.suggestion-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0F172A;
}

.suggestion-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Vehicle Option Cards */
.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vehicle-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.vehicle-row-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateX(3px);
}

.vehicle-row-card.selected {
  background: #FFFBEB;
  border-color: #F59E0B;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateX(4px);
}

.vehicle-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vehicle-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.vehicle-details h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vehicle-row-right {
  text-align: right;
}

.vehicle-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold-600);
}

.vehicle-eta {
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 700;
}

/* Payment Selector Pill */
.payment-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* Radar Animation for Driver Search */
.radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.radar-pulse {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FEF3C7;
  border: 3px solid #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 25px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Driver Assigned Card */
.driver-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.driver-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.driver-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F59E0B;
}

.otp-box {
  background: #ECFDF5;
  border: 1.5px dashed #059669;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.otp-code {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #059669;
  font-family: var(--font-heading);
}

/* Map Floating Controls */
.map-floating-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.map-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
}

.city-toggle-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  display: flex;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.city-toggle-pill button {
  background: none;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.city-toggle-pill button.active {
  background: #0F172A;
  color: #FFFFFF;
}

/* SOS Emergency Floating Button */
.sos-floating-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #DC2626;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  animation: pulse-sos 2s infinite ease-in-out;
}

@keyframes pulse-sos {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Responsive */
@media (max-width: 860px) {
  .app-wrapper {
    flex-direction: column-reverse;
  }
  .app-sidebar {
    width: 100%;
    min-width: 100%;
    height: 60%;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  }
  .app-map-container {
    height: 40%;
  }
  .city-toggle-pill {
    top: 10px;
    left: 10px;
  }
  .map-floating-panel {
    top: 10px;
    right: 10px;
  }
}
