:root {
  color-scheme: light;
}

html {
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
}

.glass-nav {
  background: rgba(7, 15, 30, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 25%, rgba(229, 179, 88, 0.16), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(30, 50, 86, 0.8), transparent 38%),
    linear-gradient(135deg, #070f1e 0%, #0b1526 55%, #16243d 100%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 15, 30, 0.96) 0%, rgba(7, 15, 30, 0.84) 52%, rgba(7, 15, 30, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 15, 30, 0.18) 0%, rgba(7, 15, 30, 0.72) 100%);
}

.gold-gradient-text {
  display: inline-block;
  color: #e5b358;
  background: linear-gradient(135deg, #f7d58b 0%, #e5b358 48%, #c49132 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-btn {
  color: #07101f !important;
  background: linear-gradient(135deg, #f7d58b 0%, #e5b358 52%, #c49132 100%);
  border: 1px solid rgba(255, 226, 160, 0.75);
  box-shadow: 0 12px 30px rgba(196, 145, 50, 0.26);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.gold-gradient-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(196, 145, 50, 0.34);
}

/* Airport and vehicle selectors: keep selected/unselected states unmistakable. */
.airport-option[aria-pressed="true"],
.vehicle-group-option[aria-pressed="true"] {
  color: #f0c269 !important;
  background: #0b1526 !important;
  border-color: #e5b358 !important;
  box-shadow: 0 7px 18px rgba(7, 15, 30, 0.18) !important;
}

.airport-option[aria-pressed="false"],
.vehicle-group-option[aria-pressed="false"] {
  color: #64748b !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

.price-card,
.service-card,
.fleet-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.price-card:hover,
.service-card:hover,
.fleet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Refined rate tables */
#panel-airport > .overflow-x-auto,
#panel-tour > .overflow-hidden {
  width: calc(100% - 2.5rem);
  max-width: 1040px;
  margin: 1.25rem auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rate-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #0f172a;
}

.rate-table thead {
  background: linear-gradient(135deg, #0b1628 0%, #17243a 100%);
  color: #fff;
}

.rate-table thead th {
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.rate-table thead th:last-child {
  border-right: 0;
}

.rate-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.rate-table tbody tr:hover {
  background: #fff8e8;
}

.rate-table tbody td {
  padding: 0.9rem 1rem !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  vertical-align: middle;
}

.rate-table tbody td:last-child {
  border-right: 0 !important;
}

.rate-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.airport-rate-table th:first-child,
.airport-rate-table td:first-child {
  width: 26% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  text-align: center !important;
}

.airport-rate-table tbody td:first-child {
  color: #0f172a !important;
  font-size: 0.95rem;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.airport-rate-table tbody td:nth-child(2),
.airport-rate-table tbody td:nth-child(3) {
  font-size: 1rem;
  font-weight: 800 !important;
  white-space: nowrap;
}

.airport-rate-table tbody td:nth-child(2) {
  color: #047857 !important;
}

.airport-rate-table tbody td:nth-child(3) {
  color: #1d4ed8 !important;
}

.tour-rate-table th:first-child,
.tour-rate-table td:first-child {
  padding-left: 1rem !important;
}

@media (max-width: 640px) {
  #rates {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  #panel-airport > .overflow-x-auto,
  #panel-tour > .overflow-hidden {
    width: 100%;
    max-width: none;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .airport-rate-table col:first-child {
    width: 28% !important;
  }

  .airport-rate-table col:nth-child(2),
  .airport-rate-table col:nth-child(3) {
    width: 36% !important;
  }

  .rate-table thead th {
    padding: 0.7rem 0.35rem;
    font-size: 0.72rem;
  }

  .rate-table tbody td {
    padding: 0.78rem 0.35rem !important;
  }

  .airport-rate-table th:first-child,
  .airport-rate-table td:first-child {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }

  .airport-rate-table tbody td:first-child {
    font-size: 0.82rem;
  }

  .airport-rate-table tbody td:nth-child(2),
  .airport-rate-table tbody td:nth-child(3) {
    font-size: 0.82rem;
    letter-spacing: -0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile spacing for the primary booking date/hour/minute row. */
@media (max-width: 767px) {
  #booking-datetime-label + .grid {
    display: grid !important;
    grid-template-columns: minmax(0, calc((100% - 8px) / 1.8)) repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0;
  }

  #booking-date {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    padding-left: 6px;
    padding-right: 6px;
    overflow: hidden;
  }

  #booking-date,
  #booking-hour,
  #booking-minute {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #booking-date::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
  }

  #booking-date::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
  }
}

/* Keep mobile contact actions above the home indicator and clear of the form. */
@media (max-width: 767px) {
  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  #booking-section {
    padding-bottom: calc(5rem + 88px + env(safe-area-inset-bottom, 0px));
  }

  #mobile-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}
