/* Campus Map Styles - Google Maps Daylight Mode */

.map-modal-content {
    width: 95vw;
    height: 90vh;
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    /* White background */
    border: 1px solid #ddd;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

.map-container-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.campus-map {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    /* Light gray fallback */
    z-index: 1;
}

/* Map Controls Overlay (HUD) */
.map-controls-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    pointer-events: none;
}

.map-header {
    background: rgba(255, 255, 255, 0.95);
    /* White glass */
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 8px;
    /* Softer corners */
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-header h2 {
    font-family: 'Segoe UI', sans-serif;
    /* Standard font */
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    letter-spacing: normal;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    font-size: 0.7rem;
    color: #ea4335;
    /* Google Red */
    animation: flash 2s infinite;
}

.map-toggles {
    display: flex;
    gap: 10px;
}

.map-toggle-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
    font-weight: 500;
}

.map-toggle-btn.active,
.map-toggle-btn:hover {
    background: #1a73e8;
    /* Google Blue */
    color: white;
    border-color: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.locate-me-btn {
    pointer-events: auto;
    background: white;
    border: 1px solid #ddd;
    color: #1a73e8;
    /* Google Blue */
    padding: 10px 20px;
    border-radius: 24px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.locate-me-btn:hover {
    background: #f8f9fa;
    color: #174ea6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.location-status {
    margin-top: 10px;
    background: white;
    padding: 6px 12px;
    border-radius: 4px;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    pointer-events: auto;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* Detailed Place Panel (Popup) */
.place-detail-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: #fff;
    border: none;
    border-radius: 8px;
    /* Google card style */
    z-index: 1001;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.place-image-header {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f4;
    position: relative;
}

.place-image-header::after {
    display: none;
    /* Remove dark gradient */
}

.place-info-body {
    padding: 20px;
    position: relative;
}

.place-info-body h3 {
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
    color: #202124;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.place-info-body p {
    color: #5f6368;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.place-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #1a73e8;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-weight: 500;
}

.navigate-btn {
    width: 100%;
    background: #1a73e8;
    /* Google Blue */
    border: none;
    color: white;
    padding: 10px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Google Sans', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.navigate-btn:hover {
    background: #174ea6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navigate-btn::before {
    content: '↗';
    /* Arrow icon */
    font-size: 1.2rem;
}

.close-detail-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #5f6368;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.close-detail-btn:hover {
    background: #fff;
    color: #202124;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Leaflet Customizations for Light Mode */
.leaflet-container {
    background: #e5e5e5;
}

.leaflet-popup-content-wrapper {
    background: #fff;
    border: none;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-tip {
    background: #fff;
}

/* Custom Markers updated for light map */
.custom-pin {
    background-color: #ea4335 !important;
    /* Google Red */
    border-radius: 50%;
    border: 2px solid white !important;
    width: 18px;
    height: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Remove glow animation for cleaner look */
    animation: none;
}

.user-location-marker {
    background-color: #4285f4;
    /* Google Blue */
    border-radius: 50%;
    border: 2px solid white;
    width: 22px;
    height: 22px;
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0.2);
    animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(66, 133, 244, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}


/* FAB Styling */
.map-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-fab:hover {
    transform: scale(1.1);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

/* Tooltip Styling */
.map-label-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 4px #000;
}

/* Tracking Active State */
.tracking-active {
    border-color: #00ff00 !important;
    background: rgba(0, 255, 0, 0.1) !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3) !important;
}

/* Animations */
@keyframes flash {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px #00ff00;
    }

    50% {
        opacity: 0.3;
        text-shadow: none;
    }
}