/* Location Map Styles for public-login.html */

/* Map Container */
.map-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.map-container:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Map Header */
.map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.map-header i {
    color: #FFD43B;
    font-size: 16px;
}

/* Leaflet Map */
#locationMap {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #1a1a2e;
}

/* Custom map controls styling */
#locationMap .leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#locationMap .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.95);
    color: #eb1a13;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#locationMap .leaflet-control-zoom a:hover {
    background: white;
    color: #b81414;
    transform: scale(1.05);
}

/* Custom marker styling (handled in JS) */
.custom-location-marker {
    animation: markerBounce 2s ease-in-out infinite;
}

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

/* Map Status Indicator */
.map-status {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.map-status i {
    font-size: 14px;
}

/* Leaflet popup customization */
#locationMap .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #eb1a13;
}

#locationMap .leaflet-popup-tip {
    background: white;
    border: 2px solid #eb1a13;
    border-top: none;
    border-right: none;
}

#locationMap .leaflet-popup-content {
    margin: 10px;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 968px) {
    .map-container {
        margin-top: 20px;
        padding: 15px;
    }

    #locationMap {
        height: 220px;
    }

    .map-header {
        font-size: 14px;
    }

    .map-status {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .map-container {
        margin-top: 15px;
        padding: 12px;
        border-radius: 12px;
    }

    #locationMap {
        height: 200px;
        border-radius: 10px;
    }

    .map-header {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .map-status {
        font-size: 11px;
        padding: 6px 10px;
        margin-top: 10px;
    }

    /* Ensure map controls are properly sized on mobile */
    #locationMap .leaflet-control-zoom {
        transform: scale(0.9);
    }
}

/* Loading animation for map tiles */
#locationMap .leaflet-tile-container {
    transition: opacity 0.3s ease;
}

/* Custom scrollbar for mobile devices */
@media (max-width: 768px) {
    .login-left {
        overflow-y: auto;
    }

    .login-left::-webkit-scrollbar {
        width: 4px;
    }

    .login-left::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .login-left::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }
}