/* --- Kacheguda Web Nav Premium Design System --- */

:root {
    --bg-main: #f8fafc; /* Crisp light gray background */
    --bg-surface: #ffffff; /* Solid White */
    --bg-surface-solid: #ffffff;
    --border-color: #e2e8f0; /* Soft gray border */
    
    --color-primary: #2563eb; /* Google Navigation Blue */
    --color-primary-glow: rgba(37, 99, 235, 0.2);
    --color-primary-hover: #1d4ed8;
    
    --color-success: #10b981; /* Emerald Green */
    --color-success-bg: rgba(16, 185, 129, 0.1);
    
    --color-error: #ef4444; /* Rose Red */
    --color-error-bg: rgba(239, 68, 68, 0.1);
    
    --color-warning: #f59e0b; /* Amber */
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    
    --text-main: #0f172a; /* Dark Slate for high contrast */
    --text-muted: #64748b; /* Slate Gray */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.2s ease-out;
    
    /* Soft shadows for clean light mode cards */
    --shadow-glass: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* --- Connection Alert Banner --- */
.connection-banner {
    background-color: var(--color-error-bg);
    border-bottom: 1px solid var(--color-error);
    color: #f87171;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 100;
    animation: pulseBorder 2s infinite;
}

.connection-banner.hidden {
    display: none;
}

/* --- App Header & Banners --- */
.app-header {
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    z-index: 10;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-badge {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.logo-container h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Login Button */
.user-profile-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.user-profile-btn:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
}

.banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
    animation: slideDown 0.4s ease-out;
}

.banner.hidden {
    display: none;
}

.banner-success {
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success);
    color: #34d399;
}

.banner-error {
    background-color: var(--color-error-bg);
    border: 1px solid var(--color-error);
    color: #f87171;
}

.banner-warning {
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning);
    color: #fbbf24;
}

.banner-info {
    background-color: var(--bg-surface); /* Changed to white */
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glass);
}

/* --- Map Viewport & Container --- */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transition: transform 0.1s ease-out;
}

#station-map {
    width: 100%;
    height: 100%;
}

/* --- SVG Element Styling --- */
.platform-rect {
    transition: var(--transition-smooth);
}

.platform-rect.dimmed {
    opacity: 0.15;
}

.fob-rect {
    transition: var(--transition-smooth);
}

.fob-rect.dimmed {
    opacity: 0.1;
}

.platform-label {
    fill: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.stairs-icon {
    transition: var(--transition-smooth);
}

.stairs-icon.dimmed {
    opacity: 0.15;
}

/* Dynamic SVG POI Pins */
.poi-pin-circle {
    stroke-width: 2.5;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.poi-pin-circle:hover {
    transform: scale(1.4);
    filter: brightness(1.2);
}

.poi-pin-circle.pulse {
    animation: pinPulse 1.5s infinite alternate;
}

.poi-pin-label {
    font-size: 10px;
    font-weight: 700;
    fill: var(--text-main);
    pointer-events: none;
    text-anchor: middle;
}

/* Route Solid Blue Line */
.route-line {
    fill: none;
    stroke: var(--color-primary); /* Thick Blue Line */
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Optional: dash array to show direction, but mostly solid */
    stroke-dasharray: 40 16;
    animation: routeMove 35s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.4));
}

/* User Location Marker */
.user-position-marker {
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.user-position-marker.hidden {
    display: none;
}

.user-ping-unique {
    fill: #9333ea;
    opacity: 0.3;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.user-chevron {
    fill: #2563eb;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

/* --- Floating controls --- */
.zoom-controls {
    position: absolute;
    right: 16px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.zoom-controls button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zoom-controls button:active {
    transform: scale(0.95);
    background-color: var(--color-primary);
}

.floor-tabs {
    position: absolute;
    right: 16px;
    bottom: 210px;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.floor-tabs button {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.floor-tabs button.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* --- Bottom Sheet Panel (Clean White Card) --- */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 12px 20px 24px 20px; /* Padding for iOS safe area */
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08); /* Soft upper shadow */
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
    height: 60vh; /* Takes up 60% of screen when open */
    display: flex;
    flex-direction: column;
}

.drag-handle {
    width: 60px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 8px;
    margin: 8px auto 16px auto;
    cursor: grab;
    transition: all 0.3s ease;
}

/* Primary color when sheet is maximized */
.bottom-sheet:not(.minimized) .drag-handle {
    background-color: var(--color-primary);
}

.drag-handle:active {
    background-color: #94a3b8;
}

.bottom-sheet.minimized {
    max-height: 45px;
    padding-bottom: 0;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.sheet-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 16px;
}

/* --- Metric/Details Panel --- */
.details-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background-color: var(--color-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.details-panel.hidden {
    display: none;
}

.metric-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-box .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.metric-box .value {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}

/* --- Venue Detail Card (sheet_bottom_venue.xml replica) --- */
.venue-detail-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.venue-detail-card.hidden {
    display: none;
}

.venue-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

#venue-detail-icon {
    font-size: 24px;
}

#venue-detail-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.venue-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.venue-detail-actions {
    display: flex;
    flex-direction: column;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    padding: 4px;
}

/* --- Search & Category Menu Layout --- */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-container.hidden {
    display: none;
}

.search-bar-wrapper input {
    width: 100%;
    background-color: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.search-bar-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

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

.category-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-card:hover {
    background-color: #f1f5f9;
    border-color: var(--color-primary);
}

.cat-icon {
    font-size: 24px;
}

.cat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

/* --- Locations List Wrapper --- */
.location-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.location-list-wrapper.hidden {
    display: none;
}

.list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-back:hover {
    text-decoration: underline;
}

.list-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.location-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.location-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
    border-color: var(--color-primary);
}

.location-item .badge {
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Action Buttons --- */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    position: relative;
    pointer-events: auto !important;
}

.select-start-fallback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.select-start-fallback select {
    background-color: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

button.btn-primary {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

button.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

button.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

button.btn-primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

button.btn-secondary {
    background: #ffffff;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

button.btn-secondary:hover:not(:disabled) {
    background: #f5f3ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

button.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

button.btn-danger {
    background-color: var(--color-error);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

button.btn-danger:hover {
    background-color: #dc2626;
}

button.hidden {
    display: none;
}

/* --- Simulator Panel --- */
.sim-panel {
    margin-top: 16px;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    animation: fadeIn 0.4s ease-out;
}

.sim-panel.hidden {
    display: none;
}

.sim-panel h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.sim-btns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.btn-outline {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline:active {
    background-color: var(--border-color);
}

/* --- Glassmorphic Login Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: var(--transition-smooth);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.input-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.input-field input {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.input-field input:focus {
    border-color: var(--color-primary);
}

/* --- Floating Search Container (Google Maps Style) --- */
.floating-search-container {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through to map where there's no UI */
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 10px 20px;
    box-shadow: var(--shadow-glass);
    pointer-events: auto; /* Enable clicks on the search bar */
    height: 52px;
    transition: var(--transition-smooth);
}

.search-bar-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.search-icon {
    font-size: 18px;
    margin-right: 12px;
    color: var(--text-muted);
}

.search-bar-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.qr-scan-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.qr-scan-btn:hover {
    transform: scale(1.1);
}

.user-profile-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    margin-left: 12px;
}

/* Horizontal Scrollable Category Pills */
.quick-pills-row {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    pointer-events: auto;
    scrollbar-width: none; /* Firefox */
}
.quick-pills-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 18px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.category-pill:hover, .category-pill.active {
    background: #f1f5f9;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-login-submit {
    width: 100%;
}

/* --- Animations --- */
@keyframes routeMove {
    to {
        stroke-dashoffset: -1000;
    }
}

@keyframes ping {
    0% {
        r: 8px;
        opacity: 0.8;
    }
    100% {
        r: 28px;
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pinPulse {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 1px rgba(255,255,255,0.4));
    }
    to {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.9));
    }
}

@keyframes pulseBorder {
    0% { border-color: var(--color-error); }
    50% { border-color: rgba(239,68,68,0.2); }
    100% { border-color: var(--color-error); }
}

/* --- Map Pin Hover Tooltip --- */
.poi-tooltip-text {
    font-size: 12px;
    font-weight: 700;
    fill: var(--text-main);
    text-anchor: middle;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, font-size 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9));
    transform: translateY(5px);
}

.poi-pin-group:hover .poi-tooltip-text,
.poi-pin-group.poi-selected .poi-tooltip-text {
    opacity: 1;
    transform: translateY(0);
    font-size: 20px;
}

/* --- Splash Screen --- */
.overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.overlay-fullscreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 30px;
    text-align: center;
}

.splash-logo-ir {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.splash-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.splash-logo-statnav {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.splash-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0284c7; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

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

.splash-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 40px;
}

.splash-footer {
    text-align: center;
    font-size: 11px;
    color: #64748b;
}

.splash-footer p {
    margin-bottom: 10px;
}

.footer-line {
    height: 4px;
    width: 100%;
}
.footer-line-yellow {
    background-color: #f59e0b;
}
.footer-line-blue {
    background-color: #1e3a8a;
}

/* --- Quick Start Menu --- */
#quick-start-menu {
    background-color: #f0f4f8; /* Light grayish-blue */
    z-index: 1999;
}

.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('station_sketch.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.quick-start-content {
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quick-start-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: auto;
    margin-top: 30px;
}

.navigate-to-header {
    text-align: center;
    margin-bottom: 16px;
    margin-top: auto;
}

.navigate-to-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chevron-down {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.quick-start-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-quick-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.btn-quick-nav:active {
    background: #f1f5f9;
    transform: scale(0.98);
}

.btn-quick-nav .icon {
    font-size: 20px;
}

.btn-quick-nav .arrow {
    color: #94a3b8;
}

/* --- Destination Modal --- */
.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.7); /* Dark semi-transparent */
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.overlay-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    width: 85%;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- POI Labels --- */
.poi-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    pointer-events: none;
    transition: opacity 0.3s ease;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.poi-important {
    opacity: 1;
}

.poi-secondary {
    visibility: hidden;
}

.show-all-pois .poi-secondary, .poi-visible {
    visibility: visible !important;
}

.fab-poi-btn {
    position: absolute;
    right: 16px;
    bottom: 290px;
    background-color: var(--bg-surface-solid);
    color: var(--color-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.fab-poi-btn:active {
    transform: scale(0.95);
}

/* --- Beacon Status Pill --- */
.beacon-status-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.beacon-status-pill .status-dot {
    font-size: 10px;
}

.beacon-status-pill.beacon-scanning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1.5px solid #f59e0b;
}

.beacon-status-pill.beacon-connected {
    background-color: #ecfdf5;
    color: #047857;
    border: 1.5px solid #10b981;
}

.beacon-status-pill.beacon-disconnected {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #ef4444;
}

