/* RYDEXS — content styles for the vehicle pages (urbania.html, tempotraveller.html), no hero section.
   Navbar, footer, floating buttons and dark mode basics come from css/base.css. */

section {
  padding: 5rem 2rem;
  /* in-page links (e.g. "View rates") land below the fixed navbar */
  scroll-margin-top: 90px;
}

section.light-bg { background: #f8f8f8; }

/* no photo hero on these pages: the first section starts below the fixed navbar */
.vehicle-page > section:first-child { padding-top: calc(5rem + 100px); }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
  color: #050505;
  margin-bottom: 1rem;
}

h1.section-label { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #d99a00; }

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
  opacity: 0.85;
  margin-bottom: 3rem;
}

/* ==================== BUTTONS ==================== */
.button-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.btn {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary { background: #F5B301; color: #1a1a1a; }
.btn-primary:hover { background: #d99a00; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245, 179, 1, 0.3); }
.btn-secondary { background: rgba(255, 255, 255, 0.15); color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: #050505; transform: translateY(-3px); }

/* ==================== OVERVIEW ==================== */
.overview-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.overview-copy p { margin-bottom: 1.1rem; opacity: 0.9; }
.overview-media { border-radius: 8px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.overview-media img { width: 100%; display: block; }

.overview-slideshow { position: relative; aspect-ratio: 4 / 3; }
.overview-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: urbaniaSlideshow 28s infinite;
}

@keyframes urbaniaSlideshow {
  0% { opacity: 0; }
  1.1% { opacity: 1; }
  6.1% { opacity: 1; }
  7.1% { opacity: 0; }
  100% { opacity: 0; }
}

/* Modifier for a shorter, 4-image slideshow (e.g. pages with fewer photos) */
.overview-slideshow--n4 .slide { animation-name: overviewSlideshow4; animation-duration: 16s; }

@keyframes overviewSlideshow4 {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .overview-slideshow .slide { animation: none; opacity: 0; }
  .overview-slideshow .slide:first-child { opacity: 1; }
}

/* ==================== SPECS ==================== */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 1rem; }

.spec-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.spec-label { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: #d99a00; margin-bottom: 0.5rem; }
.spec-value { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: #1a1a1a; }
.spec-sub { font-size: 0.82rem; opacity: 0.7; margin-top: 0.25rem; }

/* ==================== FEATURES ==================== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,0.1); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245,179,1,0.15);
  color: #d99a00;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-card h4 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; opacity: 0.8; line-height: 1.6; }

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.85;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F5B301;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.feature-list li strong { color: inherit; font-weight: 700; }

/* ==================== VARIANTS ==================== */
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 1rem; }

.variant-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.variant-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.15); }
.variant-top { padding: 1.75rem 2rem 0; }

.variant-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #d99a00;
  margin-bottom: 0.6rem;
}

.variant-card h4 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.variant-card p { padding: 0 2rem; font-size: 0.92rem; opacity: 0.8; line-height: 1.6; margin-bottom: 1.25rem; }
.variant-specs { list-style: none; padding: 0 2rem 2rem; }
.variant-specs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.variant-specs li span:last-child { font-weight: 700; text-align: right; }

/* ==================== RATES ==================== */
.rate-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.rate-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rate-table { width: 100%; border-collapse: collapse; }

.rate-table thead th {
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 1.1rem;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rate-table thead th:not(:first-child) { text-align: center; }
.rate-table tbody td { padding: 0.9rem 1.1rem; border-bottom: 1px solid #eee; color: #333; }
.rate-table tbody td:not(:first-child) { text-align: center; font-weight: 600; }
.rate-table tbody tr:nth-child(even) { background: #fafafa; }
.rate-table tbody tr:hover { background: #fff7e6; }
.rate-table .veh-name { display: block; font-weight: 600; color: #1a1a1a; }
.rate-table .veh-seat { display: block; font-size: 0.95rem; color: #2D6CDF; font-weight: 500; margin-top: 2px; }
.rate-note { margin-top: 1.5rem; font-size: 0.85rem; line-height: 1.7; opacity: 0.7; }
.rate-scroll-hint { display: none; font-size: 0.8rem; opacity: 0.6; margin: 0 0 0.6rem; font-style: italic; }

.rate-table tbody tr.rate-row-link { cursor: pointer; }
.rate-table tbody tr.rate-row-link:focus-visible { outline: 2px solid #F5B301; outline-offset: -2px; background: #fff7e6; }

/* ==================== GALLERY ==================== */
.gallery-groups { display: flex; flex-direction: column; gap: 2.25rem; margin-top: 1rem; }
.gallery-group-title { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.9rem; }
.gallery-group-title .veh-name { font-weight: 700; font-size: 1.15rem; color: #1a1a1a; }
.gallery-group-title .veh-seat { font-size: 1rem; color: #2D6CDF; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.gallery-grid .g-item { height: 260px; border-radius: 8px; overflow: hidden; background: #e9e9e9; position: relative; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }

.gallery-grid .g-item.g-item--contain { height: auto; aspect-ratio: 1600 / 1199; }
.gallery-grid .g-item.g-item--contain img { object-fit: cover; }

.gallery-grid .g-item.g-item--placeholder {
  display: grid;
  place-items: center;
  background: #f3f3f3;
  border: 2px dashed #d5d5d5;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 600;
}

html[data-theme="dark"] .gallery-grid .g-item.g-item--placeholder { background: #1E222A; border-color: #333A45; color: #6b7280; }
html[data-theme="dark"] .gallery-grid .g-item.g-item--contain { background: #1E222A; }

.gallery-group.g-item--flash { animation: gItemFlash 1.6s ease; border-radius: 8px; }
@keyframes gItemFlash {
  0%, 100% { box-shadow: none; }
  15%, 55% { box-shadow: 0 0 0 4px #F5B301; }
}

html[data-theme="dark"] .gallery-group-title .veh-name { color: #F0F2F5; }
html[data-theme="dark"] .gallery-group-title .veh-seat { color: #6EA8FE; }

/* ==================== CTA BAND ==================== */
.cta-band { background: #1a1a1a; color: #fff; text-align: center; }
.cta-band .section-heading { color: #fff; }
.cta-band p { opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; }
.cta-band .button-row { justify-content: center; }

/* ==================== DARK MODE ==================== */
html[data-theme="dark"] section { background: #14161A; }
html[data-theme="dark"] section.light-bg { background: #1A1D23; }
html[data-theme="dark"] .cta-band { background: #0E1013; }
html[data-theme="dark"] .section-label { color: #F0F2F5; }
html[data-theme="dark"] h1.section-label { color: #F5B301; }
html[data-theme="dark"] .spec-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .variant-card,
html[data-theme="dark"] .rate-card { background: #1E222A; border-color: #333A45; color: #F0F2F5; }
html[data-theme="dark"] .spec-value { color: #F0F2F5; }
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .variant-card p { color: #c9cdd3; }
html[data-theme="dark"] .variant-specs li { border-bottom-color: #2A2F38; }
html[data-theme="dark"] .rate-table tbody td { color: #d7dbe0; border-bottom-color: #2A2F38; }
html[data-theme="dark"] .rate-table tbody tr:nth-child(even) { background: #1A1D23; }
html[data-theme="dark"] .rate-table tbody tr:hover { background: #2B303A; }
html[data-theme="dark"] .rate-table .veh-name { color: #F0F2F5; }
html[data-theme="dark"] .rate-table .veh-seat { color: #6EA8FE; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 1.25rem; }
  .vehicle-page > section:first-child { padding-top: calc(3.5rem + 100px); }
  .rate-scroll-hint { display: block; }
  .rate-table { min-width: 620px; font-size: 0.85rem; }
  .btn { padding: 0.9rem 1.8rem; }
}
