/* ============================================
   MAP STYLES
   ============================================ */

#map { 
    height: calc(100vh - 300px); 
    width: 100%;
    position: relative; /* Required for map search overlay positioning */
}

/* Marker styles - color-coded by carbon impact */
.marker-green {
    background-color: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marker-yellow {
    background-color: #ffc107;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marker-red {
    background-color: #dc3545;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marker-gray {
    background-color: #6c757d;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Location markers - home, search, GPS positions */
.location-marker-home {
    background-color: #ffffff;
    border: 3px solid #764ba2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 8px rgba(118, 75, 162, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.location-marker-home::after {
    content: '🏠';
}

.location-marker-search {
    background-color: #ffffff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.location-marker-search::after {
    content: '🔍';
}

.location-marker-map {
    background-color: #ffffff;
    border: 3px solid #10b981;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.location-marker-map::after {
    content: '🗺️';
}

.location-marker-gps {
    background-color: #ffffff;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.location-marker-gps::after {
    content: '📍';
}

/* Pulse animation for location markers */
@keyframes pulse {
    0% {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }
}

.location-marker-home,
.location-marker-search,
.location-marker-map,
.location-marker-gps {
    animation: pulse 2s ease-in-out infinite;
}

/* Cluster styles - purple gradient matching theme */
.marker-cluster-small {
    background-color: rgba(182, 143, 232, 0.8) !important;
}

.marker-cluster-small div {
    background-color: rgba(182, 143, 232, 0.6) !important;
    width: 30px !important;
    height: 30px !important;
    margin-left: 5px !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    line-height: 30px !important;
    border-radius: 50% !important;
}

.marker-cluster-medium {
    background-color: rgba(118, 75, 162, 0.8) !important;
    width: 48px !important;
    height: 48px !important;
}

.marker-cluster-medium div {
    background-color: rgba(118, 75, 162, 0.6) !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: 4px !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
}

.marker-cluster-large {
    background-color: rgba(81, 45, 109, 0.8) !important;
    width: 60px !important;
    height: 60px !important;
}

.marker-cluster-large div {
    background-color: rgba(81, 45, 109, 0.6) !important;
    width: 50px !important;
    height: 50px !important;
    margin-left: 5px !important;
    margin-top: 5px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    line-height: 50px !important;
    border-radius: 50% !important;
}

.user-marker {
    background: transparent;
    border: none;
    font-size: 20px;
}
