/* Custom Interactive Map Styles for One Time Installation Services */

#serviceAreaMap {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Custom Marker Pins */
.custom-marker {
    position: relative;
    width: 30px;
    height: 42px;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    animation: bounce 2s infinite;
}

.marker-pin.red {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.marker-pin.blue {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.marker-pin.green {
    background: linear-gradient(135deg, #00cc00 0%, #009900 100%);
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 204, 0, 0.4);
}

.marker-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    font-size: 14px;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
    color: #fff;
    text-align: center;
    line-height: 18px;
    transform: rotate(45deg);
}

/* Bounce Animation for Markers */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(-10px) rotate(-45deg);
    }
}

.custom-marker:hover .marker-pin {
    animation: none;
    transform: rotate(-45deg) scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom Popup Styles */
.custom-popup {
    font-family: 'Inter', sans-serif;
    padding: 10px;
    min-width: 200px;
}

.custom-popup h4 {
    margin: 0 0 10px 0;
    color: #2A07F9;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-popup p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.custom-popup strong {
    color: #333;
    font-weight: 600;
}

.custom-popup a {
    color: #2A07F9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-popup a:hover {
    color: #068FFF;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #2A07F9 0%, #068FFF 100%);
    color: #fff !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: linear-gradient(135deg, #068FFF 0%, #2A07F9 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 7, 249, 0.3);
}

.map-link i {
    margin-right: 5px;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Zoom Controls Styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: #2A07F9 !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #2A07F9 !important;
    color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #serviceAreaMap {
        height: 400px;
        border-radius: 5px;
    }

    .custom-popup {
        min-width: 180px;
    }

    .custom-popup h4 {
        font-size: 14px;
    }

    .custom-popup p {
        font-size: 12px;
    }

    .map-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Map Container Wrapper */
.map-wrapper {
    position: relative;
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.map-title {
    text-align: center;
    margin-bottom: 20px;
}

.map-title h3 {
    font-size: 28px;
    color: #2A07F9;
    margin-bottom: 10px;
    font-weight: 700;
}

.map-title p {
    font-size: 16px;
    color: #666;
}

/* Service Area Legend */
.service-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.legend-color.red {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.legend-color.blue {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}

.legend-color.green {
    background: linear-gradient(135deg, #00cc00 0%, #009900 100%);
}
