/* Compatibility shim. Store locator CSS lives in ../css/pages/store-locator.css. */
@import url("../css/pages/store-locator.css");

/* OpenStreetMap result layout */
.locator-map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.35fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  width: 100%;
}

.locator-results-panel {
  min-width: 0;
}

.locator-map-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.dealer-map {
  width: 100%;
  min-height: clamp(440px, 54vw, 680px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f3f3f0;
  overflow: hidden;
}

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

.dealer-map-marker {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #d11a0f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.dealer-map-marker img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.dealer-map-popup {
  display: grid;
  gap: 4px;
  min-width: 180px;
  font-family: inherit;
}

.dealer-map-popup strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dealer-map-popup span,
.dealer-map-popup a {
  font-size: 12px;
  line-height: 1.25;
}

.dealer-card.is-map-active {
  outline: 2px solid #d11a0f;
  outline-offset: -2px;
}

@media (max-width: 980px) {
  .locator-map-layout {
    grid-template-columns: 1fr;
  }

  .locator-map-panel {
    position: static;
    order: -1;
  }

  .dealer-map {
    min-height: 420px;
  }
}


/* Privacy-first map activation */
.map-privacy-gate {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  width: 100%;
  min-height: clamp(440px, 54vw, 680px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f3f3f0;
}

.map-privacy-gate strong {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.map-privacy-gate p,
.locator-privacy-hint {
  max-width: 680px;
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.locator-privacy-hint {
  margin-top: 12px;
}

.map-consent-button,
.map-disable-button {
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 12px 18px;
}

.map-disable-button {
  position: absolute;
  z-index: 1000;
  top: 12px;
  right: 12px;
  background: rgba(17, 17, 17, 0.9);
}

@media (max-width: 980px) {
  .map-privacy-gate {
    min-height: 420px;
  }
}
