/**
 * Stylesheet for the Helmet-Fresh interactive stations map (Leaflet + OpenStreetMap).
 * Loaded separately from style.css because the standalone page templates ship
 * their own inline CSS and must not be affected by plugin-wide overrides.
 */

/* Map container isolation and resets */
.helmet-fresh-wrapper #hf-map {
    outline: none;
}

.helmet-fresh-wrapper .leaflet-container {
    font-family: inherit;
    background-color: #e8efe9;
}

.helmet-fresh-wrapper .leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

.helmet-fresh-wrapper .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px 0 0 0;
}

/* Brand teardrop pin */
.helmet-fresh-wrapper .hf-pin-wrapper {
    background: none;
    border: none;
}

.helmet-fresh-wrapper .hf-pin {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00cc44, #006e20);
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 6px 14px rgba(0, 110, 32, 0.35);
}

.helmet-fresh-wrapper .hf-pin .material-symbols-outlined {
    transform: rotate(45deg);
    font-size: 20px;
    line-height: 1;
}

/* Popups */
.helmet-fresh-wrapper .leaflet-popup-content-wrapper {
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(26, 26, 26, 0.18);
    border: 1px solid rgba(187, 203, 182, 0.35);
}

.helmet-fresh-wrapper .leaflet-popup-content {
    margin: 16px 20px;
    min-width: 200px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.helmet-fresh-wrapper .hf-popup h3 {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.helmet-fresh-wrapper .hf-popup p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #3c4a3a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.helmet-fresh-wrapper .hf-popup p .material-symbols-outlined {
    font-size: 16px;
    color: #00cc44;
}

.helmet-fresh-wrapper .hf-popup-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 9999px;
    background-color: #006e20;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    transition: background-color 300ms ease, transform 300ms ease;
}

.helmet-fresh-wrapper .hf-popup-btn:hover {
    background-color: #00cc44;
    transform: translateY(-1px);
}

/* Station cards active state */
.helmet-fresh-wrapper .hf-station-card.active {
    border-color: rgba(0, 110, 32, 0.55) !important;
    box-shadow: 0 12px 28px rgba(0, 110, 32, 0.12) !important;
    transform: translateY(-2px);
}

.helmet-fresh-wrapper .hf-station-card.active .hf-station-icon {
    background-color: rgba(0, 204, 68, 0.25);
}

.helmet-fresh-wrapper .hf-station-card:focus-visible {
    outline: 2px solid #006e20;
    outline-offset: 2px;
}
