/*
 * Dublin Motor Showroom — public site
 * All selectors are scoped to the dmd component namespace.
 */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-900-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-800-normal.woff2") format("woff2");
}

:root {
  --dmd-ink: #10243a;
  --dmd-ink-soft: #34495d;
  --dmd-paper: #f3f5f7;
  --dmd-surface: #ffffff;
  --dmd-surface-soft: #eef2f5;
  --dmd-accent: #1c69d4;
  --dmd-accent-dark: #0b489d;
  --dmd-accent-soft: #dceafe;
  --dmd-success: #16745b;
  --dmd-warning: #a35e08;
  --dmd-danger: #b42318;
  --dmd-muted: #5b6b7a;
  --dmd-line: #d9e0e6;
  --dmd-line-dark: #bcc8d1;
  --dmd-shadow-sm: 0 8px 24px rgba(16, 36, 58, 0.08);
  --dmd-shadow-lg: 0 28px 70px rgba(16, 36, 58, 0.14);
  --dmd-radius-sm: 4px;
  --dmd-radius: 8px;
  --dmd-radius-lg: 14px;
  --dmd-container: 1200px;
  --dmd-gutter: clamp(1.25rem, 3vw, 2.25rem);
  --dmd-header-height: 80px;
  --dmd-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --dmd-font-numeric: "Barlow Condensed", "Arial Narrow", sans-serif;
  --dmd-font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dmd-template-active {
  margin: 0;
  background: var(--dmd-paper);
}

.dmd-site,
.dmd-site *,
.dmd-site *::before,
.dmd-site *::after {
  box-sizing: border-box;
}

.dmd-site {
  --dmd-accent-dark: color-mix(in srgb, var(--dmd-accent) 76%, #000000);
  --dmd-accent-soft: color-mix(in srgb, var(--dmd-accent) 16%, #ffffff);
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--dmd-ink);
  background: var(--dmd-paper);
  font-family: var(--dmd-font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.dmd-demo-strip {
  min-height: 28px;
  padding: 0.32rem var(--dmd-gutter);
  color: #5f4300;
  background: #fff4cf;
  border-bottom: 1px solid #ead895;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
}

.dmd-site img,
.dmd-site svg {
  display: block;
  max-width: 100%;
}

.dmd-site img {
  height: auto;
}

.dmd-site button,
.dmd-site input,
.dmd-site select,
.dmd-site textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

.dmd-site button,
.dmd-site select {
  cursor: pointer;
}

.dmd-site :where(a) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.dmd-site :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--dmd-accent);
  outline: 3px solid color-mix(in srgb, var(--dmd-accent) 42%, transparent);
  outline-offset: 3px;
}

.dmd-site [hidden] {
  display: none !important;
}

.dmd-site [id] {
  scroll-margin-top: calc(var(--dmd-header-height) + 24px);
}

.dmd-container {
  width: min(calc(100% - (var(--dmd-gutter) * 2)), var(--dmd-container));
  margin-inline: auto;
}

.dmd-narrow {
  width: min(calc(100% - (var(--dmd-gutter) * 2)), 820px);
  margin-inline: auto;
}

.dmd-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dmd-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--dmd-surface);
  background: var(--dmd-ink);
  border-radius: var(--dmd-radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.dmd-skip-link:focus {
  transform: translateY(0);
}

.dmd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--dmd-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dmd-eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.dmd-display,
.dmd-title,
.dmd-section-title,
.dmd-card-title {
  margin: 0;
  color: var(--dmd-ink);
  font-family: var(--dmd-font-display);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 0.98;
}

.dmd-display {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.75rem);
}

.dmd-title {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.dmd-section-title {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}

.dmd-card-title {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.dmd-lede {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--dmd-ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.dmd-muted {
  color: var(--dmd-muted);
}

.dmd-rich-text {
  color: var(--dmd-ink-soft);
  font-size: 1.08rem;
}

.dmd-rich-text > *:first-child {
  margin-top: 0;
}

.dmd-rich-text > *:last-child {
  margin-bottom: 0;
}

.dmd-rich-text h2,
.dmd-rich-text h3 {
  margin: 2em 0 0.6em;
  color: var(--dmd-ink);
  font-family: var(--dmd-font-display);
  line-height: 1.06;
}

.dmd-rich-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.dmd-rich-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.dmd-rich-text a {
  color: var(--dmd-accent-dark);
  font-weight: 700;
}

.dmd-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  appearance: none;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dmd-button:hover {
  transform: translateY(-1px);
}

.dmd-button:active {
  transform: translateY(0);
}

.dmd-button--primary {
  color: var(--dmd-accent-foreground, #fff);
  background: var(--dmd-accent);
  border-color: var(--dmd-accent);
}

.dmd-button--primary:hover {
  color: var(--dmd-accent-foreground, #fff);
  background: var(--dmd-accent);
  border-color: var(--dmd-accent);
  box-shadow: inset 0 0 0 2px var(--dmd-accent-foreground, #fff);
}

.dmd-button--dark {
  color: #fff;
  background: var(--dmd-ink);
  border-color: var(--dmd-ink);
}

.dmd-button--dark:hover {
  background: var(--dmd-ink-soft);
}

.dmd-button--light {
  color: var(--dmd-ink);
  background: #fff;
  border-color: #fff;
}

.dmd-button--outline {
  color: var(--dmd-ink);
  background: transparent;
  border-color: var(--dmd-line-dark);
}

.dmd-button--outline:hover {
  background: var(--dmd-surface);
  border-color: var(--dmd-ink);
}

.dmd-button--text {
  min-height: auto;
  padding: 0.25rem 0;
  color: var(--dmd-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.dmd-button--wide {
  width: 100%;
}

.dmd-button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.dmd-button[disabled],
.dmd-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

/* Top bar and navigation */
.dmd-topbar {
  color: #fff;
  background: var(--dmd-ink);
  font-size: 0.88rem;
}

.dmd-topbar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.dmd-topbar__items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dmd-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
}

.dmd-topbar__link:hover {
  color: var(--dmd-accent-soft);
}

.dmd-topbar__link svg {
  width: 0.95rem;
  height: 0.95rem;
}

.dmd-header {
  position: sticky;
  z-index: 900;
  top: 0;
  color: var(--dmd-ink);
  background: rgba(243, 245, 247, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  backdrop-filter: blur(12px);
}

.dmd-header.dmd-is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--dmd-line);
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.06);
}

.dmd-header__inner {
  display: grid;
  min-height: var(--dmd-header-height);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.dmd-logo {
  display: inline-flex;
  min-width: 0;
  max-width: 260px;
  align-items: center;
  gap: 0.7rem;
  color: var(--dmd-ink);
  text-decoration: none;
}

.dmd-logo::before {
  width: 3px;
  height: 38px;
  flex: 0 0 auto;
  content: "";
  background: var(--dmd-accent);
  border-radius: 999px;
}

.dmd-logo__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-family: var(--dmd-font-body);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.dmd-logo__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmd-logo__text small {
  margin-top: 0.28rem;
  color: var(--dmd-muted);
  font-family: var(--dmd-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: none;
}

.dmd-nav {
  justify-self: center;
}

.dmd-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.dmd-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--dmd-ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.dmd-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--dmd-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.dmd-nav__link:hover::after,
.dmd-nav__link.dmd-is-current::after,
.dmd-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dmd-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.dmd-header__call {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--dmd-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.dmd-header__call svg {
  width: 1.2rem;
  height: 1.2rem;
}

.dmd-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--dmd-line-dark);
  border-radius: 6px;
}

.dmd-nav-toggle__icon,
.dmd-nav-toggle__icon::before,
.dmd-nav-toggle__icon::after {
  display: block;
  width: 21px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.dmd-nav-toggle__icon {
  position: relative;
}

.dmd-nav-toggle__icon::before {
  position: absolute;
  top: -6px;
}

.dmd-nav-toggle__icon::after {
  position: absolute;
  top: 6px;
}

.dmd-nav-toggle[aria-expanded="true"] .dmd-nav-toggle__icon {
  background: transparent;
}

.dmd-nav-toggle[aria-expanded="true"] .dmd-nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.dmd-nav-toggle[aria-expanded="true"] .dmd-nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.dmd-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 118px));
  color: #fff;
  background: var(--dmd-ink);
  isolation: isolate;
}

.dmd-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.dmd-hero__media img,
.dmd-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dmd-hero__media::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, rgba(10, 17, 23, 0.92) 0%, rgba(10, 17, 23, 0.72) 40%, rgba(10, 17, 23, 0.18) 72%, rgba(10, 17, 23, 0.06) 100%);
  inset: 0;
}

.dmd-hero__inner {
  display: flex;
  min-height: inherit;
  align-items: flex-end;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.dmd-hero__content {
  width: min(660px, 100%);
}

.dmd-hero .dmd-eyebrow,
.dmd-hero .dmd-display,
.dmd-hero .dmd-lede {
  color: #fff;
}

.dmd-hero .dmd-eyebrow {
  color: var(--dmd-accent-soft);
}

.dmd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dmd-hero__note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.dmd-hero__note svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.dmd-page-hero {
  padding: clamp(3.75rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--dmd-paper);
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-page-hero--dark {
  color: #fff;
  background: var(--dmd-ink);
  border-bottom: 0;
}

.dmd-page-hero--dark .dmd-title,
.dmd-page-hero--dark .dmd-lede {
  color: #fff;
}

.dmd-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--dmd-muted);
  font-weight: 600;
}

/* Search and forms */
.dmd-search-panel {
  position: relative;
  z-index: 5;
  margin-top: -42px;
}

.dmd-search-panel__inner {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
  box-shadow: var(--dmd-shadow-lg);
}

.dmd-search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
}

.dmd-form {
  display: grid;
  gap: 1rem;
}

.dmd-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dmd-form__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dmd-field {
  position: relative;
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

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

.dmd-field__label {
  color: var(--dmd-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.dmd-field__required {
  color: var(--dmd-accent-dark);
}

.dmd-field__control {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0.72rem 0.8rem;
  color: var(--dmd-ink);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line-dark);
  border-radius: 6px;
  appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.dmd-field__control:hover {
  border-color: var(--dmd-muted);
}

.dmd-field__control:focus {
  background: #fff;
  border-color: var(--dmd-accent);
  box-shadow: 0 0 0 3px rgba(11, 103, 178, 0.16);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dmd-accent) 16%, transparent);
  outline: 0;
}

.dmd-field__control[aria-invalid="true"],
.dmd-was-validated .dmd-field__control:invalid {
  border-color: var(--dmd-danger);
}

.dmd-field select.dmd-field__control {
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.dmd-field textarea.dmd-field__control {
  min-height: 132px;
  resize: vertical;
}

.dmd-field__hint,
.dmd-field__error,
.dmd-field__count {
  margin: 0;
  color: var(--dmd-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.dmd-field__error {
  display: none;
  color: var(--dmd-danger);
  font-weight: 700;
}

.dmd-was-validated .dmd-field__control:invalid ~ .dmd-field__error {
  display: block;
}

.dmd-field__count {
  justify-self: end;
}

.dmd-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.65rem;
  color: var(--dmd-ink-soft);
  font-size: 0.92rem;
}

.dmd-check input {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--dmd-accent);
}

.dmd-form__status {
  padding: 0.8rem 1rem;
  color: var(--dmd-ink-soft);
  background: var(--dmd-surface-soft);
  border-left: 4px solid var(--dmd-accent);
  border-radius: 0 var(--dmd-radius-sm) var(--dmd-radius-sm) 0;
}

.dmd-form__status--success {
  border-left-color: var(--dmd-success);
}

.dmd-form__status--error {
  border-left-color: var(--dmd-danger);
}

/* General sections */
.dmd-section {
  padding-block: clamp(4.25rem, 8vw, 7.5rem);
}

.dmd-section--white {
  background: var(--dmd-surface);
}

.dmd-section--dark {
  color: #fff;
  background: var(--dmd-ink);
}

.dmd-section--dark .dmd-section-title,
.dmd-section--dark .dmd-card-title,
.dmd-section--dark .dmd-lede {
  color: #fff;
}

.dmd-section--dark .dmd-eyebrow {
  color: var(--dmd-accent-soft);
}

.dmd-section--dark .dmd-field__label,
.dmd-section--dark .dmd-check {
  color: rgba(255, 255, 255, 0.86);
}

.dmd-section--compact {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.dmd-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dmd-section-heading__copy {
  width: min(700px, 100%);
}

.dmd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.dmd-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dmd-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmd-panel {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-panel--dark {
  color: #fff;
  background: var(--dmd-ink);
  border-color: var(--dmd-ink);
}

.dmd-panel--accent {
  color: #fff;
  background: var(--dmd-accent-dark);
  border-color: var(--dmd-accent-dark);
}

.dmd-divider {
  height: 1px;
  margin-block: 2rem;
  background: var(--dmd-line);
  border: 0;
}

/* Browse shortcuts */
.dmd-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--dmd-line);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-shortcut {
  position: relative;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  overflow: hidden;
  background: var(--dmd-surface);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.dmd-shortcut:hover {
  color: #fff;
  background: var(--dmd-ink);
}

.dmd-shortcut__icon {
  width: 2rem;
  height: 2rem;
  color: var(--dmd-accent);
}

.dmd-shortcut__label {
  font-family: var(--dmd-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.dmd-shortcut__count {
  color: var(--dmd-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dmd-shortcut:hover .dmd-shortcut__count {
  color: rgba(255, 255, 255, 0.7);
}

/* Vehicle cards */
.dmd-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(1.15rem, 2.5vw, 1.8rem);
}

.dmd-vehicle-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dmd-vehicle-card:hover {
  border-color: var(--dmd-line-dark);
  box-shadow: var(--dmd-shadow-sm);
  transform: translateY(-3px);
}

.dmd-vehicle-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e7e7e3;
  aspect-ratio: 16 / 10;
}

.dmd-vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.dmd-vehicle-card:hover .dmd-vehicle-card__media img {
  transform: scale(1.025);
}

.dmd-vehicle-card__status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
}

.dmd-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.28rem 0.55rem;
  color: #fff;
  background: var(--dmd-ink);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.dmd-status--new {
  background: var(--dmd-accent);
}

.dmd-status--reserved {
  background: var(--dmd-warning);
}

.dmd-status--sold {
  background: var(--dmd-muted);
}

.dmd-favourite {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--dmd-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(16, 24, 32, 0.12);
}

.dmd-favourite:hover {
  color: var(--dmd-accent);
}

.dmd-favourite svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: transparent;
  transition: fill 150ms ease, color 150ms ease, transform 150ms ease;
}

.dmd-favourite.dmd-is-favourite {
  color: var(--dmd-accent);
}

.dmd-favourite.dmd-is-favourite svg {
  fill: currentColor;
  transform: scale(1.05);
}

.dmd-vehicle-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.2rem;
}

.dmd-vehicle-card__kicker {
  margin: 0 0 0.35rem;
  color: var(--dmd-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmd-vehicle-card__title {
  margin: 0;
  font-family: var(--dmd-font-body);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.dmd-vehicle-card__title a {
  text-decoration: none;
}

.dmd-vehicle-card__title a::after {
  position: absolute;
  content: "";
  inset: 0;
}

.dmd-vehicle-card__variant {
  min-height: 2.7em;
  margin: 0.35rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.9rem;
}

.dmd-vehicle-card__price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.dmd-vehicle-card__price {
  font-family: var(--dmd-font-body);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.dmd-vehicle-card__finance {
  color: var(--dmd-muted);
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: right;
}

.dmd-vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.9rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--dmd-line);
  list-style: none;
}

.dmd-vehicle-card__spec {
  min-width: 0;
  color: var(--dmd-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dmd-vehicle-card__spec strong {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--dmd-ink-soft);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dmd-vehicle-card--sold .dmd-vehicle-card__media img {
  filter: saturate(0.35);
}

/* Trust, reviews and feature layouts */
.dmd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--dmd-line);
  border: 1px solid var(--dmd-line);
}

.dmd-trust-item {
  padding: 1.4rem;
  background: var(--dmd-surface);
}

.dmd-trust-item__icon {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 1.2rem;
  color: var(--dmd-accent);
}

.dmd-trust-item__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
}

.dmd-trust-item__text {
  margin: 0.5rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.9rem;
}

.dmd-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.dmd-split--reverse {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.dmd-split__media {
  min-height: 460px;
  overflow: hidden;
  background: #e7e7e3;
  border-radius: var(--dmd-radius);
}

.dmd-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmd-split__content {
  align-self: center;
}

.dmd-feature-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.dmd-feature-list__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 0.8rem;
}

.dmd-feature-list__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--dmd-success);
  border-radius: 50%;
}

.dmd-feature-list__icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.dmd-feature-list__item strong {
  display: block;
  margin-bottom: 0.18rem;
}

.dmd-feature-list__item p {
  margin: 0;
  color: var(--dmd-muted);
}

.dmd-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dmd-review {
  margin: 0;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-review__stars {
  color: var(--dmd-accent);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.dmd-review__quote {
  padding: 0;
  border: 0;
  margin: 1.35rem 0;
  color: var(--dmd-ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.dmd-review__author {
  margin-top: auto;
  font-weight: 800;
}

.dmd-review__source {
  color: var(--dmd-muted);
  font-size: 0.8rem;
}

/* Inventory */
.dmd-inventory-toolbar {
  position: relative;
  z-index: 20;
  padding-block: 1rem;
  background: var(--dmd-surface);
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-inventory-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dmd-inventory-toolbar__count {
  margin: 0;
  font-weight: 700;
}

.dmd-inventory-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dmd-filter-toggle {
  display: none;
}

.dmd-sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dmd-sort__label {
  color: var(--dmd-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.dmd-sort__select {
  min-height: 44px;
  padding: 0.55rem 2.3rem 0.55rem 0.75rem;
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line-dark);
  border-radius: 6px;
}

.dmd-inventory-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}

.dmd-filter-panel {
  position: sticky;
  top: calc(var(--dmd-header-height) + 20px);
  max-height: calc(100vh - var(--dmd-header-height) - 40px);
  overflow: auto;
  scrollbar-width: thin;
}

.dmd-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-filter-panel__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.dmd-filter-panel__close {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--dmd-line);
  border-radius: 50%;
}

.dmd-filter-panel__body {
  display: grid;
  gap: 1rem;
  padding-block: 1.2rem;
}

.dmd-filter-panel__footer {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dmd-line);
}

.dmd-filter-overlay {
  display: none;
}

.dmd-filter-group {
  padding: 0;
  border: 0;
}

.dmd-filter-group__legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.dmd-filter-group__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.dmd-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.dmd-filter-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  color: var(--dmd-ink-soft);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.dmd-filter-chip:hover {
  border-color: var(--dmd-ink);
}

.dmd-filter-chip svg {
  width: 0.8rem;
  height: 0.8rem;
}

.dmd-inventory-results {
  min-width: 0;
}

.dmd-inventory-results .dmd-vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dmd-empty {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-empty__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--dmd-muted);
}

.dmd-empty__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: 2rem;
  font-weight: 800;
}

.dmd-empty__text {
  max-width: 48ch;
  margin: 0.75rem auto 1.5rem;
  color: var(--dmd-muted);
}

.dmd-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  margin: 3rem 0 0;
  list-style: none;
}

.dmd-pagination__link,
.dmd-pagination__current {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 0.55rem;
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line-dark);
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.dmd-pagination__link:hover,
.dmd-pagination__current {
  color: #fff;
  background: var(--dmd-ink);
  border-color: var(--dmd-ink);
}

/* Vehicle single */
.dmd-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 1.1rem 0;
  margin: 0;
  color: var(--dmd-muted);
  font-size: 0.84rem;
  list-style: none;
}

.dmd-breadcrumbs li:not(:last-child)::after {
  margin-left: 0.35rem;
  color: var(--dmd-line-dark);
  content: "/";
}

.dmd-breadcrumbs a {
  text-decoration: none;
}

.dmd-breadcrumbs a:hover {
  color: var(--dmd-accent-dark);
}

.dmd-vehicle-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 2rem;
}

.dmd-vehicle-head__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 0.95;
}

.dmd-vehicle-head__variant {
  margin: 0.5rem 0 0;
  color: var(--dmd-muted);
  font-size: 1.08rem;
}

.dmd-vehicle-head__price {
  flex: 0 0 auto;
  font-family: var(--dmd-font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.dmd-vehicle-head__price small {
  display: block;
  margin-top: 0.45rem;
  color: var(--dmd-muted);
  font-family: var(--dmd-font-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.dmd-vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.dmd-gallery {
  min-width: 0;
}

.dmd-gallery__stage {
  position: relative;
  overflow: hidden;
  background: #e3e3df;
  border-radius: var(--dmd-radius);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}

.dmd-gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmd-gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0.42rem 0.65rem;
  color: #fff;
  background: rgba(16, 24, 32, 0.82);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.dmd-gallery__favourite {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

.dmd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.dmd-gallery__thumb {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #e3e3df;
  border: 2px solid transparent;
  border-radius: 5px;
  aspect-ratio: 4 / 3;
}

.dmd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmd-gallery__thumb:hover,
.dmd-gallery__thumb[aria-current="true"] {
  border-color: var(--dmd-accent);
}

.dmd-gallery__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--dmd-ink);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(16, 24, 32, 0.14);
  transform: translateY(-50%);
}

.dmd-gallery__control--previous {
  left: 12px;
}

.dmd-gallery__control--next {
  right: 12px;
}

.dmd-gallery__control:hover {
  color: #fff;
  background: var(--dmd-ink);
}

.dmd-vehicle-aside {
  position: sticky;
  top: calc(var(--dmd-header-height) + 20px);
}

.dmd-enquiry-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-top: 4px solid var(--dmd-accent);
  border-radius: 0 0 var(--dmd-radius) var(--dmd-radius);
  box-shadow: var(--dmd-shadow-sm);
}

.dmd-enquiry-card__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.dmd-enquiry-card__text {
  margin: 0.65rem 0 1.15rem;
  color: var(--dmd-muted);
}

.dmd-enquiry-card__actions {
  display: grid;
  gap: 0.65rem;
}

.dmd-enquiry-card__note {
  margin: 1rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.8rem;
  text-align: center;
}

.dmd-spec-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--dmd-line);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-spec-bar__item {
  padding: 1rem;
  background: var(--dmd-surface);
}

.dmd-spec-bar__label {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--dmd-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmd-spec-bar__value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.dmd-vehicle-content {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.dmd-vehicle-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.dmd-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.dmd-spec-table th,
.dmd-spec-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--dmd-line);
  text-align: left;
}

.dmd-spec-table th {
  width: 48%;
  color: var(--dmd-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.dmd-spec-table td {
  font-weight: 700;
}

.dmd-equipment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}

.dmd-equipment__group-title {
  margin: 0 0 0.8rem;
  font-family: var(--dmd-font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.dmd-equipment__list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dmd-equipment__item {
  position: relative;
  padding-left: 1.2rem;
  color: var(--dmd-ink-soft);
}

.dmd-equipment__item::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--dmd-accent);
  border-radius: 50%;
}

/* Finance */
.dmd-finance-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-finance-calculator__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dmd-finance-calculator__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  background: var(--dmd-ink);
  border-radius: var(--dmd-radius);
}

.dmd-finance-calculator__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmd-finance-calculator__amount {
  margin: 0.35rem 0;
  font-family: var(--dmd-font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dmd-finance-calculator__suffix {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.dmd-finance-calculator__disclaimer {
  margin: 1rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.dmd-range {
  width: 100%;
  height: 4px;
  margin-block: 0.6rem;
  background: var(--dmd-line);
  border-radius: 999px;
  appearance: none;
}

.dmd-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  background: var(--dmd-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--dmd-accent);
  appearance: none;
}

.dmd-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--dmd-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--dmd-accent);
}

.dmd-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--dmd-line);
  border: 1px solid var(--dmd-line);
}

.dmd-step {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--dmd-surface);
}

.dmd-step__number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 2rem;
  place-items: center;
  color: #fff;
  background: var(--dmd-accent);
  border-radius: 50%;
  font-family: var(--dmd-font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.dmd-step__title {
  margin: 0;
  font-family: var(--dmd-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.dmd-step__text {
  margin: 0.65rem 0 0;
  color: var(--dmd-muted);
}

/* Content, team, location and contact */
.dmd-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.dmd-story__media {
  overflow: hidden;
  border-radius: var(--dmd-radius);
  aspect-ratio: 5 / 4;
}

.dmd-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmd-contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.dmd-contact-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--dmd-line);
  list-style: none;
}

.dmd-contact-list__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-contact-list__icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: var(--dmd-accent);
}

.dmd-contact-list__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--dmd-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dmd-contact-list__value {
  font-weight: 700;
  text-decoration: none;
}

.dmd-hours {
  width: 100%;
  border-collapse: collapse;
}

div.dmd-hours {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--dmd-line);
  border-bottom: 1px solid var(--dmd-line);
}

div.dmd-hours strong {
  margin-bottom: 0.25rem;
}

div.dmd-hours span {
  color: var(--dmd-muted);
}

.dmd-hours th,
.dmd-hours td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-hours th {
  color: var(--dmd-muted);
  font-weight: 600;
  text-align: left;
}

.dmd-hours td {
  font-weight: 700;
  text-align: right;
}

.dmd-map {
  min-height: 420px;
  overflow: hidden;
  background: #dedfdc;
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-map > div {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(244, 241, 234, 0.98), rgba(244, 241, 234, 0.78)),
    repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(16, 24, 32, 0.04) 22px, rgba(16, 24, 32, 0.04) 24px);
}

body.admin-bar .dmd-header {
  top: 32px;
}

.dmd-map iframe,
.dmd-map img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  object-fit: cover;
}

.dmd-faq {
  border-top: 1px solid var(--dmd-line);
}

.dmd-faq__item {
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-faq__question {
  position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.dmd-faq__question::-webkit-details-marker {
  display: none;
}

.dmd-faq__question::after {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  font-family: var(--dmd-font-display);
  font-size: 1.7rem;
  font-weight: 700;
  content: "+";
  transform: translateY(-50%);
}

.dmd-faq__item[open] .dmd-faq__question::after {
  content: "−";
}

.dmd-faq__answer {
  max-width: 70ch;
  padding: 0 2.5rem 1.25rem 0;
  color: var(--dmd-muted);
}

.dmd-faq__answer > *:first-child {
  margin-top: 0;
}

.dmd-cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--dmd-accent-dark);
}

.dmd-cta-band__inner {
  display: grid;
  min-height: 280px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.dmd-cta-band__title {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-family: var(--dmd-font-display);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.96;
}

.dmd-cta-band__text {
  max-width: 58ch;
}

.dmd-cta-band__text p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.dmd-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.dmd-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #0b1117;
}

.dmd-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 0.6fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.dmd-footer .dmd-logo {
  color: #fff;
}

.dmd-footer .dmd-logo__text small {
  color: rgba(255, 255, 255, 0.58);
}

.dmd-footer__intro {
  max-width: 42ch;
  margin: 1.25rem 0 0;
}

.dmd-footer__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dmd-footer__links {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.dmd-footer__link {
  text-decoration: none;
}

.dmd-footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.dmd-footer__bottom {
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.dmd-footer__bottom-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.78rem;
}

.dmd-footer__legal {
  max-width: 80ch;
  margin: 0;
}

.dmd-footer__social {
  display: flex;
  gap: 0.5rem;
}

.dmd-footer__social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.dmd-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dmd-footer__social-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.dmd-mobile-actions {
  display: none;
}

/* Notices and loading */
.dmd-notice {
  padding: 0.9rem 1rem;
  color: var(--dmd-ink-soft);
  background: var(--dmd-surface);
  border: 1px solid var(--dmd-line);
  border-left: 4px solid var(--dmd-accent);
  border-radius: 0 var(--dmd-radius-sm) var(--dmd-radius-sm) 0;
}

.dmd-notice--success {
  border-left-color: var(--dmd-success);
}

.dmd-notice--error {
  border-left-color: var(--dmd-danger);
}

.dmd-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.65;
}

.dmd-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  content: "";
  border: 3px solid var(--dmd-line);
  border-top-color: var(--dmd-accent);
  border-radius: 50%;
  animation: dmd-spin 700ms linear infinite;
}

@keyframes dmd-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Homepage v2 — compact, dealership-led layout */
.dmd-home {
  color: var(--dmd-ink);
  background: var(--dmd-surface);
}

.dmd-home :where(h1, h2, h3, p, figure, blockquote) {
  padding: 0;
  border: 0;
}

.dmd-home-hero {
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
  background: var(--dmd-paper);
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-home-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.dmd-home-hero__content {
  max-width: 580px;
}

.dmd-home-hero__context,
.dmd-home-kicker {
  margin: 0 0 0.8rem;
  color: var(--dmd-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dmd-home-hero__title {
  max-width: 14ch;
  margin: 0;
  color: var(--dmd-ink);
  font-family: var(--dmd-font-body);
  font-size: clamp(2.85rem, 5vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -0.047em;
  line-height: 1.01;
  text-wrap: balance;
}

.dmd-home-hero__intro {
  max-width: 56ch;
  margin: 1.3rem 0 0;
  color: var(--dmd-ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.dmd-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.dmd-home-hero__stock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.dmd-home-hero__stock::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--dmd-success);
  border-radius: 50%;
}

.dmd-home-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dce2e7;
  border-radius: var(--dmd-radius);
  box-shadow: var(--dmd-shadow-sm);
  aspect-ratio: 16 / 10;
}

.dmd-home-hero__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.dmd-home-hero__media > img,
.dmd-home-hero__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dmd-home-featured {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: min(390px, calc(100% - 2rem));
  gap: 0.18rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 36, 58, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(16, 36, 58, 0.16);
  backdrop-filter: blur(8px);
}

.dmd-home-featured__label {
  color: var(--dmd-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dmd-home-featured__name {
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmd-home-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--dmd-ink);
  font-weight: 800;
}

.dmd-home-featured__meta a {
  color: var(--dmd-accent-dark);
  font-size: 0.88rem;
  text-decoration: none;
}

.dmd-home-featured__meta a:hover {
  text-decoration: underline;
}

.dmd-home-search {
  padding-block: 1.55rem;
  background: var(--dmd-surface);
  border-bottom: 1px solid var(--dmd-line);
}

.dmd-home-search__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.dmd-home-search__heading h2,
.dmd-home-section-heading h2,
.dmd-home-visit__heading h2 {
  margin: 0;
  color: var(--dmd-ink);
  font-family: var(--dmd-font-body);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.dmd-home-search__heading h2 {
  font-size: 1.65rem;
}

.dmd-home-search__heading p {
  margin: 0.25rem 0 0;
  color: var(--dmd-muted);
  font-size: 0.9rem;
}

.dmd-home-search__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr)) auto auto;
  align-items: end;
  gap: 0.75rem;
}

.dmd-home-search__all {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding-inline: 0.35rem;
  color: var(--dmd-ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.dmd-home-stock,
.dmd-home-help {
  padding-block: clamp(3.75rem, 6vw, 5.25rem);
}

.dmd-home-stock {
  background: var(--dmd-surface);
}

.dmd-home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.dmd-home-section-heading h2,
.dmd-home-visit__heading h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.dmd-home-section-heading--narrow {
  max-width: 680px;
}

.dmd-home-proof {
  background: var(--dmd-surface-soft);
  border-block: 1px solid var(--dmd-line);
}

.dmd-home-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmd-home-proof__item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 1.45rem clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid var(--dmd-line);
}

.dmd-home-proof__item:last-child {
  border-right: 1px solid var(--dmd-line);
}

.dmd-home-proof__item strong {
  font-size: 0.98rem;
}

.dmd-home-proof__item span {
  color: var(--dmd-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.dmd-home-help {
  background: var(--dmd-surface);
}

.dmd-home-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dmd-home-action {
  display: grid;
  min-height: 310px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--dmd-ink);
  background: var(--dmd-surface-soft);
  border: 1px solid var(--dmd-line);
  border-radius: var(--dmd-radius);
}

.dmd-home-action--dark {
  color: #fff;
  background: var(--dmd-ink);
  border-color: var(--dmd-ink);
}

.dmd-home-action__number {
  margin: 0 0 2.4rem;
  color: var(--dmd-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.dmd-home-action h3 {
  margin: 0;
  font-family: var(--dmd-font-body);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.dmd-home-action > p:not(.dmd-home-action__number) {
  max-width: 52ch;
  margin: 0.85rem 0 1.5rem;
  color: var(--dmd-muted);
}

.dmd-home-action--dark > p:not(.dmd-home-action__number) {
  color: rgba(255, 255, 255, 0.72);
}

.dmd-home-action > a {
  width: fit-content;
  align-self: end;
  color: var(--dmd-accent-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.dmd-home-action--dark > a {
  color: var(--dmd-accent-soft);
}

.dmd-home-visit {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  background: var(--dmd-paper);
  border-top: 1px solid var(--dmd-line);
}

.dmd-home-visit__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  align-items: end;
  gap: 2rem clamp(2.5rem, 6vw, 5rem);
}

.dmd-home-visit__details {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.25rem;
}

.dmd-home-visit__details > div {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.dmd-home-visit__details span {
  color: var(--dmd-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.dmd-home-visit__details strong,
.dmd-home-visit__details a {
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-decoration: none;
}

.dmd-home-visit__actions {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Tablet */
@media (max-width: 1180px) {
  .dmd-inventory-results .dmd-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-header__inner {
    gap: 1rem;
  }

  .dmd-nav__list {
    gap: 1rem;
  }

  .dmd-header__actions .dmd-button {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --dmd-header-height: 70px;
  }

  .dmd-topbar__items > :not(:first-child) {
    display: none;
  }

  .dmd-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .dmd-nav-toggle {
    display: inline-flex;
  }

  .dmd-nav {
    position: fixed;
    z-index: 950;
    top: calc(var(--dmd-header-height) + 38px);
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem var(--dmd-gutter) 2rem;
    overflow-y: auto;
    visibility: hidden;
    background: var(--dmd-paper);
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .dmd-header.dmd-is-scrolled .dmd-nav {
    top: var(--dmd-header-height);
  }

  .dmd-nav.dmd-is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .dmd-nav__list {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .dmd-nav__link {
    min-height: 62px;
    justify-content: space-between;
    border-bottom: 1px solid var(--dmd-line);
    font-family: var(--dmd-font-display);
    font-size: 1.65rem;
    font-weight: 800;
  }

  .dmd-nav__link::after {
    display: none;
  }

  .dmd-nav-open {
    overflow: hidden;
  }

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

  .dmd-search-form .dmd-button {
    grid-column: 1 / -1;
  }

  .dmd-grid,
  .dmd-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-grid--four,
  .dmd-shortcuts,
  .dmd-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-vehicle-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

  .dmd-footer__main {
    grid-template-columns: 1.4fr repeat(2, 0.6fr);
  }

  .dmd-footer__main > :last-child {
    grid-column: 2 / -1;
  }
}

/* Mobile */
@media (max-width: 781px) {
  :root {
    --dmd-gutter: 1.125rem;
    --dmd-header-height: 66px;
  }

  .dmd-site {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .dmd-topbar__inner {
    min-height: 34px;
    justify-content: center;
  }

  .dmd-topbar__items {
    gap: 0;
  }

  .dmd-topbar__secondary {
    display: none;
  }

  .dmd-logo__mark {
    width: 38px;
    height: 38px;
  }

  .dmd-logo__text {
    font-size: 1.08rem;
  }

  .dmd-header__call {
    display: none;
  }

  .dmd-nav {
    top: calc(var(--dmd-header-height) + 62px);
  }

  .dmd-header.dmd-is-scrolled .dmd-nav {
    top: var(--dmd-header-height);
  }

  body.admin-bar .dmd-header {
    top: 46px;
  }

  .dmd-hero {
    min-height: 640px;
  }

  .dmd-hero__media::after {
    background: linear-gradient(0deg, rgba(10, 17, 23, 0.94) 0%, rgba(10, 17, 23, 0.65) 54%, rgba(10, 17, 23, 0.18) 100%);
  }

  .dmd-hero__inner {
    padding-block: 4rem;
  }

  .dmd-display {
    font-size: clamp(3.15rem, 15vw, 4.8rem);
  }

  .dmd-title {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .dmd-hero__actions,
  .dmd-cta-band__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dmd-hero__actions .dmd-button,
  .dmd-cta-band__actions .dmd-button {
    width: 100%;
    min-height: 52px;
  }

  .dmd-search-panel {
    margin-top: 0;
    background: var(--dmd-surface);
  }

  .dmd-search-panel__inner {
    width: 100%;
    padding: 1.25rem var(--dmd-gutter);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dmd-search-form,
  .dmd-form__grid,
  .dmd-form__grid--three,
  .dmd-grid,
  .dmd-grid--two,
  .dmd-grid--four,
  .dmd-vehicle-grid,
  .dmd-review-grid,
  .dmd-split,
  .dmd-split--reverse,
  .dmd-story,
  .dmd-contact-grid,
  .dmd-finance-calculator,
  .dmd-steps,
  .dmd-cta-band__inner {
    grid-template-columns: 1fr;
  }

  .dmd-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .dmd-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-shortcut {
    min-height: 140px;
    padding: 1rem;
  }

  .dmd-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dmd-review-grid {
    display: flex;
    gap: 0.8rem;
    padding: 0 var(--dmd-gutter) 0.75rem;
    margin-inline: calc(var(--dmd-gutter) * -1);
    overflow-x: auto;
    scroll-padding-left: var(--dmd-gutter);
    scroll-snap-type: x mandatory;
  }

  .dmd-review {
    min-width: min(86vw, 350px);
    scroll-snap-align: start;
  }

  .dmd-split__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .dmd-inventory-toolbar {
    position: sticky;
    top: var(--dmd-header-height);
  }

  html.dmd-js .dmd-filter-toggle {
    display: inline-flex;
  }

  .dmd-sort__label {
    display: none;
  }

  .dmd-sort__select {
    max-width: 150px;
  }

  .dmd-inventory-layout {
    display: block;
    padding-top: 1.25rem;
  }

  html.dmd-js .dmd-filter-panel {
    position: fixed;
    z-index: 1200;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(86vh, 760px);
    padding: 1rem var(--dmd-gutter) calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    visibility: hidden;
    background: var(--dmd-surface);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -24px 70px rgba(16, 24, 32, 0.24);
    opacity: 0;
    transform: translateY(100%);
    transition: visibility 240ms ease, opacity 240ms ease, transform 240ms ease;
  }

  html.dmd-js .dmd-filter-panel.dmd-is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  html.dmd-js .dmd-filter-panel__header {
    position: sticky;
    z-index: 2;
    top: -1rem;
    padding-block: 1rem;
    background: var(--dmd-surface);
  }

  html.dmd-js .dmd-filter-panel__footer {
    position: sticky;
    z-index: 2;
    bottom: calc(-1rem - env(safe-area-inset-bottom));
    padding-block: 1rem calc(1rem + env(safe-area-inset-bottom));
    background: var(--dmd-surface);
  }

  html.dmd-js .dmd-filter-panel__close {
    display: grid;
  }

  html.dmd-js .dmd-filter-overlay {
    position: fixed;
    z-index: 1190;
    display: block;
    visibility: hidden;
    background: rgba(10, 17, 23, 0.62);
    opacity: 0;
    inset: 0;
    transition: visibility 240ms ease, opacity 240ms ease;
  }

  html.dmd-js .dmd-filter-overlay.dmd-is-open {
    visibility: visible;
    opacity: 1;
  }

  .dmd-filter-open {
    overflow: hidden;
  }

  .dmd-inventory-results .dmd-vehicle-grid {
    grid-template-columns: 1fr;
  }

  .dmd-vehicle-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .dmd-vehicle-head__price {
    text-align: left;
  }

  .dmd-vehicle-layout,
  .dmd-vehicle-content__grid {
    grid-template-columns: 1fr;
  }

  .dmd-vehicle-aside {
    position: static;
  }

  .dmd-enquiry-card {
    box-shadow: none;
  }

  .dmd-gallery__thumbs {
    display: flex;
    gap: 0.45rem;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .dmd-gallery__thumb {
    min-width: 84px;
    scroll-snap-align: start;
  }

  .dmd-gallery__control {
    width: 42px;
    height: 42px;
  }

  .dmd-spec-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-equipment,
  .dmd-finance-calculator__fields {
    grid-template-columns: 1fr;
  }

  .dmd-cta-band__inner {
    align-items: start;
  }

  .dmd-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .dmd-footer__brand {
    grid-column: 1 / -1;
  }

  .dmd-footer__main > :last-child {
    grid-column: auto;
  }

  .dmd-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dmd-mobile-actions {
    position: fixed;
    z-index: 850;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0.55rem;
    padding: 0.65rem var(--dmd-gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--dmd-line);
    box-shadow: 0 -12px 34px rgba(16, 24, 32, 0.12);
    backdrop-filter: blur(12px);
  }

  .dmd-mobile-actions .dmd-button {
    min-height: 50px;
  }

  .dmd-site.dmd-has-mobile-actions {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 479px) {
  .dmd-shortcuts,
  .dmd-trust-grid,
  .dmd-spec-bar,
  .dmd-footer__main {
    grid-template-columns: 1fr;
  }

  .dmd-vehicle-card__specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dmd-inventory-toolbar__count {
    max-width: 9ch;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .dmd-filter-toggle,
  .dmd-sort__select {
    min-height: 46px;
  }

  .dmd-footer__brand,
  .dmd-footer__main > :last-child {
    grid-column: auto;
  }
}

/* Homepage and navigation responsive refinements. Kept after the legacy rules
   so the homepage does not inherit the old one-column jump at 781px. */
@media (max-width: 1180px) {
  .dmd-header__call span {
    display: none;
  }

  .dmd-home-search__inner {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .dmd-home-search__form {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
  }

  .dmd-home-search__all {
    grid-column: 1 / -1;
    min-height: 36px;
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) {
  .dmd-nav,
  .dmd-header.dmd-is-scrolled .dmd-nav {
    top: var(--dmd-nav-top, calc(var(--dmd-header-height) + 38px));
  }

  .dmd-home-hero__layout {
    gap: 2rem;
  }

  .dmd-home-hero__title {
    font-size: clamp(2.6rem, 5vw, 3.3rem);
  }

  .dmd-home-search__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .dmd-home-search__heading {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
  }

  .dmd-home-search__heading p {
    margin: 0;
  }

  .dmd-home-search__form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  }

  .dmd-home-search__all {
    grid-column: auto;
    min-height: 48px;
    justify-content: center;
  }

  .dmd-home-proof__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-home-proof__item:nth-child(3) {
    border-top: 1px solid var(--dmd-line);
  }

  .dmd-home-proof__item:nth-child(4) {
    border-top: 1px solid var(--dmd-line);
    border-right: 1px solid var(--dmd-line);
  }

  .dmd-home-visit__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .dmd-home-visit__actions {
    grid-column: auto;
  }
}

@media (max-width: 781px) {
  .dmd-topbar__inner {
    justify-content: center;
  }

  .dmd-topbar__items {
    display: none;
  }

  .dmd-topbar__link {
    min-height: 44px;
    font-weight: 700;
  }

  .dmd-nav,
  .dmd-header.dmd-is-scrolled .dmd-nav {
    top: var(--dmd-nav-top, calc(var(--dmd-header-height) + 62px));
  }

  .dmd-logo {
    max-width: min(58vw, 250px);
  }

  .dmd-logo__text {
    font-size: 1rem;
  }

  .dmd-home-hero {
    padding-block: 2.5rem;
  }

  .dmd-home-hero__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
  }

  .dmd-home-hero__content {
    max-width: 650px;
  }

  .dmd-home-hero__title {
    max-width: 16ch;
    font-size: clamp(2.35rem, 5vw, 2.75rem);
  }

  .dmd-home-hero__intro {
    margin-top: 1rem;
  }

  .dmd-home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.45rem;
  }

  .dmd-home-hero__actions .dmd-button {
    width: 100%;
  }

  .dmd-home-hero__media {
    min-height: 360px;
    align-self: stretch;
    aspect-ratio: auto;
  }

  .dmd-home-search {
    padding-block: 1.35rem;
  }

  .dmd-home-search__heading {
    display: block;
  }

  .dmd-home-search__heading p {
    margin-top: 0.2rem;
  }

  .dmd-home-search__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-home-search__form .dmd-button,
  .dmd-home-search__all {
    width: 100%;
  }

  .dmd-home .dmd-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-home .dmd-vehicle-card:nth-child(n + 5) {
    display: none;
  }

  .dmd-home-stock,
  .dmd-home-help {
    padding-block: 3.25rem;
  }

  .dmd-home-section-heading {
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
  }

  .dmd-home-section-heading h2,
  .dmd-home-visit__heading h2 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .dmd-home-help__grid {
    grid-template-columns: 1fr;
  }

  .dmd-home-action {
    min-height: 270px;
  }

  .dmd-home-visit__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-home-visit__details > :first-child {
    grid-column: 1 / -1;
  }

  .dmd-home-visit__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dmd-footer__brand {
    grid-column: 1 / -1;
  }

  .dmd-footer__main > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  .dmd-logo__text small {
    display: none;
  }

  .dmd-home-hero__actions,
  .dmd-home-search__form,
  .dmd-home .dmd-vehicle-grid,
  .dmd-home-visit__details,
  .dmd-home-visit__actions {
    grid-template-columns: 1fr;
  }

  .dmd-home-hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dmd-home-hero__title {
    font-size: clamp(2.5rem, 6vw, 3rem);
  }

  .dmd-home-hero__media {
    height: clamp(220px, 65vw, 380px);
    min-height: 0;
    align-self: auto;
    aspect-ratio: auto;
  }

  .dmd-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmd-footer__brand,
  .dmd-footer__main > :last-child {
    grid-column: 1 / -1;
  }

  .dmd-home-search__all {
    grid-column: 1;
  }

  .dmd-home .dmd-vehicle-card:nth-child(4) {
    display: none;
  }

  .dmd-home-section-heading {
    flex-direction: column;
  }

  .dmd-home-section-heading .dmd-button {
    width: 100%;
  }

  .dmd-home-visit__details > :first-child {
    grid-column: auto;
  }
}

@media (max-width: 479px) {
  :root {
    --dmd-gutter: 1rem;
  }

  .dmd-demo-strip {
    padding-block: 0.42rem;
    font-size: 0.7rem;
  }

  .dmd-logo {
    max-width: 56vw;
  }

  .dmd-logo::before {
    height: 32px;
  }

  .dmd-home-hero {
    padding-block: 2rem;
  }

  .dmd-home-hero__title {
    font-size: clamp(2.35rem, 9vw, 2.75rem);
  }

  .dmd-home-hero__media {
    height: clamp(220px, 68vw, 300px);
  }

  .dmd-home-featured {
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    width: calc(100% - 1.4rem);
    padding: 0.8rem 0.9rem;
  }

  .dmd-home-featured__name {
    font-size: 0.98rem;
  }

  .dmd-home-featured__label {
    display: none;
  }

  .dmd-home-proof__item {
    padding: 1.1rem 0.85rem;
  }

  .dmd-home-proof__item span {
    display: none;
  }

  .dmd-home-action {
    min-height: 0;
  }

  .dmd-home-action__number {
    margin-bottom: 1.6rem;
  }

  .dmd-footer__main {
    grid-template-columns: 1fr;
  }

  .dmd-footer__brand,
  .dmd-footer__main > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) and (max-height: 520px) and (orientation: landscape) {
  .dmd-home-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }

  .dmd-home-hero__title {
    font-size: 2.35rem;
  }

  .dmd-home-hero__intro {
    font-size: 0.98rem;
  }

  .dmd-home-hero__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmd-site *,
  .dmd-site *::before,
  .dmd-site *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .dmd-topbar,
  .dmd-header,
  .dmd-footer,
  .dmd-mobile-actions,
  .dmd-favourite,
  .dmd-gallery__control,
  .dmd-enquiry-card,
  .dmd-cta-band {
    display: none !important;
  }

  .dmd-site {
    color: #000;
    background: #fff;
  }

  .dmd-container {
    width: 100%;
  }

  .dmd-vehicle-layout {
    display: block;
  }
}
