:root {
  color-scheme: light;
  --red: #e53935;
  --red-dark: #c92b28;
  --ink: #111111;
  --gray-700: #55585d;
  --gray-500: #777b80;
  --gray-300: #d9dcdf;
  --gray-200: #e9ebed;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 650;
}

.brand-name strong {
  color: var(--red);
  font-weight: 800;
}

.dev-badge {
  padding: 2px 6px;
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a { padding-block: 10px; }

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--red); }

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  content: "";
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(2px);
  transform: scale(1.012);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 500px;
  max-width: 47%;
  padding: 54px 0 270px;
  color: var(--white);
}

.hero-copy .eyebrow,
.hero-copy .text-link,
.hero-copy .text-link svg,
.hero .hero-copy h1 span {
  color: var(--red);
}

.hero-copy .hero-intro {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 68px;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span { color: var(--red); }

.hero-intro {
  max-width: 510px;
  margin: 24px 0 26px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.text-link svg {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.vehicle-image-crop img,
.vehicle-list-image-crop img,
.gallery-stage img {
  width: 200%;
  max-width: none;
  height: 200%;
  object-fit: cover;
  transform-origin: top left;
}

.search-band {
  position: relative;
  z-index: 3;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.field > span:first-child,
.estimate-title-row span {
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 750;
}

.field input,
.field select,
.input-wrap,
.date-input-wrap {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.field input,
.field select { padding: 0 12px; }

.field input:focus,
.field select:focus,
.input-wrap:focus-within,
.date-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.input-wrap {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.date-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.input-wrap svg,
.date-input-wrap > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--gray-500);
}

.input-wrap input {
  min-width: 0;
  height: 42px;
  padding-right: 0;
  border: 0;
  box-shadow: none;
}

.date-input-wrap .flatpickr-wrapper {
  min-width: 0;
  flex: 1;
}

.date-input-wrap input,
.date-input-wrap .flatpickr-input {
  min-width: 0;
  height: 42px;
  padding: 0 0 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.location-band {
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
}

.location-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 34px;
  border-right: 1px solid var(--gray-300);
}

.location-item:first-child { padding-left: 0; }

.location-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.location-item > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--red);
}

.location-item strong,
.location-item span { display: block; }

.location-item strong { font-size: 14px; }

.location-item span {
  margin-top: 3px;
  color: var(--gray-700);
  font-size: 12px;
}

/* Leaflet's structural CSS is kept local so the map works with the site's CSP. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container {
  overflow: hidden;
  outline-offset: 1px;
  -webkit-tap-highlight-color: transparent;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container.leaflet-touch-drag { touch-action: none; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform 250ms cubic-bezier(0, 0, 0.25, 1); }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }

.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-pane canvas { z-index: 100; }
.leaflet-pane svg { z-index: 200; }

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control { float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }

.leaflet-bar {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.leaflet-bar a {
  width: 30px;
  height: 30px;
  display: block;
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
  line-height: 30px;
  text-align: center;
  text-decoration: none;
}

.leaflet-bar a:first-child { border-radius: 3px 3px 0 0; }
.leaflet-bar a:last-child { border-bottom: 0; border-radius: 0 0 3px 3px; }
.leaflet-control-zoom-in,
.leaflet-control-zoom-out { font: bold 18px/30px Arial, sans-serif; }

.leaflet-control-attribution {
  margin: 0;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.82);
}

.leaflet-control-attribution a { text-decoration: none; }
.leaflet-control-scale-line {
  box-sizing: border-box;
  padding: 2px 5px 1px;
  overflow: hidden;
  border: 2px solid #777777;
  border-top: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.leaflet-popup-content-wrapper { padding: 1px; text-align: left; }
.leaflet-popup-content { line-height: 1.3; }
.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  padding: 1px;
  transform: rotate(45deg);
}

.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.leaflet-tooltip::before {
  position: absolute;
  border: 6px solid transparent;
  background: transparent;
  content: "";
  pointer-events: none;
}

.leaflet-tooltip-top { margin-top: -6px; }
.leaflet-tooltip-top::before {
  bottom: 0;
  left: 50%;
  margin-bottom: -12px;
  margin-left: -6px;
  border-top-color: var(--white);
}

.leaflet-tooltip-right { margin-left: 6px; }
.leaflet-tooltip-right::before {
  top: 50%;
  left: 0;
  margin-top: -6px;
  margin-left: -12px;
  border-right-color: var(--white);
}

.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }

.delivery-map-section {
  padding: 86px 0 78px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.delivery-map-heading { margin-bottom: 24px; }

.delivery-map-legend {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: 18px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 650;
}

.delivery-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-map-legend svg {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.delivery-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--gray-100);
  box-shadow: var(--shadow);
}

.delivery-map {
  width: 100%;
  height: clamp(480px, 52vw, 620px);
  min-height: 480px;
  background: #edf0ed;
  font-family: inherit;
}

.delivery-map .leaflet-tile-pane img {
  filter: saturate(0.52) brightness(1.04) contrast(0.92);
}

.delivery-map .leaflet-control-zoom,
.delivery-map .leaflet-control-scale-line {
  border-color: var(--gray-300);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.12);
}

.delivery-map .leaflet-control-zoom a {
  color: var(--ink);
  font-family: inherit;
}

.delivery-map .leaflet-control-zoom a:hover,
.delivery-map .leaflet-control-zoom a:focus { color: var(--red); }

.delivery-map .leaflet-control-attribution {
  color: var(--gray-700);
  font-size: 10px;
}

.delivery-map .leaflet-control-attribution a { color: var(--ink); }

.map-reset-button {
  position: absolute;
  z-index: 800;
  top: 12px;
  right: 12px;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.14);
}

.map-reset-button:hover,
.map-reset-button:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.delivery-origin-marker,
.delivery-city-marker {
  border: 0;
  background: transparent;
}

.delivery-origin-pin {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
  border: 4px solid var(--white);
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: 0 5px 14px rgba(17, 17, 17, 0.26);
  transform: rotate(-45deg);
}

.delivery-origin-pin::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  content: "";
  inset: 7px;
}

.delivery-city-marker span {
  width: 14px;
  height: 14px;
  display: block;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.32);
  transition: transform 150ms ease;
}

.delivery-city-marker:hover span,
.delivery-city-marker:focus span { transform: scale(1.28); }

.delivery-map .leaflet-tooltip {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.2);
  color: var(--white);
  font-family: inherit;
}

.delivery-map .leaflet-tooltip::before { border-top-color: var(--ink); }

.delivery-map .delivery-origin-tooltip {
  padding: 7px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.delivery-map .delivery-origin-tooltip::before { border-right-color: var(--white); }

.delivery-tooltip-content {
  min-width: 164px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.delivery-tooltip-content strong { font-size: 13px; }

.delivery-tooltip-content > span {
  color: #dddddd;
  font-size: 11px;
}

.delivery-map .leaflet-popup-content-wrapper {
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.24);
}

.delivery-map .leaflet-popup-content { margin: 0; }
.delivery-map .leaflet-popup-tip { background: var(--ink); }

.delivery-map-note {
  margin: 14px 0 0;
  color: var(--gray-500);
  font-size: 11px;
}

.map-unavailable {
  height: 100%;
  display: grid;
  margin: 0;
  place-items: center;
  color: var(--gray-700);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.button:disabled,
.button-disabled {
  cursor: not-allowed;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  background: var(--gray-200);
}

.button-secondary {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible { border-color: var(--ink); }

.search-button { padding-inline: 22px; }

.fleet-section { padding: 88px 0 96px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading h2,
.estimate-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--gray-700);
  font-size: 14px;
}

.section-heading > p strong {
  color: var(--ink);
  font-size: 18px;
}

.fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.category-filter {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  background: var(--white);
}

.catalog-view-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  background: var(--white);
}

.catalog-view-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 750;
}

.catalog-view-button:last-child { border-right: 0; }

.catalog-view-button svg {
  width: 16px;
  height: 16px;
}

.catalog-view-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-button,
.gallery-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.filter-button:last-child,
.gallery-tab:last-child { border-right: 0; }

.filter-button.is-active,
.gallery-tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.vehicle-image-button {
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--gray-100);
}

.vehicle-image-crop {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.vehicle-image-crop::after {
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--gray-200);
  content: "";
  pointer-events: none;
}

.vehicle-image-button:hover img,
.vehicle-image-button:focus-visible img { transform: scale(1.025); }

.vehicle-image-crop img { transition: transform 220ms ease; }

.vehicle-card.is-unavailable .vehicle-image-crop img {
  filter: grayscale(0.65);
  opacity: 0.74;
}

.vehicle-card-body { padding: 18px; }

.vehicle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-year {
  padding: 2px 6px;
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  color: var(--ink);
}

.vehicle-card h3 {
  min-height: 52px;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.vehicle-specs {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  list-style: none;
}

.vehicle-specs li,
.dialog-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-700);
  font-size: 13px;
}

.vehicle-specs svg,
.dialog-specs svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ink);
}

.vehicle-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vehicle-price-row span {
  display: block;
  color: var(--gray-700);
  font-size: 11px;
}

.vehicle-price-row strong { font-size: 24px; }

.vehicle-price-row small {
  color: var(--gray-700);
  font-size: 12px;
}

.vehicle-deposit { text-align: right; }

.vehicle-actions {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
}

.vehicle-actions .button { padding-inline: 12px; }

.view-button {
  width: 46px;
  padding: 0;
}

.vehicle-grid.is-list-view {
  display: block;
  border-top: 1px solid var(--gray-300);
}

.vehicle-list-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-300);
}

.vehicle-list-media {
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--gray-100);
}

.vehicle-list-image-crop {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.vehicle-list-image-crop::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 17, 17, 0.03);
  content: "";
  pointer-events: none;
}

.vehicle-list-media img { transition: transform 220ms ease; }

.vehicle-list-media:hover img,
.vehicle-list-media:focus-visible img { transform: scale(1.025); }

.vehicle-list-item.is-unavailable .vehicle-list-image-crop img {
  filter: grayscale(0.65);
  opacity: 0.74;
}

.vehicle-list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vehicle-list-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.vehicle-list-title { min-width: 0; }

.vehicle-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-list-meta span:not(:last-child)::after {
  margin-left: 7px;
  color: var(--gray-300);
  content: "•";
}

.vehicle-list-title h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.vehicle-list-rate {
  flex: 0 0 auto;
  padding-top: 2px;
  text-align: right;
}

.vehicle-list-rate span {
  display: block;
  margin-bottom: 1px;
  color: var(--gray-700);
  font-size: 11px;
}

.vehicle-list-rate strong {
  font-size: 25px;
  line-height: 1.1;
}

.vehicle-list-rate small {
  margin-left: 4px;
  color: var(--gray-700);
  font-size: 12px;
}

.vehicle-list-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 19px 0;
  padding: 15px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  list-style: none;
}

.vehicle-list-specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
}

.vehicle-list-specs svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ink);
}

.vehicle-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vehicle-list-footer p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.vehicle-list-footer p span {
  color: var(--gray-700);
  font-size: 11px;
}

.vehicle-list-footer p strong { font-size: 14px; }

.vehicle-list-actions {
  display: flex;
  gap: 8px;
}

.vehicle-list-gallery {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.vehicle-list-cta {
  min-width: 156px;
  gap: 8px;
}

.vehicle-list-cta svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  padding: 48px 20px;
  border: 1px dashed var(--gray-300);
  color: var(--gray-700);
  text-align: center;
}

.estimate-section {
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.estimate-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: center;
}

.estimate-copy > p:last-child {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--gray-700);
}

.estimate-tool {
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate-empty {
  color: var(--gray-500);
  text-align: center;
}

.estimate-empty svg {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.estimate-empty p { margin: 0; }

.estimate-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.estimate-title-row span,
.estimate-title-row strong { display: block; }

.estimate-title-row strong {
  margin-top: 4px;
  font-size: 21px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.estimate-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.price-summary { margin: 0; }

.price-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
}

.price-summary dt {
  color: var(--gray-700);
  font-size: 13px;
}

.price-summary dd {
  margin: 0;
  font-weight: 750;
}

.price-summary div:nth-child(2) dd {
  color: var(--red);
  font-size: 20px;
}

.estimate-note,
.dialog-note {
  margin: 16px 0 0;
  color: var(--gray-500);
  font-size: 11px;
  line-height: 1.55;
}

.conditions-section {
  padding: 34px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.condition-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 26px;
  border-right: 1px solid var(--gray-200);
}

.condition-item:first-child { padding-left: 0; }

.condition-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.condition-item svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.condition-item strong,
.condition-item span { display: block; }

.condition-item strong { font-size: 13px; }

.condition-item span {
  margin-top: 3px;
  color: var(--gray-700);
  font-size: 11px;
}

.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: var(--white);
}

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

.footer-brand img {
  width: 44px;
  height: 44px;
}

.footer-inner p {
  margin: 0;
  color: #c8c8c8;
  font-size: 12px;
}

.vehicle-dialog {
  width: min(calc(100% - 36px), 980px);
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.vehicle-dialog::backdrop {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(4px);
}

.availability-alert-dialog {
  width: min(calc(100% - 32px), 450px);
  padding: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.availability-alert-dialog::backdrop {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(4px);
}

.availability-alert-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.availability-alert-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #f2b9b9;
  border-radius: 8px;
  background: #fff4f4;
  color: var(--red);
}

.availability-alert-icon svg {
  width: 25px;
  height: 25px;
}

.availability-alert-dialog h2 {
  margin: 8px 42px 12px 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}

.availability-alert-dialog > p:not(.eyebrow) {
  margin: 0 0 26px;
  color: var(--gray-700);
  line-height: 1.65;
}

.availability-alert-dialog .button { width: 100%; }

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.12);
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.gallery {
  min-width: 0;
  padding: 20px;
  background: var(--gray-100);
}

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.gallery-stage[data-view="side"] img { transform: translateX(-50%); }
.gallery-stage[data-view="rear"] img { transform: translateY(-50%); }
.gallery-stage[data-view="interior"] img { transform: translate(-50%, -50%); }

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
}

.gallery-tab {
  min-width: 0;
  padding: 0 8px;
}

.dialog-details { padding: 58px 36px 34px; }

.dialog-category {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-details h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.dialog-year {
  margin: 8px 0 0;
  color: var(--gray-700);
}

.dialog-specs {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 22px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  list-style: none;
}

.dialog-pricing { margin: 0; }

.dialog-pricing div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.dialog-pricing dt {
  color: var(--gray-700);
  font-size: 13px;
}

.dialog-pricing dd { margin: 0; }

.dialog-pricing strong {
  color: var(--red);
  font-size: 28px;
}

.dialog-select {
  width: 100%;
  margin-top: 24px;
}

.flatpickr-calendar {
  width: 326px;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.18);
  color: var(--ink);
  font-family: inherit;
}

.flatpickr-calendar.arrowTop::before { border-bottom-color: var(--gray-300); }
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--white); }
.flatpickr-calendar.arrowBottom::before { border-top-color: var(--gray-300); }
.flatpickr-calendar.arrowBottom::after { border-top-color: var(--white); }

.flatpickr-months {
  align-items: center;
  min-height: 42px;
}

.flatpickr-months .flatpickr-month {
  height: 42px;
  color: var(--ink);
}

.flatpickr-current-month {
  height: 42px;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 750;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: var(--ink);
  font-weight: 750;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 12px;
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 6px;
  color: var(--ink);
  fill: var(--ink);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: var(--gray-100);
  color: var(--red);
  fill: var(--red);
}

.flatpickr-weekdays {
  height: 34px;
  margin-top: 6px;
}

span.flatpickr-weekday {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 750;
}

.flatpickr-days,
.dayContainer {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
}

.flatpickr-day {
  max-width: 42px;
  height: 40px;
  border-radius: 5px;
  color: var(--ink);
  line-height: 38px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  border-color: var(--gray-200);
  background: var(--gray-100);
}

.flatpickr-day.today {
  border-color: var(--red);
  color: var(--red);
  font-weight: 750;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  font-weight: 750;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #c7c9cc;
}

@media (max-width: 1060px) {
  .search-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-location { grid-column: span 2; }
  .search-button { grid-column: span 2; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-list-item { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }

  .vehicle-card h3 { min-height: auto; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .condition-item:nth-child(2) { border-right: 0; }
  .condition-item:nth-child(3) { padding-left: 0; }
}

@media (max-width: 820px) {
  .hero-inner { min-height: 650px; align-items: flex-start; }
  .hero-copy { width: 520px; max-width: 76%; padding-top: 56px; }
  .hero h1 { font-size: 54px; }
  .delivery-map-legend { flex-wrap: wrap; }
  .fleet-toolbar { flex-wrap: wrap; }
  .vehicle-list-item { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .vehicle-list-title h3 { font-size: 24px; }
  .vehicle-list-specs { gap-inline: 18px; margin: 15px 0; padding: 13px 0; }
  .estimate-inner { grid-template-columns: 1fr; gap: 34px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-details { padding-top: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), 1180px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 17px; }
  .dev-badge { display: none; }
  .nav-toggle { display: inline-grid; }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
  }

  .main-nav.is-open { display: grid; gap: 4px; }
  .main-nav a { padding: 11px 0; }
  .hero-background { object-fit: cover; object-position: 45% top; }
  .hero-inner { min-height: 610px; }
  .hero-copy { width: 100%; max-width: 100%; padding: 42px 0 280px; }
  .hero h1 { font-size: 43px; }
  .hero-intro { width: 92%; margin-top: 18px; font-size: 16px; }
  .search-band { padding: 20px 0; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .field-location,
  .search-form .field:nth-child(2),
  .search-form .field:nth-child(3),
  .search-form .field:nth-child(4),
  .search-button { grid-column: 1 / -1; }
  .search-button { margin-top: 2px; }
  .location-grid { grid-template-columns: 1fr; }

  .location-item,
  .location-item:first-child,
  .location-item:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--gray-300);
  }

  .location-item:last-child { border-bottom: 0; }
  .delivery-map-section { padding: 64px 0 58px; }
  .delivery-map-heading { margin-bottom: 20px; }

  .delivery-map-legend {
    display: grid;
    gap: 10px;
  }

  .delivery-map {
    height: 440px;
    min-height: 440px;
  }

  .delivery-map .delivery-origin-tooltip { display: none; }
  .fleet-section { padding: 64px 0 72px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2,
  .estimate-copy h2 { font-size: 31px; }
  .section-heading > p { margin-top: 12px; }
  .fleet-toolbar { display: grid; gap: 12px; }
  .category-filter { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
  .catalog-view-toggle { width: 100%; }
  .catalog-view-button { flex: 1; }
  .vehicle-grid { grid-template-columns: 1fr; gap: 16px; }
  .vehicle-card-body { padding: 17px; }
  .vehicle-image-crop { aspect-ratio: 4 / 3; }
  .vehicle-image-crop img { width: 200%; height: auto; }

  .vehicle-list-item {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
  }

  .vehicle-list-media { align-self: start; }
  .vehicle-list-title-row { display: block; }
  .vehicle-list-meta { gap: 5px; margin-bottom: 4px; font-size: 10px; }
  .vehicle-list-meta span:not(:last-child)::after { margin-left: 5px; }
  .vehicle-list-title h3 { font-size: 19px; }
  .vehicle-list-rate { margin-top: 8px; text-align: left; }
  .vehicle-list-rate span { display: inline; margin-right: 5px; }
  .vehicle-list-rate strong { font-size: 20px; }
  .vehicle-list-rate small { font-size: 11px; }

  .vehicle-list-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin: 12px 0;
    padding: 12px 0;
  }

  .vehicle-list-specs li { gap: 5px; font-size: 11px; }
  .vehicle-list-specs svg { width: 14px; height: 14px; }
  .vehicle-list-footer { display: block; }
  .vehicle-list-footer p { margin-bottom: 10px; }
  .vehicle-list-actions { width: 100%; }
  .vehicle-list-gallery { width: 42px; min-width: 42px; }
  .vehicle-list-cta { min-width: 0; flex: 1; padding-inline: 10px; }
  .estimate-section { padding: 64px 0; }
  .estimate-tool { min-height: 270px; padding: 20px; }
  .estimate-dates { grid-template-columns: 1fr; }
  .conditions-section { padding: 28px 0; }
  .conditions-grid { grid-template-columns: 1fr; row-gap: 0; }

  .condition-item,
  .condition-item:first-child,
  .condition-item:nth-child(3),
  .condition-item:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .condition-item:last-child { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }

  .vehicle-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .gallery { padding: 14px; }
  .gallery-tabs { overflow-x: auto; }
  .gallery-tab { font-size: 12px; }
  .dialog-details { padding: 30px 22px 34px; }
  .dialog-details h2 { font-size: 29px; }
  .availability-alert-dialog { padding: 28px 22px 22px; }
  .availability-alert-dialog h2 { font-size: 24px; }
}

@media (max-width: 360px) {
  .vehicle-list-item { grid-template-columns: 124px minmax(0, 1fr); gap: 12px; }
  .vehicle-list-specs { grid-template-columns: 1fr; }

  .flatpickr-calendar {
    width: 300px;
    padding: 10px;
  }

  .flatpickr-days,
  .dayContainer {
    width: 278px;
    min-width: 278px;
    max-width: 278px;
  }

  .flatpickr-day { max-width: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vehicle-image-crop img,
  .vehicle-list-image-crop img { transition: none; }
}
