.batching-plants-map {
    width: 100%;
    height: 400px;
    min-height: 400px;
    background: #f3f4f6;
}

@media (max-width: 767px) {
    .batching-plants-map {
        height: 350px;
    }
}

.leaflet-control-zoom > a {
    text-decoration: none !important;
}

/* Remove Leaflet's default marker wrapper styling. */
.batching-plant-marker {
    background: transparent;
    border: 0;
}

/* Minimal branded marker. */
/* .batching-plant-marker span {
    display: block;
    width: 18px;
    height: 18px;
    background: #00bc9f;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.18);
} */

/* Slight marker emphasis on hover. */
/* .batching-plant-marker:hover span {
    transform: scale(1.12);
} */

/* Map pin */
.batching-plant-marker span {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    background: #00bc9f;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.2);
    transform: rotate(-45deg);
}

/* Inner dot */
.batching-plant-marker span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Pulse */
.batching-plant-marker span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    background: rgba(0, 188, 159, 0.3);
    border-radius: 50%;
    transform:
        translate(-50%, -50%)
        rotate(45deg);
    animation: batching-plant-marker-pulse 2s ease-out infinite;
    z-index: -1;
}

.batching-plant-marker:hover span {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25);
}

@keyframes batching-plant-marker-pulse {
    0% {
        opacity: 0.75;
        transform:
            translate(-50%, -50%)
            rotate(45deg)
            scale(0.8);
    }

    70%,
    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            rotate(45deg)
            scale(2.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .batching-plant-marker span::before {
        animation: none;
    }
}

/* Remove the default popup shell styling. */
.batching-plants-map .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.12);
}

.batching-plants-map .leaflet-popup-content {
    margin: 0;
    min-width: 160px;
}

.batching-plants-map .leaflet-popup-tip {
    box-shadow: none;
}

/* Minimal popup content. */
.batching-plant-popup {
    padding: 14px 16px;
}

.batching-plant-popup__title {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
}

/* Compact close button. */
.batching-plants-map .leaflet-popup-close-button {
    top: 0.5em !important;
    right: 0.5em !important;
}

/* Make attribution less visually prominent. */
.batching-plants-map .leaflet-control-attribution {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 9px;
}

.batching-plants-map .batching-plant-popup__address {
    margin-top: 0.875em;
}

.plant-card {
    transition: .2s ease-in-out;
}

.plant-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(0,0,0,.12);
}

.plant-card.is-active {
    border-left: 10px solid #00bc9f;
    padding-left: calc(var(--card-padding) - 4px);
}
.plant-card .map-icon {
    transition: .2s ease-in-out;
}

.plant-card:hover .map-icon {
    transform: scale(1.2);
}

.plant-card.is-active .map-icon {
    background-color: #00bc9f !important;
}