/* Dealer microsites are intentionally namespaced to avoid changing legacy pages. */
body.dealer-page {
  --dealer-ink: #17201f;
  --dealer-muted: #68706e;
  --dealer-line: #d9dedb;
  --dealer-paper: #f3f2ee;
  --dealer-surface: #fff;
  --dealer-green: #254f45;
  --dealer-green-deep: #18382f;
  --dealer-copper: #a56e45;
  --dealer-sand: #d8c9b6;
  --dealer-shadow: 0 20px 60px rgba(22, 38, 33, .1);
  margin: 0;
  min-width: 320px;
  color: var(--dealer-ink);
  background: var(--dealer-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

.dealer-page *,
.dealer-page *::before,
.dealer-page *::after { box-sizing: border-box; }
.dealer-page img,
.dealer-page video { display: block; max-width: 100%; }
.dealer-page figure,
.dealer-page p,
.dealer-page dl,
.dealer-page dd { margin: 0; }
.dealer-page a { color: inherit; text-decoration: none; }
.dealer-page .dealer-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  vertical-align: middle;
}
.dealer-phone-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: visible;
  transform-origin: 50% 85%;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .15));
}
.dealer-header-call .dealer-phone-icon,
.dealer-nav-call .dealer-phone-icon { width: 27px; height: 27px; }
.dealer-header-call,
.dealer-nav-call { gap: 6px; }
.dealer-page a[href^="tel:"]:hover .dealer-phone-icon,
.dealer-page a[href^="tel:"]:focus-visible .dealer-phone-icon {
  animation: dealer-phone-ring .65s ease-in-out 2;
}
.dealer-phone-handset { transform-origin: 32px 22px; }
.dealer-page a[href^="tel:"]:hover .dealer-phone-handset,
.dealer-page a[href^="tel:"]:focus-visible .dealer-phone-handset {
  animation: dealer-handset-ring .32s ease-in-out 4;
}
@keyframes dealer-phone-ring {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-9deg); }
  40%, 80% { transform: rotate(9deg); }
}
@keyframes dealer-handset-ring {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px) rotate(-3deg); }
}
.dealer-page a,
.dealer-page button { -webkit-tap-highlight-color: transparent; }
.dealer-page a:focus-visible,
.dealer-page button:focus-visible {
  outline: 3px solid #d59458;
  outline-offset: 4px;
}

.dealer-skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--dealer-green-deep);
  border-radius: 0 0 8px 8px;
  transition: top .2s ease;
}
.dealer-skip-link:focus { top: 0; }

.dealer-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 7px 18px;
  color: #fff;
  background: #8b4b21;
  font-size: 13px;
  letter-spacing: .02em;
}
.dealer-preview strong { font-size: 14px; }

.dealer-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(19, 27, 25, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 22px rgba(12, 20, 18, .14);
}
.dealer-header-inner {
  display: flex;
  align-items: center;
  width: min(1440px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
.dealer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(190px, 18vw, 260px);
  min-height: 48px;
}
.dealer-brand img {
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
.dealer-wordmark {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: .14em;
}
.dealer-wordmark b {
  margin-left: 7px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: .05em;
}
.dealer-site-label {
  min-width: 0;
  margin-left: 22px;
  padding-left: 22px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .23);
  color: rgba(255, 255, 255, .78);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.dealer-global-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  margin-left: auto;
  font-size: 14px;
}
.dealer-global-nav > a:not(.dealer-header-call) {
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}
.dealer-global-nav > a:not(.dealer-header-call):hover { color: #fff; }
.dealer-header-call {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.dealer-header-call:hover { color: var(--dealer-green-deep); background: #fff; }

.dealer-section-nav {
  position: sticky;
  top: 76px;
  z-index: 45;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--dealer-line);
  backdrop-filter: blur(14px);
}
.dealer-section-nav > div {
  display: flex;
  align-items: stretch;
  width: min(1320px, 100%);
  min-height: 50px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 54px);
}
.dealer-section-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #5a6260;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: 14px;
}
.dealer-section-nav a:hover,
.dealer-section-nav a.is-active {
  color: var(--dealer-green);
  border-bottom-color: var(--dealer-copper);
}
.dealer-section-nav .dealer-nav-call {
  margin-left: auto;
  color: var(--dealer-green-deep);
  font-weight: 650;
}

.dealer-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
  align-items: center;
  gap: clamp(32px, 4vw, 52px);
  width: min(1320px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(32px, 3.2vw, 40px) clamp(22px, 5vw, 72px);
  overflow: hidden;
  color: var(--dealer-ink);
  background: #f4f2ed;
  isolation: isolate;
}
.dealer-hero-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
}
.dealer-hero-media::before,
.dealer-hero-media::after { content: none; }
.dealer-hero.has-portrait {
  grid-template-columns: minmax(0, calc(560px * var(--dealer-hero-ratio))) minmax(300px, 540px);
  justify-content: center;
}
.dealer-hero-media > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.dealer-hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.dealer-hero-media figcaption {
  margin-top: 11px;
  overflow: hidden;
  color: #78827c;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dealer-hero-media.is-portrait > a {
  height: auto;
  background: transparent;
}
.dealer-hero-media.is-portrait img { object-fit: contain; }
.dealer-hero.is-text-only {
  grid-template-columns: 1fr;
  min-height: 350px;
  color: var(--dealer-ink);
  background: #f4f2ed;
}
.dealer-hero.is-text-only::before,
.dealer-hero.is-text-only::after {
  position: absolute;
  top: 50%;
  left: 55%;
  z-index: 0;
  width: 140px;
  height: 270px;
  content: "";
  border: 1px solid rgba(165, 110, 69, .13);
  pointer-events: none;
  transform: translate(-50%, -50%) skewY(-7deg);
}
.dealer-hero.is-text-only::after { margin: 22px 0 0 44px; }
.dealer-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(6px, 1vw, 14px) 0;
}
.dealer-hero.is-text-only .dealer-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: center;
  column-gap: clamp(48px, 8vw, 110px);
  width: 100%;
}
.dealer-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(46px, 8vh, 90px);
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}
.dealer-breadcrumb a:hover { color: #fff; }
.dealer-hero .dealer-breadcrumb {
  margin-bottom: clamp(24px, 3vw, 34px);
  color: var(--dealer-muted);
}
.dealer-hero .dealer-breadcrumb a:hover { color: var(--dealer-green); }
.dealer-hero.is-text-only .dealer-breadcrumb { grid-column: 1; }
.dealer-kicker {
  color: var(--dealer-copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.dealer-page .dealer-kicker { color: var(--dealer-copper); }
.dealer-hero .dealer-kicker { margin-bottom: 12px; }
.dealer-hero-meta {
  color: var(--dealer-muted);
  font-size: 13px;
  letter-spacing: .02em;
}
.dealer-hero h1 {
  min-width: 0;
  max-width: 100%;
  margin: 13px 0 20px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(36px, 3.4vw, 50px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.dealer-hero-intro {
  min-width: 0;
  max-width: 460px;
  color: #67716d;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.dealer-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(310px, 100%);
  margin-top: clamp(28px, 3vw, 38px);
}
.dealer-hero.is-text-only .dealer-hero-actions {
  grid-column: 2;
  grid-row: 1 / 7;
  width: 100%;
  margin-top: 0;
}
.dealer-primary-button,
.dealer-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 21px;
  border: 1px solid var(--dealer-green);
  font-size: 14px;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.dealer-primary-button::after { content: "\2197"; margin-left: 18px; font-size: 18px; }
.dealer-secondary-button::after { content: "\2192"; margin-left: 18px; font-size: 18px; }
.dealer-page a.dealer-primary-button {
  color: #fff !important;
  border-color: var(--dealer-green);
  background: var(--dealer-green);
}
.dealer-page a.dealer-secondary-button {
  color: var(--dealer-green) !important;
  border-color: var(--dealer-green);
  background: transparent;
}
.dealer-primary-button:hover,
.dealer-secondary-button:hover { transform: translateY(-2px); }

.dealer-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  width: min(1320px, 100%);
  margin: 0 auto;
  gap: 18px;
  padding: 12px clamp(22px, 5vw, 72px) 24px;
  background: transparent;
}
.dealer-overview > a {
  --card-color: 32, 193, 148;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(var(--card-color), .22);
  border-radius: 14px;
  background: linear-gradient(125deg, rgba(255,255,255,.85), rgba(var(--card-color), .09));
  box-shadow: 0 8px 28px rgba(var(--card-color), .07), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dealer-overview > a[href="#team"] { --card-color: 45, 164, 241; }
.dealer-overview > a[href="#cases"] { --card-color: 244, 177, 55; }
.dealer-overview > a::before {
  position: absolute;
  z-index: -1;
  top: -95px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(var(--card-color), .34), rgba(var(--card-color), 0) 70%);
  pointer-events: none;
  animation: dealer-card-glow 9s ease-in-out infinite alternate;
}
.dealer-overview > a:nth-child(2)::before { animation-delay: -3s; }
.dealer-overview > a:nth-child(3)::before { animation-delay: -6s; }
.dealer-overview > a::after {
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: -36px;
  width: 108px;
  height: 142px;
  border: 1px solid rgba(var(--card-color), .23);
  border-radius: 6px;
  content: "";
  transform: rotate(24deg);
  pointer-events: none;
}
.dealer-overview > a:hover,
.dealer-overview > a:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(var(--card-color), .55);
  box-shadow: 0 15px 32px rgba(var(--card-color), .16);
}
.dealer-overview > a:hover span { transform: translateX(4px); }
@keyframes dealer-card-glow {
  from { transform: translate(0, 0) scale(.9); opacity: .75; }
  to { transform: translate(-35px, 32px) scale(1.15); opacity: 1; }
}
.dealer-overview small {
  color: var(--dealer-copper);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.6;
  text-transform: uppercase;
}
.dealer-overview h2 {
  margin: 8px 0 10px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dealer-overview p {
  color: #52605d;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.dealer-overview span {
  display: block;
  margin-top: auto;
  padding-top: 17px;
  color: var(--dealer-ink);
  font-size: 13px;
  transition: transform .3s ease;
}
.dealer-content { overflow: hidden; background: var(--dealer-paper); }
.dealer-section {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 4.5vw, 64px) clamp(22px, 5vw, 72px);
  scroll-margin-top: 142px;
}
.dealer-section + .dealer-section { border-top: 1px solid var(--dealer-line); }
.dealer-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
}
.dealer-section-heading .dealer-kicker { grid-column: 1 / -1; }
.dealer-section-heading h2,
.dealer-cta h2 {
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.dealer-section-heading > p:last-child {
  color: var(--dealer-muted);
  font-size: 15px;
}

.dealer-store-list { display: grid; gap: clamp(58px, 8vw, 112px); }
.dealer-store {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  row-gap: 32px;
}
.dealer-store:nth-child(even) { grid-template-columns: minmax(300px, .7fr) minmax(0, 1.55fr); }
.dealer-store:nth-child(even) .dealer-store-gallery { grid-column: 2; grid-row: 1; }
.dealer-store-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.dealer-store-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dfe2df;
}
.dealer-store-media:first-child { grid-column: 1 / -1; }
.dealer-store-media img,
.dealer-store-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}
.dealer-store-media:not(:first-child) img,
.dealer-store-media:not(:first-child) video { aspect-ratio: 4 / 3; }
.dealer-store-media a:hover img { transform: scale(1.025); }
.dealer-store-strip {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--dealer-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
}
.dealer-store-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--dealer-muted);
  font-size: 13px;
}
.dealer-store-strip-heading > div { display: flex; gap: 8px; }
.dealer-store-strip button {
  width: 38px;
  height: 38px;
  border: 1px solid #c4d2cb;
  border-radius: 50%;
  color: var(--dealer-green);
  background: #fff;
  font-size: 21px;
  cursor: pointer;
}
.dealer-store-strip button:disabled { opacity: .3; cursor: default; }
.dealer-store-strip button:not(:disabled):hover { background: #eaf2ed; }
.dealer-store-strip-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #99b4a7 transparent;
  padding-bottom: 8px;
}
.dealer-store-strip-track > .dealer-store-media {
  flex: 0 0 clamp(180px, 44%, 320px);
  border-radius: 6px;
  scroll-snap-align: start;
}
.dealer-store-strip-track .dealer-store-media img,
.dealer-store-strip-track .dealer-store-media video { aspect-ratio: 4 / 3; }
.dealer-store-strip-track:focus-visible,
.dealer-store-strip button:focus-visible { outline: 2px solid var(--dealer-green); outline-offset: 3px; }
.dealer-store-media figcaption,
.dealer-team-media figcaption,
.dealer-media-card figcaption {
  padding: 9px 2px 0;
  color: var(--dealer-muted);
  font-size: 12px;
}
.dealer-store-copy h3,
.dealer-live-gallery > header h3,
.dealer-case-detail h3 {
  margin: 12px 0 26px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.25;
}
.dealer-store-facts { border-top: 1px solid var(--dealer-line); }
.dealer-store-facts > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dealer-line);
}
.dealer-store-facts dt { color: var(--dealer-muted); font-size: 13px; }
.dealer-store-facts dd { line-height: 1.65; }
.dealer-store > .dealer-store-service {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #cdded7;
  border-left: 4px solid #689a87;
  border-radius: 12px;
  background: linear-gradient(120deg, #eaf2ed, #f8faf6);
}
.dealer-store-service h4 {
  margin: 0 0 16px;
  color: #171717;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.dealer-store-service p { line-height: 1.85; overflow-wrap: anywhere; }

.dealer-team-section {
  position: relative;
  width: 100%;
  max-width: none;
  color: #fff;
  background: var(--dealer-green-deep);
}
.dealer-team-section > * { width: min(1176px, calc(100% - clamp(44px, 10vw, 144px))); margin-right: auto; margin-left: auto; }
.dealer-team-section .dealer-section-heading { border-color: rgba(255, 255, 255, .15); }
.dealer-team-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.45fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}
.dealer-team-copy { position: sticky; top: 164px; }
.dealer-team-copy:empty { display: none; }
.dealer-team-copy .dealer-prose {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 2;
}
.dealer-team-section.is-text-only { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(40px, 4.5vw, 64px); }
.dealer-team-section.is-text-only .dealer-section-heading { margin-bottom: 28px; }
.dealer-team-layout.is-text-only { display: block; }
.dealer-team-layout.is-text-only .dealer-team-copy { position: static; max-width: 760px; }
.dealer-team-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dealer-team-media:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.dealer-team-media { min-width: 0; }
.dealer-team-media img,
.dealer-team-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dealer-team-media figcaption { color: rgba(255, 255, 255, .62); }
.dealer-team-layout > .dealer-team-copy:empty + .dealer-team-gallery { grid-column: 1 / -1; }

.dealer-case-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(80px, 10vw, 142px);
}
.dealer-case-link {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--dealer-surface);
  border: 1px solid var(--dealer-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dealer-case-link:hover { transform: translateY(-4px); box-shadow: var(--dealer-shadow); }
.dealer-case-link > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dealer-case-link > span { display: grid; gap: 8px; padding: 22px; }
.dealer-case-link small { color: var(--dealer-copper); letter-spacing: .15em; }
.dealer-case-link strong { font-family: "Songti SC", STSong, serif; font-size: 24px; font-weight: 500; line-height: 1.3; }
.dealer-case-summary { color: var(--dealer-muted); font-size: 14px; line-height: 1.75; }
.dealer-case-details { display: grid; gap: clamp(80px, 10vw, 150px); }
.dealer-case-detail { scroll-margin-top: 150px; }
.dealer-case-detail > header { width: min(780px, 100%); margin-bottom: 34px; }
.dealer-case-lead { color: var(--dealer-muted); font-size: 18px; }
.dealer-case-detail > .dealer-prose { width: min(860px, 100%); margin: 0 0 38px; color: #39413f; line-height: 1.95; }

.dealer-cases-section { background: #e9e7e0; }
.dealer-live-gallery { scroll-margin-top: 150px; }
.dealer-live-gallery > header { margin-bottom: 18px; }
.dealer-live-gallery + .dealer-case-index { margin-top: clamp(80px, 10vw, 142px); }
.dealer-horizontal-gallery { --gallery-height: clamp(280px, 40vw, 560px); --gallery-max-width: 70vw; --gallery-min-width: 20vw; min-width: 0; margin: 0 0 60px; }
.dealer-horizontal-gallery:last-child { margin-bottom: 0; }
.dealer-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.dealer-gallery-controls p { color: var(--dealer-muted); font-size: 13px; }
.dealer-gallery-controls > div { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.dealer-gallery-controls button { width: 40px; height: 40px; border: 1px solid #abb6ad; background: transparent; color: var(--dealer-green); font-size: 22px; cursor: pointer; }
.dealer-gallery-controls button:disabled { opacity: .3; cursor: default; }
.dealer-gallery-controls span { min-width: 64px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.dealer-gallery-track { position: relative; display: flex; align-items: center; gap: 18px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; overflow-anchor: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.dealer-gallery-track::before, .dealer-gallery-track::after { content: ""; flex: 0 0 50%; }
.dealer-gallery-track::-webkit-scrollbar, .dealer-gallery-thumbs::-webkit-scrollbar { display: none; }
.dealer-gallery-slide { --gallery-emphasis: 1; flex: 0 0 auto; width: clamp(var(--gallery-min-width), calc(var(--gallery-height) * var(--gallery-ratio, 1.33333)), var(--gallery-max-width)); min-width: 0; scroll-snap-align: center; opacity: calc(.35 + .65 * var(--gallery-emphasis)); transform: scale(calc(.92 + .08 * var(--gallery-emphasis))); transform-origin: center; }
.dealer-gallery-slide > a { display: flex; align-items: center; justify-content: center; height: var(--gallery-height); }
.dealer-gallery-slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.dealer-gallery-slide figcaption { height: 42px; padding: 10px 0; color: var(--dealer-muted); font-size: 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dealer-gallery-thumbs { position: relative; display: flex; gap: 10px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-top: 12px; padding: 4px; }
.dealer-gallery-thumbs button { flex: 0 0 86px; padding: 3px; border: 2px solid transparent; background: transparent; cursor: pointer; opacity: .6; }
.dealer-gallery-thumbs button[aria-pressed="true"] { border-color: var(--dealer-green); opacity: 1; }
.dealer-gallery-thumbs img { width: 100%; height: 58px; object-fit: cover; }
@media (max-width: 700px) {
  .dealer-gallery-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dealer-gallery-controls > div { align-self: flex-end; }
  .dealer-horizontal-gallery { --gallery-height: 320px; }
  .dealer-gallery-track { gap: 10px; }
  .dealer-gallery-thumbs button { flex-basis: 68px; }
  .dealer-gallery-thumbs img { height: 46px; }
}
.dealer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}
.dealer-media-card { grid-column: span 4; min-width: 0; overflow: hidden; }
.dealer-media-card:nth-child(5n + 1),
.dealer-media-card:nth-child(5n + 2) { grid-column: span 6; }
.dealer-media-card img,
.dealer-media-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.dealer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  width: min(1176px, calc(100% - clamp(44px, 10vw, 144px)));
  margin: clamp(35px, 6vw, 80px) auto clamp(90px, 11vw, 150px);
  padding: clamp(34px, 5vw, 66px);
  color: #fff;
  background:
    radial-gradient(ellipse at 95% 10%, rgba(116, 221, 217, .18), transparent 58%),
    linear-gradient(115deg, #1b3045 0%, #24495c 58%, #2c6470 100%);
}
.dealer-cta .dealer-kicker { color: #e3b78b; }
.dealer-cta h2 { max-width: 760px; margin-top: 8px; font-size: clamp(30px, 4vw, 52px); }
.dealer-cta > div > p:last-child { margin-top: 16px; color: rgba(255, 255, 255, .7); }
.dealer-page .dealer-cta > a,
.dealer-page .dealer-directory-hero > a,
.dealer-page a.dealer-footer-call {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
  padding: 16px 23px;
  color: var(--dealer-green-deep) !important;
  background: #fff;
}
.dealer-page .dealer-cta > a span,
.dealer-page .dealer-directory-hero > a span,
.dealer-page a.dealer-footer-call span { color: #6c7471 !important; font-size: 11px; letter-spacing: .08em; }
.dealer-page .dealer-cta > a strong,
.dealer-page .dealer-directory-hero > a strong,
.dealer-page a.dealer-footer-call strong { color: var(--dealer-green-deep) !important; font-size: 18px; letter-spacing: .04em; }

.dealer-footer { color: rgba(255, 255, 255, .75); background: #111816; }
.dealer-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  width: min(1320px, 100%);
  min-height: 190px;
  margin: 0 auto;
  padding: 38px clamp(22px, 5vw, 72px);
}
.dealer-footer-inner > div strong { color: #fff; font-family: "Songti SC", STSong, serif; font-size: 24px; }
.dealer-footer-inner > div p { margin-top: 4px; color: rgba(255, 255, 255, .48); font-size: 13px; }
.dealer-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 13px; }
.dealer-footer nav a:hover { color: #fff; }
.dealer-mobile-call { display: none; }

.dealer-lightbox {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  padding: 46px 0 0;
  border: 0;
  color: #fff;
  background: transparent;
}
.dealer-lightbox::backdrop { background: rgba(5, 10, 9, .9); backdrop-filter: blur(8px); }
.dealer-lightbox img { width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.dealer-lightbox button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .48);
  color: #fff;
  background: rgba(0, 0, 0, .3);
  cursor: pointer;
}

/* Directory */
.dealer-directory-page { background: #eeede8; }
.dealer-directory-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 0;
  padding: clamp(28px, 3vw, 44px) max(22px, calc((100vw - 1176px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(190, 150, 111, .28), transparent 26%),
    linear-gradient(125deg, #1a3931, #12231f);
}
.dealer-directory-hero .dealer-breadcrumb { margin-bottom: 24px; }
.dealer-directory-hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.08;
}
.dealer-directory-hero > div > p:last-child { max-width: 700px; color: rgba(255, 255, 255, .7); }
.dealer-city-filter {
  position: relative;
  z-index: 40;
  overflow: hidden;
  background: linear-gradient(120deg, #eaf3ef, #f2f7f8 60%, #f6f3eb);
  border-bottom: 1px solid var(--dealer-line);
  backdrop-filter: blur(14px);
}
.dealer-city-filter > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px 8px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 13px 32px;
}
.dealer-city-filter a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 6px;
  border-radius: 8px;
  color: #5b6461;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.dealer-city-filter a:hover,
.dealer-city-filter a[aria-current="page"] { color: #fff; background: var(--dealer-green); }
.dealer-directory-content {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) 32px 48px;
}
.dealer-directory-group-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #cfd4d1;
}
.dealer-directory-group-title p { grid-column: 1 / -1; color: var(--dealer-copper); font-size: 11px; letter-spacing: .18em; }
.dealer-directory-group-title h2 { margin: 4px 0 0; font-family: "Songti SC", STSong, serif; font-size: 36px; font-weight: 500; }
.dealer-directory-group-title span { color: var(--dealer-muted); font-size: 13px; }
.dealer-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dealer-directory-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  min-height: 190px;
  padding: 30px;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dealer-directory-card:hover {
  z-index: 1;
  border-color: #b6c4bf;
  transform: translateY(-3px);
  box-shadow: var(--dealer-shadow);
}
.dealer-directory-code { color: var(--dealer-copper); font-family: Georgia, serif; font-size: 18px; letter-spacing: .08em; }
.dealer-directory-card-copy { display: grid; gap: 9px; min-width: 0; }
.dealer-directory-card-copy > strong { font-family: "Songti SC", STSong, serif; font-size: 24px; font-weight: 700; line-height: 1.35; }
.dealer-directory-legal { color: #59615f; font-size: 13px; }
.dealer-directory-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dealer-muted);
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dealer-directory-arrow { align-self: end; color: var(--dealer-green); font-size: 12px; white-space: nowrap; }
.dealer-directory-empty {
  padding: 80px 25px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--dealer-line);
}
.dealer-directory-empty h2 { margin: 0 0 8px; font-family: "Songti SC", STSong, serif; font-size: 32px; font-weight: 500; }
.dealer-directory-empty p { color: var(--dealer-muted); }
.dealer-directory-empty a { display: inline-block; margin-top: 22px; color: var(--dealer-green); border-bottom: 1px solid; }

@media (max-width: 980px) {
  .dealer-site-label { display: none; }
  .dealer-section-nav > div { overflow-x: auto; scrollbar-width: none; }
  .dealer-section-nav > div::-webkit-scrollbar { display: none; }
  .dealer-section-nav .dealer-nav-call { margin-left: 0; }
  .dealer-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
    gap: 32px;
  }
  .dealer-hero h1 { font-size: clamp(34px, 4.7vw, 44px); }
  .dealer-store,
  .dealer-store:nth-child(even) { grid-template-columns: 1fr; gap: 34px; }
  .dealer-store:nth-child(even) .dealer-store-gallery { grid-column: auto; grid-row: auto; }
  .dealer-team-layout { grid-template-columns: 1fr; }
  .dealer-team-copy { position: static; }
  .dealer-case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dealer-media-card,
  .dealer-media-card:nth-child(5n + 1),
  .dealer-media-card:nth-child(5n + 2) { grid-column: span 6; }
  .dealer-footer-inner { grid-template-columns: 1fr 1fr; }
  .dealer-footer-call { display: none; }
  .dealer-directory-card { grid-template-columns: 48px minmax(0, 1fr); }
  .dealer-directory-arrow { grid-column: 2; }
}

@media (max-width: 680px) {
  body.dealer-page { font-size: 15px; padding-bottom: 66px; }
  .dealer-preview { position: relative; z-index: 60; flex-direction: column; gap: 0; min-height: 52px; }
  .dealer-header-inner { min-height: 66px; padding: 0 18px; }
  .dealer-brand { width: min(220px, 57vw); }
  .dealer-brand img { max-height: 38px; }
  .dealer-global-nav > a:not(.dealer-header-call) { display: none; }
  .dealer-header-call { display: none; }
  .dealer-section-nav { top: 66px; }
  .dealer-section-nav > div { min-height: 47px; padding: 0 10px; }
  .dealer-section-nav a { padding: 0 13px; font-size: 13px; }
  .dealer-section-nav .dealer-nav-call { display: none; }
  .dealer-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    min-height: 0;
    padding: 24px 22px;
  }
  .dealer-hero-media { width: 100%; }
  .dealer-hero-media > a {
    height: auto;
    aspect-ratio: auto;
  }
  .dealer-hero-media.is-portrait {
    width: min(100%, calc(480px * var(--dealer-hero-ratio)));
    align-self: center;
  }
  .dealer-hero-media.is-portrait > a {
    height: auto;
    aspect-ratio: auto;
  }
  .dealer-hero-inner { justify-content: flex-start; padding: 0; }
  .dealer-hero .dealer-breadcrumb { margin-bottom: 20px; }
  .dealer-hero .dealer-kicker { margin-bottom: 10px; }
  .dealer-hero h1 { margin-top: 12px; font-size: clamp(33px, 10vw, 42px); }
  .dealer-hero-intro { max-width: none; font-size: 15px; line-height: 1.85; }
  .dealer-hero-actions { width: 100%; margin-top: 25px; }
  .dealer-hero.is-text-only { min-height: 0; padding-top: 42px; padding-bottom: 42px; }
  .dealer-hero.is-text-only .dealer-hero-inner { display: block; }
  .dealer-hero.is-text-only .dealer-hero-actions { width: 100%; margin-top: 28px; }
  .dealer-hero.is-text-only::before,
  .dealer-hero.is-text-only::after {
    top: 44%;
    left: auto;
    right: -28px;
    width: 110px;
    height: 250px;
    opacity: .55;
    transform: translateY(-50%) skewY(-7deg);
  }
  .dealer-hero.is-text-only::after { margin: 18px -34px 0 0; }
  .dealer-overview {
    grid-template-columns: 1fr;
    padding: 29px 22px 34px;
  }
  .dealer-overview > a,
  .dealer-overview > a:first-child,
  .dealer-overview > a:last-child { padding: 26px; }
  .dealer-overview h2 { font-size: 23px; }
  .dealer-section { padding: 40px 22px; scroll-margin-top: 122px; }
  .dealer-section-heading { display: block; margin-bottom: 24px; }
  .dealer-section-heading h2 { margin: 9px 0 15px; font-size: 39px; }
  .dealer-store-list { gap: 72px; }
  .dealer-store-gallery { gap: 7px; }
  .dealer-store-copy h3 { margin-top: 8px; font-size: 30px; }
  .dealer-store-facts > div { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; }
  .dealer-team-section > * { width: calc(100% - 44px); }
  .dealer-team-gallery { gap: 7px; }
  .dealer-case-index { grid-template-columns: 1fr; margin-bottom: 82px; }
  .dealer-case-link { grid-template-columns: 120px minmax(0, 1fr); }
  .dealer-case-link > img { height: 100%; aspect-ratio: auto; }
  .dealer-case-link > span { padding: 18px; }
  .dealer-case-link strong { font-size: 20px; }
  .dealer-case-summary { display: none; }
  .dealer-live-gallery { scroll-margin-top: 125px; }
  .dealer-case-detail { scroll-margin-top: 125px; }
  .dealer-gallery-grid { gap: 7px; }
  .dealer-media-card,
  .dealer-media-card:nth-child(5n + 1),
  .dealer-media-card:nth-child(5n + 2) { grid-column: span 12; }
  .dealer-cta { display: block; width: calc(100% - 44px); margin: 24px auto 80px; padding: 34px 25px; }
  .dealer-cta h2 { font-size: 32px; }
  .dealer-cta > a { display: inline-grid; margin-top: 28px; }
  .dealer-footer-inner { display: block; min-height: 210px; padding: 42px 22px; }
  .dealer-footer nav { justify-content: flex-start; margin-top: 25px; }
  .dealer-page .dealer-mobile-call {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 9px 22px calc(9px + env(safe-area-inset-bottom));
    color: #fff;
    background: var(--dealer-green-deep);
    box-shadow: 0 -5px 22px rgba(12, 20, 18, .18);
  }
  .dealer-mobile-call span { font-size: 13px; }
  .dealer-mobile-call strong { font-size: 18px; letter-spacing: .04em; }
  .dealer-lightbox { width: calc(100vw - 20px); }
  .dealer-directory-hero { display: block; padding: 28px 22px; }
  .dealer-directory-hero .dealer-breadcrumb { margin-bottom: 20px; }
  .dealer-directory-hero h1 { font-size: 44px; }
  .dealer-directory-hero > a { display: inline-grid; margin-top: 20px; }
  .dealer-city-filter > div { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 18px; }
  .dealer-directory-content { gap: 32px; padding: 24px 18px 40px; }
  .dealer-directory-group-title h2 { font-size: 32px; }
  .dealer-directory-grid { grid-template-columns: 1fr; }
  .dealer-directory-card { grid-template-columns: 43px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 24px 20px; }
  .dealer-directory-card-copy > strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-page *,
  .dealer-page *::before,
  .dealer-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
