/* web-static/css/app.css v2026-01-13_1 */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
#filter-container {
    position: absolute;
    top: 10px;
    left: 50px;
    max-width: 380px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    gap: 2px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#filter-container { box-sizing: border-box; }
#filter-container * { box-sizing: border-box; }

.filter-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
}

#ln-input {
    height: 30px;
    padding: 5px 10px;
    font-size: 14px;
    max-width: 140px;
    line-height: 1.2;
    border-radius: 4px;
    border: 1px solid #999;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    height: 30px;
    line-height: 1;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #999;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.btn-small { padding: 0 8px; height: 30px;}

#update-btn { width: 83px; }
#locate-btn { width: 43px; }
#nearest-stops-btn { width: 130px; white-space: nowrap; overflow: hidden; }

.btn:hover { background: #e4e2e2; border-color: #666; }

#locate-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.vehicle-icon {
    background-color: #12f35d;
    color: black;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 25px;
    box-shadow: 0 0 6px 0.5px rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-block;
}

#ln-input:hover,
#ln-input:focus {
    background: #f5f5f5;          
    border-color: #666;
    outline: none;
}

.map-label {
    color: #111;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2em;
    white-space: nowrap;

    text-shadow:
        -2px -2px 0 rgba(255,255,255,0.9),
        0px -2px 0 rgba(255,255,255,0.9),
        2px -2px 0 rgba(255,255,255,0.9),
        -2px  0px 0 rgba(255,255,255,0.9),
        2px  0px 0 rgba(255,255,255,0.9),
        -2px  2px 0 rgba(255,255,255,0.9),
        0px  2px 0 rgba(255,255,255,0.9),
        2px  2px 0 rgba(255,255,255,0.9);
}

.route-stop-label { display: none; }

.leaflet-popup-content-wrapper {
    padding: 14px 10px 10px 10px; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.leaflet-popup-content {margin: 4px 0 0 0; line-height: 1.25;}

.leaflet-popup-tip {background: rgba(255, 255, 255, 0.85);}

.modal {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: sans-serif;
    z-index: 9999;
}

.glass {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    padding: 8px 12px 12px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

/* =========================
   WARNINGS / OVERLAYS
========================= */

#stale-data-warning {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(220, 142, 104, 0.85);
    border-left: 5px solid #ff0000;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #361b04;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: none;
}

#loading-warning,
#rtd-outage-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: rgba(255,255,255,0.92);
    padding: 14px 18px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
}

#loading-warning {
    border: 2px solid #3498db;
    color: #1f4e79;
}

#rtd-outage-warning {
    border: 2px solid #c0392b;
    color: #922b21;
}

