/* =====================
   RESET & BASICS
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #0b0b0b;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eaeaea;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #0b0b0b;
}

/* Performance: Move expensive gradient to fixed layer to prevent repaint on scroll */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 600px at 50% -200px, #141414, #0b0b0b 60%);
  z-index: -1;
  pointer-events: none;
}

/* CLS Prevention: Reserve space for dynamic header/footer */
#global-header {
  min-height: 72px; /* Matches .header-inner height */
  display: block;
}

#global-footer {
  min-height: 300px; /* Approximate height of footer */
  display: block;
}

/* Notice Bar Spacing Control */
body.notice-visible {
  padding-top: 40px;
}

body.notice-visible .header {
  top: 40px;
}

/* =====================
   VARIABLES
===================== */
:root {
  --bg-dark: #0b0b0b;
  --bg-panel: linear-gradient(180deg, #141414, #0f0f0f);
  --border: rgba(255, 255, 255, 0.06);
  --muted: #a8a8a8;
  --accent: #e6d9b8; /* The Noir Gold */

  /* Z-INDEX LAYERS */
  --z-base: 1;
  --z-nav: 20000;
  --z-nav-toggle: 20001;
  --z-sticky-cta: 950;
  --z-notice: 900;
  --z-cookie: 1000;
  --z-modal-overlay: 2000;
  --z-modal-close: 2010;
}

/* =====================
   UTILITIES & GLOBAL
===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-highlight {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(230, 217, 184, 0.3);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0b;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: #eaeaea;
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-link {
  color: var(--muted);
  font-size: 0.8rem;
}

.btn-small {
  background: #fff;
  color: #000;
  font-size: 0.7rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.car-card:hover .btn-small {
  background: var(--accent);
  color: #000;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   NOTICE BAR
===================== */
.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #0f0f0f;
  color: #aaa;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-notice);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.notice-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* =====================
   HEADER
===================== */
.header {
  position: fixed; /* Changed from sticky to fixed to ensure it stays in reserved slot logic */
  width: 100%;
  top: 0;
  background: transparent; /* Start transparent */
  border-bottom: 1px solid transparent;
  z-index: var(--z-nav);
  transition: all 0.3s ease;
  will-change: transform, background;
}

.header.header-scrolled {
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Performance: Only apply expensive blur if supported */
@supports (backdrop-filter: blur(14px)) {
  .header.header-scrolled {
    backdrop-filter: blur(14px);
    background: rgba(10, 10, 10, 0.8);
  }
}

.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.nav-active {
  color: var(--accent);
}

/* =====================
   HERO SECTION
===================== */
.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-stage {
  display: grid;
  gap: 1.4rem;
}

.hero-panel {
  background: var(--bg-panel);
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(230, 217, 184, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03), transparent 30%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4.3vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1rem;
  max-width: 10ch;
}

.hero-sub {
  color: #c2c2c2;
  max-width: 520px;
  margin-bottom: 1.8rem;
  font-size: 1rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0.4rem 0.35rem 0;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin-bottom: 1.15rem;
}

/* Hero Social Proof Badge */
.hero-rating {
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #bbb;
  transition: all 0.3s ease;
  cursor: default;
}

.hero-rating:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(230, 217, 184, 0.2);
  transform: translateY(-2px);
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

.rating-stars svg {
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(230, 217, 184, 0.3));
}

.hero-rating span:last-child {
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Hero Animations */
.hero-content,
.hero-visual,
.fleet-hero .container {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0; /* Ensure it starts hidden */
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  animation-delay: 0.2s;
  min-height: 300px;
  padding: 0.5rem 0;
}

.hero-visual::before {
  content: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  transform: scale(1);
}

.hero-brief-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.32rem;
}

.hero-brief-item span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-brief-item strong {
  color: #f4f4f4;
  font-size: 0.96rem;
  line-height: 1.35;
}

/* =====================
   TRUST BAR
===================== */
.trust-bar {
  margin-top: 0;
}

.trust-items {
  width: 100%;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: #e0e0e0;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 0.8rem;
}

.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  color: #f0f0f0;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(230, 217, 184, 0.45);
  flex: 0 0 auto;
}

/* =====================
   FEATURED / FLEET CARS
===================== */
.featured-cars {
  padding: 2rem 0 1.25rem;
}

.featured-cars .container {
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
  line-height: 1.04;
  margin-bottom: 0.7rem;
}

.cars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.car-card {
  position: relative;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.car-card:hover {
  transform: translateY(-10px);
  border-color: rgba(230, 217, 184, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.car-card.unavailable {
  /* No visual suppression, let the calendar handle availability */
}

.car-card.maintenance {
  opacity: 0.75;
}

.car-card.maintenance .car-image-container {
  filter: grayscale(1);
}

.car-card.maintenance .btn-book {
  background: #333;
  color: #777;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.maintenance-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d32f2f;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .reviews-grid .review-card {
    max-height: none;
    overflow: visible;
  }
  .reviews-grid .review-card.has-image .review-image-container {
    aspect-ratio: auto;
    height: clamp(300px, 62vw, 420px);
    margin-bottom: 1.1rem;
  }
}

.car-image-container {
  position: relative;
  height: 220px;
  background: #000;
  overflow: hidden;
}

.card-badges {
  position: absolute;
  top: 15px;
  right: 15px; /* Moved to right to clear High Demand on the left */
  z-index: 10;
  display: flex;
  flex-direction: column; /* Stack them vertically for a cleaner look */
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.car-card[data-category="premium"] {
  border-color: rgba(230, 217, 184, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(230, 217, 184, 0.05);
}

.car-card[data-category="premium"]:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(230, 217, 184, 0.15);
}

.car-card .badge {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px);
  padding: 6px 14px !important;
  border-radius: 10px !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.car-card .badge.premium {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: linear-gradient(135deg, rgba(230, 217, 184, 0.2), transparent) !important;
}

.car-card .badge.standard {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #aaa !important;
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Fix the Picker "White Box" / Unstyled state */
input.flatpickr-input,
input.flatpickr-input.form-control,
.flatpickr-input[readonly] {
  background-color: #111 !important;
  background: #111 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--accent) !important;
  -webkit-appearance: none;
}

.car-card .age-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.car-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-header {
  margin-bottom: 1.2rem;
  text-align: left;
}

.car-header h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.location-tag {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-specs {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr 0.8fr; /* Adjusted for longer words like 'Automatic' */
  gap: 5px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
}

.spec-item i {
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0.9;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.price-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -2px;
  letter-spacing: 0.05em;
}

.price {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.price-unit {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 2px;
}

.btn-book {
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  min-height: auto;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.btn-book:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(230, 217, 184, 0.2);
}

/* =====================
   HOW IT WORKS
===================== */
.how-it-works {
  padding: 5.25rem 0;
  text-align: left;
}

.journey-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 1.8rem;
  align-items: start;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header .section-kicker {
  justify-content: center;
}

.section-header .section-sub {
  max-width: 680px;
  margin: 0 auto;
}

.section-cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.journey-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  line-height: 1.06;
  margin-bottom: 0.85rem;
  max-width: 14ch;
}

.journey-copy .section-sub {
  max-width: 500px;
}

.journey-support-card {
  margin-top: 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    #111111;
  padding: 1.2rem 1.25rem;
}

.journey-support-head {
  margin-bottom: 1rem;
}

.journey-support-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
}

.journey-support-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ececec;
  font-size: 0.83rem;
  font-weight: 600;
}

.service-area-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(230, 217, 184, 0.5);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step-card {
  position: relative;
  background: linear-gradient(180deg, #121212, #0e0e0e);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(230, 217, 184, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.step-card:hover::after {
  opacity: 1;
}

.step-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(230, 217, 184, 0.15);
  color: var(--accent);
  margin-bottom: 1.2rem;
  position: relative; /* For connector lines */
  z-index: 2;
}

/* Connector lines for steps */
@media (min-width: 901px) {
  .step-card:not(:last-child) .step-number::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 0; /* Start at 0 */
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
    transition-delay: 0.5s;
  }

  .step-card.active:not(:last-child) .step-number::after {
    width: 100%; /* Spans the gap */
  }
}

.step-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =====================
   FAQ SECTION
===================== */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 1.8rem;
  align-items: start;
}

.faq-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 2.3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 0.85rem;
  max-width: 12ch;
}

.faq-contact-card {
  margin-top: 1.4rem;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
}

.faq-contact-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.faq-contact-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.faq-grid {
  max-width: none;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item[open] {
  background: rgba(20, 20, 20, 0.6);
  border-bottom-color: transparent;
}

summary {
  padding: 1.8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.1rem;
  color: #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color 0.3s ease;
}

.faq-item:hover summary,
.faq-item[open] summary {
  color: var(--accent);
}

summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.8rem;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 90%;
}

summary::-webkit-details-marker {
  display: none;
}

/* =====================
   REVIEWS SECTION
===================== */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: linear-gradient(180deg, #141414, #0f0f0f);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  flex-direction: column;
}

.reviewer .name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.reviewer .verified {
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* =====================
   FLEET PAGE SPECIFICS
===================== */
.fleet-hero {
  padding: 5rem 0 1.35rem;
}

.fleet-hero .container {
  padding: 0 1.5rem;
}

.fleet-hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2.55rem 2.6rem 2.35rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(230, 217, 184, 0.08), transparent 34%),
    linear-gradient(180deg, #151515, #0f0f0f);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.48);
}

.fleet-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 720px;
}

.fleet-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 0.95rem;
  max-width: 10ch;
}

.fleet-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.fleet-browse {
  padding: 0 0 1.35rem;
}

.fleet-browse-shell {
  display: grid;
  gap: 0.85rem;
}

.fleet-browse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.fleet-browse-copy {
  max-width: 700px;
}

.fleet-browse-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  line-height: 1.02;
  max-width: 16ch;
}

.fleet-browse-cta {
  flex-shrink: 0;
}

.fleet-filters {
  padding: 1rem 1.1rem;
  position: sticky;
  top: 82px;
  z-index: 90;
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.filter-row {
  margin-top: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter.active {
  background: var(--accent);
  color: #0b0b0b;
  border-color: var(--accent);
}

.feature-filters {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-chip {
  background: rgba(255, 255, 255, 0.03);
}

.fleet-grid {
  padding-bottom: 6rem;
}

.fleet-grid .cars-grid {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.fleet-grid .car-card {
  max-width: 380px;
  width: 100%;
}

.fleet-grid .car-content {
  padding: 1.45rem;
}

.fleet-grid .car-header h3 {
  font-size: 1.25rem;
}

.fleet-grid .quick-specs {
  gap: 0.55rem;
}

.hero-proof-note {
  margin-top: 0;
  color: #b8b8b8;
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  max-width: 460px;
}

.fleet-journey {
  padding: 0.5rem 0 1.5rem;
}

.journey-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.journey-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  padding: 1.25rem 1.2rem 1.05rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.journey-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.journey-card ul,
.journey-card ol {
  margin: 0;
  padding-left: 1.1rem;
  color: #c6c6c6;
  font-size: 0.84rem;
  line-height: 1.65;
}

/* Fleet Availability Toggle */
.fleet-unavailable-row {
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  padding: 2rem 0 0.5rem;
}

.fleet-unavailable-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}

.fleet-unavailable-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #eaeaea;
}

.fleet-unavailable-section {
  flex-basis: 100%;
  width: 100%;
  display: none;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.fleet-unavailable-section.is-visible {
  display: flex;
}

/* =====================
   AGENCY FOOTER
===================== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left;
}

.footer-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 1rem;
}

.brand-col p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-bottom p {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.company-details {
  color: #666;
  font-size: 0.65rem;
  line-height: 1.6;
}

/* =====================
   LEGAL PAGES (RESTORED!)
===================== */
.legal-page {
  padding: 5.4rem 0 4.5rem;
  min-height: 80vh;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.legal-intro {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 1.45rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(230, 217, 184, 0.08), transparent 34%),
    linear-gradient(180deg, #151515, #0f0f0f);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.legal-intro h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.legal-lead {
  color: #c3c3c3;
  line-height: 1.72;
  margin-bottom: 1.15rem;
}

.legal-meta-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.legal-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
}

.legal-meta-card strong {
  font-size: 1.08rem;
  color: #fff;
}

.legal-meta-card p {
  color: #bdbdbd;
  line-height: 1.6;
  font-size: 0.9rem;
}

.legal-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.legal-content {
  padding: 1.8rem 1.95rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.legal-content h3 {
  color: #fff;
  margin: 0 0 0.7rem;
  font-size: 1.14rem;
}

.legal-content p {
  color: #c4c4c4;
  line-height: 1.78;
  margin-bottom: 0;
}

.legal-section + .legal-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* =====================
   CAR SLIDESHOW
===================== */
.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  object-fit: cover;
}

.slide-wrap.active .slide {
  opacity: 1;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.slide-btn:hover {
  background: var(--accent);
  color: #000;
}

.slide-btn.prev {
  left: 10px;
}
.slide-btn.next {
  right: 10px;
}

/* =====================
   CAR DETAILS MODAL
===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 500px; /* Reduced to create a focused, card-like modal */
  border-radius: 28px;
  position: relative;

  /* Height Constraints */
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  display: flex;
  flex-direction: column;

  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Modal Glow */
.modal-overlay[data-category="premium"] .modal-content {
  border-color: rgba(230, 217, 184, 0.3);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(230, 217, 184, 0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230, 217, 184, 0.05);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

/* Modal Image: FIT CONTAIN (Full Visibility) */
.modal-image-col {
  position: relative;
  background: #000;
  width: 100%;
  height: 280px; /* Reduced height to match narrower modal width */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.modal-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-slide-btn:hover {
  background: var(--accent);
  color: #000;
}

.modal-slide-btn.prev {
  left: 15px;
}
.modal-slide-btn.next {
  right: 15px;
}

.modal-info-col {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-header .badge {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px);
  padding: 6px 14px !important;
  border-radius: 10px !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-header .badge.premium {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: linear-gradient(135deg, rgba(230, 217, 184, 0.2), transparent) !important;
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.modal-specs {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Features List Styling */
.modal-features {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-features h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.modal-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.5rem; /* Better vertical spacing */
}

.modal-features li {
  font-size: 0.75rem;
  color: #eaeaea;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.modal-features li::before {
  content: "•";
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.2rem;
  line-height: 1.25;
  flex-shrink: 0;
}

.modal-pricing {
  margin-bottom: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(12, 12, 12, 0.96);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Keeps items anchored to top so Daily Rate doesn't move */
  margin-bottom: 0.5rem;
}

.days-charged-row {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  gap: 10px;
}

.return-warning-row {
  font-size: 0.75rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 10px;
}

.duration-display-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duration-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duration-icon-wrap {
  width: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.days-charged-text {
  font-size: 0.75rem; /* Reduced from 0.85rem */
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.return-warning-text {
  font-size: 0.65rem; /* Reduced from 0.7rem */
  color: #888;
  line-height: 1;
}

.late-fee-active .return-warning-text {
  color: #ffaa44;
}

/* Duration Pill (used in JS breakdown) */
.duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 217, 184, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(230, 217, 184, 0.2);
}

.price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.price-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Right align the total column content */
#modalTotalContainer {
  align-items: flex-end;
}

/* Discount Label */
.discount-label {
  display: block; /* Forces new line */
  font-size: 0.65rem;
  color: #000;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 4px;
  width: fit-content;
}

.price-display {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline; /* Aligns price and /day on text baseline */
  gap: 4px;
  line-height: 1;
}

/* Specific override for the Total Price container to stack content */
#modalTotalContainer .price-display {
  flex-direction: column; /* Stacks Price and Badge */
  align-items: flex-end; /* Right aligns them */
}

.price-display .per-day {
  font-size: 1rem;
  font-weight: 400;
  color: #888;
}

.deposit-note {
  font-size: 0.75rem;
  color: #8f8f8f;
  margin-top: 0.8rem;
  font-style: normal;
}

.trust-badges {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #999;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.trust-badge.link-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230, 217, 184, 0.05);
  cursor: pointer;
}

.trust-badge svg,
.trust-badge i {
  color: var(--accent);
  opacity: 0.8;
  flex-shrink: 0;
}

/* =====================
   MODAL DATE INPUTS
===================== */
.modal-dates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.98);
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quote-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.quote-builder-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
}

.quote-builder-head h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: #f5f5f5;
}

.quote-builder-meta {
  margin: 0;
  max-width: 17ch;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #8f8f8f;
  text-align: right;
}

.quote-builder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quote-builder-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d8d8d8;
  font-size: 0.72rem;
  font-weight: 600;
}

.date-input-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.full-width {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quote-status {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #b9b9b9;
}

.action-note {
  text-align: center;
  font-size: 0.75rem;
  color: #737373;
  margin: 0;
}

/* =====================
   COOKIE BANNER
===================== */
.cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  left: auto;
  transform: translateY(100px);
  width: min(430px, calc(100vw - 3rem));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  z-index: var(--z-cookie);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content p {
  font-size: 0.83rem;
  color: #d0d0d0;
  margin: 0;
  line-height: 1.5;
  max-width: 24ch;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 144px;
}

.cookie-actions .btn {
  min-height: 34px;
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.cookie-preferences {
  border-top: 1px solid var(--border);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  display: none;
  gap: 0.7rem;
  flex-direction: column;
}

.cookie-preferences.show {
  display: flex;
}

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ccc;
}

.cookie-pref-row input[type="checkbox"] {
  accent-color: var(--accent);
}

.cookie-pref-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .cookie-actions {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
  }

  .cookie-pref-actions {
    justify-content: flex-start;
  }
}

/* =====================
   MOBILE MENU & OVERLAY
===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 11, 11, 0.98);
  backdrop-filter: blur(10px);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.mobile-link {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
}

.mobile-link:hover {
  color: var(--accent);
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu.active .mobile-nav {
  transform: translateY(0);
}

/* =====================
   MOBILE TOGGLE BUTTON
===================== */
.mobile-toggle {
  display: none;
  width: 30px;
  height: 30px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-nav-toggle);
  padding: 0;
}

.mobile-toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background-color: #eaeaea;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.mobile-toggle span:nth-child(1) {
  top: 35%;
}
.mobile-toggle span:nth-child(2) {
  top: 65%;
}

body.menu-open .mobile-toggle span:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* =====================
   STICKY MOBILE CTA
===================== */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-top: 1px solid var(--border);
  z-index: var(--z-sticky-cta); /* Keep below cookie banner and social ticker */
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none; /* Hidden by default on desktop */
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

.sticky-mobile-cta .btn {
  border-radius: 8px; /* Slightly boxier for mobile bar feels distinct */
}

/* =====================
   RESPONSIVE (TABLET/MOBILE)
===================== */
@media (max-width: 900px) {
  .sticky-mobile-cta {
    display: block; /* Enable block layout so transform works */
  }

  .mobile-toggle {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  .nav-links {
    display: none !important;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .journey-shell,
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .journey-copy h2,
  .faq-copy h2 {
    max-width: none;
  }

  .hero-visual {
    margin-top: 0.5rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .quote-builder-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-builder-meta {
    max-width: none;
    text-align: left;
  }

  .fleet-hero {
    padding: 3rem 0 0.6rem;
  }

  .fleet-hero .container {
    padding: 0 1.5rem;
  }

  .fleet-hero-shell,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .fleet-hero-shell {
    padding: 2rem 1.8rem;
  }

  .fleet-browse-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fleet-filters {
    top: 76px;
  }

  .legal-intro {
    position: static;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .brand-col p {
    margin: 0 auto;
  }

  /* Modal Mobile - Fixed Constraints */
  .modal-image-col {
    height: 250px;
    min-height: 250px;
  }
  .modal-info-col {
    padding: 1.5rem;
  }
  .modal-content {
    max-height: 85vh; /* Prevents modal from being taller than screen */
    width: 90%; /* Ensures side margins */
  }

  /* Close Button visibility on Mobile */
  .modal-close {
    top: 10px;
    right: 15px;
    z-index: var(--z-modal-close);
    background: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 404 PAGE */
.error-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 100%);
}
.error-content h1 {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 600;
  color: #1a1a1a;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 0;
}
.error-content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.error-content p {
  color: #888;
  margin-bottom: 2rem;
}

/* =====================
   SCROLL REVEAL ANIMATION
===================== */
/* Default: Visible */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Hidden state: Applied by JS initially */
.reveal.pending {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   ACCESSIBILITY
===================== */

@media (max-width: 768px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-panel {
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .hero-brief,
  .journey-support-card,
  .faq-contact-card {
    border-radius: 20px;
  }

  .fleet-hero-shell,
  .fleet-browse-shell,
  .legal-intro,
  .legal-content {
    border-radius: 24px;
  }

  .fleet-hero-shell {
    padding: 1.55rem;
  }

  .fleet-hero-actions,
  .legal-meta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-flex {
    flex-direction: column;
    gap: 1rem;
  }

  #modalTotalContainer,
  #modalTotalContainer .price-display {
    align-items: flex-start;
  }

  .fleet-filters {
    padding: 0.95rem;
    border-radius: 20px;
    /* Prevent sticky bar from capturing vertical scroll on iOS */
    touch-action: pan-y;
  }

  /* Bigger tap targets on filter pills */
  .filter {
    padding: 0.6rem 1.2rem;
    font-size: 0.78rem;
    min-height: 40px;
  }

  /* Fleet browse: more breathing room */
  .fleet-browse {
    padding: 0 0 2rem;
  }

  .fleet-browse-shell {
    gap: 1.2rem;
  }

  /* Availability checker: stack fields + full-width button */
  .avail-inner {
    gap: 12px;
  }

  .avail-fields {
    gap: 10px;
  }

  #avail-check,
  #avail-reset {
    width: 100%;
    justify-content: center;
  }

  /* Fleet grid: enough bottom padding for the sticky CTA bar */
  .fleet-grid {
    padding-bottom: 8rem;
  }

  .fleet-grid .cars-grid {
    gap: 1.1rem;
  }

  /* Hero section: more padding inside the shell */
  .fleet-hero-shell {
    padding: 1.8rem 1.6rem;
    gap: 1rem;
  }

  .legal-content {
    padding: 1.3rem;
  }

  .trust-item {
    min-height: auto;
  }

  .faq-contact-actions {
    flex-direction: column;
  }

  .faq-contact-actions .btn,
  .section-cta-row .btn {
    width: 100%;
  }

  .reveal {
    transform: translateY(30px);
    transition-duration: 0.6s;
  }
}

/* Total Column Alignment */
.total-col {
  align-items: flex-end;
  text-align: right;
}

.total-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* The Badge - Clean & Sharp */
.discount-badge {
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px; /* Space between badge and price */
}

.discount-badge.hidden {
  display: none;
}

/* Price Stacking */
.price-stack {
  display: flex;
  flex-direction: column; /* Stack crossed price above final price */
  align-items: flex-end;
  line-height: 1;
}

.strike-price {
  font-size: 0.85rem;
  color: #666;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.strike-price.hidden {
  display: none;
}

.final-price {
  font-size: 1.8rem; /* Make the final price pop */
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
/* =====================
   DYNAMIC REVIEWS
===================== */
.review-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.review-link-wrapper:hover {
  transform: translateY(-5px);
}

.review-link-wrapper:hover .review-card {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.review-card.has-image {
  padding: 1.5rem; /* Slightly less padding to let image shine */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-image-container {
  width: 100%;
  aspect-ratio: 4 / 5; /* More portrait/Insta style */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
}

.review-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-link-wrapper:hover .review-image {
  transform: scale(1.05);
}

.tap-to-view {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: auto; /* Push to bottom */
  padding-top: 1rem;
  display: block;
  font-weight: 500;
  opacity: 0.8;
}

/* =====================
   REVIEWS CAROUSEL
===================== */
/* When active, disable the grid */
.reviews-grid.carousel-active {
  display: block;
  padding: 0 2rem; /* Space for arrows */
}

.reviews-carousel-wrapper {
  position: relative;
  width: 100%;
}

.reviews-viewport {
  overflow: hidden;
  margin: -2rem; /* Allow shadows to bleed */
  padding: 2rem;
}

.reviews-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Carousel Items */
.reviews-grid.carousel-active .review-card {
  flex-shrink: 0;
  margin: 0; /* Reset auto margins */
  max-width: none; /* Let flex control width */
  height: auto; /* Ensure consistent height */
}

/* Responsive Sizing for Carousel Items */
/* Mobile: 1 item */
.reviews-grid.carousel-active .review-card {
  width: 100%;
}

@media (min-width: 768px) {
  .reviews-grid.carousel-active .review-card {
    width: calc(50% - 1rem); /* 2 items visible */
  }
}

@media (min-width: 1024px) {
  .reviews-grid.carousel-active .review-card {
    width: calc(33.333% - 1.33rem); /* 3 items visible */
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  color: #555;
  border-color: rgba(255, 255, 255, 0.05);
}

.carousel-btn.prev {
  left: -1rem;
}

.carousel-btn.next {
  right: -1rem;
}

/* =====================
   GIVEAWAY POPUP
===================== */
.giveaway-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 1.5rem;
}

.giveaway-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.giveaway-card {
  background: linear-gradient(
    145deg,
    #1a0f1f,
    #0f0f0f
  ); /* Subtle purple/pink tint */
  border: 1px solid rgba(255, 105, 180, 0.3);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 105, 180, 0.1);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.giveaway-overlay.active .giveaway-card {
  transform: translateY(0);
}

.giveaway-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.giveaway-close:hover {
  opacity: 1;
}

.giveaway-header {
  padding: 2rem 1.5rem 1rem;
  background: radial-gradient(
    circle at top,
    rgba(255, 105, 180, 0.15),
    transparent 70%
  );
}

.giveaway-badge {
  display: inline-block;
  background: #ff69b4;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.giveaway-header h2 {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0;
}

.giveaway-body {
  padding: 0 2rem 2rem;
}

.giveaway-body p {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.giveaway-body ul {
  text-align: left;
  list-style: none;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.giveaway-body li {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.giveaway-body li:last-child {
  margin-bottom: 0;
}

.giveaway-note {
  font-size: 0.7rem !important;
  color: #666 !important;
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

/* Button override for giveaway */
.btn-giveaway {
  background: #ff69b4;
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}
.btn-giveaway:hover {
  background: #ff85c1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

/* =====================
   SKELETON & TRANSITIONS
===================== */
.skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.slide-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
}

.slide-wrap.active {
  display: block;
}

.car-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.duration-display-container {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.duration-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.duration-row i {
  width: 16px;
  text-align: center;
}

.late-fee-active {
  border-color: rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.05);
}

.late-fee-active .fa-circle-exclamation {
  color: #ff4444;
}

.staff-link {
  color: var(--muted, #666);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.staff-link:hover {
  opacity: 0.8;
}

.footer-staff-row {
  margin-top: 14px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .footer-bottom {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .footer-staff-row {
    display: block;
    margin-top: 16px;
    margin-bottom: 0;
  }

  .footer-staff-row .staff-link {
    display: inline-block;
    opacity: 0.85;
  }
}

.high-demand-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff4444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
  animation: pulse-demand 2s infinite;
  pointer-events: none;
}

@keyframes pulse-demand {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(255, 68, 68, 0.6); }
  100% { transform: scale(1); }
}

.compare-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.compare-toggle.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Comparison Bar */
.comparison-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent);
  padding: 1rem 2rem;
  border-radius: 999px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.comparison-items {
  display: flex;
  gap: 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Comparison Modal */
.compare-modal-content {
  max-width: 900px !important;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.compare-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.compare-stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.compare-stat label {
  color: var(--muted);
}

.compare-stat span {
  color: #fff;
  font-weight: 600;
}
/* 1. Style the visible input (altInput) */
.flatpickr-input.form-control,
.flatpickr-input[readonly], 
.flatpickr-input {
  background: #111 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--accent) !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
  display: block !important;
  text-align: center;
  font-weight: 500;
}

.flatpickr-input:hover,
.flatpickr-input:focus {
  border-color: var(--accent) !important;
  background: #161616 !important;
}

/* 2. Style the Calendar Dropdown Container */
.flatpickr-calendar {
  background: #121212 !important;
  border: 1px solid #333 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
  border-radius: 16px !important;
  width: 315px !important; /* Ensure consistent width */
  z-index: 10001 !important; /* Ensure it stays above the modal overlay */
}

/* 3. Fix Text Colors inside Calendar */
.flatpickr-calendar *,
.flatpickr-month,
.flatpickr-weekday,
.flatpickr-day,
.flatpickr-time input {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* 4. Style Month and Navigation */
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #121212 !important;
  font-weight: 600 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--accent) !important;
}

/* 5. Style Weekdays and Days */
span.flatpickr-weekday {
  color: var(--muted) !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
}

.flatpickr-day {
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.flatpickr-day:hover {
  background: #252525 !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #000 !important; /* Black text on gold background */
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

/* 6. Style Time Picker Section */
.flatpickr-time {
  border-top: 1px solid #333 !important;
  height: 50px !important;
}

.flatpickr-time .numInputWrapper:hover {
  background: #252525 !important;
}

.flatpickr-time input:focus {
  background: #252525 !important;
}

.flatpickr-time .flatpickr-am-pm:hover {
  background: #252525 !important;
}

/* 7. Ensure mobile inputs match Noir style */
.flatpickr-mobile {
  background: #1a1a1a !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .journey-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Availability Checker ────────────────────────────────────────────────── */
/* Enquiry form 2-col rows — collapse to 1 col on mobile */
.enq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .enq-row {
    grid-template-columns: 1fr;
  }
}

.avail-wrap { width:100%; }
.avail-inner {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:16px;
}
.avail-inner .avail-label {
  width:100%;
  font-size:0.65rem;
  text-transform:uppercase;
  letter-spacing:2px;
  color:rgba(230,217,184,0.7);
  font-weight:700;
  margin-bottom:-8px;
}
.avail-fields {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}
.avail-field { display:flex; flex-direction:column; gap:6px; }
.avail-field label {
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:rgba(255,255,255,0.4);
}
.avail-field input[type="date"] {
  padding:10px 14px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  color:#fff;
  font-size:0.9rem;
  min-width:160px;
}
.avail-field input[type="date"]:focus {
  outline:none;
  border-color:rgba(230,217,184,0.5);
}
@media (max-width:640px) {
  .avail-fields { flex-direction:column; width:100%; }
  .avail-field  { width:100%; }
  .avail-field input[type="date"] { min-width:unset; width:100%; }
}

/* ── Comprehensive mobile fixes ≤480px ── */
@media (max-width: 480px) {
  /* Vehicle spec grid: 4-col → 2-col */
  .quick-specs { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }

  /* Car card footer: stack vertically */
  .car-footer { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Carousel buttons: pull inside container so they don't overflow */
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }

  /* Comparison bar: fit viewport */
  .comparison-bar { width: calc(100vw - 32px); padding: 0.8rem 1rem; gap: 0.75rem; border-radius: 20px; }
  .compare-grid { grid-template-columns: 1fr !important; }

  /* Trust / legal two-col grids → single col */
  .trust-items,
  .legal-shell { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET OPTIMISATIONS (769px – 1024px) — Public pages
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Fleet: 2 cards per row on tablet */
    .cars-grid {
        justify-content: flex-start;
        gap: 1.4rem;
    }
    .car-card { max-width: calc(50% - 0.7rem); flex: 1 1 calc(50% - 0.7rem); }

    /* Hero: comfortably 1-col on portrait tablet */
    .hero-panel { grid-template-columns: 1fr; gap: 2rem; }

    /* Section headings: slightly smaller on tablet */
    h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

    /* Filter pills: wrap on tablet without overflow */
    .fleet-filters .filter-row { flex-wrap: wrap; gap: 8px; }

    /* Comparison bar: full width on tablet */
    .comparison-bar { width: calc(100vw - 60px); }

    /* Enquiry form: keep 2-col row on tablet */
    .enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Nav items: larger tap area on tablet */
    .nav-link, .nav-item { padding: 10px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PC / LARGE SCREEN (≥1280px) — Public pages
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    /* Fleet: 3 cards per row on large screens */
    .cars-grid { gap: 2rem; justify-content: center; }
    .car-card { max-width: 380px; flex: 0 1 380px; }

    /* Section containers: more breathing room */
    .container { padding: 0 40px; }
}
