/* ── BOOKING PAGE ── */

/* Progress Steps */
.booking-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 3rem;
}
.progress-step {
  display: flex; align-items: center; gap: 0;
}
.step-bubble {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--border);
  background: var(--bg3); color: var(--text-muted);
  transition: all 0.4s ease;
  position: relative; z-index: 1;
}
.step-bubble.active {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.step-bubble.done {
  background: var(--gold); border-color: var(--gold);
  color: #000;
}
.step-connector {
  width: 80px; height: 2px;
  background: var(--border);
  transition: all 0.4s ease;
}
.step-connector.done { background: var(--gold); }
.step-label {
  font-size: 0.72rem; color: var(--text-muted);
  text-align: center; margin-top: 0.5rem;
}
.progress-step.active .step-label { color: var(--gold); }
.progress-wrapper { text-align: center; }

/* Step Panels */
.booking-step { display: none; }
.booking-step.active { display: block; animation: fadeUp 0.4s ease both; }

/* Step 1 – Source / Destination */
.route-inputs {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; max-width: 680px; margin: 0 auto;
}
.route-inputs h2 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.route-inputs p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.route-line {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.route-line::before {
  content: '';
  position: absolute; left: 22px; top: 58px; bottom: 58px; width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(245,200,66,0.3));
  z-index: 0;
}
.input-with-dot {
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 1; padding: 0.4rem 0;
}
.dot {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem;
}
.dot-green { background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,0.5); }
.dot-red { background: var(--danger); box-shadow: 0 0 8px rgba(255,77,109,0.5); }
.route-swap {
  align-self: flex-end; margin-left: calc(18px + 1rem);
  background: var(--bg3); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text-muted);
  font-size: 1rem; margin: 0.5rem 0 0.5rem calc(18px + 1rem);
}
.route-swap:hover { border-color: var(--gold); color: var(--gold); transform: rotate(180deg); }
.date-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

/* Step 2 – Vehicle */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.vehicle-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.vehicle-card:hover { border-color: rgba(245,200,66,0.5); transform: translateY(-3px); }
.vehicle-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, #1c1810, #1a1610);
}
.vehicle-card.selected::after {
  content: '✓';
  position: absolute; top: 1rem; right: 1rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.vehicle-icon { font-size: 3.5rem; margin-bottom: 1rem; text-align: center; display: block; }
.vehicle-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.vehicle-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.vehicle-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.vehicle-price { font-size: 1rem; font-weight: 700; color: var(--gold); }
.vehicle-capacity { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }

/* Map Panel */
.map-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 2rem;
}
.map-header {
  padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
}
.map-header h3 { font-size: 1rem; font-weight: 600; }
.map-stats { display: flex; gap: 2rem; }
.map-stat { text-align: right; }
.map-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.map-stat-label { font-size: 0.72rem; color: var(--text-muted); }
#map-container { height: 380px; background: #12121c; position: relative; }
#map { width: 100%; height: 100%; }
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.map-placeholder .icon { font-size: 3rem; }

/* Step 3 – Personal Details */
.personal-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; max-width: 680px; margin: 0 auto;
}
.personal-form h2 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.personal-form p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-section-title { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.full-width { grid-column: 1 / -1; }
.booking-summary {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1.5rem;
}
.booking-summary h4 { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.85rem; }
.summary-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.summary-label { color: var(--text-muted); }
.summary-val { font-weight: 500; color: var(--text); }
.price-row { padding-top: 0.8rem; }
.price-row .summary-val { color: var(--gold); font-size: 1.1rem; font-weight: 700; }

/* Booking nav */
.booking-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.step-hint { font-size: 0.82rem; color: var(--text-muted); }

/* Success Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--card); border: 1px solid rgba(245,200,66,0.3);
  border-radius: 20px; padding: 3rem; max-width: 460px; width: 90%;
  text-align: center; transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-icon { font-size: 4rem; margin-bottom: 1rem; }
.modal-box h2 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  margin-bottom: 0.8rem; color: var(--gold);
}
.modal-box p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 2rem; }
.booking-id {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem;
  font-family: monospace; font-size: 1.1rem; color: var(--gold);
  margin-bottom: 1.5rem; letter-spacing: 2px;
}

/* Responsive booking */
@media (max-width: 700px) {
  .personal-grid, .date-time-row { grid-template-columns: 1fr; }
  .step-connector { width: 40px; }
  .step-bubble { width: 38px; height: 38px; font-size: 0.85rem; }
  .route-inputs, .personal-form { padding: 1.5rem; }
  .map-stats { gap: 1rem; }
}

/* ── Google Maps override: ensure map fills container ── */
#map { width: 100%; height: 100%; }
#map-container { position: relative; }

/* ── Map placeholder sits above map div ── */
.map-placeholder {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--text-muted); font-size: 0.9rem;
  background: #0d0d18;
  pointer-events: none;
}
.map-placeholder .icon { font-size: 3rem; }

/* ── Route info bar ── */
#routeInfoBar {
  display: none;
  align-items: center; gap: 1rem; flex-wrap: wrap;
  background: rgba(245,200,66,0.07);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}
#routeInfoBar.visible { display: flex; }
.route-badge {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-weight: 600;
}
.route-badge span { color: var(--text); font-weight: 400; }

/* ══ Global booking additions ══ */

/* Map header flex fix for currency badge */
.map-header { flex-wrap: wrap; gap: 0.75rem; }
.map-header-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Country currency pill */
#countryCurrencyBadge {
  display: none;
  align-items: center;
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Detected location banner */
#detectedLocationBadge {
  display: none;
  align-items: center; gap: 0.5rem; flex-wrap: wrap;
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.18);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
#detectedLocationBadge strong { color: var(--gold); }

/* Summary country row */
#sumCountry { color: var(--text-muted); font-style: italic; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-ring {
  width: 36px; height: 36px;
  border: 3px solid rgba(245,200,66,0.2);
  border-top-color: #f5c842;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Fare flash */
@keyframes fareFlash {
  0%   { color: #fff; transform: scale(1.12); }
  100% { color: var(--gold); transform: scale(1); }
}
.fare-updated { animation: fareFlash 0.6s ease forwards; }
.fare-info-badge { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; display: block; }

/* Route info bar */
#routeInfoBar {
  display: none;
  align-items: center; gap: 1rem; flex-wrap: wrap;
  background: rgba(245,200,66,0.08);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: var(--radius-sm, 8px);
  padding: 0.75rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}
#routeInfoBar.visible { display: flex; }
.route-badge { display: flex; align-items: center; gap: 0.4rem; color: var(--gold); font-weight: 600; }
.route-badge span { color: var(--text); font-weight: 400; }

/* Map container & placeholder */
#map { width: 100%; height: 100%; }
#map-container { position: relative; }
.map-placeholder {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--text-muted); font-size: 0.9rem;
  background: #0d0d18;
  pointer-events: none;
}
.map-placeholder .icon { font-size: 3rem; }

/* Pac-container theming moved to inline <style> in booking.html */

/* ══════════════════════════════════════════════════════
   24-HOUR ADVANCE BOOKING — UI STYLES
══════════════════════════════════════════════════════ */

/* Error banner below date-time row */
.datetime-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(255, 77, 109, 0.10);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-left: 4px solid #ff4d6d;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: #ffb3bf;
  line-height: 1.5;
  transition: opacity 0.25s ease;
}

/* Pulse animation — draws eye to the error */
@keyframes bannerPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,109,0.45); }
  60%  { box-shadow: 0 0 0 8px rgba(255,77,109,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}
.banner-pulse { animation: bannerPulse 0.55s ease; }

/* Input field states */
.form-control.input-error {
  border-color: #ff4d6d !important;
  background: rgba(255,77,109,0.05) !important;
  box-shadow: 0 0 0 3px rgba(255,77,109,0.15) !important;
}
.form-control.input-ok {
  border-color: #2ecc71 !important;
  background: rgba(46,204,113,0.04) !important;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.12) !important;
}

/* Disabled Next button */
.btn.btn-disabled,
.btn-primary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.3);
}

/* Step hint — make the 24h notice stand out slightly */
.step-hint {
  font-size: 0.80rem;
  color: var(--text-muted);
}
