:root {
  --blue: #061b4f;
  --blue-2: #102c7e;
  --brand-blue: #263b8f;
  --orange: #f39a1e;
  --dark: #071126;
  --muted: #6b7280;
  --light: #f7f8fc;
  --border: #e6eaf2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #fff;
  color: var(--dark);
}

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

button,
select,
input {
  font: inherit;
}

.page {
  overflow: hidden;
}

header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6.8%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 234, 242, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.logo img {
  height: 42px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 700;
  font-size: 14px;
  color: #071126;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brand-blue); }
.nav-links > a, .nav-sell > summary { padding: 13px 0; white-space: nowrap; }
.nav-links .is-active { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav-sell { position: relative; }
.nav-sell > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
.nav-sell > summary::-webkit-details-marker { display: none; }
.nav-sell[open]::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 10px; }
.nav-sell[open] .header-profile-chevron { transform: rotate(180deg); }
.nav-sell > summary:hover, .nav-sell[open] > summary { color: var(--brand-blue); }
.nav-links > a:focus-visible, .nav-sell > summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; border-radius: 3px; }
.sell-shortcuts {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: -12px;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.sell-shortcuts a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border-radius: 6px; }
.sell-shortcuts img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.sell-shortcuts a:hover, .sell-shortcuts a:focus-visible, .sell-shortcuts a.is-active { background: #f1f3fa; color: var(--brand-blue); }
.sell-shortcuts a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; }

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-login img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.header-login:hover .login-btn {
  background: var(--blue-2);
}

.header-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.header-profile img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light);
}

.header-profile:hover {
  color: var(--blue-2);
}

.header-profile-menu { position: relative; }
.header-profile-menu::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 10px; }
.header-profile-chevron { width: 15px; height: 15px; transition: transform .16s ease; }
.header-profile-menu:is(:hover, :focus-within, .is-open) .header-profile-chevron { transform: rotate(180deg); }
.profile-shortcuts {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 252px;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.header-profile-menu:hover .profile-shortcuts,
.header-profile-menu:focus-within .profile-shortcuts,
.header-profile-menu.is-open .profile-shortcuts { display: block; }
.profile-shortcuts form { margin: 0; }
.profile-shortcut {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.profile-shortcut img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
.profile-shortcut:hover, .profile-shortcut:focus-visible { outline: none; background: #f1f3fa; color: var(--brand-blue); }
.profile-shortcut-divider { height: 1px; margin: 5px 7px; background: var(--border); }
.profile-shortcut-signout { color: #a72b3a; }
.profile-shortcut-signout:hover, .profile-shortcut-signout:focus-visible { background: #fff3f4; color: #922131; }

.header-login:focus-visible, .header-profile:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: 8px;
}
.profile-shortcut:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; }

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
}

.hero {
  min-height: 590px;
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 17, 54, 0.98) 0%, rgba(6, 27, 79, 0.95) 37%, rgba(6, 27, 79, 0.42) 67%, rgba(243, 154, 30, 0.15) 100%),
    url("../images/range-rover.png");
  background-size: cover;
  background-position: center;
  padding: 44px 6.8% 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 26%, rgba(243, 154, 30, 0.24), transparent 28%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  margin-bottom: 24px;
  max-width: 660px;
}

.hero h1 span {
  font-family: inherit;
  color: var(--orange);
}

.hero p {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 28px;
}

.search-panel {
  width: min(100%, 500px);
  border: 1px solid rgba(230, 234, 242, 0.95);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.top-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.top-search-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--border);
  color: var(--blue);
  flex: 0 0 auto;
}

.top-search-icon svg {
  width: 19px;
  height: 19px;
}

.top-search-input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
}

.top-search-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}


.search-body {
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 32px;
  padding-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

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

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}

select,
input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  outline: none;
  background: #f8fafc;
  color: var(--dark);
}

select option {
  color: #111827;
}

select:focus,
input:focus {
  border-color: var(--brand-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(38, 59, 143, 0.08);
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}

.search-btn {
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.advanced-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-blue);
  font-weight: 800;
  white-space: nowrap;
}

.stats-bar-wrap {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding: 0 6.8%;
}

.stats-bar {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid var(--border);
}

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

.stat-icon,
.step-icon,
.brand-card .brand-icon,
.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f4ff;
  color: var(--brand-blue);
  flex: 0 0 auto;
}

.stat-item strong {
  display: block;
  font-size: 23px;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 42px 6.8%;
}

.section.light {
  background: #fbfcff;
}

.compact-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.compact-section + .compact-section {
  padding-top: 0;
}

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

.section-heading h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin-bottom: 4px;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

.view-link {
  color: var(--brand-blue);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.new-listings-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Liquify-style scrolling rows, separate from the search results grid. */
.listing-carousel {
  --listings-per-view: 5;
  position: relative;
}

.listing-carousel .listing-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--listings-per-view) - 1) * 16px) / var(--listings-per-view));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 0 20px;
}

.listing-track::-webkit-scrollbar { display: none; }
.listing-track > .car-card { scroll-snap-align: start; }
.listing-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.listing-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  font-size: 0;
  transform: translateY(-50%);
}

.listing-arrow::before, .photo-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.listing-arrow-left { left: -60px; }
.listing-arrow-right { right: -60px; }
.listing-arrow-left::before, .photo-previous::before { transform: translateX(2px) rotate(-45deg); }
.listing-arrow-right::before, .photo-next::before { transform: translateX(-2px) rotate(135deg); }
.listing-arrow:hover:not(:disabled) { background: #f1f4ff; }
.listing-arrow:disabled { cursor: default; opacity: 0.35; }

@media (max-width: 1180px) {
  .listing-carousel { --listings-per-view: 3; }
}
@media (max-width: 850px) {
  .listing-carousel { --listings-per-view: 2; }
}
@media (max-width: 560px) {
  .listing-carousel { --listings-per-view: 1; }
  .listing-arrow-left { left: -12px; }
  .listing-arrow-right { right: -12px; }
}

.car-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.car-image {
  height: 190px;
  position: relative;
  background: #eef0f4;
  display: grid;
  place-items: center;
  color: #8a94a6;
  font-weight: 800;
  font-size: 12px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorite {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--orange);
  cursor: pointer;
}

.favorite svg {
  width: 16px;
  height: 16px;
}

.car-content {
  padding: 12px 8px 18px 8px;
}

.car-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.car-title-row h3 {
  min-width: 0;
  font-size: 22px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-meta {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  margin: 1px 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.previous-price {
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  text-decoration: line-through;
  white-space: nowrap;
}

.price {
  color: var(--brand-blue);
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.car-location {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  white-space: nowrap;
  min-width: 0;
}

.car-location svg {
  width: 10px;
  height: 10px;
  color: var(--muted);
  flex: 0 0 auto;
}

.listing-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 1px 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

#featured .split-grid { margin-top: 8px; }
#featured { padding-bottom: 12px; }
#affordable-listings { padding-top: 12px; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.brand-card,
.budget-card,
.body-type-card {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #283145;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-card:hover,
.budget-card:hover,
.body-type-card:hover {
  border-color: rgba(38, 59, 143, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.brand-card .brand-icon {
  width: 36px;
  height: 36px;
  font-size: 12px;
  background: #f8fafc;
  color: var(--muted);
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.budget-card {
  min-height: 78px;
  font-size: 15px;
  color: var(--brand-blue);
}

.budget-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.body-type-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.body-type-card {
  min-height: 100px;
  padding: 12px;
  font-size: 15px;
  color: var(--brand-blue);
}

.body-type-card img {
  display: block;
  width: 100%;
  max-width: 88px;
  height: 44px;
  object-fit: contain;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.step {
  text-align: center;
}

.step-icon {
  margin: 0 auto 12px;
  width: 58px;
  height: 58px;
}

.step h4 {
  margin-bottom: 8px;
  font-size: 15px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.features-strip {
  background: var(--blue);
  color: #fff;
  padding: 44px 6.8%;
}

.features-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.features-image-placeholder {
  min-height: 310px;
  overflow: hidden;
}

.features-image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: contain;
  display: block;
}

.features-content h2 {
  font-size: 34px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.features-content > p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 560px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.feature-icon {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.feature h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.feature p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.75);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7deff, #fff3df);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand-blue);
  flex: 0 0 auto;
}

.stars {
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.review-card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-card strong {
  font-size: 13px;
  color: var(--dark);
}

.app-cta {
  display: grid;
  grid-template-columns: minmax(320px, 520px) auto;
  justify-content: center;
  align-items: center;
  justify-items: center;
  column-gap: 24px;
  background:
    radial-gradient(circle at 86% 25%, rgba(243,154,30,0.28), transparent 25%),
    linear-gradient(135deg, var(--blue) 0%, var(--brand-blue) 100%);
  color: #fff;
  border-radius: 0;
  padding: 44px 6.8%;
  margin-top: 100px;
  overflow: visible;
}

.app-cta > div:first-child {
  max-width: 520px;
  justify-self: end;
}

.app-cta h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-align: center;
}

.app-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  text-align: center;
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.store-btn img {
  height: 46px;
  width: auto;
  display: block;
}

.phone-placeholder {
  height: 380px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  justify-self: start;
  overflow: visible;
}

.phone-placeholder img {
  width: auto;
  height: 600px;
  display: block;
  align-self: flex-end;
  margin-bottom: -44px;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.28));
}

footer {
  background: transparent;
  color: var(--muted);
  padding: 52px 6.8% 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.footer-brand img {
  height: 44px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f4ff;
  color: var(--brand-blue);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.footer-column h4 {
  color: var(--dark);
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-column a,
.footer-column span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.footer-column a:hover {
  color: var(--brand-blue);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.footer-badges img {
  width: 148px;
  height: auto;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--brand-blue);
}

svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

@media (max-width: 1180px) {
  header {
    padding: 0 4.5%;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .hero,
  .section,
  .stats-bar-wrap,
  .features-strip,
  footer {
    padding-left: 4.5%;
    padding-right: 4.5%;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .app-cta {
    padding-left: 4.5%;
    padding-right: 4.5%;
  }

  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item:nth-child(3) {
    border-right: 0;
  }

  .stat-item:nth-child(-n+3) {
    border-bottom: 1px solid var(--border);
  }

  .brand-grid,
  .budget-grid,
  .body-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 850px) {
  header {
    height: 72px;
  }

  .logo img {
    height: 34px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 56px;
    background-position: 68% center;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .search-panel {
    border-radius: 5px;
  }

  .search-actions,
  .split-grid,
  .app-cta {
    grid-template-columns: 1fr;
  }

  .app-cta {
    column-gap: 0;
    row-gap: 18px;
  }

  .app-cta > div:first-child,
  .phone-placeholder {
    justify-self: center;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item,
  .stat-item:nth-child(3) {
    border-right: 1px solid var(--border);
  }

  .stat-item:nth-child(even) {
    border-right: 0;
  }

  .stat-item:nth-child(-n+4) {
    border-bottom: 1px solid var(--border);
  }

  .car-grid,
  .reviews-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .app-cta {
    padding: 34px 4.5% 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 36px;
    background:
      linear-gradient(90deg, rgba(3, 17, 54, 0.98) 0%, rgba(6, 27, 79, 0.9) 100%),
      url("../images/range-rover.png");
  }

  .hero p {
    font-size: 16px;
  }

  .search-body {
    padding: 20px;
  }

  .stats-bar,
  .car-grid,
  .reviews-grid,
  .features-grid,
  .features-layout,
  .brand-grid,
  .budget-grid,
  .body-type-grid,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-item,
  .stat-item:nth-child(even),
  .stat-item:nth-child(3) {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .section-heading h2,
  .app-cta h2 {
    font-size: 29px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

/* Website data, search and listing details. */
html { scroll-padding-top: 100px; }
[hidden] { display: none !important; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
input, select { max-width: 100%; }
.field input { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: white; color: var(--dark); }
.field select {
    min-width: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23374151' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}
.field select:disabled { background-color: #eef0f4; color: var(--muted); cursor: not-allowed; opacity: 1; }
@media (forced-colors: active) {
    .field select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 12px; }
}
.form-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 16px; }
.hero .form-note { color: var(--muted); font-size: 12px; margin: 12px 0; }
.advanced-search { color: var(--dark); margin-bottom: 16px; }
.advanced-search summary { margin-bottom: 12px; }
.advanced-search .form-grid { margin: 0; }
.status-panel { padding: 28px; background: #f1f4ff; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; line-height: 1.6; }
.status-panel a { color: var(--brand-blue); text-decoration: underline; }
.brand-icon img { width: 38px; height: 38px; object-fit: contain; }
.car-card, .car-grid > *, .field { min-width: 0; }
.car-title-row h3 a { display: block; overflow: hidden; text-overflow: ellipsis; }
.car-bottom-row { flex-wrap: wrap; }
.price-wrap { flex-wrap: wrap; }
.favorite { width: 32px; height: 32px; flex: 0 0 32px; }
.favorite[aria-pressed="true"] svg { fill: var(--orange); }
.favorite .favourite-icon { display: block; width: 20px; height: 20px; background: var(--muted); -webkit-mask: url("../images/ic_favorite_outline.png") center / contain no-repeat; mask: url("../images/ic_favorite_outline.png") center / contain no-repeat; }
.favorite[aria-pressed="true"] .favourite-icon { background: var(--orange); -webkit-mask-image: url("../images/ic_favorite.png"); mask-image: url("../images/ic_favorite.png"); }
.favorite:disabled { cursor: wait; opacity: .55; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination-link, .pagination-ellipsis { display: inline-flex; justify-content: center; align-items: center; min-width: 38px; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--dark); font-size: 14px; font-weight: 700; line-height: 1; }
a.pagination-link:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
a.pagination-link:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.pagination-link.is-current { border-color: var(--brand-blue); background: var(--brand-blue); color: white; }
.pagination-link.is-disabled { color: var(--muted); opacity: .55; }
.pagination-step { min-width: 88px; }
.pagination-ellipsis { border-color: transparent; background: transparent; color: var(--muted); }
.site-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 8px; background: var(--blue); color: white; box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; }
.site-toast.is-visible { opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { margin: auto; padding: 30px; width: min(520px, 92vw); max-height: 80vh; border: 1px solid var(--border); border-radius: 12px; color: var(--dark); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,17,54,0.6); }
dialog p { margin: 16px 0; color: var(--muted); line-height: 1.5; }
/* Listing detail follows the Android screen's cards, striped rows and action colours. */
.listing-page { background: #f7f8fc; }
.detail-page { max-width: 1440px; margin: 0 auto; padding: 28px 5% 36px; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.detail-breadcrumb a { color: var(--brand-blue); }
.detail-heading { margin: 24px 0; }
.detail-heading h1 { font-size: 28px; margin-bottom: 12px; }
.detail-heading p { margin: 12px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 16px; min-width: 0; }
.detail-sidebar { position: sticky; top: 102px; }
.detail-card { background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 18px rgba(15,23,42,.035); min-width: 0; }
.detail-card h2 { font-size: 20px; color: var(--dark); }
.detail-gallery { overflow: hidden; }
.detail-gallery:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.detail-photo-stage { position: relative; background: #edf0f6; }
.detail-image { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; }
.detail-tag { position: absolute; bottom: 14px; left: 14px; border-radius: 4px; padding: 5px 10px; color: white; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 700; }
.detail-deal { background: #c92f3b; }
.photo-counter { position: absolute; bottom: 14px; right: 14px; padding: 5px 10px; border-radius: 20px; background: rgba(0,0,0,.65); color: white; font-size: 12px; }
.photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: white; color: var(--brand-blue); font-size: 0; line-height: 1; box-shadow: 0 2px 8px #0002; }
.photo-previous { left: 12px; }
.photo-next { right: 12px; }
.photo-arrow:disabled { opacity: .4; cursor: default; }
.detail-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
.detail-thumbnails a { border: 2px solid transparent; border-radius: 6px; flex: 0 0 86px; padding: 2px; }
.detail-thumbnails a[aria-current="true"] { border-color: var(--orange); }
.detail-thumbnails img { width: 78px; height: 58px; object-fit: cover; display: block; border-radius: 3px; }
.detail-overview { padding: 22px; }
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-title-row > div:first-child { min-width: 0; }
.detail-title-row h1 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.detail-meta { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 8px; }
.detail-tools { display: flex; gap: 6px; flex-shrink: 0; }
.detail-tools .detail-tool { display: grid; place-items: center; width: 38px; height: 38px; flex-basis: 38px; padding: 8px; border: 1px solid var(--border); border-radius: 50%; color: var(--brand-blue); background: white; }
.detail-tool svg { width: 20px; height: 20px; }
.detail-tool:hover { background: var(--light); }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.detail-overview .price { font-size: 30px; }
.detail-overview .previous-price { font-size: 16px; margin-right: 6px; }
.detail-negotiable { color: var(--muted); font-size: 12px; margin-top: 8px; }
.detail-feedback { color: var(--brand-blue); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-feedback:not(:empty) { margin-top: 8px; }
.detail-feedback a { text-decoration: underline; }
.detail-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-location svg { width: 18px; height: 18px; flex-shrink: 0; }
.detail-section { padding-bottom: 12px; overflow: hidden; }
.detail-section > h2 { padding: 20px 22px 16px; }
.detail-specs > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 20px; padding: 12px 22px; font-size: 14px; line-height: 1.5; }
.detail-specs > div:nth-child(even) { background: #f7f8fc; }
.detail-specs dt { color: var(--muted); }
.detail-specs dd { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.detail-features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 0 22px 10px; }
.detail-features li { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dce3f7; border-radius: 5px; color: var(--brand-blue); background: #f4f6ff; font-size: 13px; overflow-wrap: anywhere; }
.listing-description { padding: 0 22px 10px; line-height: 1.8; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.detail-seller { padding: 22px; text-align: center; }
.seller-avatar { display: block; margin: 18px auto 12px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #f0f3ff; }
.detail-seller h3 { font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }
.seller-badge { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #eaf5ef; color: #216d49; }
.member-badge { background: #f1edfa; color: #64409a; }
.detail-seller p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0; }
.detail-seller .view-link { font-size: 13px; }
.detail-contact { padding: 22px; scroll-margin-top: 110px; }
.detail-contact > p, .detail-app-links p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0; }
.detail-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.detail-action { padding: 12px 8px; border-radius: 5px; color: white; font-size: 14px; font-weight: 700; text-align: center; }
.detail-action small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; }
.inquiry-action { background: var(--brand-blue); }
.offer-action { background: var(--orange); }
.contact-action { grid-column: 1/-1; background: #362a52; }
.contact-action svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.contact-action .contact-lock-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; object-fit: contain; filter: brightness(0) invert(1); }
.detail-action:hover { filter: brightness(.94); }
.detail-app-links { border-top: 1px solid var(--border); padding-top: 4px; scroll-margin-top: 105px; }
.detail-reference { display: block; color: var(--brand-blue); letter-spacing: 1px; overflow-wrap: anywhere; }
.detail-store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.detail-store-buttons img { display: block; width: 138px; max-width: 100%; height: auto; }
.detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 18px 0; text-align: center; }
.detail-stats > div + div { border-left: 1px solid var(--border); }
.detail-stats dt { color: var(--muted); font-size: 12px; }
.detail-stats dd { margin-top: 8px; font-size: 22px; overflow-wrap: anywhere; }
.detail-similar { margin-top: 36px; }
.detail-similar .listing-arrow-left { left: -60px; }
.detail-similar .listing-arrow-right { right: -60px; }
.photo-dialog { width: min(1100px, 96vw); max-height: 94vh; padding: 44px 12px 12px; background: #111827; border: 0; }
.photo-dialog > img { display: block; width: 100%; height: min(70vh, 760px); object-fit: contain; }
.photo-dialog-close { position: absolute; top: 4px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: white; font-size: 30px; }
.photo-dialog .photo-dialog-count { color: white; text-align: center; margin: 8px 0 0; }
/* Search results use horizontal rows, like the Android list layout. */
.search-page { background: var(--light); }
.results-page { max-width: 1440px; margin: 0 auto; padding: 28px 5% 48px; min-height: 65vh; scroll-margin-top: 100px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.results-heading h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.7px; }
.results-heading p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.results-types { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--border); border-radius: 8px; background: white; flex-shrink: 0; }
.results-types a { padding: 10px 18px; color: var(--brand-blue); font-size: 14px; font-weight: 700; border-radius: 5px; }
.results-types a[aria-current="page"] { background: var(--brand-blue); color: white; }
.results-filter-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.results-filter-summary span { padding: 6px 10px; background: #eaf0fb; border-radius: 4px; color: var(--brand-blue); font-size: 12px; overflow-wrap: anywhere; max-width: 100%; margin-bottom: 16px; }
.results-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.results-sidebar { position: sticky; top: 102px; max-height: calc(100vh - 118px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
.results-content { min-width: 0; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.results-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.results-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; max-width: 100%; }
.results-sort .field { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.results-sort .field label { margin: 0; white-space: nowrap; }
.results-sort .field select { width: auto; max-width: 100%; }
.results-filter-title { display: none; padding: 18px 16px; font-size: 16px; color: var(--blue); }
.results-filters { background: white; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px; }
.results-filters > summary { padding: 16px 20px; font-size: 15px; font-weight: 700; color: var(--blue); }
.results-filters > summary span { margin-left: 12px; font-weight: 400; font-size: 12px; color: var(--muted); }
.results-filters .search-panel { width: 100%; border: 0; border-top: 1px solid var(--border); box-shadow: none; border-radius: 0 0 8px 8px; }
.results-filters .search-body { padding: 20px; }
.results-filters .form-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
.results-filters .field.full { grid-column: span 2; }
.results-filters .search-actions { grid-template-columns: auto auto; justify-content: flex-start; }
.results-filters .search-btn { width: auto; min-width: 160px; }
.results-list { display: grid; gap: 20px; }
.listing-row { display: grid; grid-template-columns: 280px minmax(0,1fr) 200px; align-items: start; gap: 24px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 18px rgba(15,23,42,.035); }
.row-image { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #edf0f6; }
.row-image > img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.row-image .detail-tag { left: 0; bottom: 0; border-radius: 0; }
.row-photo-count { position: absolute; top: 0; right: 0; padding: 4px 8px; border-radius: 0; background: #0009; color: white; font-size: 11px; }
.row-content { min-width: 0; }
.row-title { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.row-title > div { min-width: 0; }
.row-title h2 { font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.row-title h2 a:hover { color: var(--brand-blue); }
.row-reference { color: var(--muted); font-size: 11px; margin-bottom: 5px; overflow-wrap: anywhere; }
.row-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.row-meta { color: var(--muted); font-size: 13px; line-height: 1.7; }
.row-location { margin-left: auto; justify-content: flex-end; text-align: right; max-width: 100%; overflow-wrap: anywhere; }
.row-specs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 16px; padding: 16px 0; margin: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.row-specs:empty { display: none; }
.row-specs dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.row-specs dd { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.row-view-link { display: inline-block; margin-top: 12px; color: var(--brand-blue); font-size: 13px; font-weight: 700; }
.row-pricing { min-width: 0; border-left: 1px solid var(--border); padding-left: 20px; }
.row-price { text-align: center; }
.row-price .previous-price { display: block; margin-bottom: 4px; }
.row-price .price { display: block; font-size: 25px; overflow-wrap: anywhere; }
.row-actions { display: grid; gap: 8px; margin-top: 18px; }
.row-actions .detail-action { padding: 10px 8px; font-size: 13px; }
@media (min-width: 1101px) {
    .results-sidebar .results-filters { margin-bottom: 0; }
    .results-sidebar .results-filters > summary { display: none; }
    .results-filter-title { display: block; }
    .results-sidebar .top-search-bar { padding: 12px; gap: 8px; }
    .results-sidebar .top-search-icon { width: 30px; height: 30px; }
    .results-sidebar .top-search-input { min-width: 0; font-size: 13px; }
    .results-sidebar .search-body { padding: 16px; }
    .results-sidebar .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .results-sidebar .field { grid-column: 1/-1; }
    .results-sidebar .field-half { grid-column: auto; }
    .results-sidebar .field input, .results-sidebar .field select { padding-left: 10px; font-size: 13px; }
    .results-sidebar .form-note { font-size: 12px; }
    .results-sidebar .search-actions { grid-template-columns: 1fr; gap: 12px; }
    .results-sidebar .search-btn { width: 100%; min-width: 0; }
    .results-sidebar .search-actions .advanced-link { justify-content: center; font-size: 13px; }
    .results-layout .listing-row { grid-template-columns: 220px minmax(0,1fr) 170px; gap: 16px; padding: 16px; }
    .results-layout .row-title h2 { font-size: 21px; }
    .results-layout .row-pricing { padding-left: 16px; }
    .results-layout .row-price .price { font-size: 23px; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
    .results-layout .listing-row { grid-template-columns: 200px minmax(0,1fr); }
    .results-layout .row-pricing { grid-column: 1/-1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
    .results-layout .row-actions { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 16px; }
    .results-layout .row-actions .contact-action { grid-column: auto; }
}
@media (max-width: 1100px) {
    .results-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
    .results-sidebar { position: static; max-height: none; overflow: visible; }
    .results-filters .form-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .listing-row { grid-template-columns: 230px minmax(0,1fr); gap: 18px; }
    .row-pricing { grid-column: 1/-1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
    .row-actions { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 16px; }
    .row-actions .contact-action { grid-column: auto; }
}
@media (max-width: 650px) {
    .results-page { padding: 20px 5% 32px; }
    .results-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .results-filters .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .results-filters > summary span { display: none; }
    .results-filters .search-body { padding: 16px; }
    .results-filters .search-actions { grid-template-columns: 1fr; gap: 12px; }
    .listing-row { grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 12px; }
    .row-content { display: contents; }
    .row-title { grid-column: 2; grid-row: 1; }
    .row-title .favorite { width: 24px; height: 24px; flex-basis: 24px; }
    .row-title h2 { font-size: 18px; }
    .row-summary, .row-specs, .row-view-link { grid-column: 1/-1; margin: 0; }
    .row-meta { font-size: 12px; }
    .row-specs { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 12px 0; }
    .row-specs dd { font-size: 12px; }
    .row-image .detail-tag { padding: 3px 5px; font-size: 9px; }
    .row-photo-count { padding: 3px 5px; font-size: 9px; }
    .row-pricing { display: block; }
    .row-price .price { font-size: 23px; }
    .row-actions { margin-top: 14px; }
    .row-actions .detail-action { font-size: 12px; padding: 10px 4px; }
}
@media (max-width: 1180px) {
    .nav-links.is-open { display: flex; position: absolute; top: 72px; left: 0; right: 0; padding: 16px 5%; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 82px); overflow-y: auto; }
    .sell-shortcuts { position: static; width: 100%; margin: 2px 0 8px; box-shadow: none; background: var(--light); }
}
@media (min-width: 851px) and (max-width: 1180px) { .nav-links.is-open { top: 82px; } }
@media (max-width: 850px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .app-cta { margin-top: 40px; }
    .phone-placeholder { height: auto; min-height: 0; width: 100%; display: block; }
    .phone-placeholder img { width: min(100%, 360px); height: auto; margin: 0 auto; }
}
@media (max-width: 560px) {
    header { gap: 10px; }
    header .logo img { height: 28px; }
    .header-login { gap: 8px; }
    .header-login img { width: 24px; height: 24px; }
    .header-profile { gap: 6px; font-size: 13px; }
    .header-profile img { width: 28px; height: 28px; }
    .profile-shortcuts { right: -4px; width: min(252px, calc(100vw - 24px)); }
    .login-btn { padding: 10px 12px; font-size: 13px; }
    .body-type-grid, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .car-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-page { padding: 20px 5% 28px; }
    .detail-title-row { flex-wrap: wrap; }
    .detail-overview, .detail-contact, .detail-seller { padding: 18px; }
    .detail-section > h2 { padding: 18px; }
    .detail-specs > div { padding: 10px 18px; gap: 12px; font-size: 13px; }
    .detail-features { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0 18px 10px; }
    .listing-description { padding: 0 18px 10px; }
    .detail-similar .listing-arrow-left { left: -12px; }
    .detail-similar .listing-arrow-right { right: -12px; }
}

/* The support form is also available in the shared Contact Us dialog. */
.about-form-intro { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.about-form { display: grid; gap: 19px; margin-top: 24px; }
.about-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-field { display: grid; gap: 9px; min-width: 0; }
.about-field label { font-size: 13px; font-weight: 700; }
.about-field input, .about-field select, .about-field textarea { width: 100%; min-width: 0; padding: 12px; font: inherit; font-size: 14px; border: 1px solid #ccd3e0; border-radius: 6px; background: white; color: var(--dark); }
.about-field input, .about-field select { height: 46px; padding: 0 12px; }
.about-field select { border-right: 14px solid transparent; outline: 1px solid #ccd3e0; outline-offset: -1px; }
.about-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.about-field > span, .about-privacy-note { font-size: 12px; line-height: 1.7; color: var(--muted); }
.about-form button { justify-self: start; cursor: pointer; }
.about-form-feedback { font-size: 14px; line-height: 1.7; border: 1px solid; border-radius: 7px; padding: 14px; margin-top: 20px; }
.about-form-error { color: #852a2a; background: #fff2f1; border-color: #efc7c4; }
.about-form-success { color: #165b35; background: #edf9f1; border-color: #bfe6ce; }
.about-honeypot { display: none; }

.site-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--brand-blue); border-radius: 6px; background: var(--brand-blue); color: white; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; text-align: center; }
.site-button.secondary { color: var(--brand-blue); background: white; border-color: #ccd3e0; }
.site-button:hover { filter: brightness(.95); }
.site-button:disabled { opacity: .6; cursor: wait; }
.site-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 30px; border: 1px solid var(--border); border-radius: 14px; color: var(--dark); background: white; overflow: auto; }
.site-dialog:not([open]) { display: none; }
.site-dialog::backdrop { background: rgba(7, 17, 38, .6); }
.site-dialog-open { overflow: hidden; }
.site-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-dialog-heading h2 { font-size: 25px; line-height: 1.3; }
.site-dialog-heading h2:focus { outline: none; }
.site-dialog-intro { color: var(--muted); line-height: 1.7; font-size: 14px; margin-top: 16px; }
.site-contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; margin-top: 28px; }
.site-contact-grid h3 { font-size: 18px; line-height: 1.4; }
.site-contact-direct { padding: 20px; background: var(--light); border-radius: 8px; align-self: start; }
.site-contact-direct > p { margin-top: 12px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; color: var(--muted); }
.site-contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.site-contact-options .site-button { padding: 10px 8px; }
.site-contact-direct > .site-contact-note { font-size: 12px; margin: 15px 0 25px; }
.site-contact-social { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.site-contact-social a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.site-contact-social img { padding: 5px; background: var(--brand-blue); border-radius: 5px; object-fit: contain; }
.site-contact-form .about-form { margin-top: 18px; }
.site-contact-form .about-form-row { grid-template-columns: minmax(0, 1fr); }
.site-contact-form .about-field textarea { min-height: 120px; }
.site-dialog [hidden] { display: none; }
.about-privacy-note a { color: var(--brand-blue); text-decoration: underline; }
.site-dialog :is(input, select, textarea, button, a):focus-visible, .site-button:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.sign-in-dialog { width: min(490px, calc(100% - 32px)); }
.site-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.seller-contact-person { display: grid; justify-items: center; gap: 8px; margin: 20px 0; text-align: center; overflow-wrap: anywhere; }
.seller-contact-person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.seller-contact-person h3 { font-size: 20px; }
.seller-contact-person p { color: var(--muted); font-size: 14px; }
.seller-contact-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.seller-contact-options .site-button { flex: 1 1 100px; justify-content: center; }
.listing-contact-dialog { max-width: 520px; }
.contact-access-summary { display: grid; gap: 14px; margin: 0 0 28px; }
.contact-access-summary > div { display: flex; justify-content: space-between; gap: 20px; }
.contact-access-summary dt { color: var(--muted); }
.contact-access-summary dd { margin: 0; font-weight: 600; text-align: right; }
.contact-access-price { color: var(--brand-blue); font-size: 24px; }
.contact-membership-link { display: inline; color: var(--brand-blue); font-weight: 700; text-decoration: underline; }
.contact-payment-wait { max-width: 720px; margin: 0 auto; }
.contact-payment-wait p { margin: 14px 0; line-height: 1.7; }
.contact-payment-reference { overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 700px) {
  .site-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-contact-form { order: -1; }
  .site-contact-social { flex-direction: row; flex-wrap: wrap; }
  .site-dialog { padding: 22px; }
  .site-dialog-heading h2 { font-size: 22px; }
}
@media (max-width: 500px) {
  .about-form-row { grid-template-columns: minmax(0, 1fr); }
  .about-field input, .about-field select, .about-field textarea { font-size: 16px; }
  .site-dialog-actions { flex-direction: column; }
}
