/* 8891 homepage — shared visual system */
:root {
  --navy: #0b1d33;
  --navy-light: #153451;
  --orange: #ff5b35;
  --orange-dark: #eb431d;
  --orange-pale: #fff1ec;
  --text: #17263a;
  --muted: #6e7887;
  --line: #e5e8ed;
  --surface: #ffffff;
  --background: #f5f6f8;
  --shadow: 0 10px 35px rgba(16, 35, 57, 0.08);
  --radius: 14px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

button,
input,
select {
  outline: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 91, 53, 0.35);
  outline-offset: 3px;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 9px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--orange);
  transform: translateY(-150%);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 232, 237, 0.8);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(14, 30, 48, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 76px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 112px;
}

.brand img {
  width: 112px;
  height: 42px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  gap: 6px;
  margin-left: 46px;
}

.primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #435064;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--orange);
}

.primary-nav a.active::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
  content: "";
}

.header-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36ad75;
  box-shadow: 0 0 0 4px rgba(54, 173, 117, 0.12);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 8px;
}

/* Search hero */
.search-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 0 64px;
  color: #fff;
  background: linear-gradient(118deg, #0a1b30 0%, #102943 65%, #0d223b 100%);
}

.hero-decoration {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(117, 160, 196, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-decoration::after {
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(117, 160, 196, 0.1);
  border-radius: inherit;
  content: "";
}

.hero-decoration-one {
  top: -250px;
  right: -80px;
  width: 670px;
  height: 670px;
}

.hero-decoration-two {
  bottom: -250px;
  left: -180px;
  width: 500px;
  height: 500px;
}

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

.eyebrow,
.section-kicker {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-heading h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.hero-copy {
  margin-top: 8px;
  color: #afbdce;
  font-size: 15px;
}

.hero-proof {
  display: flex;
  gap: 0;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof span {
  display: flex;
  flex-direction: column;
  min-width: 126px;
  padding: 0 20px;
  color: #8fa2b8;
  font-size: 11px;
}

.hero-proof span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-proof strong {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.search-tabs {
  display: flex;
  gap: 5px;
  padding-left: 14px;
}

.search-tabs button {
  min-width: 116px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px 10px 0 0;
  color: #b5c1cf;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.search-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.search-tabs button.selected {
  color: var(--text);
  background: #fff;
}

.search-tabs button.selected::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 2px;
  content: "";
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 210px;
  gap: 18px;
  padding: 24px;
  border-radius: 0 12px 12px 12px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.select-field label {
  display: block;
  margin-bottom: 7px;
  color: #48566a;
  font-size: 12px;
  font-weight: 600;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #7f8997;
  border-bottom: 1.5px solid #7f8997;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.select-wrap select {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 15px;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  appearance: none;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.select-wrap select:hover,
.select-wrap select:focus {
  border-color: #9ba8b8;
}

.select-wrap select:disabled {
  color: #a1a8b2;
  background: #f5f6f7;
}

.search-button {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 6px 16px rgba(255, 91, 53, 0.22);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.search-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.search-hint {
  margin: 10px 0 0 16px;
  color: #8296ad;
  font-size: 12px;
}

/* Shared section headings */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-heading > div > p:last-child:not(.section-kicker) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  color: #596679;
  background: transparent;
  font-size: 13px;
}

.text-button span {
  display: inline-block;
  margin-left: 6px;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.text-button:hover {
  color: var(--orange);
}

.text-button:hover span {
  transform: translateX(3px);
}

/* Brand shortcuts */
.brand-section {
  padding-top: 42px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 24px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 124px;
  padding: 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand-card:hover {
  border-color: #ffc4b4;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.brand-card img {
  width: 100%;
  height: 63px;
  object-fit: contain;
}

.brand-card span {
  margin-top: 7px;
  color: #465267;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* News */
.news-section {
  padding-top: 64px;
  padding-bottom: 66px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 28px;
}

.lead-story {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lead-story:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.story-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: #e9edf1;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-story:hover img {
  transform: scale(1.025);
}

.story-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 11px;
  border-radius: 5px;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  font-weight: 700;
}

.story-content {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.story-meta {
  margin-bottom: 7px;
  color: #8a93a0;
  font-size: 11px;
}

.story-content > strong {
  font-size: 21px;
  line-height: 1.55;
}

.story-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.story-link {
  margin-top: 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.story-link span {
  margin-left: 4px;
}

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

.news-item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 19px;
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news-item:hover {
  border-color: #ffc5b6;
  background: #fffaf8;
}

.news-date {
  display: flex;
  flex: 0 0 52px;
  flex-direction: column;
  align-items: center;
  padding-right: 17px;
  border-right: 1px solid var(--line);
  color: #9099a6;
  font-size: 10px;
  line-height: 1.4;
}

.news-date strong {
  color: #38465a;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
}

.news-item-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.news-item-copy > span {
  margin-bottom: 3px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
}

.news-item-copy strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.news-item-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-arrow {
  color: #a4acb7;
  font-size: 19px;
}

/* Vehicle results */
.used-section {
  padding: 58px 0 68px;
  background: var(--background);
}

.used-heading {
  margin-bottom: 22px;
}

.results-count {
  color: #8a93a0;
  font-size: 13px;
}

.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 9px 20px;
  border: 1px solid #e0e4e9;
  border-radius: 24px;
  color: #536074;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tabs button:hover {
  border-color: #ffb39e;
  color: var(--orange);
}

.category-tabs button.selected {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 91, 53, 0.18);
  font-weight: 600;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px 8px 6px 13px;
  border-radius: 6px;
  color: #b93c1d;
  background: var(--orange-pale);
  font-size: 12px;
}

.active-filter button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #b93c1d;
  background: rgba(255, 91, 53, 0.1);
  font-size: 18px;
  line-height: 1;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.car-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8eaee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 39, 60, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.car-card:hover {
  box-shadow: 0 14px 32px rgba(20, 39, 60, 0.11);
  transform: translateY(-4px);
}

.car-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.car-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 300 / 201;
  background: #e7eaee;
}

.car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card:hover .car-media img {
  transform: scale(1.035);
}

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #49566a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(10, 25, 42, 0.13);
  transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-button:hover {
  color: var(--orange);
  transform: scale(1.06);
}

.favorite-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.favorite-button[aria-pressed="true"] {
  color: var(--orange);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.car-body {
  display: block;
  padding: 16px 17px 15px;
}

.car-make {
  display: block;
  margin-bottom: 3px;
  color: #8a93a0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.car-title {
  display: block;
  min-height: 46px;
  color: #243248;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
  margin-top: 8px;
  color: #7a8493;
  font-size: 11px;
}

.car-meta span {
  display: inline-flex;
  align-items: center;
}

.car-meta span:not(:last-child)::after {
  width: 1px;
  height: 10px;
  margin: 0 8px;
  background: #dfe3e8;
  content: "";
}

.car-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eff1f3;
}

.car-price {
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.car-price small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.car-location {
  color: #8b94a0;
  font-size: 10px;
}

.empty-state {
  padding: 64px 24px 30px;
  text-align: center;
}

.empty-state > svg {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #a3adba;
  stroke-width: 1.3;
}

.empty-state h3 {
  font-size: 20px;
}

.empty-state p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.secondary-button {
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: 7px;
  color: var(--orange);
  background: #fff;
  font-weight: 600;
}

.noscript-message {
  padding: 20px;
  text-align: center;
}

/* Sell CTA */
.sell-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.sell-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  padding: 30px 36px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(110deg, #102842, #0b1d33);
}

.sell-banner::after {
  position: absolute;
  right: 190px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.sell-icon {
  display: flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  color: #ff8b6f;
  background: rgba(255, 255, 255, 0.07);
}

.sell-icon svg {
  width: 47px;
  height: 47px;
  stroke-width: 1.4;
}

.sell-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.sell-copy h2 {
  font-size: 25px;
  line-height: 1.4;
}

.sell-copy > p:last-child {
  margin-top: 5px;
  color: #a9b8c9;
  font-size: 13px;
}

.light-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 12px 21px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.light-button:hover {
  transform: translateY(-2px);
}

.light-button span {
  margin-left: 9px;
  color: var(--orange);
}

/* Floating utility rail */
.utility-rail {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 40;
  overflow: hidden;
  border: 1px solid rgba(224, 228, 234, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(16, 34, 54, 0.14);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.utility-rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 60px;
  height: 65px;
  padding: 0;
  border: 0;
  color: #657185;
  background: transparent;
  font-size: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.utility-rail button + button {
  border-top: 1px solid #edf0f2;
}

.utility-rail button:hover,
.utility-rail button[aria-pressed="true"] {
  color: var(--orange);
  background: #fff8f5;
}

.utility-icon {
  position: relative;
  display: block;
  height: 24px;
}

.utility-icon > svg {
  width: 22px;
  height: 22px;
}

.utility-rail button[aria-pressed="true"] .utility-icon > svg {
  fill: currentColor;
}

.favorite-count {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

/* Footer */
.site-footer {
  padding-top: 48px;
  color: #9eacbd;
  background: #081625;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 38px;
}

.footer-brand img {
  width: 105px;
  height: 42px;
  margin-bottom: 14px;
  object-fit: contain;
}

.footer-brand p {
  margin-bottom: 4px;
  color: #e5eaf0;
  font-size: 14px;
}

.footer-brand span {
  font-size: 12px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-column h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-column a,
.footer-column button {
  padding: 0;
  border: 0;
  color: #94a3b5;
  background: transparent;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column button:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #718196;
  font-size: 11px;
}

/* Dialogs and feedback */
.detail-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

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

.dialog-shell {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #39485b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.dialog-hero {
  width: 100%;
  max-height: 355px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8ebef;
}

.dialog-body {
  padding: 26px 30px 30px;
}

.dialog-kicker {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dialog-body h2 {
  padding-right: 24px;
  font-size: 25px;
  line-height: 1.45;
}

.dialog-description {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.detail-price {
  color: var(--orange);
  font-size: 30px;
  font-weight: 800;
}

.detail-price small {
  font-size: 13px;
}

.dialog-favorite {
  padding: 9px 16px;
  border: 1px solid #e2e6eb;
  border-radius: 7px;
  color: #5c6879;
  background: #fff;
  font-size: 13px;
}

.dialog-favorite[aria-pressed="true"] {
  border-color: #ffb29e;
  color: var(--orange);
  background: var(--orange-pale);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.spec-item {
  padding: 12px;
  border-radius: 8px;
  background: #f5f7f9;
  text-align: center;
}

.spec-item span {
  display: block;
  color: #8a94a1;
  font-size: 10px;
}

.spec-item strong {
  display: block;
  margin-top: 2px;
  color: #364459;
  font-size: 13px;
  font-weight: 600;
}

.dialog-note {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid #ffb49f;
  color: #7c8795;
  background: #fff8f5;
  font-size: 11px;
}

.dialog-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.dialog-brand-grid .brand-card {
  height: 110px;
}

.valuation-steps {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.valuation-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.valuation-step > span {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--orange);
  background: var(--orange-pale);
  font-weight: 700;
}

.valuation-step strong {
  display: block;
  font-size: 14px;
}

.valuation-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 120;
  max-width: calc(100% - 40px);
  padding: 11px 20px;
  border-radius: 8px;
  color: #fff;
  background: rgba(13, 29, 47, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Tablet */
@media (max-width: 1100px) {
  .header-note {
    display: none;
  }

  .primary-nav {
    margin-left: auto;
  }

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

  .utility-rail {
    right: 8px;
  }

  .utility-rail button {
    width: 52px;
  }
}

@media (max-width: 900px) {
  .hero-proof {
    display: none;
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px;
  }

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

  .brand-card {
    height: 112px;
  }

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

  .news-item {
    min-height: 118px;
  }

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

  .sell-banner {
    gap: 20px;
    padding: 28px;
  }

  .sell-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .sell-copy h2 {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: 64px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    position: relative;
    height: 64px;
  }

  .brand,
  .brand img {
    width: 96px;
    height: 36px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 63px;
    right: -16px;
    left: -16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 22px rgba(15, 33, 53, 0.12);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }

  .primary-nav a.active::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 0;
    width: 3px;
    height: auto;
  }

  .search-hero {
    padding: 30px 0 40px;
  }

  .hero-heading {
    margin-bottom: 22px;
  }

  .hero-heading h1 {
    font-size: 28px;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 13px;
  }

  .search-tabs {
    gap: 0;
    padding-left: 0;
  }

  .search-tabs button {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
    font-size: 14px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 18px;
    border-radius: 0 0 12px 12px;
  }

  .search-button {
    width: 100%;
    margin-top: 2px;
  }

  .search-hint {
    margin-left: 4px;
    text-align: center;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 19px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .section-kicker {
    font-size: 9px;
  }

  .text-button {
    font-size: 11px;
  }

  .brand-section {
    padding-top: 32px;
  }

  .compact-heading h2 {
    font-size: 22px;
  }

  .brand-grid {
    gap: 10px;
  }

  .brand-card {
    height: 105px;
    padding: 12px 7px 10px;
  }

  .brand-card img {
    height: 54px;
  }

  .brand-card span {
    font-size: 9px;
  }

  .news-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .news-layout {
    gap: 14px;
  }

  .story-content {
    padding: 18px;
  }

  .story-content > strong {
    font-size: 19px;
  }

  .news-item {
    min-height: 0;
    gap: 14px;
    padding: 16px;
  }

  .news-date {
    flex-basis: 43px;
    padding-right: 12px;
  }

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

  .news-item-copy small {
    display: none;
  }

  .news-arrow {
    display: none;
  }

  .used-section {
    padding: 42px 0 48px;
  }

  .used-heading {
    align-items: flex-end;
  }

  .results-count {
    padding-bottom: 3px;
    font-size: 11px;
  }

  .category-tabs {
    margin-right: -16px;
    padding-right: 16px;
  }

  .category-tabs button {
    min-width: 68px;
    padding: 8px 16px;
    font-size: 12px;
  }

  .car-grid {
    gap: 13px;
    margin-top: 16px;
  }

  .car-body {
    padding: 13px;
  }

  .car-title {
    min-height: 42px;
    font-size: 14px;
  }

  .car-meta {
    font-size: 10px;
  }

  .car-meta span:not(:last-child)::after {
    margin: 0 5px;
  }

  .car-price {
    font-size: 22px;
  }

  .car-location {
    display: none;
  }

  .favorite-button {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .car-badge {
    top: 10px;
    left: 9px;
  }

  .sell-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .sell-banner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
  }

  .sell-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .sell-icon svg {
    width: 36px;
    height: 36px;
  }

  .sell-copy h2 {
    font-size: 19px;
  }

  .sell-copy > p:last-child {
    font-size: 11px;
  }

  .light-button {
    width: 100%;
  }

  .utility-rail {
    top: auto;
    right: auto;
    bottom: 10px;
    left: 50%;
    display: flex;
    border-radius: 13px;
    transform: translateX(-50%);
  }

  .utility-rail button {
    flex-direction: row;
    gap: 7px;
    width: 100px;
    height: 47px;
    font-size: 11px;
  }

  .utility-rail button + button {
    border-top: 0;
    border-left: 1px solid #edf0f2;
  }

  .utility-icon {
    height: 22px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  .dialog-body {
    padding: 22px;
  }

  .dialog-body h2 {
    font-size: 21px;
  }

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

  .toast {
    bottom: 70px;
  }
}

@media (max-width: 520px) {
  .car-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .car-title {
    min-height: 0;
    font-size: 17px;
  }

  .car-body {
    padding: 16px 18px;
  }

  .car-meta {
    font-size: 11px;
  }

  .car-meta span:not(:last-child)::after {
    margin: 0 8px;
  }

  .car-location {
    display: inline;
  }

  .car-price {
    font-size: 26px;
  }

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

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  .primary-nav {
    right: -12px;
    left: -12px;
  }

  .hero-heading h1 {
    font-size: 25px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .text-button {
    font-size: 10px;
  }

  .sell-copy {
    flex-basis: calc(100% - 70px);
  }

  .sell-copy h2 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
