/* Store directory and store-detail pages.
   Kept isolated from the global stylesheet to prevent regressions elsewhere. */
.page-stores,
.page-store-detail {
  --local-ink: #0d1422;
  --local-ink-soft: #1c2738;
  --local-copy: #526077;
  --local-line: #e2e7ee;
  --local-surface: #ffffff;
  --local-soft: #f3f5f8;
  --local-red: #e51f27;
  --local-red-dark: #bf151c;
  --local-red-soft: #fff0f1;
  overflow-x: clip;
}

.page-stores main,
.page-store-detail main {
  background: var(--local-soft);
}

.page-stores .local-container,
.page-store-detail .local-container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.page-store-detail .local-container-wide {
  width: min(1320px, calc(100% - 40px));
}

.page-stores .local-hero,
.page-store-detail .local-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 24%, rgba(229, 31, 39, .23), transparent 31%),
    linear-gradient(118deg, #0b1018 0%, #101722 57%, #210d10 100%);
}

.page-stores .local-hero::before,
.page-store-detail .local-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.page-stores .local-hero::after,
.page-store-detail .local-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10vw;
  bottom: -60%;
  width: min(720px, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.014);
}

.page-stores .local-hero-inner,
.page-store-detail .local-hero-inner {
  position: relative;
  padding-block: 58px 64px;
}

.page-stores .local-breadcrumb,
.page-store-detail .local-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  color: #c7ced9;
  font-size: .82rem;
  font-weight: 700;
}

.page-stores .local-breadcrumb a,
.page-store-detail .local-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color .18s ease;
}

.page-stores .local-breadcrumb a:hover,
.page-store-detail .local-breadcrumb a:hover {
  color: #ff8f94;
}

.page-stores .local-eyebrow,
.page-store-detail .local-eyebrow,
.page-stores .local-section-kicker,
.page-store-detail .local-section-kicker {
  margin: 0 0 12px;
  color: var(--local-red);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-stores .local-eyebrow,
.page-store-detail .local-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ff7b80;
}

.page-stores .local-eyebrow > span,
.page-store-detail .local-eyebrow > span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--local-red);
}

.page-stores .local-hero h1,
.page-store-detail .local-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.page-store-detail .local-hero h1 strong {
  color: #ff9ea2;
  font-weight: inherit;
}

.page-stores .local-hero-copy,
.page-store-detail .local-hero-copy {
  max-width: 780px;
  margin: 22px 0 0;
  color: #d3dae5;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.page-stores .local-btn,
.page-store-detail .local-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.page-stores .local-btn:hover,
.page-store-detail .local-btn:hover {
  transform: translateY(-2px);
}

.page-stores .local-btn:focus-visible,
.page-store-detail .local-btn:focus-visible,
.page-stores .local-icon-link:focus-visible,
.page-store-detail .local-icon-link:focus-visible {
  outline: 3px solid rgba(229, 31, 39, .3);
  outline-offset: 3px;
}

.page-stores .local-btn svg,
.page-store-detail .local-btn svg,
.page-stores .local-icon-link svg,
.page-store-detail .local-icon-link svg,
.page-stores .store-directory-address svg,
.page-store-detail .store-detail-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.page-stores .local-btn-primary,
.page-store-detail .local-btn-primary {
  color: #fff;
  background: var(--local-red);
  box-shadow: 0 12px 26px rgba(229, 31, 39, .24);
}

.page-stores .local-btn-primary:hover,
.page-store-detail .local-btn-primary:hover {
  background: var(--local-red-dark);
  box-shadow: 0 15px 30px rgba(229, 31, 39, .3);
}

.page-store-detail .local-btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
}

.page-store-detail .local-btn-ghost:hover {
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.1);
}

.page-store-detail .local-btn-dark {
  color: #fff;
  background: var(--local-ink);
  box-shadow: 0 12px 25px rgba(13,20,34,.16);
}

.page-store-detail .local-btn-dark:hover {
  background: #222d3e;
}

.page-store-detail .local-btn-outline {
  color: var(--local-ink);
  border-color: #cbd3df;
  background: #fff;
}

.page-store-detail .local-btn-outline:hover {
  border-color: var(--local-red);
  color: var(--local-red-dark);
}

.page-store-detail .local-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Directory */
.page-stores .stores-showcase {
  padding: 82px 0 96px;
}

.page-stores .local-section-heading,
.page-store-detail .local-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 36px;
}

.page-stores .local-section-heading h2,
.page-store-detail .local-section-heading h2 {
  margin: 0;
  color: var(--local-ink);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.page-stores .local-section-heading > p,
.page-store-detail .local-section-heading > p {
  margin: 0;
  color: var(--local-copy);
  font-size: 1rem;
  line-height: 1.7;
}

.page-stores .stores-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.page-stores .store-directory-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(14, 23, 39, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-stores .store-directory-card:hover {
  transform: translateY(-5px);
  border-color: #cbd3de;
  box-shadow: 0 22px 48px rgba(14, 23, 39, .12);
}

.page-stores .store-directory-card.is-headquarters {
  box-shadow: inset 0 3px 0 var(--local-red), 0 15px 38px rgba(14, 23, 39, .07);
}

.page-stores .store-directory-map {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #dce2e8;
}

.page-stores .store-directory-map iframe,
.page-store-detail .store-map-premium iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-stores .store-directory-map iframe {
  position: absolute;
  inset: 0;
}

.page-stores .store-directory-map-fallback {
  display: grid;
  place-items: center;
  color: #8792a3;
  background: linear-gradient(135deg, #e9edf2, #d8dee7);
}

.page-stores .store-directory-map-fallback svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.page-stores .store-directory-content {
  display: flex;
  min-height: 350px;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.page-stores .store-directory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.page-stores .store-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--local-red-dark);
  background: var(--local-red-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.page-stores .store-state {
  color: #8b97a9;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-stores .store-directory-content h3 {
  margin: 0;
  color: var(--local-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.page-stores .store-directory-name {
  margin: 7px 0 0;
  color: #637087;
  font-size: .94rem;
  font-weight: 800;
}

.page-stores .store-directory-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  margin: 26px 0 24px;
  color: #526077;
  font-size: .95rem;
  line-height: 1.65;
}

.page-stores .store-directory-address svg {
  margin-top: 3px;
  color: var(--local-red);
}

.page-stores .store-directory-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #e6eaf0;
}

.page-stores .store-directory-actions .local-btn {
  flex: 1 1 auto;
}

.page-stores .local-icon-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #445066;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.page-stores .local-icon-link:hover {
  color: var(--local-red);
}

.page-stores .stores-empty {
  padding: 44px;
  border: 1px solid var(--local-line);
  border-radius: 18px;
  color: var(--local-copy);
  background: #fff;
  text-align: center;
}

/* Store detail */
.page-store-detail .store-detail-hero {
  min-height: 480px;
}

.page-store-detail .store-overview {
  padding: 90px 0;
}

.page-store-detail .store-overview-shell {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(14, 23, 39, .09);
}

.page-store-detail .store-info-panel {
  padding: clamp(34px, 4vw, 62px);
}

.page-store-detail .store-info-panel h2 {
  max-width: 490px;
  margin: 0;
  color: var(--local-ink);
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.page-store-detail .store-info-intro {
  max-width: 520px;
  margin: 19px 0 31px;
  color: var(--local-copy);
  font-size: 1.03rem;
  line-height: 1.7;
}

.page-store-detail .store-details-premium {
  display: grid;
  gap: 0;
  margin: 0 0 30px;
}

.page-store-detail .store-details-premium > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 19px 0;
  border-top: 1px solid #e5e9ef;
}

.page-store-detail .store-detail-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--local-red);
  background: var(--local-red-soft);
}

.page-store-detail .store-details-premium dt {
  margin-bottom: 4px;
  color: #8792a3;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.page-store-detail .store-details-premium dd {
  margin: 0;
  color: #263247;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page-store-detail .store-details-premium a {
  color: inherit;
  text-decoration: none;
}

.page-store-detail .store-map-premium {
  min-height: 580px;
  background: #dfe4ea;
}

.page-store-detail .store-regions {
  padding: 82px 0;
  color: #fff;
  background: var(--local-ink);
}

.page-store-detail .store-regions-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.page-store-detail .store-regions h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.page-store-detail .store-regions p:not(.local-section-kicker) {
  margin: 18px 0 0;
  color: #b8c1cf;
  line-height: 1.7;
}

.page-store-detail .service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-store-detail .service-area-list li {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #e9edf3;
  background: rgba(255,255,255,.06);
  font-size: .84rem;
  font-weight: 750;
}

.page-store-detail .store-vehicles {
  padding: 92px 0;
  background: #fff;
}

.page-store-detail .store-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-store-detail .store-vehicle-grid > * {
  min-width: 0;
}

.page-store-detail .store-stock-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid #e1e6ed;
  border-radius: 16px;
  background: #f7f8fa;
}

.page-store-detail .store-stock-cta p {
  margin: 0;
  color: var(--local-copy);
  font-weight: 700;
}

.page-store-detail .store-final-cta {
  padding: 78px 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 35%, rgba(229,31,39,.25), transparent 30%),
    linear-gradient(118deg, #0b1018, #171e2a 63%, #230b0e);
}

.page-store-detail .store-final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.page-store-detail .store-final-cta h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.07;
}

.page-store-detail .store-final-cta p:not(.local-section-kicker) {
  margin: 15px 0 0;
  color: #c8d0dc;
  line-height: 1.7;
}

.page-store-detail .store-final-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1080px) {
  .page-stores .stores-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-store-detail .store-overview-shell {
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  }

  .page-store-detail .store-regions-inner {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 50px;
  }
}

@media (max-width: 820px) {
  .page-stores .local-container,
  .page-store-detail .local-container,
  .page-store-detail .local-container-wide {
    width: min(100% - 32px, 720px);
  }

  .page-stores .local-hero,
  .page-store-detail .local-hero,
  .page-store-detail .store-detail-hero {
    min-height: 390px;
  }

  .page-stores .local-section-heading,
  .page-store-detail .local-section-heading,
  .page-store-detail .store-regions-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-store-detail .store-overview-shell {
    grid-template-columns: 1fr;
  }

  .page-store-detail .store-map-premium {
    min-height: 400px;
  }

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

  .page-store-detail .store-final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-stores .local-container,
  .page-store-detail .local-container,
  .page-store-detail .local-container-wide {
    width: calc(100% - 28px);
  }

  .page-stores .local-hero,
  .page-store-detail .local-hero,
  .page-store-detail .store-detail-hero {
    min-height: 0;
  }

  .page-stores .local-hero-inner,
  .page-store-detail .local-hero-inner {
    padding-block: 38px 48px;
  }

  .page-stores .local-breadcrumb,
  .page-store-detail .local-breadcrumb {
    margin-bottom: 24px;
  }

  .page-stores .local-hero h1,
  .page-store-detail .local-hero h1 {
    font-size: clamp(2.25rem, 13vw, 3rem);
    line-height: 1;
  }

  .page-stores .local-hero-copy,
  .page-store-detail .local-hero-copy {
    margin-top: 18px;
    font-size: .96rem;
    line-height: 1.65;
  }

  .page-store-detail .local-hero-actions,
  .page-store-detail .store-final-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .page-store-detail .local-hero-actions .local-btn,
  .page-store-detail .store-final-actions .local-btn {
    width: 100%;
  }

  .page-stores .stores-showcase,
  .page-store-detail .store-overview,
  .page-store-detail .store-vehicles {
    padding: 58px 0 66px;
  }

  .page-stores .stores-premium-grid,
  .page-store-detail .store-vehicle-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-stores .store-directory-map {
    min-height: 230px;
  }

  .page-stores .store-directory-content {
    min-height: 0;
    padding: 24px 20px 22px;
  }

  .page-stores .store-directory-address {
    min-height: 0;
    margin-block: 22px;
  }

  .page-stores .store-directory-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-stores .local-icon-link {
    justify-content: center;
  }

  .page-store-detail .store-overview-shell {
    min-height: 0;
    border-radius: 18px;
  }

  .page-store-detail .store-info-panel {
    padding: 30px 22px;
  }

  .page-store-detail .store-map-premium {
    min-height: 340px;
  }

  .page-store-detail .store-regions {
    padding: 58px 0;
  }

  .page-store-detail .service-area-list {
    gap: 8px;
  }

  .page-store-detail .service-area-list li {
    font-size: .76rem;
  }

  .page-store-detail .store-stock-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .page-store-detail .store-stock-cta .local-btn {
    width: 100%;
  }

  .page-store-detail .store-final-cta {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-stores .local-btn,
  .page-store-detail .local-btn,
  .page-stores .store-directory-card {
    transition: none;
  }
}
