/* ============================================================
 * Locations Map
 * Dark Leaflet map with yellow markers, used on /contact/.
 * ============================================================ */

.locations-map-section {
  padding: 48px 0 0;
}

.locations-map {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
}

@media (max-width: 1024px) {
  .locations-map {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .locations-map-section {
    padding: 32px 0 0;
  }
  .locations-map {
    height: 380px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .locations-map {
    height: 340px;
  }
}

/* Custom yellow marker (uses divIcon, so we style it via CSS). */
.meiborg-marker {
  width: 28px;
  height: 28px;
  background: var(--brand-2, #ffda00);
  border: 3px solid #111;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 218, 0, 0.35),
              0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.meiborg-marker:hover,
.meiborg-marker:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.55),
              0 6px 14px rgba(0, 0, 0, 0.55);
  outline: none;
}

/* Popup styling — dark, on-brand. */
.leaflet-popup-content-wrapper {
  background: #1f1f1f;
  color: #f5f5f5;
  border-radius: 10px;
  border: 1px solid rgba(255, 218, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  padding: 4px 6px;
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.4;
  font-size: 14px;
  min-width: 200px;
}
.leaflet-popup-tip {
  background: #1f1f1f;
  border: 1px solid rgba(255, 218, 0, 0.35);
}
.leaflet-popup-close-button {
  color: #f5f5f5 !important;
  font-size: 20px !important;
  padding: 6px 8px 0 0 !important;
}
.leaflet-popup-close-button:hover {
  color: var(--brand-2, #ffda00) !important;
}

.meiborg-popup-name {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-2, #ffda00);
  margin-bottom: 4px;
}
.meiborg-popup-addr {
  display: block;
  color: #d9d9d9;
  margin-bottom: 10px;
  font-size: 13px;
}
.meiborg-popup-btn {
  display: inline-block;
  background: var(--brand-2, #ffda00);
  color: #111 !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.meiborg-popup-btn:hover,
.meiborg-popup-btn:focus-visible {
  background: var(--brand-2-light, #ffe445);
  transform: translateY(-1px);
  outline: none;
}

/* Row that holds the popup CTA buttons side by side. */
.meiborg-popup-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.meiborg-popup-actions .meiborg-popup-btn {
  flex: 1 1 auto;
}

/* On very narrow screens, let them stack rather than overflow the popup. */
@media (max-width: 380px) {
  .meiborg-popup-actions {
    flex-wrap: wrap;
  }
}

/* Secondary CTA ("More Information") — outline style so the yellow
   "Get Directions" stays the primary action. */
.meiborg-popup-btn--secondary {
  background: transparent;
  color: var(--brand-2, #ffda00) !important;
  border: 1px solid var(--brand-2, #ffda00);
}
.meiborg-popup-btn--secondary:hover,
.meiborg-popup-btn--secondary:focus-visible {
  background: rgba(255, 218, 0, 0.15);
  color: var(--brand-2, #ffda00) !important;
}

/* Leaflet attribution — keep it legible on dark tiles. */
.leaflet-container a.leaflet-popup-close-button { color: #f5f5f5; }
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #bbb !important;
}
.leaflet-control-attribution a { color: #ddd !important; }

/* Zoom controls — match dark theme. */
.leaflet-bar a,
.leaflet-bar a:hover {
  background: #1f1f1f;
  color: #f5f5f5;
  border-color: #333;
}
.leaflet-bar a:hover {
  background: #2a2a2a;
  color: var(--brand-2, #ffda00);
}
