/**
 * @file
 * Styles for HonorHealth MapLibre location map.
 */

/* Make the popup close button always visible and match live site */
.maplibregl-popup-close-button {
  opacity: 1 !important;
  background-color: transparent;
  color: #666;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  border: none;
  font-weight: 300;
}

.maplibregl-popup-close-button:hover {
  background-color: transparent;
  color: #333;
}

/* Popup styling to match Vue component */
.map-marker-popup {
  padding: 0;
  min-width: 200px;
}

.map-marker-popup .name {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.map-marker-popup .name a {
  color: #692A69;
  text-decoration: none;
}

.map-marker-popup .name a:hover {
  text-decoration: underline;
}

.map-marker-popup .details {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.map-marker-popup .address,
.map-marker-popup .city-state-zip {
  color: #333;
}

.map-marker-popup .phone {
  margin-top: 4px;
}

.map-marker-popup .phone a {
  color: #0066B3;
  text-decoration: none;
}

.map-marker-popup .phone a:hover {
  text-decoration: underline;
}

/* Make map container fill viewport responsively */
.location-search-results__map-view {
  width: 100%;
  height: 100vh;
  min-height: 500px;
}

#honorhealth-location-map {
  width: 100%;
  height: 100%;
}

/* Adjust for desktop grid layout */
@media (min-width: 1024px) {
  .location-search-results__map-view {
    height: calc(100vh - 120px); /* Account for header */
  }
}
