
/* =====================================================
   VEHICLES & RATES PAGE – vehicles.css
   Order matches vehicles.html top → bottom
===================================================== */

/* =====================================================
   PAGE HERO
===================================================== */
.page-heading.vehicles-hero {
  position: relative;
  padding: 5.5rem 1.5rem 5.5rem;
  text-align: center;
  overflow: hidden;
  background: #000; /* fallback while image loads */
}

.vehicles-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay to keep same dark look */
.page-heading.vehicles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

/* Keep text above image + overlay */
.page-heading.vehicles-hero .page-heading-inner {
  position: relative;
  z-index: 2;
}

/* Keep the fade transition above everything */
.page-heading.vehicles-hero .hero-transition {
  z-index: 3;
}

.page-heading.vehicles-hero .page-heading-inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-heading.vehicles-hero h1 {
  margin-bottom: 1rem;
}

.page-heading.vehicles-hero .page-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* Hero → content transition */
.hero-transition {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 25px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg-section));
  pointer-events: none;
  z-index: 2;
}

/* Mobile */
@media (max-width: 600px) {
  .page-heading.vehicles-hero {
    padding: 4rem 1.25rem 3.5rem;
  }
  .page-heading.vehicles-hero .page-intro {
    font-size: 1rem;
  }
}

/* =====================================================
   INTRO CARD (Below hero)
===================================================== */
.vehicles-intro {
  position: relative;
  z-index: 3;
  margin-top: -90px; /* overlap hero */
  display: flex;
  justify-content: center;
}

.vehicles-intro .container {
  background: var(--bg-section);
  padding: 3.5rem 3rem;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  max-width: 1100px;
  width: 100%;
  border-top: 2px solid var(--brand-primary);
}

@media (max-width: 768px) {
  .vehicles-intro {
    margin-top: -50px;
  }
  .vehicles-intro .container {
    padding: 2.5rem 1.75rem;
  }
}

/* =====================================================
   ALL RENTALS INCLUDE – SUMMARY
===================================================== */
.included-summary {
  position: relative;
  z-index: 1;
  background: var(--bg-section);
  padding: 240px 30px 40px;
  margin-top: -16rem;
}

.included-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.included-summary h2 {
  margin-bottom: 40px;
}

.included-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.included-grid li {
  background: var(--bg-card);
  border-bottom: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-soft);
  border-radius: 12px;
  padding: 24px 26px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.included-grid li:hover {
  border-color: var(--brand-cta);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.included-grid strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* =====================================================
   VEHICLES GRID
===================================================== */
.vehicles-grid-section {
  padding: 100px 30px;
}

.vehicle-grid2 {
  display: grid;
  grid-template-columns: 1fr; /* one card per row */
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================================================
   VEHICLE CARD
===================================================== */
.vehicle-card {
  background: var(--bg-card);
  border: 0.5px solid #f3f2ef;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.5);
}

/* Top: two column layout */
.vehicle-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 30px;
}

/* =====================================================
   VEHICLE IMAGES (Main + Thumbnails)
===================================================== */
.vehicle-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-image-main img {
  width: 100%;
  min-height: 260px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .4s ease;
}

.vehicle-card:hover .vehicle-image-main img {
  transform: scale(1.05);
}

.vehicle-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay-image-fade), transparent);
  pointer-events: none;
}

/* Thumbnails */
.vehicle-thumbnails {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.vehicle-thumbnails img {
  width: 70px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border 0.2s ease;
}

.vehicle-thumbnails img:hover,
.vehicle-thumbnails img.active {
  opacity: 1;
}

.vehicle-thumbnails img.active {
  border-color: #c89b3c; /* brand accent */
}

/* =====================================================
   VEHICLE BODY (Text, price, specs, actions)
===================================================== */
.vehicle-body h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.vehicle-card:hover h3 {
  color: var(--brand-primary);
}

.vehicle-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Pricing */
.price {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.price span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Specs grid */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 18px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Actions */
.actions {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* =====================================================
   ACCORDIONS (Below card)
===================================================== */
.vehicle-accordions {
  border-top: 1px solid var(--border-soft);
}

/* Lists inside accordions */
.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* =====================================================
   TABLES (Pricing + Insurance)
===================================================== */
.table-title {
  max-width: 1100px;
  margin: 0 auto 16px auto;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.pricing-table td {
  color: var(--text-muted);
}

.pricing-table thead th {
  font-weight: 600;
}

/* First column left-aligned */
.pricing-table td:first-child,
.pricing-table th:first-child {
  text-align: left;
  font-weight: 600;
}

/* Insurance tables */
.insurance-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.insurance-table th,
.insurance-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  text-align: left;
}

.insurance-table th {
  background: var(--bg-section);
  font-weight: 600;
}

.insurance-table td {
  color: var(--text-muted);
}

/* Rates note text */
.rates-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .vehicle-top {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .vehicle-image-main img {
    min-height: 220px;
  }

  /* Mobile table layout */
  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table th,
  .pricing-table td,
  .pricing-table tr {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tr {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
  }

  .pricing-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: right;
  }

  .pricing-table td:last-child {
    border-bottom: none;
  }

  .pricing-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #dddbdb;
    text-align: left;
    padding-right: 10px;
  }

  .pricing-table td:first-child {
    font-weight: 700;
    justify-content: center;
    text-align: center;
  }

  .pricing-table td:first-child::before {
    content: "";
  }
}

@media (max-width: 600px) {
  .actions {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   UTILITIES
===================================================== */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}
