/* Map container styling */
#map {
    height: 500px;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    background: transparent;
}

/* Map controls styling */
.map-controls {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.map-controls h5 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    color: #495057;
    font-weight: 500;
}

/* Custom marker styling */
.custom-marker {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Hide routing instructions panel */
.leaflet-routing-container {
    display: none !important;
}

/* Style for map legend */
.map-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 12px;
    line-height: 1.4;
}

/* Admin map search styling */
.admin-map-search {
    margin-bottom: 15px;
}

.admin-map-search .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.admin-map-search .form-control {
    border-right: none;
    font-size: 14px;
}

.admin-map-search .btn {
    border-left: none;
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

.admin-map-search .btn:hover {
    background-color: #0056b3;
}

/* Admin location map styling */
#location-map {
    height: 400px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

/* Admin location info styling moved to avoid conflicts */
.admin-location-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Leaflet map customizations */
.leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* Responsive map styling */
@media (max-width: 768px) {
    #map {
        height: 400px;
        border-radius: 10px;
    }

    .map-controls {
        padding: 12px;
    }

    #location-map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    #map {
        height: 350px;
    }

    .map-controls {
        padding: 10px;
    }

    #location-map {
        height: 250px;
    }
}
