/* ==========================================================================
   Sonak Toyota — site stylesheet (single file)
   1. Shared: fonts, tokens, reset, header, footer, components (mobile-first)
   2. Shared responsive layer (min-width queries: 576 / 768 / 992 / 1200 / 1280)
   3. Page sections: About us, Contact us, Used car details, Used car listing
      — each page block only targets markup that exists on that page
   ========================================================================== */

/* ==========================================================================
   Sonak Toyota — global styles
   Mobile-first base (Figma "Home - Mobile", 360px). Breakpoints: shared responsive layer below
   ========================================================================== */

/* Fonts — Outfit (SIL Open Font License, see font/OFL.txt)
   ========================================================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Outfit-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Outfit-Regular-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/Outfit-Medium.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/Outfit-Medium-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Outfit-SemiBold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Outfit-SemiBold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Outfit-Bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Outfit-Bold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../font/Outfit-ExtraBold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../font/Outfit-ExtraBold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../font/Outfit-Black.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../font/Outfit-Black-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — Contact Us headings and dealer list, as specified in Figma (SIL Open Font License, see font/OFL-Inter.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Inter-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Inter-Regular-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Inter-SemiBold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Inter-SemiBold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Inter-Bold.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Inter-Bold-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens
   ========================================================================== */
:root {
  --font-base: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-inter: 'Inter', var(--font-base);

  --color-primary: #eb0a1e;
  --color-primary-dark: #c4081a; /* hover / pressed */
  --color-black: #000;
  --color-white: #fff;
  --color-ink: #24272c;
  --color-muted: rgba(0, 0, 0, .7);
  --color-subtle: rgba(0, 0, 0, .4);
  --color-border: rgba(0, 0, 0, .15);
  --color-divider: rgba(36, 39, 44, .1);
  --color-blush: #fff7f5;
  --color-peach: #fff0ec;
  --color-mist: #f9f9f9;
  --color-silver: #e0e0e2;
  --color-error: #c8001a; /* brand red darkened to pass AA on #F9F9F9 */

  --shadow-header: 0 4px 12px rgba(59, 65, 74, .06);
  --shadow-button: 0 8px 8px rgba(243, 70, 83, .2);
  --shadow-control: 0 4px 12px rgba(0, 0, 0, .1);
  --shadow-raised: 0 8px 26px rgba(0, 0, 0, .15);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 26px;

  --container: 1140px;
  --gutter: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-scroll-locked {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

picture img {
  width: 100%;
  height: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
  transform: translateY(-150%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Swiper helpers (only the core stylesheet is vendored) */
.swiper .swiper-notification {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1000;
  opacity: 0;
  pointer-events: none;
}

.swiper-button-lock,
.swiper-pagination-lock {
  display: none !important;
}

/* Layout primitives
   ========================================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 28px;
}

.section-title {
  flex: 1;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

/* Breadcrumb (inner pages; shown from the desktop breakpoint) */
.breadcrumb {
  display: none;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 13px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background: url('../image/icons/breadcrumb-arrow.svg') center / contain no-repeat;
}

.breadcrumb__item[aria-current='page'] {
  color: var(--color-subtle);
}

/* Logo: Figma crops the 200x33 raster (128.86% tall, -12.05% top offset) */
.logo {
  display: block;
  flex: none;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 41.2%;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
  transition: background-color .2s var(--ease);
}

.btn--primary:hover,
.btn--primary:active {
  background-color: var(--color-primary-dark);
}

.btn--primary:focus-visible {
  outline-color: var(--color-black);
}

.btn--outline {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xs);
  color: var(--color-primary);
  font-size: 13px;
  line-height: 18px;
}

/* Large outline button (48px), e.g. "Book Test Drive" beside a primary CTA */
.btn--ghost {
  padding: 0 20px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.btn--ghost:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Round slider arrows (desktop) */
.slider-nav {
  display: none;
  gap: 20px;
}

.slider-nav__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 60px;
  background: var(--color-white);
  box-shadow: var(--shadow-control);
  transition: opacity .2s var(--ease);
}

.slider-nav__btn img {
  width: 20px;
  height: 20px;
}

.slider-nav__btn:disabled {
  opacity: .5;
  cursor: default;
}

/* "View cars" round arrow link */
.link-arrow {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 7.714px;
  background: var(--color-white);
  transition: background-color .25s var(--ease);
}

.link-arrow::before,
.link-arrow::after {
  content: '';
  position: absolute;
  top: calc(50% - .45px);
  left: 4.86px;
  width: 5.714px;
  height: 5.714px;
  background: url('../image/icons/arrow-link.svg') center / contain no-repeat;
  transform: translateY(-50%);
  transition: opacity .25s var(--ease), translate .25s var(--ease);
}

.link-arrow::after {
  background-image: url('../image/icons/arrow-link-white.svg');
  opacity: 0;
}

.link-arrow--red::before {
  top: calc(50% - .18px);
  left: auto;
  right: 4.43px;
  background-image: url('../image/icons/arrow-link-red.svg');
}

.link-arrow--red::after {
  content: none;
}

/* Header
   ========================================================================== */
.header {
  position: relative;
  z-index: 20;
  background: var(--color-white);
  box-shadow: var(--shadow-header);
}

.header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas:
    'menu logo . city'
    'search search search search';
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 12px 0 16px;
}

.header__menu-btn {
  grid-area: menu;
  position: relative;
  width: 16px;
  height: 16px;
}

/* 40px touch target without changing the 16px icon footprint */
.header__menu-btn::before {
  content: '';
  position: absolute;
  inset: -12px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 1px 0;
}

.hamburger span {
  width: 10.931px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-black);
}

.hamburger span:nth-child(2) {
  width: 15.931px;
}

.header__logo {
  grid-area: logo;
  width: 141px;
  height: 18px;
}

.header__city {
  grid-area: city;
  margin-right: 4px;
}

.header__search {
  grid-area: search;
}

.header__nav {
  display: none;
}

/* Search field */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.search:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Ring the whole pill for the text field only; buttons show their own */
@supports selector(:has(*)) {
  .search:focus-within {
    outline: none;
  }

  .search:has(.search__input:focus-visible) {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

.search__submit {
  flex: none;
}

.search__icon {
  width: 16px;
  height: 16px;
}

.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-black);
  -webkit-appearance: none;
  appearance: none;
}

.search__input::placeholder {
  color: var(--color-subtle);
  opacity: 1;
}

.search__input:focus-visible {
  outline: none;
}

.search__voice {
  flex: none;
  width: 20px;
  height: 20px;
}

.search__voice img {
  width: 20px;
  height: 20px;
}

/* City selector */
.city-select {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-muted);
  white-space: nowrap;
}

.city-select__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.city-select__caret {
  flex: none;
  width: 12px;
  height: 12px;
}

.city-select__label--desktop {
  display: none;
}

/* Desktop "More" dropdown (structure lives in the header nav) */
.dropdown {
  position: relative;
}

.dropdown__caret {
  width: 16px;
  height: 16px;
  transition: rotate .2s var(--ease);
}

.dropdown__toggle[aria-expanded='true'] .dropdown__caret {
  rotate: 180deg;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 160px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-raised);
}

.dropdown__link {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Side navigation (dialog)
   ========================================================================== */
.side-nav {
  --panel-width: min(300px, 100% - 60px);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--color-black);
}

.side-nav::backdrop {
  background: rgba(0, 0, 0, .66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.side-nav.is-open::backdrop {
  opacity: 1;
}

.side-nav__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--panel-width);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-white);
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
}

.side-nav.is-open .side-nav__panel {
  transform: none;
}

/* Opening the menu focuses the panel (autofocus) rather than the logo link, so no
   ring shows on open; Tab still moves on to the links with their usual ring */
.side-nav__panel:focus-visible {
  outline: none;
}

.side-nav__header {
  padding: 23px 20px 22px;
  border-bottom: 1px solid var(--color-border);
}

.side-nav__logo {
  width: 141px;
  height: 18px;
}

.side-nav__list {
  padding: 10px 10px 0 0;
}

.side-nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 4px 10px 4px 6px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Current page, plus hover and the press itself: blush row, brand-red label and icon */
.side-nav__link.is-active,
.side-nav__link:hover,
.side-nav__link:active {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-blush);
  color: var(--color-primary);
}

/* Icons are drawn in black; this tints them to --color-primary (#EB0A1E) */
.side-nav__link.is-active .side-nav__icon img,
.side-nav__link:hover .side-nav__icon img,
.side-nav__link:active .side-nav__icon img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(94%) saturate(6948%) hue-rotate(352deg) brightness(90%) contrast(106%);
}

.side-nav__link:focus-visible {
  outline-offset: -2px;
}

.side-nav__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: 8px;
}

.side-nav__icon img {
  width: auto;
  height: auto;
  max-width: none;
}

.side-nav__close {
  position: absolute;
  top: 16px;
  left: calc(var(--panel-width) + 14px);
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.side-nav.is-open .side-nav__close {
  opacity: 1;
}

.side-nav__close img {
  width: 32px;
  height: 32px;
}

/* City picker (dialog)
   ========================================================================== */
.city-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--color-black);
}

.city-modal::backdrop {
  background: rgba(9, 8, 8, .5);
}

/* Small screens: pinned near the top so the keyboard never hides the list */
.city-modal__box {
  position: absolute;
  top: 72px;
  left: 50%;
  width: min(550px, 100% - 32px);
  padding: 8px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .05);
  transform: translateX(-50%);
}

.city-modal__content {
  position: relative;
  padding: 32px 24px 24px;
}

.city-modal__title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 31px;
}

.city-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: #f5f6fa;
}

.city-field__label {
  font-size: 10px;
  line-height: 12px;
  opacity: .7;
}

.city-field__input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  caret-color: var(--color-black);
}

/* The caret marks focus here, as in Figma's typing state */
.city-field__input:focus-visible {
  outline: none;
}

.city-dropdown {
  position: absolute;
  top: calc(100% + 3.5px);
  left: 0;
  z-index: 1;
  width: calc(100% - 2px);
  padding: 11px 10px 10px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(44, 46, 63, .1);
}

/* Four rows visible; the rest scroll behind a 4px thumb */
.city-dropdown__list {
  max-height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.city-dropdown__list::-webkit-scrollbar {
  width: 4px;
}

.city-dropdown__list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #bdbec0;
}

@supports not selector(::-webkit-scrollbar) {
  .city-dropdown__list {
    scrollbar-width: thin;
    scrollbar-color: #bdbec0 transparent;
  }
}

.city-dropdown__option {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
}

.city-dropdown__option.is-active {
  border-radius: var(--radius-md);
  background: var(--color-blush);
}

.city-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .7);
}

.city-modal__close img {
  width: 10px;
  height: 10px;
}

/* Hero
   ========================================================================== */
/* Each slide is one Figma banner image (mobile art below 768px, desktop above) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.hero__banner {
  display: block;
}

.hero__banner img {
  width: 100%;
  height: auto;
}

.hero__pagination {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 17px;
  height: 22px;
  transform: translateX(-50%);
}

.hero__bullet {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
}

/* Enlarge the hit area to 24px without affecting layout */
.hero__bullet::before {
  content: '';
  position: absolute;
  inset: -9px;
}

.hero__bullet svg {
  display: none;
  width: 22px;
  height: 22px;
  overflow: visible;
}

.hero__bullet.is-active {
  width: 22px;
  height: 22px;
  background: none;
}

.hero__bullet.is-active svg {
  display: block;
}

.hero__ring-track {
  fill: none;
  stroke: var(--color-black);
  stroke-opacity: .2;
  stroke-width: 2;
}

/* Autoplay progress: --progress (0 → 1) is driven from main.js */
.hero__ring-progress {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 62.832;
  stroke-dashoffset: calc(62.832 * (1 - var(--progress, 0)));
}

.hero__nav {
  display: none;
}

/* Recently added cars
   ========================================================================== */
.recent {
  padding: 40px 0;
  overflow: hidden;
  background: var(--color-blush);
}

.recent__head {
  margin-bottom: 20px;
}

/* Cards bleed past the container on small screens; the section clips them */
.recent__slider {
  overflow: visible;
}

/* Sizes match Swiper's computed values so initialising causes no shift */
.recent__item {
  width: 270px;
  height: auto;
  display: flex;
}

.results__item {
  display: flex;
  height: 100%;
}

/* Pre-init gap only: Swiper measures 'auto' slides including CSS margins
   and then adds spaceBetween, so the margin must go once it takes over */
.recent__slider:not(.swiper-horizontal) .recent__item,
.reviews__slider:not(.swiper-horizontal) .review {
  margin-right: 10px;
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

/* Figma paints the stroke above the photo, so draw the border on top */
.car-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border);
  border-radius: inherit;
  pointer-events: none;
}

.car-card__media {
  position: relative;
  flex: none;
  height: 184px;
}

.car-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card__badge {
  position: absolute;
  top: 150px;
  left: .125px;
  display: flex;
  align-items: center;
  width: 94px;
  height: 24px;
  padding: 0 8px;
  border-radius: 22px;
  box-shadow: 0 1px 4px rgba(36, 39, 44, .08);
}

.car-card__badge img {
  flex: none;
  width: 78px;
  height: 32px;
  max-width: none;
}

.car-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: -2px;
  padding: 14px 16px 16px;
}

/* Figma: one line, cut with an ellipsis ("2019 Honda Jazz V CVT...") */
.car-card__title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.car-card__title a:hover {
  color: var(--color-primary);
}

.car-card__specs {
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Figma: 20px between the title/specs block and the price row */
.car-card__meta {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.car-card__price {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* The price's "*" must not stretch the 28px line */
.car-card__price sup {
  line-height: 0;
}

.car-card__location {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 6px;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.car-card__location img {
  width: 12px;
  height: 12px;
}

.car-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.car-card__actions .btn {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.car-card__actions .btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Sonak Toyota advantage
   ========================================================================== */
.advantage {
  padding: 40px 0;
}

.advantage__title {
  margin-bottom: 20px;
}

/* Phones: the desktop photo cards two by two, icon and title only. The description
   and every hover effect belong to the desktop layer (≥992, hover-capable pointers) */
.advantage__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  aspect-ratio: 3 / 4;
  padding: 16px 8px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  background-position: center;
  background-size: cover;
  background-blend-mode: normal, multiply, normal;
  color: var(--color-white);
  text-align: center;
}

.advantage-card--inspection {
  background-image:
    linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)),
    linear-gradient(180deg, rgba(50, 0, 0, 0) 54%, rgba(50, 0, 0, .7)),
    url('../image/advantage/inspection.webp');
}

.advantage-card--verified {
  background-image:
    linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)),
    linear-gradient(180deg, rgba(50, 0, 0, 0) 54%, rgba(50, 0, 0, .7)),
    url('../image/advantage/verified.webp');
}

/* No photo of its own in Figma (it was the hover state there): reuse the transfer shot */
.advantage-card--assurance,
.advantage-card--transfer {
  background-image:
    linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)),
    linear-gradient(180deg, rgba(50, 0, 0, 0) 54%, rgba(50, 0, 0, .7)),
    url('../image/advantage/transfer.webp');
}

.advantage-card__icon {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}

/* Icon geometry reproduces each Figma instance's insets in the 72px desktop box,
   as fractions so the same artwork scales to any box size */
.advantage-card__icon img {
  position: absolute;
}

.advantage-card--inspection .advantage-card__icon img {
  top: .75%;
  left: 4.7%;
  width: 86.553%;
  height: 98.507%;
}

.advantage-card--assurance .advantage-card__icon img {
  top: 4.56%;
  left: 8.442%;
  width: 80.324%;
  height: 94.003%;
}

.advantage-card--verified .advantage-card__icon img {
  top: 3.089%;
  left: 3.089%;
  width: 93.828%;
  height: 93.828%;
}

.advantage-card--transfer .advantage-card__icon img {
  top: -1.389%;
  left: 0;
  width: 100%;
  height: 101.389%;
}

/* Room for a three-line title, so the icons line up across a row */
.advantage-card__text {
  width: 100%;
  min-height: 54px;
}

.advantage-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.advantage-card__desc {
  display: none;
}

/* Cars by model
   ========================================================================== */
.models {
  padding-bottom: 40px;
}

.models__title {
  margin-bottom: 20px;
}

/* Every row is as tall as its tallest card and each card fills its cell, so all cards match */
.models__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.model-card,
.model-more {
  --stroke: .571px;
  position: relative;
  height: 100%;
  border-radius: 10px;
}

/* Figma strokes sit inside the frame and take no layout space */
.model-card::after,
.model-more::after {
  content: '';
  position: absolute;
  inset: 0;
  border: var(--stroke) solid var(--color-border);
  border-radius: inherit;
  pointer-events: none;
}

.model-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-silver) 68.919%, rgba(224, 224, 226, 0));
  transition: box-shadow .3s var(--ease);
}

/* Figma image band: 92px on the 155px phone cards, 161px on the 270px desktop cards (responsive layer);
   the photo fills the band edge to edge */
.model-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 155 / 92;
}

.model-card__media--bottom {
  align-items: flex-end;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 6px 12px 12px;
}

.model-card__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
}

.model-card__count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5.714px;
  margin-top: auto;
  font-size: 10px;
  line-height: 1.6;
  color: var(--color-muted);
}

.model-more {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 12px 12px;
}

.model-more__title {
  padding: 0 17.143px 0 5.714px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.model-more__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 6.857px 11.429px;
  border-radius: 6.857px;
  background: var(--color-peach);
}

.model-more__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 25.143px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary);
}

/* Sell your car
   ========================================================================== */
.sell {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  background: var(--color-peach);
}

/* Decorative topographic texture; Figma stretches it to the frame */
.sell::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1.05%;
  width: 102.1%;
  height: 94.87%;
  background: url('../image/sell/pattern.png') 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.sell__inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sell__content {
  display: flex;
  flex-direction: column;
}

.sell__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.sell__offer {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px 4px 0;
  border-radius: 17px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7));
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.sell__offer-text--desktop {
  display: none;
}

.sell__points {
  display: flex;
  gap: 20px;
  margin-top: 4px;
  padding-top: 20px;
}

.sell__point {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sell__point-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background: var(--color-white);
}

.sell__point-icon picture {
  width: 24px;
  height: 24px;
}

.sell__point-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.sell__visual {
  display: flex;
  justify-content: center;
  margin-inline: calc(var(--gutter) * -1);
  padding: 40px 0;
}

.sell__art {
  position: relative;
  width: min(100%, 552px);
}

.sell__house {
  width: 100%;
  height: auto;
}

.sell__car {
  position: absolute;
  top: 19.633%;
  left: 5.253%;
  width: 72.101%;
  height: auto;
}

.sell__car--shadow {
  opacity: .6;
}

.sell__btn {
  width: 100%;
}

/* Customer reviews
   ========================================================================== */
.reviews__box {
  margin-inline: calc(var(--gutter) * -1);
  padding: 40px var(--gutter);
  border-radius: var(--radius-lg);
  background: var(--color-mist);
}

.reviews__head {
  margin-bottom: 20px;
}

.reviews__head .section-title {
  white-space: nowrap;
}

/* Two thumbnails per row; the active review's text spans the full width */
.review {
  width: calc((100% - 10px) / 2);
  height: auto;
}

.review__media {
  position: relative;
  aspect-ratio: 155 / 215;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.review__media picture,
.review__image {
  width: 100%;
  height: 100%;
}

.review__image {
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.review:not(.swiper-slide-active) .review__media {
  opacity: .5;
}

.review__body {
  position: relative;
  width: calc(200% + 10px);
  margin-top: -49px;
  transition: opacity .4s var(--ease), visibility .4s;
}

.review:not(.swiper-slide-active) .review__body {
  visibility: hidden;
  opacity: 0;
}

.review__quote {
  width: 93.333px;
  height: 80px;
  transform: rotate(180deg);
}

.review__text {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
}

.review__author {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.review__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}

.review__city {
  font-size: 15px;
  line-height: 1.6;
}

/* Form fields (Contact Us page, "Sell your car" popup)
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
}

/* Figma sets this one label a size down */
.field--phone .field__label {
  font-size: 14px;
  line-height: 18px;
}

.field__control {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-black);
  font: inherit;
  font-size: 15px;
  line-height: 21px;
}

.field__control::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.field__control:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
  border-color: transparent;
}

.field__control[aria-invalid='true'] {
  border-color: var(--color-primary);
}

.field__control--select {
  padding-right: 41px;
  background: var(--color-white) url('../image/icons/select-arrow.svg') right 17px center / 14px 14px no-repeat;
  cursor: pointer;
  appearance: none;
}

/* "Select" reads as a placeholder until an option is chosen */
.field__control--select:has(option[value='']:checked) {
  color: var(--color-muted);
}

.field__control--select option {
  color: var(--color-black);
}

.field__control--textarea {
  height: 100px;
  min-height: 100px;
  padding: 12px 17px;
  resize: vertical;
}

.field__error,
.help-block,
.help-block-error,
.has-error .help-block,
.has-error .help-block-error {
  color: #ff0000;
  font-size: 13px;
  line-height: 18px;
  margin-top: 4px;
  display: block;
}

.has-error .field__control,
.has-error input,
.has-error textarea,
.has-error select {
  border-color: #ff0000;
}

/* Captcha: drawn on a canvas by js/main.js; the box clips it like the Figma image */
.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha__box {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 2px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.captcha__image {
  display: block;
  width: 100%;
  height: 58px;
}

.captcha__reload {
  flex: none;
  height: 36px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--color-black);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.form-submit {
  width: 100%;
  padding: 0 24px;
  border-radius: var(--radius-md);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

/* Live region: always in the accessibility tree, takes no space while empty */
.form-status {
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.form-status:not(:empty) {
  margin-top: 12px;
}

/* "Sell your car" popup — full-screen sheet on phones (Figma "Sell Car" 360),
   a centred card from 576px (responsive layer)
   ========================================================================== */
.sell-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--color-black);
}

.sell-modal[open] {
  display: flex;
}

.sell-modal::backdrop {
  background: rgba(9, 8, 8, .5);
}

.sell-modal__box {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  background: var(--color-white);
}

.sell-modal__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.sell-modal__body {
  flex: 1;
  min-height: 0;
  padding: 24px 0 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sell-modal__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 24px;
}

.sell-modal__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 0 20px;
}

.sell-modal__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.sell-modal__intro {
  font-size: 13px;
  line-height: 21px;
}

.sell-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  padding: 0 20px;
}

/* Bottom bar: Figma's 1px top rule is inside its 12px padding */
.sell-modal__foot {
  flex: none;
  padding: 11px 20px 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.sell-modal__close {
  display: none;
}

/* "Thank you" popup
   ========================================================================== */
.thankyou-modal__box {
  text-align: center;
  align-items: center;
}

.thankyou-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 36px 20px 24px;
}

.thankyou-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.thankyou-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(235, 10, 30, 0.08);
  margin-bottom: 20px;
}

.thankyou-modal__icon img {
  width: 52px;
  height: 52px;
}

.thankyou-modal__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.thankyou-modal__desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.thankyou-modal__info {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.thankyou-modal__action {
  width: 100%;
}

.thankyou-modal__btn {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Footer
   ========================================================================== */
/* One footer site-wide (Figma "Footer" component): white on phones, #F9F9F9
   with the desktop layout (responsive layer) — never the page's own background */
.footer {
  position: relative;
  background: var(--color-white);
  color: var(--color-ink);
}

/* Inside stroke, as in Figma: the divider takes no layout space */
.footer__main {
  box-shadow: inset 0 -1px 0 var(--color-divider);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 0;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  height: 32px;
}

.footer__logo img {
  width: 187px;
  height: 24px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__company {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.footer__contact-item--address {
  align-items: flex-start;
}

.footer__contact-item::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
}

.footer__contact-item--address::before {
  margin-block: 4px;
}

/* Icons sit inside the 16px slot exactly as in the Figma instances */
.footer__contact-icon {
  position: absolute;
  top: calc(50% - 7.417px);
  left: .583px;
  width: 14.834px;
  height: 14.834px;
}

.footer__contact-item--address .footer__contact-icon {
  top: 4.583px;
  left: 1.25px;
  width: 13.502px;
  height: 14.833px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__social-label {
  display: none;
  font-size: 12px;
  line-height: 17px;
  color: var(--color-black);
}

.social {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 3.73px 0 2.25px;
}

.social__link {
  display: block;
}

.social__link picture {
  width: 24px;
  height: 24px;
}

.social__link--youtube picture {
  width: 32px;
  height: 32px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.footer__links-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.footer__links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__link {
  font-size: 15px;
  line-height: 1.6;
}

/* Underline only on hover / keyboard focus */
.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.footer__bottom {
  padding: 20px 0;
}

.footer__copyright {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-black);
}

/* Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  ::backdrop {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ==========================================================================
   Sonak Toyota — responsive layer (mobile-first, min-width queries only)
   ≥576   large phones: lists and grids start to widen; "Sell your car" popup card
   ≥768   tablets: 32px gutter, multi-column lists
   ≥992   desktop section layouts (Figma "Home", 1440px)
   ≥1200  desktop header and full-size desktop values
   ≥1280  hero side arrows (enough margin beside the 1140px container)
   ========================================================================== */

/* ≥576 — large phones
   ========================================================================== */
@media (min-width: 576px) {
  .models__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review {
    width: min(calc((100% - 10px) / 2), 260px);
  }

  /* "Sell your car": centred card (Figma "Sell Car", 1440: 480 wide) */
  .sell-modal[open] {
    padding: 16px;
    overflow-y: auto;
  }

  .sell-modal__box {
    flex: none;
    width: 480px;
    max-width: 100%;
    margin: auto;
    padding: 24px 30px 30px;
    border-radius: 24px;
    box-shadow: 0 6px 5px rgba(0, 0, 0, .05);
  }

  .sell-modal__body {
    flex: none;
    padding: 0;
    overflow: visible;
  }

  .sell-modal__back {
    display: none;
  }

  .sell-modal__head {
    gap: 8px;
    margin-top: 0;
    padding: 0;
  }

  .sell-modal__title {
    font-weight: 700;
    line-height: 30px;
  }

  .sell-modal__intro {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 24px;
  }

  .sell-modal__fields {
    padding: 0;
  }

  .sell-modal__foot {
    margin-top: 24px;
    padding: 0;
    border-top: 0;
  }

  .sell-modal__close {
    position: absolute;
    top: 14.5px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 20px;
    background: var(--color-white);
  }

  .model-card__media {
    aspect-ratio: 270 / 161;
  }
}

/* ≥768 — tablets
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  /* City picker: Figma centres the card 78px above the viewport middle */
  .city-modal__box {
    top: calc(50% - 78px);
    transform: translate(-50%, -50%);
  }

  /* Tablets: the four cards in one row */
  .advantage__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

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

  /* Hero: pagination sits 39px above the bottom of the 630px desktop banner */
  .hero__pagination {
    bottom: 6.19%;
  }
}

/* ≥992 — desktop sections
   ========================================================================== */
@media (min-width: 992px) {
  :root {
    --gutter: 40px;
  }

  .section-title {
    font-size: 36px;
    line-height: 43px;
  }

  .slider-nav {
    display: flex;
  }


  /* Recently added cars
     ------------------------------------------------------------------------ */
  .recent {
    padding: 60px 0 100px;
  }

  .recent__head {
    margin-bottom: 40px;
  }

  .recent__slider {
    overflow: hidden;
  }

  .recent__item {
    width: calc((100% - 40px) / 3);
  }

  .recent__slider:not(.swiper-horizontal) .recent__item {
    margin-right: 20px;
  }

  .reviews__slider:not(.swiper-horizontal) .review {
    margin-right: 24px;
  }

  /* Advantage — photo cards; the description reveals on hover
     ------------------------------------------------------------------------ */
  .advantage {
    padding: 100px 0;
  }

  .advantage__title {
    margin-bottom: 40px;
    text-align: center;
  }

  .advantage__list {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .advantage-card {
    position: relative;
    isolation: isolate;
    flex: 1;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    height: 360px;
    aspect-ratio: auto;
    padding: 66px 30px 0;
    border-radius: var(--radius-lg);
    transition: box-shadow .35s var(--ease);
  }

  /* Active treatment (Figma card 2): warm gradient over white */
  .advantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 205, 87, .7), rgba(230, 1, 33, .7)), var(--color-white);
    opacity: 0;
    transition: opacity .35s var(--ease);
  }

  /* Resting state: content sits low (icon top at 206px, 72px icon) */
  .advantage-card__icon,
  .advantage-card__text {
    transform: translateY(140px);
    transition: transform .35s var(--ease);
  }

  .advantage-card__icon {
    width: 72px;
    height: 72px;
    transform-origin: 50% 100%;
  }

  .advantage-card__text {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .advantage-card__title {
    font-size: 20px;
    line-height: 24px;
  }

  .advantage-card__desc {
    display: block;
    font-size: 13.333px;
    line-height: 21px;
    opacity: 0;
    transition: opacity .35s var(--ease);
  }

  /* Cars by model
     ------------------------------------------------------------------------ */
  .models {
    padding-bottom: 100px;
  }

  .models__title {
    margin-bottom: 40px;
    text-align: center;
  }

  .models__grid {
    gap: 20px;
  }

  .model-card,
  .model-more {
    --stroke: 1px;
    border-radius: var(--radius-lg);
  }

  .model-card__body {
    gap: 2px;
    padding: 6px 20px 20px 24px;
  }

  .model-card__name {
    font-size: 24px;
    line-height: 26px;
  }

  .model-card__count {
    gap: 10px;
    font-size: 15px;
    line-height: 24px;
  }

  .link-arrow {
    width: 27px;
    height: 27px;
    border-radius: 13.5px;
  }

  .link-arrow::before,
  .link-arrow::after {
    top: calc(50% - .28px);
    left: 8.5px;
    width: 10px;
    height: 10px;
  }

  .link-arrow--red::before {
    top: calc(50% + .19px);
    left: auto;
    right: 8.5px;
  }

  .model-more {
    gap: 17px;
    padding: 21px 20px 20px;
  }

  .model-more__title {
    padding: 0 30px 0 10px;
    font-size: 22px;
    line-height: 31px;
  }

  .model-more__cta {
    padding: 12px 20px;
    border-radius: var(--radius-md);
  }

  .model-more__label {
    height: 44px;
    font-size: 16px;
    line-height: 22px;
  }

  /* Sell your car — two columns: copy left, illustration right
     ------------------------------------------------------------------------ */
  .sell {
    min-height: 461px;
    padding: 0;
    background: var(--color-blush);
  }

  .sell::before {
    height: 100%;
  }

  .sell__inner {
    display: grid;
    grid-template-areas:
      'content visual'
      'cta visual';
    grid-template-columns: 535px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    row-gap: 40px;
    padding: 60px 0;
  }

  .sell__content {
    grid-area: content;
  }

  .sell__title {
    width: 434px;
    font-size: 36px;
    line-height: 43px;
  }

  .sell__offer {
    margin-top: 10px;
    font-size: 18px;
    line-height: 25px;
  }

  .sell__offer-text--mobile {
    display: none;
  }

  .sell__offer-text--desktop {
    display: inline;
  }

  .sell__points {
    width: 544px;
    margin-top: 10px;
    padding-top: 30px;
  }

  .sell__point {
    gap: 8px;
  }

  .sell__point-icon {
    width: 52px;
    height: 52px;
  }

  .sell__point-icon picture {
    width: 28px;
    height: 28px;
  }

  .sell__point-label {
    font-size: 15px;
    line-height: 21px;
    white-space: nowrap;
  }

  .sell__break {
    display: none;
  }

  .sell__visual {
    display: block;
    grid-area: visual;
    align-self: center;
    height: 330px;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .sell__art {
    width: min(552px, 100% - 32px);
    margin: 4px 0 0 32px;
  }

  .sell__car {
    left: 3.08%;
  }

  .sell__cta {
    grid-area: cta;
  }

  .sell__btn {
    width: auto;
  }

  /* Customer reviews — active review: photo + quote; next photo peeks
     ------------------------------------------------------------------------ */
  .reviews {
    padding: 100px 0;
  }

  .reviews__box {
    margin-inline: 0;
    padding: 60px 40px;
    overflow: hidden;
    border-radius: var(--radius-xl);
  }

  .reviews__head {
    margin-bottom: 30px;
  }

  .reviews__slider {
    overflow: visible;
  }

  .review {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 773px;
  }

  .review__media {
    flex: none;
    width: 303px;
    height: 420px;
    aspect-ratio: auto;
    transform-origin: 0 50%;
  }

  .review:not(.swiper-slide-active) .review__media {
    opacity: .6;
    transform: scale(.8845);
  }

  .review__body {
    flex: 1;
    width: auto;
    min-width: 0;
    margin-top: 0;
    padding-right: 10px;
  }

  .review__quote {
    transform: none;
  }

  .review__text {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 500;
    line-height: 29px;
  }

  .review__name {
    font-size: 24px;
    line-height: 34px;
  }

  /* Footer — brand left, quick links right, social in the bottom bar
     ------------------------------------------------------------------------ */
  .footer {
    background: var(--color-mist);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 0;
  }

  .footer__brand {
    flex: 0 1 694px;
    gap: 30px;
  }

  .footer__logo img {
    width: 250px;
    height: 32px;
  }

  .footer__links {
    flex: none;
    width: 200px;
    margin-top: 0;
  }

  .footer__social {
    position: absolute;
    right: max(var(--gutter), (100% - var(--container)) / 2);
    bottom: 20px;
    height: 26px;
  }

  .footer__social-label {
    display: block;
  }

  .social {
    width: 150px;
  }

  .social__link picture {
    width: 16px;
    height: 16px;
  }

  .social__link--youtube picture {
    width: 20px;
    height: 20px;
  }

  .footer__bottom {
    display: flex;
    align-items: center;
    min-height: 66px;
  }
}

/* Pointer hover effects (Figma shows them on "Innova Crysta" and card 2)
   ========================================================================== */
@media (min-width: 992px) and (hover: hover) {
  .advantage-card:hover {
    box-shadow: var(--shadow-raised);
  }

  .advantage-card:hover::before,
  .advantage-card:hover .advantage-card__desc {
    opacity: 1;
  }

  .advantage-card:hover .advantage-card__text {
    transform: none;
  }

  .advantage-card:hover .advantage-card__icon {
    transform: scale(.6667);
  }

  .model-card:hover {
    box-shadow: var(--shadow-raised);
  }

  .model-card:hover .link-arrow {
    background-color: var(--color-primary);
  }

  .model-card:hover .link-arrow::before,
  .model-card:hover .link-arrow::after {
    translate: 5px 0;
  }

  .model-card:hover .link-arrow::before {
    opacity: 0;
  }

  .model-card:hover .link-arrow::after {
    opacity: 1;
  }
}

/* ≥1200 — desktop header and full-size values
   ========================================================================== */
@media (min-width: 1200px) {
  .header {
    box-shadow: 0 4px 8px rgba(59, 65, 74, .1);
  }

  .header__inner {
    grid-template-columns: auto 1fr auto 1fr auto auto;
    grid-template-areas: 'logo . search . nav city';
    column-gap: 0;
    row-gap: 0;
    height: 72px;
    padding: 0;
  }

  .header__menu-btn {
    display: none;
  }

  .breadcrumb {
    display: block;
    margin-top: 20px;
    padding: 10px 0;
  }

  .header__logo {
    width: 250px;
    height: 32px;
  }

  .header__search {
    width: 300px;
    border-color: rgba(51, 51, 51, .15);
  }

  .search__submit {
    order: 1;
  }

  .search__icon {
    width: 12px;
    height: 12px;
  }

  .search__input::placeholder {
    color: rgba(51, 51, 51, .4);
  }

  .search__voice {
    display: none;
  }

  .header__nav {
    display: block;
    grid-area: nav;
    margin-right: 40px;
  }

  /* Pinned to Figma's 282px nav frame so item positions don't depend on
     sub-pixel text metrics (24px is the minimum gap) */
  .nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 282px;
    height: 52px;
  }

  .nav-list__link {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    color: var(--color-black);
  }

  .header__city {
    margin-right: 0;
    padding: 0 15px;
    border: 1px solid var(--color-border);
    color: var(--color-black);
  }

  .city-select__label--mobile {
    display: none;
  }

  .city-select__label--desktop {
    display: inline;
  }

  .model-card__name {
    font-size: 32px;
    line-height: 35px;
  }

  .model-more__title {
    font-size: 29px;
    line-height: 41px;
  }

  .recent__item {
    width: calc((100% - 60px) / 4);
  }
}

/* ≥1280 — hero side arrows (Figma: 50px from the frame edges at 1440)
   ========================================================================== */
@media (min-width: 1280px) {
  .hero__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 60px;
    background: var(--color-white);
    box-shadow: var(--shadow-control);
    transition: opacity .2s var(--ease), background-color .2s var(--ease);
  }

  .hero__nav--prev {
    left: max(16px, (100% - var(--container)) / 2 - 100px);
  }

  .hero__nav--next {
    right: max(16px, (100% - var(--container)) / 2 - 102px);
  }

  .hero__nav-icon {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
  }

  /* Only "prev disabled" and "next enabled" are drawn in Figma;
     the other two states mirror those same assets. */
  .hero__nav--prev .hero__nav-icon--active,
  .hero__nav--next .hero__nav-icon--disabled {
    transform: scaleX(-1);
  }

  .hero__nav-icon--disabled,
  .hero__nav:disabled .hero__nav-icon--active {
    display: none;
  }

  .hero__nav:disabled .hero__nav-icon--disabled {
    display: block;
  }

  .hero__nav:disabled {
    background: var(--color-black);
    box-shadow: none;
    opacity: .1;
    cursor: default;
  }
}

/* ==========================================================================
   About us — page styles (mobile-first, Figma "About Us - Mobile", 360px)
   Header, footer, tokens and the advantage cards come from
   the shared section above. Its breakpoints follow directly after it.
   ========================================================================== */

/* Mobile frame: everything between the header and the footer sits on #F9F9F9 */
.page-about {
  background: var(--color-mist);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 40px 0 45px;
}

/* Our story
   ========================================================================== */
.story {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 30px;
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.story__text,
.story__body p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 24px;
}

/* Figma draws the 4px rule inside the 24px left padding */
.story__highlight {
  padding: 10px 0 10px 20px;
  border-left: 4px solid var(--color-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.story__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.story__stat {
  color: var(--color-subtle);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.story__photo {
  border-radius: 20px;
}

.story__photo--showroom {
  display: none;
}

.story__photo--office {
  width: 100%;
  max-width: 418px;
  height: auto;
  aspect-ratio: 320 / 291;
  object-fit: cover;
}

/* Offer cards — the artwork is anchored right; on wider cards the card's own
   gradient (the same one baked into the art) carries on to the left.
   --u is 1px at the 320px design width and up, and shrinks the whole card
   (art, type, spacing) on phones narrower than 360px.
   ========================================================================== */
/* Offer banners — phones leave them out; they come back at ≥768 */
.promos {
  display: none;
  gap: 20px;
}

.promo {
  --u: min(1px, (100vw - 2 * var(--gutter)) / 320);
  --promo-accent: var(--color-primary);
  position: relative;
  isolation: isolate;
  display: block;
  height: calc(130 * var(--u));
  padding: calc(15 * var(--u)) calc(15 * var(--u)) 0;
  overflow: hidden;
  border-radius: calc(9.073 * var(--u));
  background: linear-gradient(#eecdb1, rgba(255, 255, 255, .1)) 0 0 / 100% calc(128.159 * var(--u)) no-repeat, var(--color-mist);
}

.promo--certified {
  --promo-accent: #1961ac;
  height: calc(131 * var(--u));
  background: linear-gradient(#c5d4e4, rgba(255, 255, 255, .1)) 0 0 / 100% calc(130.427 * var(--u)) no-repeat, var(--color-mist);
}

.promo__art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  max-width: none;
}

.promo__art img {
  width: auto;
  max-width: none;
  height: 100%;
}

.promo__title {
  color: var(--promo-accent);
  font-size: calc(15 * var(--u));
  font-weight: 700;
  line-height: calc(21 * var(--u));
  white-space: nowrap;
}

.promo__text {
  margin-top: calc(5 * var(--u));
  font-size: calc(12 * var(--u));
  font-weight: 600;
  line-height: calc(17 * var(--u));
}

/* Why Sonak Toyota
   ========================================================================== */
.why {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* "Why" graphic — phones leave it out; it comes back at ≥768 */
.why__media {
  display: none;
  width: 320px;
  aspect-ratio: 320 / 302;
}

.why__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.why__text {
  margin-top: 20px;
  font-size: 15px;
  line-height: 24px;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Figma top-aligns the text in its row and centres only the check */
.why__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.why__item::before {
  content: '';
  flex: none;
  align-self: center;
  width: 24px;
  height: 24px;
  background: url('../image/icons/check-circle.svg') center / contain no-repeat;
}

/* Sonak Toyota advantage — shared component; the mobile frame leaves it out */
.page-about .advantage {
  display: none;
}

/* ==========================================================================
   About us — responsive layer (mobile-first, min-width queries only)
   ≥768   offer cards (side by side) and the "Why" graphic appear
   ≥992   story and "Why Sonak" go two-column; the advantage cards join in
   ≥1200  desktop (Figma "About Us", 1440px): white page, photo collage,
          desktop artwork and type scale
   ========================================================================== */

/* ≥768
   ========================================================================== */
@media (min-width: 768px) {
  .promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why__media {
    display: block;
  }
}

/* ≥992
   ========================================================================== */
@media (min-width: 992px) {
  .about__inner {
    padding-bottom: 0;
  }

  .story,
  .why {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .story__content,
  .why__content {
    flex: 1;
    min-width: 0;
  }

  .story__media,
  .why__media {
    flex: none;
  }

  .story__media {
    width: 320px;
  }

  .page-about .advantage {
    display: block;
  }
}

/* ≥1200 — desktop
   ========================================================================== */
@media (min-width: 1200px) {
  .page-about {
    background: var(--color-white);
  }

  .about__inner {
    gap: 90px;
    padding-top: 100px;
  }

  /* Our story: text column beside the two-photo collage */
  .story__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
  }

  .story__body {
    gap: 24px;
    margin-top: 40px;
  }

  .story__text,
  .story__body p {
    font-size: 18px;
    line-height: 29px;
  }

  .story__highlight {
    font-size: 18px;
    line-height: 25px;
  }

  .story__media {
    position: relative;
    display: block;
    width: 488px;
    height: 459px;
  }

  .story__stat {
    position: absolute;
    top: 19px;
    left: 248px;
    white-space: nowrap;
    text-align: left;
  }

  .story__photo {
    position: absolute;
    border-radius: 16px;
  }

  .story__photo--showroom {
    display: block;
    top: 0;
    left: .42px;
    width: 231.739px;
    height: 192px;
  }

  .story__photo--office {
    top: 79px;
    left: 70.04px;
    width: 417.84px;
    max-width: none;
    height: 380px;
  }

  /* Offer cards */
  .promos {
    grid-template-columns: 591px minmax(0, 1fr);
    gap: 32px;
  }

  .promo {
    height: 230px;
    padding: 26.688px 26.688px 0;
    border-radius: 16px;
    background: linear-gradient(#eecdb1, rgba(255, 255, 255, .1)) 0 0 / 100% 226px no-repeat, var(--color-white);
  }

  .promo--certified {
    background: linear-gradient(#c5d4e4, rgba(255, 255, 255, .1)) 0 0 / 100% 230px no-repeat, var(--color-white);
  }

  .promo__title {
    font-size: 26.688px;
    line-height: 37px;
  }

  .promo__text {
    margin-top: 8.288px;
    font-size: 18px;
    line-height: 25px;
  }

  /* Why Sonak Toyota */
  .why__media {
    width: 387px;
    aspect-ratio: 387 / 365;
  }

  .why__title {
    font-size: 40px;
    line-height: 48px;
  }

  .why__text {
    font-size: 18px;
    line-height: 29px;
  }

  .why__list {
    margin-top: 40px;
  }
}

/* ==========================================================================
   Contact us — page styles (mobile-first, Figma "Contact Us - Mobile", 360px)
   Header, footer, tokens and buttons come from the shared section above.
   Its breakpoints follow directly after it.
   ========================================================================== */

/* Mobile frame: everything between the header and the dealer list sits on #F9F9F9 */
.page-contact {
  background: var(--color-mist);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 0 139px;
}

/* Enquiry form
   ========================================================================== */
/* Figma draws the 1px rule inside the 50px bottom padding */
.enquiry {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 49px;
  border-bottom: 1px solid var(--color-border);
}

.enquiry__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enquiry__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.enquiry__intro {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 24px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.enquiry-form__grid {
  display: grid;
  gap: 20px;
}

/* Fields, captcha and the submit button are shared (see "Form fields" above) */
.enquiry .field__control--textarea {
  height: 130px;
}

/* Reach out to us
   ========================================================================== */
.reach {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reach__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.reach__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reach__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reach__icon {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-white);
}

.reach__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.reach__label {
  font-size: 15px;
  line-height: 19px;
}

.reach__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  white-space: nowrap;
}

.reach__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The fading rule sits 1px above the 16px gap, as in Figma */
.reach__heading {
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  text-transform: uppercase;
}

.reach__heading::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 15px;
  background: linear-gradient(90deg, rgba(9, 8, 8, .16) 14.5%, rgba(9, 8, 8, 0) 103.6%);
}

.reach__phone {
  display: flex;
  flex-direction: column;
}

.reach__hours {
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
}

/* Dealerships
   ========================================================================== */
.dealers {
  padding: 50px 0;
  background: var(--color-blush);
}

.dealers__list {
  display: grid;
  gap: 50px;
}

.dealer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The mobile frame sets the dealer list in Inter (desktop: Outfit) */
.dealer__name {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.dealer__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 15px;
  font-style: normal;
  line-height: 24px;
}

.dealer__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dealer__row::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: center / contain no-repeat;
  opacity: .5;
}

.dealer__row--address::before {
  background-image: url('../image/icons/location-outline.svg');
}

.dealer__row--phone::before {
  background-image: url('../image/icons/mobile-outline.svg');
}

.dealer__text {
  flex: 1;
  min-width: 0;
}

/* Phone numbers never break at their hyphens (the fonts have no U+2011) */
.dealer__tel {
  white-space: nowrap;
}

/* ==========================================================================
   Contact us — responsive layer (mobile-first, min-width queries only)
   ≥768   form fields pair up; two-column dealer list
   ≥992   three-column dealer list
   ≥1200  desktop (Figma "Contact Us", 1440px): white page, form beside the
          contact column, desktop type scale
   ========================================================================== */

/* ≥768
   ========================================================================== */
@media (min-width: 768px) {
  .enquiry-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .enquiry-form .form-submit {
    width: auto;
  }

  .dealers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 40px;
  }
}

/* ≥992
   ========================================================================== */
@media (min-width: 992px) {
  .dealers__list {
    grid-template-columns: repeat(3, minmax(0, 352px));
  }
}

/* ≥1200 — desktop
   ========================================================================== */
@media (min-width: 1200px) {
  .page-contact {
    background: var(--color-white);
  }

  .contact__inner {
    flex-direction: row;
    align-items: flex-start;
    padding: 100px 0;
  }

  /* Form column: the divider is drawn inside its 50px right padding */
  .enquiry {
    flex: 1;
    min-width: 0;
    padding: 0 49px 0 0;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .enquiry__title,
  .reach__title {
    font-family: var(--font-inter);
    font-size: 40px;
    line-height: 48px;
  }

  .enquiry__intro {
    font-family: var(--font-inter);
    font-size: 18px;
    line-height: 29px;
  }

  .enquiry .field__control--textarea {
    height: 100px;
  }

  /* Contact column */
  .reach {
    flex: none;
    width: 420px;
  }

  .reach__icon {
    background: var(--color-mist);
  }

  .reach__phone {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  /* Dealer list: Outfit on desktop */
  .dealers {
    padding: 100px 0;
  }

  .dealer__name,
  .dealer__details {
    font-family: var(--font-base);
  }
}

/* ==========================================================================
   Used car details — page styles (mobile-first, Figma "Used Car Details-Mobile")
   Header, footer, tokens, buttons and the car-card slider come from
   the shared section above. Its breakpoints follow directly after it.
   ========================================================================== */

/* Mobile frame: content below the summary (and the footer) sits on #F9F9F9 */
.page-details {
  background: var(--color-mist);
}

.details__layout {
  display: flex;
  flex-direction: column;
}

/* Photo gallery
   ========================================================================== */
.gallery {
  margin-inline: calc(var(--gutter) * -1);
  background: var(--color-white);
}

.gallery__stage {
  position: relative;
}

.gallery__main {
  aspect-ratio: 360 / 202;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 59.3%;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 60px;
  box-shadow: var(--shadow-control);
}

.gallery__nav img {
  width: 12px;
  height: 12px;
}

.gallery__nav--prev {
  left: 10px;
  background: rgba(0, 0, 0, .4);
}

.gallery__nav--next {
  right: 10px;
  background: var(--color-white);
}

.gallery__counter {
  display: none;
}

.gallery__strip {
  position: relative;
  margin-top: 10px;
}

.gallery__strip-nav {
  display: none;
}

.gallery__thumb {
  position: relative;
  width: 90.459px;
  height: 71px;
  overflow: hidden;
  border-radius: 6.311px;
  opacity: .5;
  cursor: pointer;
  transition: opacity .3s var(--ease);
}

/* Pre-init gap only (see the car-card slider note in the shared section) */
.gallery__thumbs:not(.swiper-horizontal) .gallery__thumb {
  margin-right: 6.311px;
}

.gallery__thumbs:not(.swiper-horizontal) .gallery__thumb:first-child {
  margin-left: 20px;
}

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

.gallery__thumb.swiper-slide-thumb-active {
  opacity: 1;
}

/* Summary
   ========================================================================== */
.summary {
  margin-inline: calc(var(--gutter) * -1);
  background: var(--color-white);
}

.summary__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.summary__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.summary__badge {
  width: 49px;
  height: 20px;
}

.summary__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
}

/* "39K km  •  Petrol  •  Manual  •  1st Owner" — 12px text, 15px grey bullets */
.summary__specs {
  margin-top: -2px;
  font-size: 12px;
  line-height: 24px;
}

.summary__specs li {
  display: inline;
}

/* line-height 1 keeps the larger bullet from growing the 24px line box */
.summary__specs li + li::before {
  content: '•';
  margin: 0 4.99px;
  font-size: 15px;
  line-height: 1;
  color: var(--color-subtle);
}

.summary__perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.summary__perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 13px;
}

.summary__perk img {
  flex: none;
  width: 16px;
  height: 16px;
}

.summary__perk--inspection img {
  height: 14px;
  margin-block: 1px;
}

/* Inside stroke as in Figma: padding absorbs the dashed rule */
.summary__price {
  margin-top: 12px;
  padding: 10px 0 9px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

/* Grid, not flex: the two buttons pad differently but are equal (150px) */
.summary__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Panels: features and technical specifications
   ========================================================================== */
.panel {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.panel__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.features {
  margin-top: 20px;
}

.features__body {
  position: relative;
  margin-top: 20px;
}

/* Stacked list until the desktop slider takes over (js/main.js) */
.features__slider:not(.swiper-initialized) .swiper-wrapper {
  flex-direction: column;
  gap: 24px;
}

.features__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* Text starts 12.704px after the icon: Figma labels begin with a space */
.features__item {
  position: relative;
  min-height: 27.75px;
  padding: 2.125px 0 0 30.704px;
  font-size: 13px;
  line-height: 21px;
}

.features__item::before {
  content: '';
  position: absolute;
  top: 5.22px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url('../image/icons/check-feature.svg') center / contain no-repeat;
}

/* Mobile Figma sets the Comfort & Convenience list in 15px type */
.features__group:last-child .features__item {
  padding: .125px 0 0 31.12px;
  font-size: 15px;
  line-height: 24px;
}

.features__next {
  display: none;
}

.specs {
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Rows keep their own height when a neighbour wraps (Drive Type) */
.specs__list {
  display: grid;
  align-items: start;
  row-gap: 20px;
  margin-top: 20px;
}

.specs__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.specs__row--wrap {
  align-items: flex-start;
}

.specs__row dt {
  flex: none;
  width: 150px;
  line-height: 21px;
}

.specs__row dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  line-height: 18px;
  text-align: right;
}

/* Recommended used cars (shared .recent slider)
   ========================================================================== */
/* The Figma row keeps the off-screen 48px arrows, so the heading sits lower */
.recent--recommended .recent__head {
  min-height: 48px;
}

.recent--recommended .recent__slider:not(.swiper-horizontal) .recent__item {
  margin-right: 20px;
}

/* Figma's badge on this page: a 58x24 chip, 10px in, no padding */
.car-card__badge--sm {
  left: 10px;
  width: 58px;
  padding: 0;
}

.car-card__badge--sm img {
  width: 58px;
  height: 24px;
}

/* ==========================================================================
   Used car details — responsive layer (mobile-first, min-width queries only)
   ≥768   tablets: gallery and summary move inside the container; grids widen
   ≥1200  desktop (Figma "Used Car Details", 1440px): two columns, sticky summary
   ========================================================================== */

/* ≥768 — tablets
   ========================================================================== */
@media (min-width: 768px) {
  .gallery,
  .summary {
    margin-inline: 0;
    background: none;
  }

  .gallery {
    margin-top: 20px;
  }

  .gallery__main {
    aspect-ratio: 750 / 420;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .gallery__image {
    object-position: 50% 50%;
  }

  .gallery__nav--prev {
    left: 20px;
  }

  .gallery__nav--next {
    right: 20px;
  }

  /* Block, not flex: flex would drop the spaces around the slash */
  .gallery__counter {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: block;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .4);
    box-shadow: var(--shadow-control);
    font-size: 13px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-white);
    white-space: nowrap;
  }

  .gallery__slash {
    font-size: 12px;
  }

  .gallery__strip-nav {
    display: grid;
  }

  .gallery__strip .gallery__nav--prev {
    left: 10px;
  }

  .gallery__strip .gallery__nav--next {
    right: 10px;
  }

  .gallery__thumb {
    height: 90px;
    border-radius: var(--radius-sm);
  }

  .gallery__thumbs:not(.swiper-horizontal) .gallery__thumb {
    width: calc((100% - 32px) / 5);
    margin-right: 8px;
  }

  .gallery__thumbs:not(.swiper-horizontal) .gallery__thumb:first-child {
    margin-left: 0;
  }

  .summary {
    margin-top: 20px;
  }

  .summary__card {
    border-radius: var(--radius-lg);
    background: var(--color-white);
  }

  .features__slider:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .specs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: 20px;
  }

  .specs__row dd {
    flex: none;
    text-align: left;
    white-space: nowrap;
  }
}

/* ≥1200 — desktop
   ========================================================================== */
@media (min-width: 1200px) {
  .page-details {
    background: var(--color-white);
  }

  /* Two columns: gallery, features and specs left; summary card sticks right */
  .details__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
      'gallery summary'
      'features summary'
      'specs summary';
    align-items: start;
    gap: 20px 30px;
    margin-top: 4px;
  }

  .gallery {
    grid-area: gallery;
    margin-top: 0;
    padding-bottom: 30px;
  }

  .summary {
    grid-area: summary;
    position: sticky;
    top: 20px;
    margin-top: 0;
  }

  .summary__card {
    box-shadow: 0 4px 16px rgba(51, 56, 70, .1);
  }

  /* Figma strokes sit inside the frame: draw them without taking space */
  .summary__card::after,
  .panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border);
    border-radius: inherit;
    pointer-events: none;
  }

  .summary__title {
    margin-top: 2px;
    font-size: 20px;
    line-height: 28px;
  }

  .summary__specs {
    margin-top: 0;
  }

  .summary__perks {
    margin-top: 19px;
  }

  .summary__price {
    margin-top: 19px;
    padding: 1px 0 11px;
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
  }

  .panel {
    padding: 24px 30px;
  }

  .panel__title {
    font-size: 24px;
    line-height: 34px;
  }

  .features {
    grid-area: features;
    margin-top: 0;
  }

  .specs {
    grid-area: specs;
    margin: 0;
  }

  /* Three 210px columns; the arrow pages to the next category */
  .features__slider {
    width: calc(100% - 20px);
    margin: 0;
  }

  .features__title {
    font-size: 18px;
    line-height: 25px;
  }

  .features__list {
    margin-top: 20px;
  }

  /* Figma spaces the Interior list at 13px; the other lists use 10px */
  .features__group:first-child .features__list {
    gap: 13px;
  }

  .features__item,
  .features__group:last-child .features__item {
    min-height: 25px;
    padding: 2px 0 2px 30.704px;
    font-size: 13px;
    line-height: 21px;
  }

  /* Same three columns before Swiper initialises, so nothing shifts */
  .features__slider:not(.swiper-initialized) {
    overflow: hidden;
  }

  .features__slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .features__slider:not(.swiper-initialized) .features__group {
    flex: none;
    width: calc((100% - 40px) / 3);
  }

  .features__item::before {
    top: 5px;
  }

  .features__next {
    position: absolute;
    top: 117px;
    right: -20px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 60px;
    background: var(--color-primary);
    box-shadow: var(--shadow-control);
  }

  .features__next img {
    width: 12px;
    height: 12px;
  }

  .features__next:focus-visible {
    outline-color: var(--color-black);
  }

  /* Figma leaves 12px of white between this band and the footer */
  .recent--recommended {
    margin: 100px 0 12px;
  }

  .recent--recommended .recent__head {
    min-height: 0;
  }
}

/* ==========================================================================
   Used car listing — page styles (mobile-first, Figma "Used Car Listing-Mobile")
   Header, footer, tokens, buttons, breadcrumb and the car card come from
   the shared section above. Its breakpoints follow directly after it.

   One filter form serves both layouts: it is styled as the desktop sidebar
   inside .filters and as the mobile panel inside .filter-panel (js/main.js
   moves it between the two).
   ========================================================================== */

/* Results
   ========================================================================== */
.results {
  padding: 20px 0 27px;
}

.applied {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.applied__clear {
  flex: none;
  height: 32px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-primary);
}

.applied__list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* 1px inside stroke + 7px padding = Figma's 8px inset */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-peach);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-primary);
  white-space: nowrap;
}

.chip img {
  flex: none;
  width: 14px;
  height: 14px;
}

.sort-toggle {
  display: none;
}

/* Mobile: the menu opens above the floating Sort button */
.sort-menu {
  position: fixed;
  bottom: calc(58px + env(safe-area-inset-bottom));
  left: max(10px, (100% - 400px) / 2);
  z-index: 16;
  min-width: 220px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-raised);
}

.sort-menu__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sort-menu__option {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.sort-menu__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sort-menu__option:has(input:checked) {
  color: var(--color-primary);
}

.sort-menu__option:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.results__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.results__title:focus {
  outline: none;
}

.results__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

/* Mobile card (320x384): real 1px border, 218px photo, badge 12px in */
.results .car-card {
  height: auto;
  border: 1px solid var(--color-border);
}

.results .car-card::after {
  content: none;
}

/* 218px tall at Figma's 318px inner width (the photo frame is clipped there) */
.results .car-card__media {
  height: auto;
  aspect-ratio: 318 / 218;
}

.results .car-card__badge {
  top: auto;
  bottom: 10px;
  left: 12px;
  width: 78px;
  padding: 0;
}

/* Figma's text block is 320 wide inside the 318px content box */
.results .car-card__body {
  margin: 0 -2px 0 0;
}

/* Floating sort / filter bar (mobile, tablet)
   ========================================================================== */
.listing-bar {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 15;
  display: flex;
  width: min(100% - 20px, 400px);
  height: 40px;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: 0 4px 8px rgba(59, 65, 74, .3);
  translate: -50% 0;
  transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s;
}

/* Steps aside while the footer is on screen so it never covers it */
.listing-bar.is-hidden {
  visibility: hidden;
  opacity: 0;
  translate: -50% 20px;
  transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s .3s;
}

.listing-bar__btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

/* Inside stroke between the two halves */
.listing-bar__sort {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  box-shadow: inset -1px 0 0 var(--color-border);
}

.listing-bar__icon {
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: none;
}

.listing-bar__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 60px;
  background: var(--color-primary);
  box-shadow: var(--shadow-control);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-white);
}

.listing-bar__badge[hidden] {
  display: none;
}

/* Filters — shared form (desktop sidebar look; panel overrides further down)
   ========================================================================== */
.filters {
  display: none;
}

.filters__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 1px inside stroke + 15px padding = Figma's 16px */
.filter-group {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Floated legend behaves like a normal block (no fieldset-border notch) */
.filter-group__title {
  float: left;
  width: 100%;
  padding: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.filter-group__title + * {
  clear: both;
}

.filter-group__sub {
  margin-top: 16px;
}

.filter-group__subtitle {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group__scroll {
  padding-top: 2px;
  padding-right: 2px;
}

.filter-group__empty {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Models: 242px scroll area with Figma's 2px scrollbar (20px track inset) */
.filter-group__scroll--models {
  max-height: 242px;
  margin-top: 16px;
  margin-right: 2px;
  padding-right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.filter-group__scroll--models .filter-group__list {
  margin-right: 10px;
}

.filter-group__scroll--models::-webkit-scrollbar {
  width: 2px;
}

.filter-group__scroll--models::-webkit-scrollbar-track {
  margin: 20px 0;
  border-radius: 100px;
  background: var(--color-mist);
}

.filter-group__scroll--models::-webkit-scrollbar-thumb {
  border-radius: 100px;
  background: var(--color-border);
}

@supports not selector(::-webkit-scrollbar) {
  .filter-group__scroll--models {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-mist);
  }
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-option[hidden] {
  display: none;
}

/* 18px box centred in Figma's 24px checkbox slot */
.filter-option__input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.filter-option__input:checked {
  border-color: transparent;
  background: var(--color-primary) url('../image/icons/check-filter.svg') center / 12px no-repeat;
}

.filter-option__label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  cursor: pointer;
}

.filter-option__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.4;
}

.filter-option__count {
  flex: none;
  line-height: 1.6;
  text-align: right;
}

.filter-option--logo {
  gap: 12px;
}

.filter-option--logo img {
  width: 73px;
  height: 30px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--color-mist);
}

.filter-search::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background: url('../image/icons/search-bold.svg') center / contain no-repeat;
}

.filter-search:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.filter-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.filter-search__input::placeholder {
  color: var(--color-subtle);
  opacity: 1;
}

.filter-search__input:focus-visible {
  outline: none;
}

/* Budget: values + dual range slider on a stepped price scale */
.budget__values {
  display: flex;
  justify-content: space-between;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
}

/* Figma mixes 24px and 21px line heights here, which sets the glyphs 1px
   lower than CSS does; nudge without changing the 24px row */
.budget__value {
  position: relative;
  top: 1px;
}

.budget__value b {
  font-weight: 600;
}

/* Track spans the column. Thumbs are 24px touch targets drawing Figma's
   12px handle; inputs overhang 12px a side so thumb centres reach both ends */
.range {
  position: relative;
  height: 2px;
  margin-top: 13px;
  border-radius: 100px;
  background: var(--color-mist);
}

.range::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--lo) * 1%);
  right: calc(100% - var(--hi) * 1%);
  border-radius: 100px;
  background: var(--color-primary);
}

.range__input {
  position: absolute;
  top: -11px;
  left: -12px;
  width: calc(100% + 24px);
  height: 24px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range__input::-webkit-slider-runnable-track {
  height: 24px;
  background: none;
}

.range__input::-moz-range-track {
  height: 24px;
  background: none;
}

.range__input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: url('../image/icons/range-handle.svg') center / 12px no-repeat;
  cursor: grab;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.range__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: url('../image/icons/range-handle.svg') center / 12px no-repeat;
  cursor: grab;
  pointer-events: auto;
}

.range__input:focus-visible {
  outline: none;
}

/* Focus ring hugs the 12px handle inside the 24px target */
.range__input:focus-visible::-webkit-slider-thumb {
  box-shadow: inset 0 0 0 3px var(--color-white), inset 0 0 0 6px rgba(235, 10, 30, .3);
}

.range__input:focus-visible::-moz-range-thumb {
  box-shadow: inset 0 0 0 3px var(--color-white), inset 0 0 0 6px rgba(235, 10, 30, .3);
}

/* Filter panel (mobile frame "Filter": full-screen dialog)
   ========================================================================== */
.filter-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-white);
  color: var(--color-black);
}

.filter-panel[open] {
  display: flex;
  flex-direction: column;
}

.filter-panel::backdrop {
  background: rgba(0, 0, 0, .66);
}

.filter-panel__head {
  flex: none;
  padding-top: 24px;
}

.filter-panel__back {
  display: grid;
  place-items: center;
  width: 48px;
  height: 24px;
  border-radius: var(--radius-xl);
}

.filter-panel__back img {
  width: 7.793px;
  height: 14px;
}

.filter-panel__title {
  margin-top: 10px;
  padding: 0 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.filter-panel__body {
  display: flex;
  flex: 1;
  min-height: 0;
  margin-top: 24px;
}

.filter-panel__tabs {
  flex: none;
  width: 130px;
  overflow-y: auto;
  background: var(--color-mist);
}

.filter-panel__tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--color-mist);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

/* Figma's 2px left stroke sits inside the tab */
.filter-panel__tab[aria-selected='true'] {
  background: var(--color-white);
  box-shadow: inset 2px 0 0 var(--color-primary);
}

.filter-panel__tab:focus-visible {
  outline-offset: -2px;
}

.filter-panel__tab-count {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary);
}

.filter-panel__pane {
  flex: 1;
  min-width: 0;
  padding: 15px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Figma's 72px bar includes its 1px top stroke */
.filter-panel__foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.filter-panel__clear {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.filter-panel__apply {
  width: 190px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

/* The shared form, restyled for the panel */
.filter-panel .filters__form {
  display: block;
}

.filter-panel .filter-group {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.filter-panel .filter-group:not(.is-active),
.filter-panel .filter-group--desktop {
  display: none;
}

.filter-panel .filter-group__title {
  font-size: 16px;
  line-height: 1.2;
}

.filter-panel .filter-group__list {
  gap: 16px;
}

.filter-panel .filter-group__scroll,
.filter-panel .filter-group__scroll--models {
  max-height: none;
  margin-right: 0;
  padding: 0;
  overflow: visible;
}

.filter-panel .filter-group__scroll--models {
  margin-top: 16px;
}

.filter-panel .filter-group__scroll--models .filter-group__list {
  margin-right: 0;
}

.filter-panel .filter-option {
  gap: 10px;
}

.filter-panel .filter-option__input {
  margin: 0;
  border: 1.5px solid rgba(0, 0, 0, .3);
  border-radius: 5px;
}

.filter-panel .filter-option__input:checked {
  border-color: transparent;
  background-image: url('../image/icons/check-mobile.svg');
}

.filter-panel .filter-option__name,
.filter-panel .filter-option__count {
  font-weight: 500;
  line-height: 1.2;
}

.filter-panel .filter-option__count {
  color: rgba(0, 0, 0, .3);
}

.filter-panel .filter-search {
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.filter-panel .filter-search::before {
  background-image: url('../image/icons/search.svg');
}

.filter-panel .filter-search__input {
  font-size: 15px;
}

/* ==========================================================================
   Used car listing — responsive layer (mobile-first, min-width queries only)
   ≥576   two-column results; the filter panel becomes a right-hand drawer
   ≥992   three-column results
   ≥1200  desktop (Figma "Used Car Listing - with filter", 1440px):
          filter sidebar + three-column grid; floating bar and panel retire
   ========================================================================== */

/* ≥576
   ========================================================================== */
@media (min-width: 576px) {
  .results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    inset: 0 0 0 auto;
    width: 420px;
  }
}

/* ≥992
   ========================================================================== */
@media (min-width: 992px) {
  .results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ≥1200 — desktop
   ========================================================================== */
@media (min-width: 1200px) {
  /* Figma sets this block 5px left of the 1140px container (x=145) */
  .listing__layout {
    position: relative;
    left: -5px;
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    align-items: start;
    column-gap: 32px;
    margin-top: 20px;
    margin-bottom: 29px;
  }

  .filters {
    display: block;
  }

  .results {
    padding: 0;
  }

  .results__bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 32px;
    margin-bottom: 32px;
  }

  .applied {
    align-items: center;
    margin-bottom: 0;
  }

  /* Stays right-aligned when no filters (and so no chips) are applied */
  .sort-toggle {
    display: inline-flex;
    flex: none;
    margin-left: auto;
    align-items: center;
    gap: 3px;
    height: 32px;
    padding: 0 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
  }

  .sort-toggle img {
    width: 12px;
    height: 12px;
    transition: rotate .2s var(--ease);
  }

  .sort-toggle[aria-expanded='true'] img {
    rotate: 180deg;
  }

  .sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 5;
  }

  .results__title {
    font-size: 24px;
    line-height: 34px;
  }

  /* Desktop cards are the shared card */
  .results .car-card {
    height: 100%;
    border: 0;
  }

  .results .car-card::after {
    content: '';
  }

  .results .car-card__media {
    height: 184px;
    aspect-ratio: auto;
  }

  .results .car-card__badge {
    top: 150px;
    bottom: auto;
    left: .125px;
    width: 94px;
    padding: 0 8px;
  }

  .results .car-card__body {
    margin: -2px 0 0;
  }

  .listing-bar {
    display: none;
  }
}
