/* Dealership map: scoped to locations.html. */
.dealership-locations-page {
  --dealer-blue:#00aeef;
  --dealer-navy:#0f2f57;
  --dealer-line:#c9d8e2;
  --dealer-soft:#f3f7fa;
}

.dealership-locations-overview {
  padding:clamp(42px,6vw,84px) 0;
  background:var(--dealer-soft);
}

.dealership-overview-grid {
  display:grid;
  grid-template-columns:minmax(0,.68fr) minmax(0,1.32fr);
  gap:clamp(30px,5vw,76px);
  align-items:center;
}

.dealership-overview-copy .eyebrow {
  color:var(--dealer-blue);
}

.dealership-overview-copy h2 {
  max-width:10ch;
  color:var(--dealer-navy);
  font-size:clamp(3rem,5.2vw,5.5rem);
  line-height:.9;
}

.dealership-overview-copy>p:not(.eyebrow) {
  max-width:56ch;
  margin-top:22px;
  color:#4d6577;
  font-size:1.06rem;
  line-height:1.7;
}

.dealership-map-count {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:28px;
  color:var(--dealer-navy);
  font-size:.86rem;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.dealership-map-count::before,
.dealership-map-legend i {
  width:12px;
  height:12px;
  flex:none;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--dealer-blue);
  box-shadow:0 0 0 3px rgba(0,174,239,.2);
}

.dealership-map-shell {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(15,47,87,.2);
  border-radius:22px;
  background:#fff;
  box-shadow:0 20px 46px rgba(15,47,87,.16);
}

.dealership-map-shell::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:450;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.72);
  border-radius:inherit;
}

#dealership-locations-map {
  width:100%;
  height:clamp(430px,42vw,590px);
  background:radial-gradient(circle at 50% 40%, rgba(0,174,239,.21), #0b1722 72%);
}

.dealership-map-fallback {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:32px;
  color:#fff;
  text-align:center;
  background:
    radial-gradient(circle at 72% 30%, rgba(0,174,239,.28), transparent 26%),
    radial-gradient(circle at 25% 72%, rgba(15,47,87,.42), transparent 28%),
    #0b1722;
}

.dealership-map-fallback strong {
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:2.2rem;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.dealership-map-fallback span {
  max-width:42ch;
  color:rgba(255,255,255,.76);
  line-height:1.55;
}

#dealership-locations-map.leaflet-container .dealership-map-fallback {
  display:none;
}

.dealership-map-shell .leaflet-control-zoom {
  overflow:hidden;
  border:1px solid rgba(15,47,87,.17);
  border-radius:10px;
  box-shadow:0 10px 24px rgba(15,47,87,.14);
}

.dealership-map-shell .leaflet-control-zoom a {
  width:34px;
  height:34px;
  border-bottom:1px solid rgba(15,47,87,.12);
  background:rgba(255,255,255,.94);
  color:var(--dealer-navy);
  line-height:32px;
}

.dealership-map-shell .leaflet-control-zoom a:hover {
  background:#e0f7ff;
  color:#007aa8;
}

.dealership-map-shell .leaflet-control-attribution {
  padding:3px 6px;
  border-radius:7px 0 0;
  background:rgba(15,47,87,.78);
  color:rgba(255,255,255,.72);
  font-size:9px;
}

.dealership-map-shell .leaflet-control-attribution a {
  color:#fff;
}

/* Keep the required map-provider text credit, without the Leaflet flag badge. */
.dealership-map-shell .leaflet-attribution-flag,
.dealership-map-shell .leaflet-control-attribution svg,
.dealership-map-shell .leaflet-control-attribution img {
  display:none !important;
  width:0 !important;
  height:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
}

.dealership-map-marker {
  background:transparent;
  border:0;
}

.dealership-map-marker__pulse,
.dealership-map-marker__core {
  position:absolute;
  border-radius:50%;
}

.dealership-map-marker__pulse {
  inset:-7px;
  background:rgba(0,174,239,.24);
  animation:dealership-map-pulse 2.5s ease-out infinite;
}

.dealership-map-marker__core {
  inset:0;
  border:2.5px solid rgba(255,255,255,.94);
  background:var(--dealer-blue);
  box-shadow:0 0 0 3px rgba(0,174,239,.24),0 0 18px rgba(0,174,239,.65);
}

.dealership-map-popup .leaflet-popup-content-wrapper {
  overflow:hidden;
  border:1px solid rgba(15,47,87,.18);
  border-radius:14px;
  box-shadow:0 16px 34px rgba(15,47,87,.24);
}

.dealership-map-popup .leaflet-popup-content {
  width:230px !important;
  margin:0;
}

.dealership-map-popup__content {
  padding:18px;
  color:var(--dealer-navy);
  font-family:Arial,sans-serif;
}

.dealership-map-popup__content h3 {
  margin:0;
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:1.7rem;
  line-height:.95;
  text-transform:uppercase;
}

.dealership-map-popup__content p {
  margin:9px 0 14px;
  color:#4d6577;
  font-size:.82rem;
  line-height:1.45;
}

.dealership-map-popup__content a {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:7px;
  background:var(--dealer-blue);
  color:#063252;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none;
  text-transform:uppercase;
}

.dealership-map-popup__content a:hover {
  background:#008fc4;
  color:#fff;
}

.dealership-map-legend {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  color:#4d6577;
  font-size:.86rem;
  font-weight:700;
}

.dealership-map-legend i {
  display:block;
}

@keyframes dealership-map-pulse {
  0% { transform:scale(.85); opacity:.72; }
  100% { transform:scale(2.25); opacity:0; }
}

@media (max-width:1109px) {
  .dealership-overview-grid { grid-template-columns:1fr; }
  .dealership-overview-copy h2 { max-width:13ch; }
}

@media (max-width:699px) {
  .dealership-locations-overview { padding-block:42px; }
  #dealership-locations-map { height:390px; }
}

@media (max-width:380px) {
  .dealership-overview-copy h2 { font-size:2.8rem; }
  #dealership-locations-map { height:350px; }
}

@media (max-height:540px) and (orientation:landscape) {
  #dealership-locations-map { height:360px; }
}

@media (prefers-reduced-motion:reduce) {
  .dealership-map-marker__pulse { animation:none; }
}
