/* 
   ==========================================================================
   MoovDubai Service Coverage Map Styles
   ========================================================================== 
*/

.sd-service-map-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    border: none;
}

/* Map Header / UI Summary */
.sd-map-header {
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sd-map-header-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: #111;
    font-weight: 700;
}

.sd-map-header-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Map Legend */
.sd-map-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #444;
}

.sd-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sd-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.sd-legend-dot.available { background-color: #22c55e; }
.sd-legend-dot.limited { background-color: #eab308; }
.sd-legend-dot.coverage { background-color: #94a3b8; }

/* The Leaflet Map Container */
#service-map {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    z-index: 1;
}

/* Custom Marker Styling */
.moov-map-marker {
    background: transparent;
    border: none;
}

.moov-marker-pulse {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 3px solid #fff;
    transition: transform 0.2s ease;
}

.moov-marker-pulse:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

.moov-marker-pulse.available { background-color: #22c55e; }
.moov-marker-pulse.limited { background-color: #eab308; }
.moov-marker-pulse.coverage { background-color: #94a3b8; }

/* Colored Shadow Area */
.moov-marker-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: marker-radar 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes marker-radar {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.6; }
    80%, 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

.moov-marker-pulse.available::after { background-color: #22c55e; }
.moov-marker-pulse.limited::after { background-color: #eab308; }
.moov-marker-pulse.coverage::after { background-color: #94a3b8; }

.moov-marker-pulse.active-area {
    transform: scale(1.3);
    border-color: #F5A623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.3);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}

.moov-popup-inner {
    padding: 20px;
}

.moov-popup-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.moov-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
}

.moov-popup-team {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.moov-popup-team strong {
    color: #F5A623;
    font-size: 1rem;
}

.moov-popup-services {
    margin-bottom: 16px;
}

.moov-popup-services span {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 4px 4px 0;
    text-transform: capitalize;
}

.moov-popup-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #F5A623;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.moov-popup-cta:hover {
    background: #d98f1a;
}

@media (max-width: 768px) {
    #service-map {
        height: 60vh;
        min-height: 400px;
    }
    
    .sd-map-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .leaflet-popup-content {
        width: 220px !important;
    }
}
