/**
 * Map Styling - Google Maps-like appearance for Leaflet
 */

/* Custom marker styling */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 107, 209, 0.4) !important;
}

/* Custom popup styling */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
}

.custom-popup .leaflet-popup-content {
    margin: 12px;
    padding: 0;
}

.custom-popup .leaflet-popup-tip {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-popup {
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
}

.map-popup h6 {
    line-height: 1.3;
}

.map-popup .btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Leaflet controls styling to match Google Maps */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: white !important;
    color: var(--primary-700) !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    transition: background 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background: var(--accent) !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Attribution styling */
.leaflet-control-attribution {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Map container */
#listingsMap {
    border-radius: 0 0 12px 12px;
}

/* Dark mode map styling */
:root[data-theme="dark"] .leaflet-control-zoom a {
    background: var(--card-bg) !important;
    color: var(--primary) !important;
}

:root[data-theme="dark"] .leaflet-control-zoom a:hover {
    background: rgba(75, 59, 99, 0.3) !important;
}

:root[data-theme="dark"] .custom-popup .leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: var(--muted);
}

:root[data-theme="dark"] .custom-popup .leaflet-popup-tip {
    background: var(--card-bg);
}

:root[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(18, 18, 33, 0.9) !important;
    color: var(--muted) !important;
}

