/* ==============================
   Location Map — Leaflet overrides
   ============================== */

#location-map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    z-index: 1;
}

/* --- Popup --- */
.map-popup {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    min-width: 160px;
}

.map-popup strong {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.map-popup-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-popup-detail {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* --- Legend --- */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
}

.map-legend strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #1a1a1a;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
}

.map-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Villa marker pulse --- */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

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

    .map-legend {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
}
