/* Responsive system: four shared viewport boundaries: 650, 900, 1100, 1320 px.
 * Component rules stay in their own section, in cascade order. Container queries
 * respond to available content width; hover, motion and height are independent.
 * Keep navigation/hero/detail boundaries in app.js and motion.js in sync.
 * See docs/ui/RESPONSIVE.md for the role of each boundary. */

/* Foundation */
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #11151a;
  --muted: #596674;
  --paper: #f5f5f3;
  --surface: #ffffff;
  --soft: #edf0f2;
  --dark: #101317;
  --soft-dark: #292f36;
  --inverse: #f8fafc;
  --inverse-muted: #c4ccd5;
  --inverse-line: #ffffff40;
  --line: #d8dde1;
  --line-soft: #e7eaed;
  --control: #7b8793;
  --image-bg: #e5e9ed;
  --image-overlay: #11151ae6;
  --red: #d80e1c;
  --red-hover: #b80d19;
  --red-inverse: #ff8590;
  --focus: #d80e1c;
  --radius: 6px;
  --body-size: 1rem;
  --meta-size: 0.875rem;
  --gap: 1.5rem;
  font-family: Outfit, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  border: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.5rem, 4.55vw, 4.125rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}
h3 {
  font-size: 1.375rem;
}
p + p {
  margin-top: 16px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
::selection {
  background: var(--red);
  color: var(--inverse);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1280px;
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 12px 20px;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: var(--button-padding, 14px 24px);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    transform 0.18s;
  overflow-wrap: anywhere;
}
.button:hover {
  transform: translateY(-1px);
}
.button-white {
  background: var(--surface);
  color: var(--ink);
}
.button-white:hover {
  background: var(--soft);
}
.button-glass {
  background: #11151a20;
  color: var(--inverse);
  border-color: var(--inverse-line);
}
.button-glass:hover {
  background: #ffffff15;
}
.button-red {
  background: var(--red);
  color: var(--inverse);
}
.button-red:hover {
  background: var(--red-hover);
}
.button-dark {
  background: var(--dark);
  color: var(--inverse);
}
.button-dark:hover {
  background: var(--soft-dark);
}
.button-outline {
  background: transparent;
  border-color: var(--control);
  color: var(--ink);
}
.button-outline:hover {
  background: var(--soft);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-block: 50px 28px;
}
.section-heading h2 {
  font-size: 2.125rem;
}
.photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  inset: 0;
  background: var(--image-bg);
  color: var(--muted);
  font-size: 0.875rem;
}
.photo-fallback .icon {
  width: 36px;
  height: 36px;
}
.inline-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
}
.inline-link:hover {
  color: var(--red);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding-block: 25px 32px;
  min-height: 52px;
}
.back-link:hover {
  color: var(--red);
}
body:has(dialog[open]) {
  overflow: hidden;
}
html.dialog-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
.dialog-scroll-locked body {
  position: fixed;
  top: var(--dialog-scroll-top);
  left: 0;
  width: calc(100% - var(--dialog-scrollbar, 0px));
  overflow: hidden;
}
dialog {
  overscroll-behavior: contain;
}
dialog {
  position: fixed;
  max-width: calc(100% - 32px);
  width: 520px;
  max-height: calc(100dvh - 48px);
  border: 0;
  border-radius: 8px;
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #090c11bf;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 1.875rem;
  margin-right: 20px;
}
dialog .notice {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 24px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
}
#contact-content {
  margin-top: 22px;
}
#contact-content p {
  font-size: 0.875rem;
  color: var(--muted);
}
.error-panel {
  padding: 48px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.error-panel p {
  margin-top: 14px;
}
.error-panel .button {
  margin-top: 22px;
}
.reveal-in {
  animation: reveal 0.45s ease-out both;
}
@keyframes reveal {
  from {
    opacity: 0.85;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.photo-content {
  width: 100%;
  height: 100%;
  position: relative;
}
body {
  font-size: var(--body-size);
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
input,
textarea {
  caret-color: var(--red);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
* {
  scrollbar-color: var(--control) var(--paper);
  scrollbar-width: thin;
}
.button {
  font-size: 1rem;
  min-height: 3rem;
  height: auto;
}
.section-heading {
  margin-top: 42px;
}
.photo-content {
  background: var(--image-bg);
}
input,
select,
textarea {
  accent-color: var(--red);
}
:root {
  --header-height: 86px;
  --header-clearance: 126px;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html {
  scroll-padding-top: var(--header-clearance);
}
.field {
  position: relative;
  min-width: 0;
}
.field label {
  display: block;
  font-size: var(--meta-size);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  height: auto;
  padding: 12px;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.07);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.example-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.field:has(select:not([hidden])):after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 20px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
}
.field select option {
  background: #171c22;
  color: var(--inverse);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  background: transparent;
  color: inherit;
  font-size: var(--meta-size);
  line-height: 1.5;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 10px;
  border: 1px solid var(--control);
  border-radius: 4px;
}
.text-button .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.text-button:hover:not(:disabled) {
  color: var(--red-inverse);
  background: rgb(255 255 255 / 0.06);
}
.text-button:disabled {
  opacity: 0.5;
  cursor: default;
}
html.is-revealing-stock {
  overflow-anchor: none;
}
[data-motion-ghost] {
  user-select: none;
}
#main:focus {
  outline: 0;
}
.destination-main {
  min-height: 65vh;
  padding-bottom: 100px;
}
.destination-main .back-link {
  padding-top: 48px;
}
.destination-copy {
  max-width: 740px;
  padding-block: 30px;
}
.destination-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.destination-copy > p {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 24px;
  max-width: 60ch;
}
.destination-copy .destination-note {
  font-size: var(--meta-size);
}
.destination-copy > .button {
  margin-top: 32px;
}
.contact-card-actions {
  margin-top: auto;
}
.contact-card-actions .button {
  width: 100%;
  gap: 16px;
}
.contact-card-reset {
  display: block;
  min-height: 44px;
  padding: 8px 0;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #d3dce2;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
:root {
  --page-bg: #f5f5f3;
  --page-text: #11151a;
  --page-muted: #596674;
  --page-line: #d8dde1;
  --page-elevated: #fff;
  --page-hover: #edf0f2;
  --page-control: #7b8793;
  --page-focus: #d80e1c;
}
body {
  background: var(--page-bg);
  color: var(--page-text);
}
.skip {
  color: var(--ink);
}
.error-panel {
  color: var(--page-text);
  border-color: var(--page-control);
}
.error-panel p {
  color: var(--page-muted);
}
.destination-main {
  --ink: var(--page-text);
  --muted: var(--page-muted);
  --line: var(--page-line);
  --line-soft: var(--page-line);
  --surface: var(--page-elevated);
  --soft: var(--page-hover);
  --focus: var(--page-focus);
  background: var(--page-bg);
  color: var(--page-text);
}
.button-whatsapp {
  background: #167344;
  color: #fff;
  gap: 12px;
  font-size: 1rem;
  min-height: 48px;
  padding: 13px 20px;
}
.button-whatsapp:hover {
  background: #105c35;
  color: #fff;
}
html {
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  overflow-x: clip;
}
:root {
  --page-gutter: clamp(20px, calc(6.6667vw - 40px), 56px);
}
.wrap {
  width: calc(100% - 2 * var(--page-gutter));
}
@media (width <= 1320px) {
  :root {
    --header-height: 78px;
    --header-clearance: 114px;
  }
}
@media (width <= 1100px) {
  .section-heading {
    align-items: start;
  }
}
@media (width <= 900px) {
  .button {
    --button-padding: 14px 18px;
    gap: 12px;
  }
  .section-heading {
    margin-block: 36px 22px;
    display: block;
  }
  .section-heading h2 {
    font-size: 1.875rem;
    line-height: 1.12;
  }
  .inline-link {
    font-size: 0.875rem;
    margin-top: 22px;
  }
  dialog {
    padding: 30px 24px;
  }
  dialog h2 {
    font-size: 1.688rem;
  }
  .back-link {
    font-size: var(--meta-size);
    padding-block: 16px 20px;
  }
}
@media (width <= 650px) {
  :root {
    --header-height: 70px;
    --header-clearance: 102px;
  }
  :root {
    --page-gutter: clamp(16px, calc(10vw - 19px), 20px);
  }
}
@media (hover: none) {
  .button:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Header */
.site-header {
  --hero-logo-y: 110;
  --hero-logo-scale: 1.88;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(10 14 18 / var(--header-opacity, 0.86));
  color: var(--inverse);
  backdrop-filter: blur(var(--header-blur, 18px));
  -webkit-backdrop-filter: blur(var(--header-blur, 18px));
  border-bottom: 1px solid rgb(255 255 255 / var(--header-border-opacity, 0.25));
}
.header-row {
  width: calc(100% - clamp(24px, 6vw, 112px));
  height: var(--header-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.brand {
  position: absolute;
  left: 50%;
  top: calc(50% + 18px);
  transform: translate(-50%, -50%);
  transform-origin: 50% 0;
  width: 230px;
  z-index: 2;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.2));
  transition: none;
}
.brand img {
  width: 100%;
  height: auto;
}
body[data-page="home"] .brand {
  transform: translate(-50%, calc(-50% + var(--brand-offset, 110px)))
    scale(var(--brand-scale, 1.88));
}
.site-header:has(.open) .brand {
  transform: translate(-50%, -50%) scale(1);
}
.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 210px;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.nav-right {
  justify-content: flex-end;
  margin-left: auto;
}
.site-header nav a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--inverse);
}
.site-header nav a:hover {
  color: var(--red-inverse);
}
.site-header nav .nav-contact {
  padding: 10px 18px;
  border: 1px solid var(--inverse-line);
  border-radius: var(--radius);
}
.site-header nav .nav-contact:hover {
  color: var(--inverse);
  background: rgb(255 255 255 / 0.1);
  border-color: var(--inverse-muted);
}
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red-inverse);
  text-underline-offset: 8px;
}
.menu-toggle,
.header-contact {
  display: none;
}
.site-header :focus-visible {
  outline-color: var(--red-inverse);
}
body[data-page="home"] .site-header {
  --header-opacity: 0;
  --header-blur: 0px;
  --header-border-opacity: 0;
}
body[data-page="home"] .site-header:has(.open) {
  background: rgb(10 14 18 / 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--inverse-line);
}
@media (width <= 1320px) {
  .brand {
    width: min(208px, calc(100% - 120px));
    top: calc(50% + 16px);
  }
  .header-row {
    justify-content: space-between;
  }
  .header-contact,
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    color: var(--inverse);
    background: transparent;
    font-size: 1rem;
    border-radius: 4px;
  }
  .header-contact {
    width: 48px;
    flex-shrink: 0;
    border: 0;
  }
  .header-contact > .icon {
    width: 24px;
    height: 24px;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .site-header nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: calc(-1 * var(--nav-inset, 16px));
    right: calc(-1 * var(--nav-inset, 16px));
    top: 100%;
    width: auto;
    margin-right: 0;
    background: rgb(10 14 18 / 0.98);
    padding: 40px 32px 28px;
    box-shadow: 0 20px 30px rgb(0 0 0 / 0.2);
    gap: 4px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path 0.22s var(--motion-ease),
      transform 0.22s var(--motion-ease),
      opacity 0.16s,
      visibility 0s 0.22s;
  }
  .site-header nav.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 -40px 0);
    transition:
      clip-path 0.32s var(--motion-ease),
      transform 0.28s var(--motion-ease),
      opacity 0.22s,
      visibility 0s;
  }
  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
  }
  .site-header nav a {
    padding: 10px 12px;
    min-height: 48px;
    white-space: normal;
  }
  .site-header nav .nav-contact {
    justify-content: space-between;
    margin-top: 8px;
  }
}
@media (width <= 650px) {
  .site-header {
    --hero-logo-y: 36;
    --hero-logo-scale: 1.8;
    --hero-logo-width: 288px;
  }
  .brand {
    width: min(200px, calc(100% - 120px));
    top: calc(50% + 16px);
  }
  .site-header:has(.open) .brand {
    top: calc(50% + 16px);
  }
  .menu-label {
    display: none;
  }
  .site-header nav {
    padding-inline: 20px;
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body[data-page="home"] .brand {
      animation: brand-dock 1s linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--brand-distance, 260px);
      will-change: transform;
    }
    body[data-page="home"] .site-header {
      animation: header-dock 1s linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--brand-distance, 260px);
    }
    body[data-page="home"] .site-header:has(.open),
    body[data-page="home"] .site-header:has(.open) .brand {
      animation: none;
    }
  }
}
@keyframes brand-dock {
  from {
    transform: translate(-50%, calc(-50% + var(--brand-start-offset, 110px)))
      scale(var(--brand-start-scale, 1.88));
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes header-dock {
  from {
    background-color: rgb(10 14 18 / 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom-color: rgb(255 255 255 / 0);
  }
  to {
    background-color: rgb(10 14 18 / 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgb(255 255 255 / 0.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .brand {
    transform: translate(-50%, -50%);
  }
  .brand,
  .site-header nav {
    transition: none;
  }
}

/* Basic navigation remains usable when scripts are disabled. */
.no-js-navigation {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 100px 20px 16px;
  color: white;
  background: #10171c;
}
.no-js-navigation a {
  padding-block: 8px;
}
@media (scripting: none) {
  .menu-toggle,
  .advanced-trigger,
  .sort-label {
    display: none;
  }
  body[data-page="home"] .brand {
    transform: translate(-50%, -50%);
  }
  .gallery-thumbs .gallery-thumb {
    outline-offset: -3px;
  }
}

/* Hero and search */
.hero {
  position: relative;
  isolation: isolate;
  clip-path: inset(0 0 calc(-1 * var(--hero-fade-tail)));
  overflow: visible;
  background: var(--dark);
  color: var(--inverse);
  margin-top: calc(-1 * var(--header-height));
}
.hero-media {
  pointer-events: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-media {
  position: fixed;
  inset: 0;
  z-index: -3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-shade {
  bottom: calc(-1 * var(--hero-fade-tail));
  z-index: -2;
  background: rgb(6 12 18 / 0.5);
}
.hero:after {
  content: "";
  position: absolute;
  inset: calc(100% - var(--hero-fade-lead)) 0 calc(-1 * var(--hero-fade-tail));
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0) 0%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.0073) 5%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.028) 10%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.0607) 15%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.104) 20%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.1562) 25%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.216) 30%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.2817) 35%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.352) 40%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.4253) 45%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.5) 50%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.5748) 55%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.648) 60%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.7183) 65%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.784) 70%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.8438) 75%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.896) 80%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.9392) 85%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.972) 90%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 0.9928) 95%,
    rgb(var(--hero-fade-rgb, 245 245 243) / 1) 100%
  );
}
.hero-inner {
  min-height: max(1020px, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 88px;
  padding-block: 340px 100px;
}
.hero-copy {
  width: 100%;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  white-space: normal;
  text-shadow: 0 3px 20px rgb(0 0 0 / 0.35);
}
.hero-search {
  width: 100%;
  max-width: 820px;
}
.search-panel {
  --search-control-height: max(56px, 3.5rem);
  --search-gap: 10px;
  --clear-track-width: calc(56px + var(--search-gap));
  container-type: inline-size;
  container-name: vehicle-search;
  --ink: #f8fafc;
  --muted: #e4e8ed;
  --surface: #171c22;
  --line: #ffffff30;
  --control: #b9c3cd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  column-gap: var(--search-gap);
  transition: grid-template-columns 0.28s var(--motion-ease);
  padding: 30px 32px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 12px;
  background: rgb(6 10 15 / 0.66);
  color: var(--ink);
  color-scheme: dark;
  box-shadow: 0 22px 65px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.query-field > label {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.search-panel.has-advanced-criteria {
  grid-template-columns: minmax(0, 1fr) calc(12rem + var(--clear-track-width));
}
.query-field {
  grid-column: 1;
  grid-row: 1;
}
.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--search-gap);
  align-items: stretch;
}
.search-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: grid;
  grid-template-columns: 0px minmax(0, 1fr);
  align-items: center;
  transition: grid-template-columns 0.28s var(--motion-ease);
}
.has-advanced-criteria .search-actions {
  grid-template-columns: var(--clear-track-width) minmax(0, 1fr);
}
.search-actions > .search-submit {
  grid-column: 2;
  grid-row: 1;
}
.input-icon {
  position: relative;
  min-width: 0;
}
.input-icon > span[data-icon] {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-panel input::placeholder {
  color: #c4cdd6;
  opacity: 1;
}
.input-icon input {
  padding: 15px 14px 15px 46px;
  height: var(--search-control-height);
  min-height: 0;
  caret-color: var(--red-inverse);
  background: rgb(3 7 10 / 0.3);
}
.search-example {
  position: absolute;
  inset: 0 12px 0 46px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  color: #c4cdd6;
}
.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  height: var(--search-control-height);
  min-height: 0;
  border-radius: 4px;
  background: var(--red);
  color: var(--inverse);
  padding: 10px 16px;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 600;
}
.search-submit > .icon,
.search-submit > span[data-icon] {
  flex-shrink: 0;
}
.clear-slot {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  height: calc(var(--search-control-height) + 16px);
  margin-block: -8px;
  margin-inline: -8px;
  padding-inline: 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s,
    visibility 0s 0.28s;
}
.clear-slot-inner {
  width: var(--clear-track-width);
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.clear-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: var(--search-control-height);
  flex-shrink: 0;
  padding: 12px;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.05);
  color: var(--ink);
}
.clear-search:hover {
  color: var(--red-inverse);
  border-color: var(--red-inverse);
  background: rgb(255 255 255 / 0.1);
}
.has-advanced-criteria .clear-slot {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.22s 0.06s,
    visibility 0s;
}
.search-submit:hover {
  background: var(--red-hover);
}
.advanced-trigger,
.advanced-trigger-inner {
  display: flex;
  min-width: 0;
}
.advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 0;
  height: var(--search-control-height);
  padding: 12px 14px;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.05);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
}
.advanced-toggle:hover {
  background: rgb(255 255 255 / 0.12);
}
.advanced-toggle.is-active {
  background: rgb(223 45 39 / 0.22);
  border-color: var(--red-inverse);
  color: var(--inverse);
}
.advanced-search {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.4s var(--motion-ease),
    opacity 0.2s,
    visibility 0s 0.4s;
}
.advanced-open .advanced-search {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition:
    grid-template-rows 0.4s var(--motion-ease),
    opacity 0.3s,
    visibility 0s;
}
.advanced-clip {
  min-height: 0;
  overflow: hidden;
  margin-inline: -8px;
  padding-inline: 8px;
}
.advanced-search.is-settled .advanced-clip {
  overflow: visible;
}
.advanced-content {
  padding-top: 24px;
  padding-bottom: 8px;
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 24px;
}
.range-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  --range-start: 0%;
  --range-end: 100%;
}
.range-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  font-size: var(--meta-size);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.range-name {
  font-weight: 600;
  white-space: nowrap;
}
.range-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
}
.range-values output {
  min-width: 0;
  overflow-wrap: normal;
}
.range-values output:last-child {
  text-align: right;
}
.range-labels-stacked .range-heading {
  flex-direction: column;
  gap: 4px;
}
.range-labels-stacked .range-values {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.range-fixed .range-track,
.range-fixed .range-values > span {
  display: none;
}
.range-fixed .range-values {
  display: block;
}
.range-track {
  position: relative;
  height: 44px;
  margin-inline: 30px;
}
.range-track:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 4px;
  border-radius: 4px;
  background: #ffffff50;
}
.range-fill {
  position: absolute;
  left: 0;
  top: 20px;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--red-inverse);
  transform-origin: left center;
  pointer-events: none;
}
.range-track input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 0;
  left: -22px;
  right: -22px;
  margin: 0;
  padding: 0;
  width: calc(100% + 44px);
  height: 44px;
  pointer-events: none;
  background: transparent;
  border: 0;
  color: var(--inverse);
}
.range-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle, var(--red) 0 8px, var(--inverse) 8px 11px, transparent 11px);
  pointer-events: auto;
  cursor: grab;
}
.range-track input[type="range"]::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle, var(--red) 0 8px, var(--inverse) 8px 11px, transparent 11px);
  pointer-events: auto;
  cursor: grab;
}
.range-track input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
}
.range-track input[type="range"]:focus-visible {
  z-index: 2;
  outline: 0;
}
.range-track input[type="range"]:focus-visible::-webkit-slider-thumb,
.range-track input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid var(--red-inverse);
  outline-offset: 4px;
}
.submit-copy {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  text-align: center;
}
.submit-label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.28em;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.submit-verb {
  display: inline-block;
}
.submit-result {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.submit-number-slot {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: bottom;
}
.submit-number,
.submit-number-old {
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.submit-number-old {
  opacity: 0;
}
.submit-noun {
  white-space: nowrap;
}
.is-empty .submit-noun {
  white-space: normal;
}
.submit-hint {
  position: absolute;
  inset: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.18s,
    transform 0.24s var(--motion-ease);
  pointer-events: none;
}
.is-empty .submit-label {
  align-self: end;
}
.is-empty .submit-hint {
  opacity: 1;
  transform: translateY(0);
}
.search-feedback {
  grid-column: 1 / -1;
  grid-row: 4;
  font-size: var(--meta-size);
  color: var(--muted);
  margin-top: 18px;
}
.search-panel :focus-visible {
  outline-color: var(--red-inverse);
}
.hero-search-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.hero-secondary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid var(--inverse-line);
  border-radius: 6px;
  color: var(--inverse);
  background: rgb(6 10 15 / 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.18s;
}
.hero-secondary-link:hover {
  background: rgb(6 10 15 / 0.74);
}
.hero-search-links :focus-visible {
  outline-color: var(--red-inverse);
}
body[data-page="home"] main {
  --hero-fade-lead: 440px;
  --hero-fade-tail: 260px;
  isolation: isolate;
}
body[data-page="home"] main > section:not(.hero) {
  position: relative;
  z-index: 2;
}
body[data-page="home"] .inventory {
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(
    180deg,
    transparent var(--hero-fade-tail),
    var(--paper) var(--hero-fade-tail)
  );
}
.facet-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--control);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.07);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.facet-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.facet-chevron {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  flex-shrink: 0;
  margin-right: 0;
  transition: transform 0.2s;
}
.facet-trigger[aria-expanded="true"] {
  border-color: var(--red-inverse);
  border-bottom-color: transparent;
  border-radius: 4px 4px 0 0;
  background: #171c22;
}
.facet-trigger[aria-expanded="true"].opens-up {
  border-bottom-color: var(--red-inverse);
  border-top-color: transparent;
  border-radius: 0 0 4px 4px;
}
.facet-trigger[aria-expanded="true"] .facet-chevron {
  transform: rotate(180deg);
}
.facet-list {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  overflow: auto;
  overscroll-behavior: contain;
  max-width: calc(100vw - 24px);
  border: 1px solid #ff8590;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #171c22;
  color: #f8fafc;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.35);
  font:
    1rem / 1.45 Outfit,
    sans-serif;
  color-scheme: dark;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: #8e9ba7 #171c22;
}
.facet-list.opens-up {
  border-top: 1px solid #ff8590;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.facet-list::backdrop {
  background: transparent;
}
.facet-empty {
  padding: 12px;
  font-size: 0.875rem;
  color: #c4ced7;
}
.facet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.facet-option > span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.facet-count {
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #c4ced7;
}
.facet-option[aria-selected="true"] {
  background: #333d47;
}
.facet-option.is-highlighted {
  background: #4b292c;
  outline: 1px solid #ff7972;
  outline-offset: -1px;
}
.facet-option[aria-disabled="true"] {
  color: #98a4af;
  cursor: not-allowed;
}
.facet-option[aria-disabled="true"] .facet-count {
  color: #98a4af;
}
.sort-label:has(.facet-trigger):after {
  display: none;
}
.sort-label .facet-trigger {
  width: 200px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: var(--meta-size);
  background: var(--page-elevated);
  color: var(--page-text);
  border-color: var(--page-control);
}
.sort-label .facet-trigger[aria-expanded="true"] {
  background: #171c22;
  color: var(--inverse);
  border-color: var(--red-inverse);
  border-bottom-color: transparent;
}
.sort-label .facet-trigger[aria-expanded="true"].opens-up {
  border-top-color: transparent;
  border-bottom-color: var(--red-inverse);
}
.submit-copy {
  flex: 0 1 auto;
}
.submit-label {
  column-gap: 0.25em;
}
.submit-result {
  gap: 0.25em;
  flex-shrink: 0;
}
.submit-number-slot {
  display: inline-grid;
  grid-template-areas: "number";
  width: auto;
  min-width: 1ch;
  flex: 0 0 auto;
}
.submit-number,
.submit-number-old {
  position: relative;
  inset: auto;
  grid-area: number;
  justify-self: center;
  min-width: max-content;
}
@media (width <= 650px) {
  body[data-page="home"] main {
    --hero-fade-lead: 200px;
    --hero-fade-tail: 180px;
  }
  .hero-inner {
    min-height: min(100svh, 660px);
    padding: 190px 0 36px;
    gap: 24px;
  }
  .hero-media {
    position: absolute;
    inset: 0 0 auto;
    height: max(100lvh, calc(100% + var(--hero-fade-tail)));
  }
  .hero-media img {
    /* The large viewport stays stable while the browser's controls collapse. */
    height: 100lvh;
    min-height: 100%;
  }
  .hero h1 {
    font-size: clamp(1.0625rem, 4.8vw, 1.25rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .hero-media img {
    object-position: 55% top;
  }
  .hero-shade {
    background: rgb(6 12 18 / 0.53);
  }
  .search-panel {
    padding: 24px var(--page-gutter);
    border-radius: 10px;
  }
  .query-field > label {
    font-size: 1.375rem;
  }
  .search-panel,
  .search-panel.has-advanced-criteria {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-actions {
    grid-column: 1;
    grid-row: 3;
    margin-top: 12px;
  }
  .input-icon > span[data-icon] {
    left: 12px;
  }
  .input-icon input {
    padding: 14px 10px 14px 40px;
    min-height: 0;
  }
  .search-example {
    left: 40px;
    font-size: 1rem;
  }
  .search-submit {
    padding-inline: 12px;
    font-size: 0.9375rem;
  }
  .hero-search-links {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  .hero-search-links > a:first-child {
    grid-column: 1 / -1;
  }
  .hero-secondary-link {
    font-size: var(--meta-size);
    padding: 15px 14px;
    gap: 10px;
  }
  .hero-secondary-link .icon {
    width: 18px;
    height: 18px;
  }
  .advanced-toggle {
    font-size: var(--meta-size);
    gap: 8px;
    padding-inline: 12px;
    min-width: 92px;
  }
  .advanced-grid {
    gap: 22px 12px;
  }
  .inventory .section-heading {
    margin-top: 32px;
  }
}
@supports (animation-timeline: scroll()) {
  @media (width <= 650px) and (prefers-reduced-motion: no-preference) {
    .hero-media {
      /* Document content can paint under Safari's controls; fixed layers cannot reliably do so. */
      animation: hero-background-drift 1s linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100lvh;
      will-change: transform;
    }
  }
}
@keyframes hero-background-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100lvh);
  }
}
@container vehicle-search (max-width: 42rem) {
  .advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facet-make,
  .range-filter {
    grid-column: 1 / -1;
  }
}
@container vehicle-search (max-width: 17rem) {
  .refine-label {
    display: none;
  }
  .advanced-toggle {
    padding-inline: 10px;
    min-width: 44px;
  }
  .facet-fuel,
  .facet-transmission {
    grid-column: 1 / -1;
  }
}
@container vehicle-search (min-width: 42rem) {
  .advanced-toggle {
    min-width: 120px;
    padding-inline: 22px;
  }
}
@container vehicle-search (max-width: 28rem) {
  .search-submit {
    font-size: 0.875rem;
  }
}
@container vehicle-search (max-width: 35rem) {
  .query-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .search-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
  }
  .search-panel,
  .search-panel.has-advanced-criteria {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .advanced-trigger,
  .advanced-search,
  .search-panel,
  .search-actions {
    transition: none;
  }
  .hero-inner {
    padding-top: 230px;
  }
  .hero h1 {
    white-space: normal;
  }
  .hero-media {
    position: absolute;
    bottom: calc(-1 * var(--hero-fade-tail));
  }
  .facet-chevron {
    transition: none;
  }
  .clear-slot,
  .submit-hint {
    transition: none;
  }
}
@media (width <= 650px) and (prefers-reduced-motion: reduce) {
  .hero-inner {
    padding-top: 140px;
    min-height: 0;
  }
}

/* Inventory and vehicle cards */
.inventory {
  background: var(--paper);
  padding: 0 0 74px;
  display: flow-root;
}
.sort-label select {
  min-width: 0;
  border: 1px solid var(--control);
  border-radius: 4px;
  padding: 10px 12px;
}
.inventory-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.inventory-tools p {
  font-size: 0.875rem;
}
.sort-label select {
  background: transparent;
  border-color: var(--control);
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chips button {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
}
.filter-chips .icon {
  width: 14px;
  height: 14px;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.car-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.car-card:hover {
  box-shadow: 0 8px 28px #11151a0c;
  transform: translateY(-3px);
}
.card-link {
  text-decoration: none;
  height: 100%;
}
.card-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--image-bg);
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.car-card:hover .card-photo img {
  transform: scale(1.025);
}
.image-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--image-overlay);
  color: var(--inverse);
  padding: 3px 7px;
  border-radius: 3px;
  line-height: 1.7;
}
.image-count .icon {
  width: 13px;
  height: 13px;
}
.card-body h3 {
  font-size: 1.438rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.2em;
}
.card-subtitle {
  color: var(--muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-facts {
  display: flex;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  align-content: start;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-price {
  font-size: 1.562rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-price.missing-price {
  font-size: 1.125rem;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.car-card:hover .card-cta {
  background: var(--red);
  color: var(--inverse);
  border-color: var(--red);
}
.load-status {
  font-size: 0.875rem;
}
.load-status:empty {
  display: none;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed var(--control);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state > .icon,
.empty-state > span {
  margin-bottom: 16px;
}
.empty-state p {
  color: var(--muted);
  margin-top: 12px;
}
.empty-state .button {
  margin-top: 24px;
}
.related-section {
  border-top: 1px solid var(--line);
}
.related-section .section-heading {
  margin-block: 0 28px;
}
.card-price {
  font-variant-numeric: tabular-nums;
}
.sort-label select {
  min-height: 3rem;
  height: auto;
}
.sort-label select {
  line-height: 1.5;
  padding-block: 0.65em;
}
.sort-label select {
  text-overflow: ellipsis;
}
.sort-label select {
  width: 200px;
  max-width: 100%;
  font-size: var(--meta-size);
}
.car-card {
  display: flex;
}
.card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.card-subtitle {
  height: auto;
  min-height: 3.2em;
  line-height: 1.6;
  font-size: var(--meta-size);
}
.card-facts {
  min-height: 0;
  font-size: var(--meta-size);
  padding-block: 14px;
  gap: 6px 12px;
}
.card-facts span:not(:last-child):after {
  margin-left: 12px;
}
.card-bottom {
  margin-top: auto;
  padding-top: 14px;
}
.card-price {
  letter-spacing: -0.03em;
}
.card-link:focus-visible {
  outline-offset: -4px;
}
.image-count {
  font-size: 0.75rem;
}
.load-status:not(:empty) {
  padding: 24px 0;
}
#car-grid:has(.error-panel) {
  display: block;
}
.sort-label:after {
  content: "";
  position: absolute;
  right: 15px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
}
.sort-label select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
}
.sort-label {
  position: relative;
  display: block;
}
.sort-label:after {
  bottom: 21px;
}
.inventory {
  padding-top: 14px;
}
.inventory-window {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.inventory {
  overflow-anchor: none;
  overflow-x: clip;
}
.inventory > .wrap {
  position: relative;
}
.inventory > .wrap.is-updating-results {
  clip-path: inset(-32px -40px 0);
}
.filter-chips {
  position: relative;
}
.filter-chips.is-moving {
  overflow: clip;
}
.inventory-window.is-collapsed,
.inventory-window.is-expanding {
  clip-path: inset(-32px -40px 0);
}
.inventory-reveal {
  position: absolute;
  inset: auto 0 -3px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: calc(var(--preview-peek, 170px) + 3px);
  padding-bottom: 27px;
  transform: translateZ(0);
  backface-visibility: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, rgb(var(--hero-fade-rgb, 245 245 243) / 0), var(--paper) 78%);
}
.inventory-reveal .button {
  min-width: 200px;
  box-shadow: 0 8px 22px rgb(17 21 26 / 0.15);
}
.inventory-window.is-collapsed .car-card[aria-hidden="true"] {
  pointer-events: none;
  user-select: none;
}
.filter-chips button {
  overflow-wrap: anywhere;
  max-width: 100%;
  min-height: 44px;
  text-align: left;
  font-size: var(--meta-size);
}
.filter-chips .icon {
  flex-shrink: 0;
}
.other-inventory .car-grid {
  gap: 28px 24px;
  padding: 3px 2px 5px;
}
:is(.inventory, .related-section) {
  --card-pad: 20px;
}
:is(.inventory, .related-section) .section-heading {
  align-items: center;
  margin-block: 48px 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #d4d8da;
  position: relative;
}
:is(.inventory, .related-section) .section-heading:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--red);
}
:is(.inventory, .related-section) .section-heading h2 {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.inventory-tools p {
  font-variant-numeric: tabular-nums;
}
:is(.inventory, .related-section) .sort-label select {
  background: #fff;
  border-color: #a1aab1;
  border-radius: 5px;
}
:is(.inventory, .related-section) .car-grid {
  row-gap: 28px;
  padding: 3px 2px 5px;
}
:is(.inventory, .related-section) .car-card {
  border-color: #d6dade;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgb(17 23 29 / 0.035);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
:is(.inventory, .related-section) .photo-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 56px var(--card-pad) 16px;
  background: linear-gradient(
    0deg,
    rgb(6 10 14 / 0.8),
    rgb(6 10 14 / 0.6) calc(100% - 56px),
    rgb(6 10 14 / 0) 100%
  );
  color: #fff;
}
:is(.inventory, .related-section) .card-name {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}
:is(.inventory, .related-section) .image-count {
  top: 12px;
  bottom: auto;
}
:is(.inventory, .related-section) .card-body {
  padding: 0 var(--card-pad);
}
:is(.inventory, .related-section) .card-subtitle {
  padding-block: 12px;
  display: block;
  height: auto;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  overflow-wrap: normal;
  line-height: 1.6;
}
:is(.inventory, .related-section) .card-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 0;
  min-height: 0;
  padding-block: 12px;
  border-top: 0;
  border-bottom: 1px solid var(--line-soft);
  color: #43505b;
  line-height: 1.4;
  align-content: start;
}
:is(.inventory, .related-section) .card-facts span {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:is(.inventory, .related-section) .card-facts span:after {
  display: none;
}
:is(.inventory, .related-section) .card-bottom {
  min-height: 0;
  margin-top: auto;
  margin-inline: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
  gap: 12px;
}
:is(.inventory, .related-section) .card-price {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
:is(.inventory, .related-section) .card-price.missing-price {
  font-size: 1.125rem;
}
:is(.inventory, .related-section) .card-price-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}
:is(.inventory, .related-section) .card-photo-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 130ms ease-out,
    transform 0.35s;
}
:is(.inventory, .related-section) .is-previewing .card-photo-alt {
  opacity: 1;
  transition-duration: 180ms, 0.35s;
}
:is(.inventory, .related-section) .card-cta {
  width: 38px;
  height: 38px;
  border-color: #a1aab1;
  color: var(--red);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
:is(.inventory, .related-section) .car-card:hover .card-cta,
:is(.inventory, .related-section) .car-card:focus-within .card-cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateX(2px);
}
:is(.inventory, .related-section) .car-card:focus-within {
  box-shadow: 0 7px 22px rgb(17 23 29 / 0.12);
}
.inventory-contact-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  min-height: 300px;
  padding: 28px;
  border: 1px solid #303b45;
  border-radius: 8px;
  background: #11171d;
  color: #f8fafc;
}
.inventory-contact-card h3 {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.inventory-contact-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d3dce2;
  margin: 0;
  max-width: 48ch;
}
.inventory-contact-card :focus-visible {
  outline-color: #fff;
}
.inventory-followup {
  margin-top: 24px;
}
.inventory-followup .inventory-contact-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}
.inventory-followup .contact-card-actions {
  margin: 0;
  min-width: 190px;
}
.car-card {
  --ink: #11151a;
  --muted: #596674;
  --line: #d8dde1;
  --line-soft: #e7eaed;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
}
.empty-state {
  color: var(--ink);
}
.inventory .section-heading {
  border-color: var(--page-line);
}
.inventory-tools p,
.load-status {
  color: var(--page-muted);
}
.inventory .sort-label select,
.filter-chips button {
  background: var(--page-elevated);
  color: var(--page-text);
  border-color: var(--page-control);
}
.inventory-reveal .button {
  border-color: var(--page-control);
}
.inventory :focus-visible {
  outline-color: var(--page-focus);
}
.inventory .car-card :focus-visible {
  outline-color: var(--focus);
}
.related-section {
  --ink: #11151a;
  --muted: #43505b;
  --line-soft: #e3e6e8;
  padding-top: 40px;
  margin-top: 48px;
}
.related-section .section-heading {
  margin-top: 0;
  color: var(--page-text);
  border-color: var(--page-line);
}
.related-section .section-heading h2 {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
}
.related-section .car-card {
  --focus: #d80e1c;
  background: #fff;
  color: #11151a;
}
.related-section .card-name {
  color: #fff;
}
.related-section .inline-link {
  color: var(--page-text);
}
.related-section > .section-heading > .inline-link {
  min-height: 44px;
  align-items: center;
}
@media (width > 1320px) {
  .other-inventory .car-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .inventory > .wrap {
    max-width: 1440px;
  }
  .inventory .car-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }
}
@media (width <= 1100px) {
  .inventory-tools {
    gap: 8px;
    flex-direction: column;
    align-items: end;
  }
  .car-grid {
    gap: 20px;
  }
  .card-body h3 {
    font-size: 1.375rem;
  }
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 900px) {
  .inventory {
    padding-bottom: 48px;
  }
  .inventory-tools {
    margin-top: 18px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .card-body h3 {
    font-size: 1.312rem;
  }
  .card-price {
    font-size: 1.438rem;
  }
  .card-cta {
    width: 30px;
    height: 30px;
  }
  .image-count {
    right: 8px;
    bottom: 8px;
  }
  .related-section .inline-link {
    margin-top: 16px;
  }
  .inventory-tools {
    flex-wrap: wrap;
  }
  .inventory-tools p {
    font-size: var(--meta-size);
  }
  .sort-label {
    flex: 0 1 200px;
    min-width: 0;
  }
  .sort-label select {
    width: 100%;
    font-size: 1rem;
  }
  .card-subtitle {
    min-height: 0;
  }
  .sort-label {
    flex-basis: 12.5rem;
  }
  :is(.inventory, .related-section) .section-heading {
    align-items: flex-start;
  }
  .related-section .section-heading {
    gap: 20px;
  }
}
@media (width <= 650px) {
  .car-grid {
    gap: 22px;
  }
  .card-body h3 {
    font-size: 1.5rem;
  }
  .card-facts {
    padding-top: 14px;
    margin-top: 16px;
  }
  .card-price {
    font-size: 1.75rem;
  }
  .card-cta {
    width: 36px;
    height: 36px;
  }
  .related-section .car-grid {
    gap: 20px;
  }
  .car-grid {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 20px;
  }
  .card-facts {
    font-size: var(--meta-size);
  }
  :is(.inventory, .related-section) .section-heading {
    gap: 22px;
    margin-top: 38px;
    padding-bottom: 22px;
  }
  :is(.inventory, .related-section) .section-heading h2 {
    font-size: 1.875rem;
  }
  :is(.inventory, .related-section) .car-grid {
    row-gap: 24px;
  }
  .inventory-followup .inventory-contact-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
  }
  .inventory-contact-card {
    padding: 24px;
  }
  .inventory-followup .contact-card-actions {
    min-width: 0;
  }
  .related-section {
    margin-top: 36px;
    padding-top: 32px;
  }
  .related-section .section-heading {
    margin-top: 0;
    margin-bottom: 30px;
    gap: 20px;
  }
}
@media (hover: none) {
  .car-card:hover,
  .car-card:hover .card-photo img {
    transform: none;
  }
}
@media (hover: hover) {
  :is(.inventory, .related-section) .car-card:hover {
    box-shadow: 0 10px 26px rgb(17 23 29 / 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.inventory, .related-section) .car-card,
  :is(.inventory, .related-section) .card-cta,
  :is(.inventory, .related-section) .card-photo-alt {
    transition: none;
  }
  :is(.inventory, .related-section) .car-card:hover,
  :is(.inventory, .related-section) .car-card:hover .card-cta {
    transform: none;
  }
}

/* About and contact banner */
.about-section {
  padding-block: 90px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.about-section h2 {
  font-size: 2.75rem;
}
.about-copy {
  max-width: 440px;
  font-size: 1rem;
}
.contact-section {
  background: var(--dark);
  color: var(--inverse);
  padding-block: 62px;
  border-top: 3px solid var(--red);
}
.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.contact-section h2 {
  font-size: 2.25rem;
}
.contact-section p:not(.eyebrow) {
  color: var(--inverse-muted);
  margin-top: 12px;
  font-size: 0.875rem;
}
.contact-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.contact-section :focus-visible {
  outline-color: var(--red-inverse);
}
.contact-layout {
  flex-wrap: wrap;
}
.destination-copy > .contact-layout {
  margin-top: 32px;
}
.about-layout {
  align-items: center;
}
.about-photo {
  margin: 0;
  min-width: 0;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 70%;
  border-radius: 8px;
}
.about-copy h2 {
  color: var(--page-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.about-copy > p {
  margin-top: 20px;
  line-height: 1.65;
}
.about-copy {
  color: var(--page-muted);
}
.about-copy .inline-link {
  color: var(--page-text);
}
.about-copy .inline-link:hover {
  color: var(--page-focus);
}
.about-section :focus-visible {
  outline-color: var(--page-focus);
}
.about-copy > .inline-link {
  min-height: 44px;
  align-items: center;
}
@media (width <= 1100px) {
  .about-layout {
    gap: 60px;
  }
  .contact-actions {
    flex-direction: column;
  }
}
@media (width <= 900px) {
  .about-section {
    padding-block: 52px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-section h2 {
    font-size: 2.25rem;
  }
  .about-copy {
    font-size: 0.875rem;
  }
  .contact-section {
    padding-block: 44px;
  }
  .contact-layout {
    align-items: start;
    flex-direction: column;
    gap: 26px;
  }
  .contact-section h2 {
    font-size: 1.875rem;
  }
  .contact-section p:not(.eyebrow) {
    font-size: 0.875rem;
  }
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .about-copy,
  .contact-section p:not(.eyebrow) {
    font-size: 1rem;
  }
  .about-copy {
    max-width: 100%;
  }
}
@media (width <= 650px) {
  .contact-layout {
    align-items: center;
    text-align: center;
  }
  .contact-actions {
    justify-content: center;
    max-width: 100%;
  }
}

/* Service pages */
.service-page {
  min-height: 0;
  padding-bottom: 72px;
}
.service-page .back-link {
  padding-top: 32px;
}
.service-intro {
  padding-block: 32px;
  max-width: 760px;
  min-width: 0;
}
.service-intro h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.service-intro > p {
  margin-top: 24px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--page-text);
  max-width: 55ch;
}
.service-intro > .service-detail {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--page-muted);
  margin-top: 16px;
}
.service-intro > .button {
  margin-top: 28px;
  gap: 16px;
  max-width: 100%;
}
.service-intro > .service-trade-note {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--page-line);
}
.service-panel {
  --ink: #11151a;
  --muted: #596674;
  --line: #d8dde1;
  --control: #7b8793;
  --soft: #edf0f2;
  color-scheme: light;
  min-width: 0;
  padding: 32px;
  border: 1px solid #d8dde1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.service-panel h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.service-panel p {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}
.service-panel :focus-visible {
  outline-color: #d80e1c;
}
.other-catalog .other-inventory {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: 130px;
}
.other-accessories {
  scroll-margin-top: 130px;
}
.other-accessories .inline-link {
  margin-top: 0;
  gap: 8px;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  color: var(--page-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.other-accessories .inline-link:hover {
  color: var(--page-focus);
}
.source-listing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
  text-underline-offset: 4px;
}
.service-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--page-line);
}
.service-contact h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.service-contact p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-muted);
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.service-actions .button-outline {
  color: var(--page-text);
  border-color: var(--page-control);
}
.service-actions .button-outline:hover {
  background: var(--page-hover);
}
.nettimoto-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: 8px;
}
.accessory-person {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.accessory-person > p {
  margin-top: 0;
  color: var(--ink);
}
.accessory-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.accessory-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.accessory-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.accessory-contact-actions > .button {
  flex: 1 1 170px;
  gap: 12px;
  min-width: 0;
}
@media (width <= 900px) {
  .service-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .other-stock,
  .service-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (width <= 650px) {
  .service-page {
    padding-bottom: 48px;
  }
  .service-intro {
    padding-block: 24px;
  }
  .service-intro > p {
    font-size: 1.125rem;
    margin-top: 20px;
  }
  .service-panel {
    padding: 24px;
  }
  .other-stock {
    margin-top: 8px;
    gap: 24px;
  }
  .other-stock > .button {
    width: 100%;
    white-space: normal;
  }
  .service-contact {
    margin-top: 32px;
    padding-top: 24px;
  }
  .service-actions {
    flex-shrink: 1;
  }
}

/* Location map */
.footer-location {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: stretch;
  padding-block: 72px;
  border-bottom: 1px solid var(--inverse-line);
}
.location-copy {
  min-width: 0;
  text-align: center;
}
.location-copy .button {
  margin-inline: auto;
}
.location-copy h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.location-copy address {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--inverse-muted);
  margin-bottom: 28px;
}
.location-copy .button {
  gap: 24px;
}
.location-map {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--inverse-line);
  border-radius: 8px;
  background: #151d23;
}
.location-map picture {
  display: block;
}
.location-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.location-map figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  padding: 8px 12px;
  background: #10161c;
  color: #c4ced7;
  font-size: 0.75rem;
  line-height: 1.5;
}
.location-map figcaption a {
  color: inherit;
  text-underline-offset: 3px;
}
.footer-location.wrap {
  width: calc(100% - 64px);
  max-width: 1440px;
}
.opening-hours {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0 0 28px;
  font-variant-numeric: tabular-nums;
}
.opening-hours dt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--inverse-muted);
}
.opening-hours dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--inverse);
}
.location-map {
  width: 100%;
  height: clamp(320px, 30vw, 440px);
  aspect-ratio: auto;
  min-height: 0;
}
.location-map .map-overview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s;
}
.location-map .map-overview img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
}
.map-live {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: #182127;
  transition: opacity 0.2s;
  cursor: default;
}
.location-map.is-live .map-live {
  opacity: 1;
}
.location-map.is-live .map-overview {
  opacity: 0;
}
.map-live .leaflet-layer {
  transition: opacity 0.18s;
}
.location-map .map-live img.leaflet-tile {
  width: 257px !important;
  height: 257px !important;
  mix-blend-mode: normal;
}
.map-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  z-index: 3;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.location-map:not(.is-enhanced) .map-marker {
  display: none;
}
.map-shape {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map-stem {
  stroke: #81929c;
  stroke-width: 1;
  opacity: 0.65;
}
.map-place {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  transform: none;
  width: 174px;
  max-width: calc(100% - 20px);
  padding: 10px 12px;
  border: 1px solid #ff6570;
  border-radius: 6px;
  background: #10171df5;
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 6px 16px #0006;
  transition:
    width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s;
}
.map-place-trigger {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  padding-inline: 20px;
}
.map-place-trigger small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  color: #d3dce2;
  margin-top: 4px;
}
.location-map:not(.is-focused):not(.is-busy) .map-place {
  cursor: pointer;
}
.location-map:not(.is-focused):not(.is-busy) .map-place:hover {
  background: #202c35;
}
.map-marker:focus-visible,
.map-place :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.location-map.is-busy .map-marker,
.location-map.is-busy .map-place-trigger {
  cursor: wait;
}
.map-actions {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.18s;
}
.map-action-row {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-action-row .button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9375rem;
  gap: 8px;
  white-space: nowrap;
  margin-top: 10px;
}
.is-focused .map-place {
  width: 250px;
}
.is-focused .map-actions {
  grid-template-rows: 1fr;
  opacity: 1;
}
.map-brand {
  position: absolute;
  left: 0;
  top: 0;
  width: 180px;
  z-index: 3;
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}
.location-map .map-brand img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.map-open-arrow {
  position: absolute;
  right: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.18s;
}
.is-focused .map-open-arrow {
  opacity: 0;
}
.is-focused .map-place-trigger {
  cursor: default;
}
.map-arrival {
  opacity: 0;
}
.map-route-base,
.map-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-route-base {
  stroke: #10171d;
  stroke-width: 5;
  opacity: 0.8;
}
.map-route-line {
  stroke: #ff6570;
  stroke-width: 2.5;
}
.map-route-arrow {
  fill: #ff6570;
  stroke: #10171d;
  stroke-width: 1;
}
.map-feedback {
  font-size: 1rem;
  color: var(--inverse-muted);
  line-height: 1.5;
  max-width: 34ch;
  margin: 20px auto 0;
}
.location-map figcaption {
  z-index: 4;
}
.location-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1000px;
  margin-inline: auto;
}
.location-meta .opening-hours {
  margin: 0;
  justify-self: end;
}
.location-meta > .button {
  margin: 0;
}
.location-meta address {
  margin: 0;
  text-align: left;
  justify-self: start;
}
@media (width <= 900px) {
  .footer-location {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .location-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .location-meta .opening-hours {
    width: 100%;
    justify-content: center;
  }
  .location-meta > .button {
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9375rem;
  }
  .location-meta address {
    text-align: center;
    font-size: 1rem;
  }
}
@media (width <= 650px) {
  .footer-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 48px;
  }
  .location-copy h2 {
    font-size: 2.75rem;
  }
  .location-map {
    margin-inline: -4px;
  }
  .location-map img {
    height: auto;
    aspect-ratio: 36 / 41;
  }
  .footer-location.wrap {
    width: calc(100% - 40px);
  }
  .opening-hours {
    gap: 28px;
  }
  .location-map {
    width: calc(100% + 8px);
    height: clamp(320px, 86vw, 350px);
  }
  .map-place,
  .is-focused .map-place {
    width: 148px;
    padding: 10px;
  }
  .map-place-trigger {
    font-size: 0.875rem;
    padding-inline: 0;
    padding-right: 16px;
  }
  .is-focused .map-place-trigger {
    padding-right: 0;
  }
  .map-place-trigger small {
    font-size: 0.75rem;
  }
  .map-open-arrow {
    width: 14px;
    height: 14px;
    top: 8px;
  }
  .map-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .map-action-row .button {
    flex: none;
    min-height: 44px;
    font-size: 0.75rem;
    padding: 8px;
    gap: 5px;
  }
  .map-action-row .button svg {
    width: 14px;
    height: 14px;
  }
  .map-brand {
    width: clamp(68px, calc(35vw - 46px), 90px);
  }
  .location-meta .opening-hours {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-live,
  .map-overview,
  .map-place,
  .map-actions,
  .map-brand,
  .map-open-arrow,
  .map-live .leaflet-layer {
    transition: none;
  }
}

/* Footer */
.site-footer {
  padding-bottom: 22px;
}
.footer-brand {
  flex-shrink: 0;
}
.site-footer :focus-visible {
  outline-color: var(--red-inverse);
}
.site-footer {
  position: relative;
  isolation: isolate;
  padding: 0 0 24px;
  color: var(--inverse);
  background: linear-gradient(135deg, #11171d, #090d11);
  border-top: 1px solid var(--inverse-line);
}
.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-block: 64px;
}
.footer-main > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer-brand {
  display: block;
  width: 230px;
}
.footer-intro p {
  color: var(--inverse-muted);
  font-size: 1rem;
  margin-top: 20px;
}
.footer-navigation {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-self: center;
  gap: 8px 24px;
}
.footer-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
}
.footer-navigation a:hover {
  color: var(--red-inverse);
}
.footer-navigation a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-content: center;
}
.footer-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--inverse-line);
  font-size: var(--meta-size);
  color: var(--inverse-muted);
}
.footer-legal {
  justify-self: center;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
}
.footer-bottom > a {
  justify-self: end;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--inverse);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom p span {
  padding-inline: 8px;
}
.footer-note {
  font-size: var(--meta-size);
  color: var(--inverse-muted);
  line-height: 1.5;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
  min-width: 0;
}
.footer-contacts > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  line-height: 1.4;
}
.footer-phone {
  font-size: 1.5rem;
  font-weight: 600;
}
.footer-email {
  font-size: 1rem;
  color: var(--inverse-muted);
  overflow-wrap: anywhere;
}
.footer-contacts > a:hover {
  text-decoration: underline;
}
.footer-contacts .button-whatsapp {
  margin-top: 4px;
}
.footer-contacts .button-whatsapp:hover {
  text-decoration: none;
}
.footer-bottom .site-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.3em;
  margin: 0;
}
.site-credit a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (width <= 1100px) {
  .footer-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
  .footer-legal {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .footer-bottom .site-credit {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-bottom > a {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (width <= 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .footer-contacts {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (width <= 650px) {
  .footer-main {
    gap: 32px;
    padding-block: 44px;
  }
  .footer-navigation {
    gap: 8px 24px;
  }
  .footer-brand {
    width: 210px;
  }
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-navigation,
  .footer-contacts {
    grid-column: 1;
    grid-row: auto;
  }
  .footer-main {
    text-align: center;
    justify-items: center;
  }
  .footer-brand {
    margin-inline: auto;
    max-width: 100%;
  }
  .footer-navigation,
  .footer-navigation a {
    justify-content: center;
  }
  .footer-contacts {
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-bottom .footer-legal {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }
  .footer-bottom .site-credit {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    justify-content: center;
    justify-self: center;
  }
  .footer-bottom > a {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }
}

/* Vehicle summary and content */
.detail-main {
  padding-bottom: 76px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
}
.detail-gallery {
  min-width: 0;
}
.detail-summary {
  position: sticky;
  min-width: 0;
}
.detail-subtitle {
  color: var(--muted);
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.detail-price {
  font-weight: 600;
  letter-spacing: -0.03em;
}
.vat-note {
  color: var(--muted);
  margin-top: 4px;
}
.summary-facts {
  display: grid;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.summary-facts div {
  min-width: 0;
}
.summary-facts dt {
  color: var(--muted);
}
.summary-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-actions .primary-action,
.detail-actions .full-action {
  grid-column: 1 / -1;
}
.detail-section {
  border-bottom: 1px solid var(--line);
}
.detail-section:first-child {
  border-top: 1px solid var(--line);
}
.detail-section > p {
  margin-top: 18px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.sales-text {
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.detail-section details summary {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-block: 4px;
  list-style: none;
  font-weight: 600;
}
.detail-section details summary::-webkit-details-marker {
  display: none;
}
.detail-section details summary:after {
  font-size: 1.375rem;
  color: var(--red);
  line-height: 1;
}
.detail-section details[open] summary:after {
  content: "−";
}
.equipment-list {
  display: block;
  padding: 0;
  list-style: none;
  margin: 20px 0 0;
}
.equipment-list li {
  position: relative;
  overflow-wrap: anywhere;
}
.equipment-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 14px;
  height: 14px;
  background: var(--red);
  -webkit-mask: url("icons/tabler/check.svg") center / contain no-repeat;
  mask: url("icons/tabler/check.svg") center / contain no-repeat;
}
.technical-list {
  margin: 20px 0 0;
}
.technical-list div {
  display: grid;
  padding: 10px 0;
}
.technical-list div:last-child {
  border: 0;
}
.technical-list dt {
  color: var(--muted);
}
.technical-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mobile-contact-bar {
  display: none;
}
.summary-facts dd,
.technical-list dd,
.mobile-contact-bar > span {
  font-variant-numeric: tabular-nums;
}
.vat-note {
  font-size: var(--meta-size);
}
.detail-price {
  margin-top: 20px;
}
.detail-subtitle {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-section details summary {
  align-items: center;
}
.detail-section > p {
  color: var(--muted);
  max-width: 70ch;
}
.sales-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}
.sales-body {
  margin-top: 18px;
}
.sales-text {
  white-space: pre-line;
  margin: 0;
}
.sales-text + p {
  margin-top: 16px;
}
.car-heading {
  margin-bottom: 12px;
}
.detail-main .back-link {
  padding-top: 42px;
}
.detail-summary {
  top: var(--header-clearance);
}
.detail-main {
  --ink: var(--page-text);
  --muted: var(--page-muted);
  --line: var(--page-line);
  --line-soft: var(--page-line);
  --surface: var(--page-elevated);
  --soft: var(--page-hover);
  --focus: var(--page-focus);
  background: var(--page-bg);
  color: var(--page-text);
}
.mobile-contact-bar {
  background: var(--page-elevated);
  color: var(--page-text);
  border-color: var(--page-line);
}
.detail-main > .wrap {
  padding-bottom: 24px;
}
.detail-main .back-link {
  padding-block: 28px 24px;
  gap: 10px;
}
.detail-layout {
  column-gap: clamp(28px, 3.5vw, 52px);
  row-gap: 0;
}
.detail-gallery {
  grid-column: 1;
  grid-row: 1;
}
.detail-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.detail-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.detail-summary {
  container-type: inline-size;
  container-name: vehicle-summary;
  padding: 28px;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.05);
}
.detail-summary h1 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.detail-summary .car-heading {
  margin-bottom: 0;
}
.detail-summary .detail-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 14px;
  font-weight: 400;
}
.detail-price {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-block: 24px 0;
  font-variant-numeric: tabular-nums;
}
.summary-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  margin-block: 24px;
  padding-block: 22px 0;
  border-color: var(--page-line);
}
.summary-facts dt {
  font-size: var(--meta-size);
  line-height: 1.4;
  margin-bottom: 5px;
}
.summary-facts dd {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}
.summary-facts > div:nth-child(2n) dd {
  text-align: right;
}
.summary-facts .fact-qualifier {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.summary-facts .fact-unit {
  white-space: nowrap;
}
.detail-actions {
  gap: 10px;
}
.detail-actions .button {
  min-height: 48px;
  padding: 12px 10px;
  gap: 8px;
  line-height: 1.4;
  font-size: var(--meta-size);
}
.detail-actions .primary-action {
  min-height: 52px;
  font-size: 1rem;
}
.detail-sections {
  margin-top: 36px;
  container-type: inline-size;
  container-name: vehicle-content;
}
.detail-section {
  padding-block: 32px;
  border-color: var(--page-line);
  scroll-margin-top: var(--header-clearance);
}
.detail-section h2,
.detail-section .specifications > summary {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.detail-section > p,
.detail-section .sales-text {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
}
.equipment-list {
  gap: 14px 28px;
  color: var(--page-text);
  font-weight: 400;
}
.detail-section details summary {
  min-height: 48px;
  font-size: 1rem;
}
.detail-section details summary:after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: var(--red-inverse);
  -webkit-mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  margin-inline: 4px;
  transition: transform 0.18s;
}
.detail-section details[open] summary:after {
  transform: rotate(180deg);
}
.detail-section .specifications > summary {
  padding-block: 0;
}
.detail-summary {
  --ink: #11151a;
  --muted: #596674;
  --line: #d8dde1;
  --line-soft: #e7eaed;
  --surface: #fff;
  --soft: #edf0f2;
  --focus: #d80e1c;
  color: #11151a;
  background: #fff;
  border-color: #d8dde1;
  scroll-margin-top: calc(var(--header-clearance) + 16px);
}
.detail-summary .summary-facts {
  border-color: var(--line);
}
.detail-summary .detail-price {
  order: 0;
}
.summary-facts dt {
  overflow-wrap: normal;
}
.equipment-list {
  column-count: 3;
  column-gap: 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.equipment-list li {
  padding-left: 16px;
  margin-bottom: 9px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.technical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 20px;
}
.technical-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding-block: 9px;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--page-line);
}
.technical-list dt {
  overflow-wrap: anywhere;
}
.technical-list dd {
  max-width: 100%;
  min-width: 0;
  text-align: right;
  font-weight: 600;
}
.technical-list div:last-child {
  border-bottom: 1px solid var(--page-line);
}
.detail-section .sales-body {
  margin-top: 20px;
}
.mobile-contact-bar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-110%);
  pointer-events: none;
  transition:
    transform 0.22s var(--motion-ease),
    opacity 0.16s,
    visibility 0s 0.22s;
}
.mobile-contact-bar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    transform 0.22s var(--motion-ease),
    opacity 0.18s,
    visibility 0s;
}
@media (width <= 1100px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}
@media (width <= 1100px) and (width > 900px) {
  .detail-summary {
    padding: 22px;
  }
  .detail-summary h1 {
    font-size: 2rem;
  }
}
@media (width > 900px) and (max-height: 850px) {
  .detail-summary {
    position: static;
  }
}
@media (width <= 900px) {
  .detail-main {
    padding-bottom: 48px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-summary {
    position: static;
  }
  .mobile-contact-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    z-index: 35;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px #11151a0a;
  }
  .mobile-contact-bar > span {
    font-weight: 600;
  }
  .detail-summary {
    display: flex;
    flex-direction: column;
  }
  .sales-text {
    font-size: 1rem;
  }
  .mobile-contact-bar {
    flex-wrap: wrap;
  }
  .mobile-contact-bar > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .mobile-contact-bar .button {
    min-height: 48px;
    padding: 12px 20px;
  }
  .detail-main .back-link {
    padding-block: 24px 20px;
  }
  .detail-layout {
    row-gap: 0;
  }
  .detail-content {
    grid-column: 1;
    grid-row: 3;
    margin-top: 14px;
  }
  .detail-content .detail-sections {
    margin-top: 0;
  }
  .detail-summary {
    padding: 24px;
  }
  .detail-summary {
    grid-column: 1;
    grid-row: 2;
    margin-top: 24px;
  }
  .detail-summary .detail-price {
    margin: 0;
  }
  .detail-summary .detail-subtitle {
    -webkit-line-clamp: unset;
    display: block;
    margin-top: 16px;
  }
  .mobile-contact-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px var(--page-gutter);
  }
  .mobile-contact-bar > span {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }
  .mobile-contact-bar .button {
    font-size: 1rem;
    padding-inline: 16px;
  }
  .detail-summary {
    /* The root already supplies header clearance via scroll-padding-top. */
    scroll-margin-top: 8px;
  }
  .detail-summary .car-heading {
    order: 0;
  }
  .detail-summary .detail-price {
    margin-top: 20px;
    order: 0;
  }
  .detail-summary .detail-subtitle,
  .summary-facts {
    order: 0;
  }
}
@media (width <= 650px) {
  .detail-summary {
    padding: 22px var(--page-gutter);
  }
  .detail-section {
    padding-block: 28px;
  }
  .equipment-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .equipment-list {
    column-count: 2;
    column-gap: 18px;
    font-size: 0.875rem;
  }
  .equipment-list li {
    margin-bottom: 10px;
  }
  .technical-list {
    gap: 0 20px;
  }
  .technical-list div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding-block: 9px;
  }
  .technical-list dd {
    text-align: left;
    font-weight: 600;
  }
}
@container vehicle-summary (min-width: 18.75rem) {
  .summary-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
  }
  .summary-facts > div:nth-child(3n + 1) dd {
    text-align: left;
  }
  .summary-facts > div:nth-child(3n + 2) dd {
    text-align: center;
  }
  .summary-facts > div:nth-child(3n) dd {
    text-align: right;
  }
}
@container vehicle-content (min-width: 720px) {
  .technical-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-section details summary:after {
    transition: none;
  }
  .mobile-contact-bar {
    transition: none;
  }
}

/* Gallery */
.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-stage > button:first-child {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-stage .photo-fallback {
  position: absolute;
  pointer-events: none;
}
.gallery-thumbs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  display: block;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
}
.gallery-thumb:hover {
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-dialog .icon-button {
  background: #ffffff15;
  color: var(--inverse);
}
.lightbox-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb {
  display: block;
  min-width: 72px;
  min-height: 54px;
}
.gallery-thumb:focus-visible {
  outline-offset: -3px;
}
dialog:not(.gallery-dialog) {
  background: #fff;
  color: #11151a;
  color-scheme: light;
}
.gallery-stage {
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: var(--image-bg);
  touch-action: pinch-zoom;
}
.gallery-stage > button:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-stage > button:first-child:disabled {
  cursor: default;
}
.gallery-stage > button:first-child > .photo-content {
  position: absolute;
  inset: 0;
}
.gallery-stage .photo-fallback {
  color: #596674;
}
.gallery-thumbs {
  gap: 10px;
  padding: 12px 2px 8px;
  scroll-padding-inline: 2px;
}
.gallery-thumbs:empty {
  display: none;
}
.gallery-thumb {
  display: block;
  width: 84px;
  height: 64px;
  padding: 2px;
  border-radius: 5px;
  opacity: 0.7;
  transition:
    opacity 0.18s,
    border-color 0.18s;
}
.gallery-thumb[aria-current="true"] {
  border-color: var(--page-focus);
  opacity: 1;
}
.gallery-thumb img {
  border-radius: 3px;
}
.gallery-incoming {
  position: absolute !important;
  inset: 0;
  opacity: 0;
}
.lightbox-image > .photo-content {
  position: absolute;
  inset: 0;
}
.gallery-hud {
  position: absolute;
  z-index: 5;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 40px;
  background: rgb(10 14 18 / 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
  color: #f8fafc;
}
.hud-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.hud-button:hover {
  background: rgb(255 255 255 / 0.16);
}
.hud-button:focus-visible {
  outline: 2px solid #ff8590;
  outline-offset: -2px;
}
.hud-button .icon {
  width: 22px;
  height: 22px;
}
.hud-count {
  display: block;
  min-width: 60px;
  padding-inline: 6px;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hud-divider {
  height: 24px;
  width: 1px;
  background: rgb(255 255 255 / 0.25);
  margin-inline: 4px;
}
.gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #070b0f;
  color: #f8fafc;
  overflow: hidden;
}
.gallery-dialog::backdrop {
  background: #070b0f;
}
.lightbox-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}
.lightbox-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.gallery-dialog .photo-content {
  background: transparent;
}
.gallery-dialog .photo-fallback {
  background: #11171d;
  color: #c4ccd5;
}
.lightbox-name {
  position: absolute;
  z-index: 3;
  top: calc(18px + env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0;
  padding: 8px 12px;
  background: rgb(7 11 15 / 0.72);
  border-radius: 4px;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.4;
  pointer-events: none;
}
.lightbox-hud {
  bottom: calc(24px + env(safe-area-inset-bottom));
  padding: 8px;
  gap: 8px;
}
.lightbox-hud .hud-button {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.lightbox-hud .hud-count {
  min-width: 72px;
  font-size: 1rem;
}
@media (width <= 900px) {
  .gallery-stage {
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .gallery-stage > button:first-child {
    height: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--page-line);
    border-radius: 10px;
  }
  .gallery-stage > .gallery-hud {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: fit-content;
    margin: 12px auto 0;
  }
}
@media (width <= 650px) {
  .gallery-thumb {
    display: block;
    width: 72px;
    height: 56px;
  }
  .lightbox-name {
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.875rem;
  }
  .lightbox-hud {
    max-width: calc(100% - 20px);
    gap: 4px;
    padding: 6px;
  }
  .lightbox-hud .hud-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .lightbox-hud .hud-count {
    min-width: 60px;
    font-size: 0.9375rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-thumb {
    display: block;
    transition: none;
  }
  .hud-button {
    transition: none;
  }
}

/* Finance calculator */
.finance-surface {
  border: 1px solid var(--page-line);
  border-radius: 8px;
  background: var(--page-elevated);
  transition: border-color 150ms;
}
.finance-surface:has(.finance-heading-button:hover),
.finance-surface:has(.finance-heading-button[aria-expanded="true"]) {
  border-color: var(--page-control);
}
.finance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.finance-heading > h2 {
  width: 100%;
  margin: 0;
}
.finance-heading-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 13px 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--page-text);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms;
}
.finance-heading-button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.finance-toggle-copy {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.finance-toggle-title {
  min-width: 0;
}
.finance-heading-button .finance-warning {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--page-muted);
}
.finance-heading-button[aria-expanded="false"]:hover {
  background: var(--page-hover);
}
.finance-heading-button[aria-expanded="true"] {
  border-radius: 7px 7px 0 0;
}
.finance-heading-button:focus-visible {
  outline: 2px solid var(--page-focus);
  outline-offset: 3px;
}
.finance-heading-button > .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.finance-heading-button > [data-icon-name="arrow-down"] {
  transition: transform 220ms var(--motion-ease);
}
.finance-heading-button[aria-expanded="true"] > [data-icon-name="arrow-down"] {
  transform: rotate(180deg);
}
.finance-calculator {
  container-type: inline-size;
  container-name: finance;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.75fr);
  gap: 20px 28px;
  align-items: start;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--page-line);
}
.finance-controls {
  min-width: 0;
}
.finance-field {
  margin-top: 8px;
  min-width: 0;
}
.finance-field:first-child {
  margin-top: 0;
}
.finance-field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.finance-field-heading label {
  font-weight: 600;
}
.finance-field-heading output {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.finance-range {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0;
  margin: -4px 0 -4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  --fill: 20%;
}
.finance-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--page-focus) var(--fill),
    var(--page-control) var(--fill)
  );
}
.finance-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  background: var(--page-focus);
  border: 3px solid var(--page-elevated);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
}
.finance-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--page-control);
}
.finance-range::-moz-range-progress {
  height: 4px;
  background: var(--page-focus);
}
.finance-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--page-elevated);
  border-radius: 50%;
  background: var(--page-focus);
}
.finance-range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 0.8125rem;
  color: var(--page-muted);
}
.finance-estimate {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--page-line);
  padding-left: 24px;
}
.finance-estimate > p {
  font-size: 0.875rem;
  color: var(--page-muted);
  margin: 0;
}
.finance-monthly {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.finance-monthly output {
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.finance-estimate.is-pending .finance-monthly output {
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.finance-per-month {
  font-size: 1rem;
  color: var(--page-muted);
  white-space: nowrap;
}
.finance-estimate .button {
  width: 100%;
  font-size: 0.875rem;
  margin-top: 16px;
  gap: 10px;
  min-height: 48px;
  padding-inline: 14px;
}
.finance-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}
.finance-additional {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}
:is(.finance-breakdown, .finance-additional) div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
:is(.finance-breakdown, .finance-additional) dt {
  font-size: 0.8125rem;
  color: var(--page-muted);
}
:is(.finance-breakdown, .finance-additional) dd {
  margin: 3px 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.finance-notes {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}
.finance-calculator .finance-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--page-muted);
}
.finance-footer {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--page-line);
}
.finance-warning {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--page-text);
}
.finance-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--page-muted);
}
.finance-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--page-focus);
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.finance-more-button:hover {
  text-decoration-line: underline;
}
.finance-more-button .icon {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--motion-ease);
}
.finance-more-button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.finance-more,
.finance-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 220ms var(--motion-ease),
    opacity 160ms;
}
.finance-more[aria-hidden="false"],
.finance-drawer[aria-hidden="false"] {
  grid-template-rows: 1fr;
  opacity: 1;
}
.finance-more-inner,
.finance-drawer-inner {
  overflow: hidden;
  min-height: 0;
}
.finance-more-content {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}
@media (width <= 1100px) {
  .finance-calculator {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .finance-estimate {
    border-left: 0;
    border-top: 1px solid var(--page-line);
    padding: 20px 0 0;
  }
  .finance-estimate .button {
    align-self: flex-start;
  }
  .finance-monthly {
    min-height: 0;
  }
}
@media (width <= 900px) {
  .finance-calculator {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.8fr);
  }
  .finance-estimate {
    border-top: 0;
    border-left: 1px solid var(--page-line);
    padding: 0 0 0 24px;
  }
}
@media (width <= 650px) {
  .finance-heading-button {
    padding-block: 12px;
  }
  .finance-toggle-copy {
    flex-direction: column;
    align-items: flex-start;
  }
  .finance-calculator {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    gap: 20px;
  }
  .finance-estimate {
    border-left: 0;
    border-top: 1px solid var(--page-line);
    padding: 20px 0 0;
  }
  .finance-monthly output {
    font-size: 2.375rem;
  }
  .finance-estimate .button {
    align-self: stretch;
  }
  .finance-heading {
    gap: 12px;
  }
  .finance-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
}
@container finance (max-width: 620px) {
  .finance-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .finance-more,
  .finance-drawer,
  .finance-more-button .icon,
  .finance-surface,
  .finance-heading-button,
  .finance-heading-button .icon {
    transition: none;
  }
}

/* Enquiry forms */
.vehicle-enquiry {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 0;
  color: var(--ink);
}
.enquiry-actions .enquiry-phone {
  min-height: 56px;
  padding-inline: 16px;
  gap: 12px;
}
.enquiry-phone > span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  flex-wrap: wrap;
}
.enquiry-phone > span > span:first-child {
  font-size: 0.875rem;
}
.enquiry-phone-number {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.enquiry-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.enquiry-text-button {
  display: block;
  min-height: 48px;
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: color 0.15s;
}
.enquiry-text-button > .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -0.2em;
}
.enquiry-text-button:hover {
  color: var(--red-hover);
}
.contact-request-dialog {
  width: 640px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  color-scheme: light;
  overscroll-behavior: contain;
  scroll-padding-block: 110px 24px;
  scrollbar-width: thin;
  scrollbar-color: #aeb6be #fff;
  caret-color: var(--red);
}
.request-header {
  position: sticky;
  top: -28px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  margin: -28px -28px 0;
  padding: 24px 28px 14px;
}
.request-header h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  align-self: center;
  text-wrap: balance;
}
.request-header h2:focus {
  outline: 0;
}
.request-header .icon-button {
  background: var(--soft);
  border-radius: 6px;
  transition: background 0.15s;
}
.request-header .icon-button:hover {
  background: var(--line);
}
.request-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}
.request-vehicle > img {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--soft);
  flex-shrink: 0;
}
.request-vehicle > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.request-vehicle strong {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.request-vehicle span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.request-note {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}
.contact-request-dialog #contact-content {
  margin-top: 24px;
}
.request-form {
  display: grid;
  gap: 24px;
}
.request-form fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.request-form legend {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 0;
  margin-bottom: 12px;
}
.request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.request-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}
.request-wide {
  grid-column: 1 / -1;
}
.request-vehicle-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.request-vehicle-fields > .request-field:not(.request-wide) label {
  min-height: 42px;
}
.request-vehicle-fields > .request-field:not(.request-wide) .request-optional {
  display: block;
}
.request-field label {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}
.request-optional {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.request-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--control);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.request-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--control);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.request-field input::placeholder,
.request-field textarea::placeholder {
  color: #66717c;
  opacity: 1;
}
.request-field textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 45dvh;
}
.request-field input:hover,
.request-field textarea:hover {
  border-color: var(--ink);
}
.request-field [aria-invalid="true"] {
  border-color: var(--red-hover);
  background: #fff8f8;
}
.contact-request-dialog #contact-content .request-error {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--red-hover);
  margin: 0;
}
.contact-request-dialog #contact-content .request-error-summary {
  border: 1px solid var(--red-hover);
  border-radius: 5px;
  background: #fff8f8;
  padding: 12px 14px;
  color: var(--red-hover);
  font-weight: 500;
  font-size: 1rem;
}
.contact-request-dialog #contact-content .request-field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.request-time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.request-time-options label {
  position: relative;
  flex: 1 1 130px;
  cursor: pointer;
}
.request-time-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.request-time-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--control);
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.request-time-options input:checked + span {
  border-color: var(--red);
  background: #fce9ec;
  color: #7c0710;
}
.request-time-options input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.request-time-options label:hover span {
  border-color: var(--ink);
}
.request-next {
  min-height: 52px;
  width: 100%;
  justify-content: space-between;
  margin: 0;
}
.request-review-list {
  margin: 0;
}
.request-review-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.request-review-list > div:first-child {
  padding-top: 0;
}
.request-review-list dt {
  color: var(--muted);
}
.request-review-list dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.request-review-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.request-review-actions .button {
  min-height: 52px;
  padding: 12px 16px;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.4;
}
.contact-request-dialog #contact-content .request-submit-error {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--red-hover);
  border-radius: 5px;
  background: #fff8f8;
  color: var(--red-hover);
}
.contact-request-dialog #contact-content .request-success p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--ink);
}
.contact-request-dialog #contact-content .request-status {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--muted);
}
.request-status:empty {
  display: none;
}
@media (width <= 650px) {
  .contact-request-dialog {
    padding: 20px;
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }
  .request-header {
    top: -20px;
    margin: -20px -20px 0;
    padding: 16px 20px 12px;
    gap: 12px;
  }
  .request-header h2 {
    font-size: 1.5rem;
  }
  .request-fields {
    gap: 16px 12px;
  }
  .request-vehicle-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  }
  .request-registration {
    grid-column: 1 / -1;
  }
  .request-fields > .request-field label {
    min-height: 42px;
  }
  .request-fields > .request-field:has([name="person"]),
  .request-fields > .request-field:has([name="phone"]),
  .request-fields > .request-field:has([name="email"]) {
    grid-column: 1 / -1;
  }
  .request-fields > .request-wide label,
  .request-fields > .request-field:has([name="person"]) label,
  .request-fields > .request-field:has([name="phone"]) label,
  .request-fields > .request-field:has([name="email"]) label,
  .request-vehicle-fields > .request-registration label {
    min-height: 0;
  }
  .request-vehicle-fields > .request-registration .request-optional {
    display: inline;
  }
  .request-review-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-review-actions .request-edit {
    order: 2;
  }
  .request-review-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .enquiry-phone > span {
    gap: 8px;
  }
}
@container vehicle-summary (max-width: 21rem) {
  .enquiry-form-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .enquiry-form-actions .enquiry-text-button + button {
    border-top: 1px solid var(--line-soft);
  }
}
@media (prefers-reduced-motion: reduce) {
  .enquiry-text-button,
  .request-header .icon-button,
  .request-field input,
  .request-field textarea,
  .request-time-options span {
    transition: none;
  }
}

/* Sell your car */
.sell-page {
  padding-bottom: 0;
}
.sell-page .back-link {
  padding-top: 32px;
}
.sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 32px 80px;
}
.sell-intro {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  min-width: 0;
}
.sell-intro h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sell-lead {
  max-width: 38ch;
  margin-top: 24px;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--page-text);
}
.sell-guidance {
  max-width: 42ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--page-muted);
}
.sell-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--page-line);
}
.sell-contact > p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--page-muted);
}
.sell-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: fit-content;
  text-decoration: none;
}
.sell-phone {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sell-phone .icon {
  width: 22px;
  height: 22px;
}
.sell-phone:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.sell-form-panel {
  --ink: #11151a;
  --muted: #596674;
  --line: #d8dde1;
  --line-soft: #e7eaee;
  --soft: #edf0f2;
  --focus: #d80e1c;
  --control: #7b8793;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 36px);
  border: 1px solid #d8dde1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  color-scheme: light;
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.sell-form {
  gap: 28px;
}
.sell-form legend {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.sell-form fieldset + fieldset legend {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sell-vehicle-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
}
.sell-vehicle-fields > .request-field {
  grid-column: span 2;
}
.sell-vehicle-fields > .sell-model {
  grid-column: span 4;
}
.sell-vehicle-fields > .sell-wide {
  grid-column: 1 / -1;
}
.sell-vehicle-fields .request-optional {
  display: block;
}
.sell-vehicle-fields .sell-wide .request-optional {
  display: inline;
}
.sell-model label {
  align-self: end;
}
.sell-model {
  grid-template-rows: 1fr auto;
}
.sell-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.sell-contact-fields > .sell-wide {
  grid-column: 1 / -1;
}
.sell-form-panel .sell-next {
  width: 100%;
  min-height: 52px;
  gap: 16px;
}
.sell-form-panel :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.sell-form-panel input:focus-visible,
.sell-form-panel textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.sell-form-panel h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sell-form-panel h2:focus {
  outline: 0;
}
.sell-review .request-review-list {
  margin-top: 24px;
}
.sell-review .request-review-list > div {
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
}
.sell-form-panel .request-submit-error {
  padding: 14px 16px;
  margin-top: 20px;
  border: 1px solid #b60012;
  border-radius: 5px;
  background: #fff8f8;
  color: #b60012;
  font-size: 1rem;
  line-height: 1.5;
}
.sell-form-panel .request-error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #b60012;
}
.sell-form-panel .request-error-summary {
  padding: 12px 14px;
  border: 1px solid #b60012;
  border-radius: 5px;
  background: #fff8f8;
  color: #b60012;
  font-size: 1rem;
  line-height: 1.5;
}
.sell-form-panel .request-status {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--muted);
}
.sell-success > p {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.sell-success > .button {
  margin-top: 24px;
  gap: 16px;
  max-width: 100%;
}
.sell-success-icon {
  display: inline-flex;
  margin-bottom: 20px;
  color: #176c3e;
}
.sell-success-icon .icon {
  width: 32px;
  height: 32px;
}
.sell-no-script {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
}
.sell-no-script a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (width > 900px) and (max-height: 750px) {
  .sell-intro {
    position: static;
  }
}
@media (width <= 900px) {
  .sell-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 56px;
  }
  .sell-intro {
    position: static;
  }
  .sell-intro h1 {
    max-width: none;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }
  .sell-lead {
    max-width: 48ch;
    margin-top: 20px;
    font-size: 1.125rem;
  }
  .sell-guidance {
    max-width: 60ch;
  }
  .sell-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .sell-contact > p {
    width: 100%;
  }
  .sell-phone {
    font-size: 1.25rem;
    margin-top: 0;
  }
}
@media (width <= 650px) {
  .sell-layout {
    padding-top: 24px;
    gap: 24px;
  }
  .sell-guidance {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .sell-form-panel {
    padding: 20px;
  }
  .sell-vehicle-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .sell-vehicle-fields > .request-field {
    grid-column: span 1;
  }
  .sell-vehicle-fields > :is(.sell-model, .sell-registration, .sell-price, .sell-wide) {
    grid-column: 1 / -1;
  }
  .sell-model {
    display: grid;
    grid-template-rows: none;
  }
  .sell-vehicle-fields .sell-registration .request-optional {
    display: inline;
  }
  .sell-contact-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .sell-form-panel legend {
    font-size: 1.375rem;
  }
  .sell-review .request-review-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .sell-form-panel .request-review-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .sell-form-panel .request-edit {
    order: 2;
  }
}

/* Contact page */
.contact-page {
  min-height: 0;
  padding-bottom: 0;
}
.contact-page .back-link {
  padding-top: 32px;
}
.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: 32px 64px;
}
.contact-primary {
  min-width: 0;
}
.contact-primary h1 {
  font-size: clamp(2.5rem, 5vw, 4.125rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.contact-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--page-muted);
  margin-top: 16px;
}
.contact-person {
  margin-top: 36px;
}
.contact-person h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-telephone,
.contact-email {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}
.contact-telephone {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.contact-telephone .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.contact-telephone > [data-icon],
.contact-email > [data-icon] {
  flex-shrink: 0;
}
.contact-email {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--page-muted);
  margin-top: 4px;
}
.contact-email > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-email .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.contact-telephone:hover,
.contact-email:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.contact-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.contact-route-actions .button {
  min-width: 0;
  min-height: 52px;
  gap: 16px;
  padding: 12px 20px;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}
.contact-route-actions .button-outline {
  border-color: var(--page-control);
  color: var(--page-text);
}
.contact-premises {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page-elevated);
}
.contact-premises > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 65%;
}
.contact-premises figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  color: var(--page-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.contact-location {
  border-top: 1px solid var(--page-line);
  border-bottom: 0;
  padding-block: 64px 72px;
}
.contact-location .location-copy h2 {
  color: var(--page-text);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
}
.contact-location .location-copy address {
  color: var(--page-muted);
}
.contact-location .opening-hours {
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
}
.contact-location .opening-hours dt {
  color: var(--page-muted);
}
.contact-location .opening-hours dd {
  color: var(--page-text);
}
.contact-location .location-map {
  border-color: var(--page-line);
}
.contact-location .map-feedback {
  color: var(--page-muted);
}
@media (width <= 900px) {
  .contact-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 32px;
  }
  .contact-person {
    margin-top: 28px;
  }
  .contact-premises > img {
    aspect-ratio: 1;
    object-position: 55% 65%;
  }
}
@media (width <= 650px) {
  .contact-page .back-link {
    padding-top: 24px;
  }
  .contact-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 24px 40px;
  }
  .contact-primary h1 {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
  }
  .contact-lead {
    font-size: 1.125rem;
    margin-top: 12px;
  }
  .contact-telephone {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
  .contact-route-actions .button {
    flex: 1 1 145px;
    justify-content: center;
  }
  .contact-route-actions .button-outline {
    gap: 10px;
    padding-inline: 14px;
  }
  .contact-premises > img {
    aspect-ratio: 16 / 9;
    object-position: 50% 68%;
  }
  .contact-location {
    padding-block: 40px 48px;
  }
}
