/* --- Variables: dark graphite base + muted teal accent --- */
:root {
  --bg: #2d3032;
  --bg-elevated: #363a3d;
  --bg-card: #3d4246;
  --text: #e8eaec;
  --text-muted: #9ca3a8;
  --accent: #0d9488;
  --accent-hover: #14b8a6;
  --accent-glow: rgba(13, 148, 136, 0.35);
  --accent-glow-strong: rgba(20, 184, 166, 0.25);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #35383b 0%, #2d3032 30%, #282b2e 100%);
  min-height: 100vh;
}

.hero-title,
.section-title,
.booking-title,
.home-service-body h3,
.home-blog-body h3,
.content-card-body h3,
.footer-location {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=2200&q=80') center center/cover no-repeat;
  background-color: #2a2a2a;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 12, 15, 0.58), rgba(9, 14, 18, 0.46));
}

.hero-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: block;
  max-width: 180px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-logo:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Use only PNG with transparent background — no white rectangle */
.hero-logo img {
  width: auto;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .hero-logo {
    max-width: 220px;
    top: 28px;
    left: 32px;
  }
  .hero-logo img {
    height: 48px;
  }
}

/* Persistent language switcher (top-right on all pages) */
.lang-switcher {
  position: fixed;
  top: 14px;
  /* Inset from viewport; on wide screens lines up with .container right padding */
  right: max(22px, calc((100vw - 1200px) / 2 + 24px));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.lang-switcher button {
  border: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  color: #d8e0e7;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-switcher button.is-active {
  background: var(--accent);
  color: #fff;
}

.lang-switcher button:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.5);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .lang-switcher {
    top: 10px;
    right: max(16px, calc((100vw - 1200px) / 2 + 20px));
    padding: 4px;
  }

  .lang-switcher button {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  width: 100%;
  max-width: 900px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  margin: 0 0 40px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

/* Search form --- */
.search-form {
  margin: 0 auto;
  max-width: 1200px;
}

.search-form-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

/* One line: pickup | pickup datetime | return datetime | Find */
.search-form-main-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(190px, 1.2fr) minmax(190px, 1.2fr) auto;
  gap: 14px 16px;
  align-items: end;
}

.search-form-main-row .search-btn {
  margin-bottom: 0;
}

.search-datetime {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-form-inner .search-field input[type="text"] {
  min-height: 48px;
}

.search-datetime input[type="text"] {
  flex: 1;
  min-width: 0;
}
.search-datetime .search-time {
  flex: 0 0 auto;
  min-width: 90px;
}

.search-datetime select.search-time {
  padding: 12px 10px;
  min-height: 48px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: #1a1a1a;
  background: #fff;
}

.search-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5c5c5c;
}

.search-field input {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field select:not(.search-time) {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-field-pickup {
  min-width: 0;
}

.search-form-pickup-select,
.search-form-return-select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form-pickup-select:hover,
.search-form-return-select:hover {
  border-color: rgba(13, 148, 136, 0.45);
}

.search-form-pickup-select:focus,
.search-form-return-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Second row: checkbox + short stub → expands with return select */
.search-form-return-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  min-height: 56px;
}

.search-pickup-notes {
  width: 100%;
  margin: 0;
  padding-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.search-return-expand {
  display: flex;
  align-items: center;
  width: 148px;
  min-width: 148px;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.search-form-inner.search-return-open .search-return-expand {
  width: min(420px, 100%);
  min-width: 300px;
}

.search-return-stub {
  width: 100%;
  min-width: 148px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(13, 148, 136, 0.12) 55%, rgba(13, 148, 136, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f4045;
  white-space: nowrap;
  pointer-events: none;
}

.search-return-fields {
  display: none;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.search-return-fields:not([hidden]) {
  display: flex;
}

.search-return-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 2px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3d3d3d;
  line-height: 1.35;
  flex-shrink: 0;
}

.search-return-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.search-return-toggle:focus-within {
  outline: none;
}

.search-return-toggle:focus-within .search-return-toggle-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-return-toggle-text {
  user-select: none;
}

.date-picker-popover {
  margin: 14px auto 0;
  width: min(860px, 100%);
  background: #2b3135;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 16px;
  text-align: left;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.date-picker-title {
  margin: 0;
  color: #e9ecef;
  font-weight: 600;
  font-size: 0.95rem;
}

.date-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #343b40;
  color: #dfe5ea;
  cursor: pointer;
}

.date-nav:hover {
  border-color: rgba(13, 148, 136, 0.5);
  color: #ffffff;
}

.date-picker-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.dp-month {
  background: #32393e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.dp-month-title {
  margin: 0 0 10px;
  color: #f0f4f7;
  font-size: 0.9rem;
  font-weight: 600;
}

.dp-weekdays,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dp-weekdays span {
  color: #9fb0bc;
  font-size: 0.72rem;
  text-align: center;
  padding: 2px 0;
}

.dp-day {
  border: 0;
  background: transparent;
  color: #dde4ea;
  border-radius: 7px;
  height: 34px;
  font-size: 0.83rem;
  cursor: pointer;
}

.dp-day:hover {
  background: rgba(13, 148, 136, 0.2);
}

.dp-day.is-today {
  outline: 1px solid rgba(13, 148, 136, 0.55);
}

.dp-day.is-selected {
  background: var(--accent);
  color: #fff;
}

.dp-day.is-in-range {
  background: rgba(13, 148, 136, 0.25);
}

.dp-day.is-disabled {
  color: #6e7a83;
  cursor: not-allowed;
}

.dp-day.is-disabled:hover {
  background: transparent;
}

.date-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.date-picker-clear,
.date-picker-apply {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  cursor: pointer;
}

.date-picker-clear {
  background: #3b4348;
  color: #d7dee3;
}

.date-picker-apply {
  background: var(--accent);
  color: #fff;
}

.search-btn {
  padding: 0 22px;
  min-height: 48px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow-strong);
}

.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}

/* --- Benefits: soft transition from hero --- */
.benefits {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  position: relative;
}

.benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
  opacity: 0.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.benefit-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: color 0.3s ease;
}

.benefit-item:hover .benefit-icon {
  color: var(--accent-hover);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Cars section: gradient transition --- */
.cars-section {
  padding: 64px 0 88px;
  background: linear-gradient(180deg, #2f3438 0%, #262b2f 100%);
  position: relative;
}

.cars-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.15), transparent);
  opacity: 0.5;
}

.cars-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 12% 18%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(13, 148, 136, 0.06) 0%, transparent 38%);
}

.section-title {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

/* Filters: checkboxes, centered with padding --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-bottom: 32px;
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: center;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group-checkboxes {
  min-width: 140px;
  padding: 4px 8px;
}

.filter-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 0;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

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

/* Cars grid --- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.car-card {
  background: #3f464b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.car-card:hover {
  box-shadow: var(--shadow-hover), 0 0 24px var(--accent-glow-strong);
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.2);
}

.car-card-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}


.car-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-image-wrap img {
  transform: scale(1.06);
}

.car-card-body {
  padding: 20px;
}

.car-card-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.car-card-price {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.car-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.car-card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.car-card .btn-book {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.car-card .btn-book:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 18px var(--accent-glow), 0 0 32px var(--accent-glow-strong);
}

.car-card .btn-book:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}

.no-results {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-booking {
  max-width: 480px;
}

.modal-step {
  transition: opacity 0.25s ease;
}

.modal-step-hidden {
  display: none !important;
}

.modal-car-summary {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-car-summary img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.modal-car-summary .modal-car-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.modal-car-summary .modal-car-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}

.modal-car-summary .modal-car-specs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-extras {
  margin-bottom: 24px;
}

.modal-extras-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.modal-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 0;
}

.modal-extra input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.btn-continue {
  width: 100%;
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease;
}

.modal-close:hover {
  color: var(--accent-hover);
  background: rgba(13, 148, 136, 0.15);
}

.modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.modal-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.booking-form label {
  display: block;
  margin-bottom: 16px;
}

.booking-form label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.booking-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.booking-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.booking-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.booking-form .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 36px var(--accent-glow-strong);
}

.booking-form .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}

/* --- Footer: dark gradient, visual elements, accents --- */
.footer {
  position: relative;
  padding: 56px 0 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1e2123 0%, #181a1c 50%, #141618 100%);
  z-index: 0;
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 280px;
}

.footer-location {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.25s ease;
}

.footer-brand:hover .footer-location {
  color: var(--accent-hover);
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  font-size: 0.74rem;
  color: #d7e4ea;
  background: rgba(13, 148, 136, 0.16);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-nav a:hover {
  color: var(--accent-hover);
  padding-left: 4px;
}

.footer-contact p {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-contact a {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

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

.footer-hours {
  margin: 10px 0 0;
  color: #b5c0c8;
  font-size: 0.82rem;
}

.footer-social p {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-social a:hover {
  color: var(--accent-hover);
  padding-left: 4px;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.25), transparent);
  margin-bottom: 24px;
  opacity: 0.8;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  text-align: left;
  opacity: 0.85;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-secure {
  margin: 0;
  font-size: 0.8rem;
  color: #9eb0bc;
}

/* --- Full booking page --- */
.booking-hero {
  padding: 104px 0 48px;
  background: linear-gradient(180deg, #202426 0%, #262a2d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-hero-inner {
  position: relative;
}

.booking-hero .hero-logo {
  position: static;
  display: inline-block;
  margin-bottom: 20px;
}

.booking-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}

.booking-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.booking-page {
  padding: 44px 0 72px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.booking-car-card,
.booking-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
}

.booking-car-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.booking-car-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--text);
}

.booking-car-price {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.booking-car-specs,
.booking-car-desc {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.booking-car-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-form-fullpage label:last-child {
  grid-column: 1 / -1;
}

.booking-options-block {
  margin: 18px 0 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Search results (vertical cards, reference layout) --- */
.cars-photos-page {
  padding: 24px 0 72px;
  background: var(--bg);
}

.cars-results-header {
  margin-bottom: 28px;
}

.cars-results-heading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}

.cars-results-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.5;
}

.cars-results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.cars-result-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #121518;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cars-result-card:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(13, 148, 136, 0.06);
}

.cars-result-card__head {
  padding: 18px 18px 14px;
  flex-shrink: 0;
}

.cars-result-card__titleline {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 0;
  line-height: 1.25;
}

.cars-result-card__title {
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.cars-result-card__similar {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  margin-left: 4px;
}

.cars-result-card__category {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.cars-result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cars-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cars-pill--wide {
  gap: 8px;
}

.cars-pill--gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cars-pill-svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.cars-result-card__media {
  padding: 0 14px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.cars-result-card__img-stage {
  width: 100%;
  min-height: 148px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 20px;
  background: radial-gradient(ellipse 95% 85% at 50% 72%, #eceef1 0%, #d4d8de 42%, #9ea4ae 88%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cars-result-card__img-stage img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.cars-result-card__foot {
  padding: 14px 18px 18px;
  margin-top: auto;
  flex-shrink: 0;
}

.cars-result-unlimited {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.cars-unlimited-icon {
  flex-shrink: 0;
  color: #22c55e;
}

.cars-result-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.cars-result-card__daily {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.cars-result-card__daily-unit {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.cars-result-card__total {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.cars-photo-book-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cars-photo-book-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 36px var(--accent-glow-strong);
}

.cars-photo-book-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .cars-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cars-results-list {
    grid-template-columns: 1fr;
  }

  .cars-result-card__img-stage {
    min-height: 160px;
  }

  .cars-result-card__img-stage img {
    max-height: 130px;
  }
}

/* --- Home extra sections --- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head-copy {
  max-width: 760px;
}

.section-subtitle {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

.section-link {
  color: var(--accent-hover);
  font-size: 0.9rem;
}

.home-services,
.home-blog {
  padding: 56px 0 76px;
  background: linear-gradient(180deg, #3b4146 0%, #33393e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Home page: swap the two lower sections (blog before services). */
main {
  display: flex;
  flex-direction: column;
}

.home-blog {
  order: 4;
}

.home-services {
  order: 5;
}

.home-blog {
  background: linear-gradient(180deg, #2c3135 0%, #252a2e 100%);
}

.home-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.45), transparent);
}

.home-services::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.35) 0.5px, transparent 0.7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  background-size: 3px 3px, 100% 100%;
}

.home-services-grid,
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-service-card,
.home-blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #434b50;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-services-grid {
  gap: 24px;
}

.home-services .home-service-card {
  border-radius: 16px;
}

.home-services .home-service-card img {
  aspect-ratio: 16 / 9;
}

.home-services .home-service-body h3 {
  font-size: 1.08rem;
}

.home-service-card:hover,
.home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 24px var(--accent-glow-strong);
}

.home-service-card img,
.home-blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Make blog cards reading-focused: smaller image, larger text block */
.home-blog-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: stretch;
}

.home-blog-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  aspect-ratio: auto;
}

.home-service-body,
.home-blog-body {
  padding: 14px;
}

.home-service-body h3,
.home-blog-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.home-service-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.87rem;
}

.home-blog-meta {
  margin: 0 0 5px;
  color: #9db4c5;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-blog-text {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Rich pages: services/blog --- */
.content-page {
  padding: 38px 0 74px;
  position: relative;
}

.content-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.32) 0.5px, transparent 0.7px),
    linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0%, transparent 58%);
  background-size: 3px 3px, 100% 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.content-list {
  display: grid;
  gap: 16px;
}

.content-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2f3539;
  box-shadow: var(--shadow);
}

.content-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-body {
  padding: 14px 14px 14px 0;
}

.content-card-body h3 {
  margin: 0 0 8px;
}

.content-card-body p {
  margin: 0;
  color: var(--text-muted);
}

.content-aside {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2f3539;
  box-shadow: var(--shadow);
  padding: 16px;
  height: fit-content;
}

.content-aside h3 {
  margin: 0 0 10px;
}

.content-aside ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

/* --- Scroll animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .search-form-main-row {
    grid-template-columns: 1fr;
  }

  .search-form-main-row .search-btn {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .search-form-return-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-return-expand {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .search-form-inner.search-return-open .search-return-expand {
    width: 100%;
    min-width: 0;
  }

  .search-field {
    width: 100%;
  }

  .date-picker-months {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .filter-group-checkboxes {
    min-width: 100%;
  }

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

@media (max-width: 920px) {
  .search-form-main-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-field-pickup {
    grid-column: 1 / -1;
  }

  .search-form-main-row .search-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .cars-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-services-grid,
  .home-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-blog-card {
    grid-template-columns: 96px 1fr;
  }

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

  .content-card {
    grid-template-columns: 1fr;
  }

  .content-card-body {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .cars-results-list {
    grid-template-columns: 1fr;
  }

  .home-services-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-blog-card {
    grid-template-columns: 90px 1fr;
  }

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