/* assets/css/map.css */

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* Adjust leaflet controls to be below our header */
.leaflet-top {
    top: 90px !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.leaflet-control-zoom a {
    background: rgba(30, 41, 59, 0.9) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Custom User Marker */
.user-marker {
    background: transparent;
}

.user-icon-inner {
    width: 40px;
    height: 40px;
    background: #3b82f6; /* Blue primary color */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 2px solid white;
    animation: float 2s ease-in-out infinite;
}

.user-icon-inner svg {
    width: 24px;
    height: 24px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Dark theme specific fixes for leaflet popups */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: rgba(30, 41, 59, 0.95);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Make standard OSM map dark */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
