/* Crown Pavilions OSM map styling. Sits alongside leaflet.css and only
   covers the brand pin plus the map container sizes the Google build got
   from its own component CSS (.showsite-gmp-map, .showsite-map-container). */

.crown-osm-map {
  width: 100%;
  height: 420px;
  background: #f4f4f4;
}

@media (min-width: 1024px) {
  .crown-osm-map {
    height: 520px;
  }
}

.crown-osm-map--finder {
  height: 500px;
}

@media (min-width: 1024px) {
  .crown-osm-map--finder {
    height: 600px;
  }
}

/* Leaflet sets its own font; keep the site's instead. */
.crown-osm-map.leaflet-container {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* Brand pin. divIcon ships with a white background and border by default. */
.crown-pin {
  background: transparent;
  border: 0;
}

.crown-pin svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.3));
}

/* Distance label that rides above a pin after a search. */
.crown-pin__label {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fff;
  color: #2b2b2b;
  border: 1px solid rgb(201 162 39 / 0.4);
  padding: 1px 6px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
}

.leaflet-popup-content {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.leaflet-popup-content a {
  color: #1b4332;
  text-decoration: underline;
}

.leaflet-popup-content strong {
  color: #1b4332;
}

/* The finder's search panel floats over the map, so the map must not
   out-stack it. */
.crown-osm-map.leaflet-container {
  z-index: 0;
}
