@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            overflow: hidden;
        }

        body, .app-container {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

        .app-container {
            position: relative;
            height: 100vh;
            overflow: hidden;
        }

        .header {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            color: white;
            padding: 12px 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            position: relative;
            z-index: 1000;
            border-bottom: 2px solid rgba(255, 107, 107, 0.3);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 28px;
            font-weight: 800;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .shield-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24, #fd79a8);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
            animation: logoGlow 3s ease-in-out infinite alternate;
        }

        @keyframes logoGlow {
            0% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); }
            100% { box-shadow: 0 8px 35px rgba(255, 107, 107, 0.8); }
        }

        .tagline {
            font-size: 14px;
            color: #ffffff;
            opacity: 0.9;
            font-weight: 500;
            text-shadow: 0 1px 5px rgba(0,0,0,0.3);
        }

        .search-panel {
            position: absolute;
            top: 100px;
            left: 20px;
            right: 20px;
            z-index: 1000;
            max-width: 600px;
            margin: 0 auto;
            display: none;
        }

        .search-panel.show {
            display: block;
            animation: slideDownBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes slideDownBounce {
            0% { opacity: 0; transform: translateY(-100px) scale(0.8); }
            70% { transform: translateY(10px) scale(1.05); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        .search-container {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(25px);
            border-radius: 25px;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            border: 2px solid rgba(255, 107, 107, 0.3);
            position: relative;
            overflow: hidden;
        }

        .search-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .search-input {
            width: 100%;
            padding: 18px 25px;
            border: 2px solid rgba(255, 107, 107, 0.3);
            border-radius: 25px;
            font-size: 16px;
            outline: none;
            transition: all 0.4s ease;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            margin-bottom: 20px;
            font-family: 'Poppins', sans-serif;
            font-weight: 500;
        }

        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .search-input:focus {
            border-color: #ff6b6b;
            box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.02);
        }

        .search-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24, #fd79a8);
            color: white;
            border: none;
            padding: 18px 35px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 700;
            font-size: 16px;
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            width: 100%;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: 'Poppins', sans-serif;
        }

        .search-btn:hover:not(:disabled) {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
        }

        .map-container {
            position: relative;
            height: calc(100vh - 76px);
        }

        #map {
            width: 100%;
            height: 100%;
            filter: saturate(1.2) contrast(1.1) brightness(0.9);
        }

        .controls-overlay {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .safety-toggle {
            position: relative;
        }

        .safety-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            padding: 18px 30px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 700;
            font-size: 15px;
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 250px;
            justify-content: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: 'Poppins', sans-serif;
        }

        .safety-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
        }

        .safety-btn.active {
            background: linear-gradient(135deg, #00b894, #00a085, #55efc4);
            animation: activePulse 2s infinite;
        }

        @keyframes activePulse {
            0%, 100% { 
                box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 15px 50px rgba(0, 184, 148, 0.8);
                transform: scale(1.02);
            }
        }

        .feature-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    /* ✅ Removed any 'right' property that may conflict */
    
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    display: none;
    border: 2px solid rgba(255, 107, 107, 0.2);
    min-width: 280px;
}


        .feature-panel.show {
            display: block;
            animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .feature-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .feature-btn {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 36, 0.2));
            border: 2px solid rgba(255, 107, 107, 0.4);
            color: white;
            padding: 15px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-align: center;
            backdrop-filter: blur(10px);
            font-family: 'Poppins', sans-serif;
        }

        .feature-btn:hover {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
        }

        .route-analysis-panel {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(25px);
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            z-index: 1000;
            min-width: 380px;
            max-width: 450px;
            display: none;
            border: 2px solid rgba(255, 107, 107, 0.3);
            color: white;
        }

        .route-analysis-panel.show {
            display: block;
            animation: slideUpBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes slideUpBounce {
            0% { opacity: 0; transform: translateY(100px) scale(0.8); }
            70% { transform: translateY(-10px) scale(1.05); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        .route-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(255, 107, 107, 0.2);
        }

        .route-color-indicator {
            width: 25px;
            height: 8px;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .route-title {
            font-size: 18px;
            font-weight: 700;
            color: white;
            flex: 1;
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin: 20px 0;
        }

        .analysis-item {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 36, 0.1));
            padding: 15px;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(255, 107, 107, 0.2);
            backdrop-filter: blur(10px);
        }

        .analysis-value {
            font-size: 22px;
            font-weight: 800;
            color: #ff6b6b;
            display: block;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .analysis-label {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .safety-features {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 107, 107, 0.2);
        }

        .features-title {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .feature-list {
            list-style: none;
            padding: 0;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 8px 0;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            font-size: 13px;
            color: white;
            font-weight: 500;
            border-left: 3px solid #ff6b6b;
        }

        .feature-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .hotspot-legend {
            position: absolute;
            top: 120px;
            right: 20px;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(25px);
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            z-index: 1000;
            min-width: 320px;
            display: none;
            border: 2px solid rgba(255, 107, 107, 0.3);
            color: white;
        }

        .hotspot-legend.show {
            display: block;
            animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .legend-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .legend-section {
            margin-bottom: 20px;
        }

        .legend-section h4 {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 10px 0;
            padding: 8px 0;
        }

        .legend-color {
            width: 30px;
            height: 8px;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .legend-circle {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 3px solid;
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(10px);
        }

        .safe-route { background: linear-gradient(135deg, #00b894, #00a085); }
        .moderate-route { background: linear-gradient(135deg, #fdcb6e, #f39801); }
        .risky-route { background: linear-gradient(135deg, #e17055, #d63031); }

        .police-zone { border-color: #0984e3; }
        .hospital-zone { border-color: #00b894; }
        .commercial-zone { border-color: #fdcb6e; }
        .danger-zone { border-color: #e17055; }
        .hotspot-zone { 
            border-color: #d63031; 
            animation: dangerPulse 2s infinite;
        }

        @keyframes dangerPulse {
            0%, 100% { 
                border-color: #d63031; 
                box-shadow: 0 0 15px rgba(214, 48, 49, 0.5);
            }
            50% { 
                border-color: #ff4757; 
                box-shadow: 0 0 25px rgba(214, 48, 49, 0.9);
            }
        }

        .legend-text {
            font-size: 13px;
            color: white;
            font-weight: 500;
        }

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(15px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            flex-direction: column;
            gap: 30px;
        }

        .loading-overlay.show {
            display: flex;
            animation: fadeIn 0.5s ease;
        }

        .spinner {
            width: 80px;
            height: 80px;
            border: 6px solid rgba(255, 107, 107, 0.2);
            border-top: 6px solid #ff6b6b;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            color: white;
            font-weight: 600;
            font-size: 18px;
            text-align: center;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }

        .tap-instruction {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(25px);
            padding: 40px;
            border-radius: 30px;
            box-shadow: 0 25px 80px rgba(0,0,0,0.5);
            text-align: center;
            z-index: 1500;
            max-width: 400px;
            display: none;
            border: 2px solid rgba(255, 107, 107, 0.3);
            color: white;
        }

        .tap-instruction.show {
            display: block;
            animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes bounceIn {
            0% { transform: translate(-50%, -50%) scale(0.3) rotate(-5deg); opacity: 0; }
            50% { transform: translate(-50%, -50%) scale(1.1) rotate(2deg); }
            70% { transform: translate(-50%, -50%) scale(0.9) rotate(-1deg); }
            100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
        }

        .instruction-icon {
            font-size: 60px;
            margin-bottom: 20px;
            animation: tapAnimation 2s infinite;
        }

        @keyframes tapAnimation {
            0%, 100% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(-2deg); }
            75% { transform: scale(1.1) rotate(2deg); }
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.8);
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            color: #ff6b6b;
            transform: scale(1.2);
        }

        .emergency-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            backdrop-filter: blur(15px);
        }

        .emergency-modal.show {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .emergency-content {
            background: linear-gradient(135deg, #d63031, #b71c1c);
            color: white;
            padding: 40px;
            border-radius: 25px;
            text-align: center;
            max-width: 450px;
            box-shadow: 0 30px 100px rgba(0,0,0,0.7);
            animation: emergencyPulse 1.5s infinite;
            border: 3px solid rgba(255,255,255,0.3);
        }

        @keyframes emergencyPulse {
            0%, 100% { 
                box-shadow: 0 30px 100px rgba(214, 48, 49, 0.5);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 30px 120px rgba(214, 48, 49, 0.9);
                transform: scale(1.02);
            }
        }

        .emergency-title {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 25px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }

        .helpline-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin: 25px 0;
        }

        .helpline-item {
            background: rgba(255,255,255,0.1);
            padding: 15px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .helpline-number {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }

        .helpline-label {
            font-size: 12px;
            opacity: 0.9;
            margin-top: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* --- Report Incident Modal --- */
#incidentModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 3500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
}
#incidentModal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}
#incidentModal > div {
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 40px 30px 30px 30px;
    border-radius: 25px;
    max-width: 420px;
    width: 95%;
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 20px 60px rgba(255,107,107,0.15);
    font-family: 'Poppins', sans-serif;
    position: relative;
    animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#incidentModal h3 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
}
#incidentModal label {
    font-weight: 600;
    color: #fff;
}
#incidentModal select,
#incidentModal input,
#incidentModal textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    margin-top: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 2px solid #ff6b6b;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}
#incidentModal select {
    color: #fff !important;
    background: rgba(0,0,0,0.35) !important;   /* transparent dark background */
    border: 2px solid #ff6b6b;
    border-radius: 18px;                       /* more rounded corners */
    padding: 14px 45px 14px 18px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);   /* black shadow/flash */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    background-image: url("data:image/svg+xml;utf8,<svg fill='rgba(255,107,107,0.9)' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 22px 22px;
}

#incidentModal select:focus {
    border-color: #ee5a24;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.13), 0 6px 24px rgba(0,0,0,0.45);
    outline: none;
    background: rgba(0,0,0,0.45) !important;
}

#incidentModal option {
    color: #222 !important;
    background: #fff !important;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
}

/* For better appearance in Chrome/Edge */
#incidentModal select::-ms-expand {
    display: none;
}

/* Optional: animate dropdown on open (not supported in all browsers, but keeps style consistent) */
#incidentModal select:active, 
#incidentModal select:focus {
    background-color: #fbeee6 !important;
}

/* Optional: add a subtle hover effect */
#incidentModal select:hover {
    border-color: #fdcb6e;
    box-shadow: 0 0 0 4px rgba(253,203,110,0.10);
}
#incidentModal .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.2s;
}
#incidentModal .close-btn:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}
#incidentModal form > div {
    margin-bottom: 18px;
}
#incidentModal button[type="button"],
#incidentModal button[type="submit"] {
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}
#incidentModal button[type="button"] {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 2px solid #ff6b6b;
    margin-right: 10px;
}
#incidentModal button[type="button"]:hover {
    background: #ff6b6b;
    color: white;
}
#incidentModal button[type="submit"] {
    background: linear-gradient(135deg,#ff6b6b,#ee5a24);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(255,107,107,0.25);
}
#incidentModal button[type="submit"]:hover {
    background: linear-gradient(135deg,#ee5a24,#ff6b6b);
    transform: translateY(-2px) scale(1.05);
}

/* Mobile Responsive */
        @media (max-width: 768px) {
            .search-panel {
                left: 10px;
                right: 10px;
                top: 90px;
            }
            
            .controls-overlay {
                top: 10px;
                right: 10px;
            }
            
            .safety-btn {
                min-width: 200px;
                font-size: 13px;
                padding: 15px 20px;
            }
            
            .route-analysis-panel {
                bottom: 10px;
                left: 10px;
                right: 10px;
                min-width: auto;
            }
            
            .hotspot-legend {
                top: 100px;
                right: 10px;
                left: 10px;
                min-width: auto;
            }

            .feature-grid {
                grid-template-columns: 1fr;
            }

            .analysis-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .helpline-grid {
                grid-template-columns: 1fr;
            }
        }

        /* --- Mobile Responsive Enhancements --- */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .logo {
        font-size: 22px;
    }
    .shield-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .tagline {
        font-size: 12px;
    }
    .search-panel {
        top: 70px;
        left: 5px;
        right: 5px;
        max-width: 100vw;
    }
    .search-container {
        padding: 18px 8px;
        border-radius: 16px;
    }
    .search-input {
        padding: 13px 14px;
        font-size: 14px;
        border-radius: 16px;
    }
    .search-btn {
        padding: 13px 0;
        font-size: 14px;
        border-radius: 16px;
    }
    .map-container {
        height: 45vh;
        min-height: 220px;
        max-height: 55vh;
    }
    #map {
        min-height: 220px;
        height: 45vh;
    }
    .controls-overlay {
        top: 8px;
        right: 8px;
        gap: 8px;
    }
    .safety-btn {
        min-width: 140px;
        font-size: 12px;
        padding: 10px 10px;
        border-radius: 16px;
    }
    .feature-panel {
        top: auto;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 90vw;
        padding: 12px 6px;
        border-radius: 16px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .feature-btn {
        font-size: 12px;
        padding: 10px 6px;
        border-radius: 12px;
    }
    .hotspot-legend {
        top: auto;
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: 98vw;
        border-radius: 16px;
        padding: 12px 8px;
        font-size: 12px;
    }
    .route-analysis-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        min-width: unset;
        max-width: 98vw;
        border-radius: 16px;
        padding: 12px 8px;
        font-size: 12px;
    }
    .analysis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .safety-features {
        margin-top: 10px;
        padding-top: 10px;
    }
    .feature-list .feature-item {
        font-size: 12px;
        padding: 6px 6px;
        border-radius: 8px;
    }
    .emergency-modal .emergency-content,
    #incidentModal > div,
    #reviewModal > div {
        padding: 18px 6px !important;
        border-radius: 16px !important;
        max-width: 98vw !important;
        width: 98vw !important;
    }
    #incidentModal select,
    #incidentModal input,
    #incidentModal textarea {
        font-size: 13px;
        border-radius: 10px;
        padding: 10px;
    }
    #incidentModal button[type="button"],
    #incidentModal button[type="submit"] {
        font-size: 13px;
        padding: 10px 10px;
        border-radius: 12px;
    }
    .tap-instruction {
        padding: 18px 6px;
        border-radius: 16px;
        max-width: 95vw;
        font-size: 13px;
    }
    .star-rating .star {
        font-size: 22px !important;
    }
    .feature-panel,
    .hotspot-legend,
    .route-analysis-panel {
        left: 0 !important;
        right: 0 !important;
        min-width: unset !important;
        max-width: 100vw !important;
        border-radius: 0 0 18px 18px !important;
        margin: 0 auto !important;
    }
    .feature-panel {
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
        padding: 10px 2vw !important;
    }
    .controls-overlay {
        top: 8px !important;
        right: 8px !important;
        left: 8px !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: auto !important;
    }
    .safety-btn {
        min-width: 120px !important;
        font-size: 11px !important;
        padding: 8px 6px !important;
        border-radius: 12px !important;
    }
}

/* General Modifications */
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

@media (max-width: 600px) {
    .feature-btn, .safety-btn, .search-btn {
        min-height: 44px !important;
        font-size: 14px !important;
    }
    .search-input, #incidentModal input, #incidentModal select, #incidentModal textarea {
        min-height: 44px !important;
        font-size: 14px !important;
    }
}
#demo-location-banner {
  background-color: #ffe8a1;
  color: #222;
  font-size: 16px;
  padding: 10px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  border-bottom: 2px solid #ffcc00;
}
