/* Dealer Map Filter Enhancement */

/* Map controls dengan informasi filter yang lebih prominent */
.map-controls .card-body {
    padding: 12px 16px !important;
}

.map-controls .card-body h6 {
    margin-bottom: 6px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.map-controls .card-body small {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Filter info styling */
.map-controls .card-body small i {
    color: #28a745 !important;
    margin-right: 4px !important;
}

/* Enhanced map container untuk filter results */
.map-container {
    position: relative !important;
}

/* Filter indicator overlay */
.map-filter-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.map-filter-indicator.active {
    display: block;
}

.map-filter-indicator i {
    margin-right: 4px;
}

/* No results overlay */
.map-no-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.map-no-results.show {
    display: block;
}

.map-no-results h5 {
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.map-no-results p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.map-no-results .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* Enhanced marker popup untuk filtered results */
.leaflet-popup-content {
    margin: 8px 12px !important;
    line-height: 1.4 !important;
}

.leaflet-popup-content h6 {
    margin-bottom: 8px !important;
    font-size: 1rem !important;
}

/* Map zoom controls positioning */
.leaflet-control-zoom {
    margin-left: 10px !important;
    margin-top: 60px !important; /* Space for filter indicator */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-filter-indicator {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .map-no-results {
        padding: 15px;
        margin: 0 10px;
    }
    
    .map-no-results h5 {
        font-size: 1rem;
    }
    
    .map-no-results p {
        font-size: 0.85rem;
    }
    
    .leaflet-control-zoom {
        margin-top: 40px !important;
    }
}

/* Animation untuk filter changes */
.map-container {
    transition: opacity 0.3s ease-in-out;
}

.map-container.updating {
    opacity: 0.7;
}

/* Enhanced button group untuk map controls */
.map-controls .btn-group .btn {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
}

.map-controls .btn-group .btn.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}

/* Info text highlighting */
.map-controls small .text-primary {
    color: #007bff !important;
    font-weight: 600 !important;
}

.map-controls small .text-danger {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

.map-controls small .text-success {
    color: #28a745 !important;
    font-weight: 600 !important;
}