/* 
   Y-GÓ - Modern & Minimalist Travel Alarm Stylesheet
   Color Palette: Electric Blue & Vivid Orange (High-contrast, Minimal)
*/

:root {
    --bg-dark: #07070a;
    --bg-card: rgba(15, 17, 26, 0.78);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-focus: rgba(37, 99, 235, 0.4);
    
    /* Branding Colors */
    --primary-blue: #2563eb;
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --accent-blue-light: #3b82f6;
    
    --primary-grad: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
    --blue-grad: linear-gradient(135deg, var(--accent-blue-light) 0%, var(--primary-blue) 100%);
    
    --accent-emerald: #10b981;
    --accent-rose: #ef4444;
    --accent-rose-grad: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    --shadow-glass: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.25);
    --shadow-glow-orange: 0 0 20px rgba(249, 115, 22, 0.35);
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & Native feel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: font-size 0.2s ease;
}

/* Accessibility Font Size Scales */
body[data-font-size="small"] { font-size: 14px; }
body[data-font-size="medium"] { font-size: 16px; }
body[data-font-size="large"] { font-size: 18px; }
body[data-font-size="extra-large"] { font-size: 20px; }

/* Scale specific items for older users */
body[data-font-size="large"] .dest-text h2 { font-size: 1.1rem; }
body[data-font-size="large"] .dest-text p { font-size: 0.85rem; }
body[data-font-size="large"] .tab-btn { font-size: 0.98rem; }
body[data-font-size="large"] .option-title { font-size: 0.95rem; }
body[data-font-size="large"] .option-desc { font-size: 0.78rem; }
body[data-font-size="large"] .landmark-item .lm-name { font-size: 0.95rem; }
body[data-font-size="large"] .landmark-item .lm-type { font-size: 0.78rem; }
body[data-font-size="large"] .value { font-size: 1.25rem; }
body[data-font-size="large"] .primary-btn { font-size: 1.1rem; }

body[data-font-size="extra-large"] .dest-text h2 { font-size: 1.25rem; }
body[data-font-size="extra-large"] .dest-text p { font-size: 1rem; }
body[data-font-size="extra-large"] .tab-btn { font-size: 1.15rem; }
body[data-font-size="extra-large"] .option-title { font-size: 1.1rem; }
body[data-font-size="extra-large"] .option-desc { font-size: 0.88rem; }
body[data-font-size="extra-large"] .landmark-item .lm-name { font-size: 1.1rem; }
body[data-font-size="extra-large"] .landmark-item .lm-type { font-size: 0.88rem; }
body[data-font-size="extra-large"] .value { font-size: 1.45rem; }
body[data-font-size="extra-large"] .primary-btn { font-size: 1.2rem; }

/* Container */
#app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fullscreen Leaflet Map */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Leaflet tile inversion for a true sleek dark-mode map */
.leaflet-tile-container {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(90%);
}

/* Hide Default Leaflet Controls for clean app feel */
.leaflet-control-zoom, .leaflet-control-attribution {
    display: none !important;
}

/* Custom map marker pulse styles (Orange/Blue theme) */
.user-gps-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-gps-pulse {
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
    position: relative;
}
.user-gps-pulse::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: gpsPulse 1.8s infinite ease-out;
    opacity: 0;
}
@keyframes gpsPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Centering map crosshair styling */
.crosshair-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crosshair-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-orange);
}
.crosshair-line-h {
    position: absolute;
    width: 36px;
    height: 2px;
    background-color: rgba(37, 99, 235, 0.5);
}
.crosshair-line-v {
    position: absolute;
    width: 2px;
    height: 36px;
    background-color: rgba(37, 99, 235, 0.5);
}

/* Button to mark target on center crosshair location */
.center-dest-btn {
    position: absolute;
    top: calc(142px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    background: rgba(13, 15, 23, 0.85);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
}
.center-dest-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Header Brand Style */
.main-header {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

.logo-area h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 50%, #fed7aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.info.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

.status-badge.inactive {
    opacity: 0.65;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-badge.active .pulse-dot {
    background-color: var(--accent-emerald);
    animation: dotPulse 1.2s infinite alternate;
}

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

.icon-svg {
    display: inline-block;
    vertical-align: middle;
}

/* Floating PWA Installation Banner styling */
#pwa-install-banner {
    position: absolute;
    bottom: calc(250px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    z-index: 100;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: rgba(15, 17, 26, 0.96);
    box-shadow: var(--shadow-glass);
    animation: slideUpInstall 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpInstall {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-icon {
    font-size: 1.2rem;
}

.banner-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#btn-pwa-close {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
#btn-pwa-close:hover {
    color: var(--text-primary);
}

/* Search Section styles */
.search-section {
    position: absolute;
    top: calc(85px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 50px;
}

.search-wrapper:focus-within {
    border-color: var(--border-glass-focus);
    box-shadow: var(--shadow-glow-blue);
}

.search-wrapper input {
    flex: 1;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 10px;
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.icon-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.icon-button:active {
    transform: scale(0.92);
}

.hidden {
    display: none !important;
}

/* Search Suggestions List */
#suggestions-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#suggestions-list li {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#suggestions-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Floating Actions Column (Right Side of Map) */
.map-actions-column {
    position: absolute;
    right: 16px;
    top: calc(142px + env(safe-area-inset-top, 0px));
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-map-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.float-map-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-glow-blue);
}

.float-map-btn:active {
    transform: scale(0.92);
}

.float-map-btn sup {
    font-size: 0.65rem;
    margin-left: 1px;
}

.float-map-btn.sleep-btn {
    background: rgba(13, 15, 23, 0.95);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--primary-orange);
}

.float-map-btn.sleep-btn:hover {
    background: var(--primary-orange);
    color: #ffffff;
    box-shadow: var(--shadow-glow-orange);
}

/* Tabbed Bottom Sheet (Controls Card) */
.bottom-sheet-section {
    position: absolute;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    z-index: 10;
}

.bottom-sheet-card {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: var(--radius-lg);
    max-height: 48vh;
    overflow-y: auto;
}

/* Destination details bar */
.destination-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.dest-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dest-text {
    flex: 1;
    overflow: hidden;
}

.dest-text h2 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dest-text p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Live Navigation status grid */
.nav-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.col-span-2 {
    grid-column: span 2;
}

.status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.status-item .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.status-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-item .value.accent {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tab Headers styling */
.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    text-align: center;
}

.tab-btn.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.tab-btn .badge {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Tabs Body & Panes */
.tabs-body {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.2s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.landmarks-container {
    max-height: 150px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Settings elements */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.value-highlight {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Custom HTML5 Range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-blue);
    transform: scale(1.15);
}

/* Options flex grid */
.options-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Custom Switch for Options */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: .3s;
    border-radius: 22px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--primary-blue);
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 0.8rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Sound Selector styling */
.selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    max-width: 150px;
}

.selector-wrapper label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.selector-wrapper select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.selector-wrapper select:focus {
    border-color: var(--primary-blue);
}

/* Volume row */
.volume-test-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--text-secondary);
}

.volume-slider-container input[type="range"] {
    flex: 1;
}

/* Google Maps API configuration field */
.gmaps-config-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    margin-top: 2px;
}

.settings-label-text {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    display: block;
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-with-action input:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
}

/* iOS PWA Install Help guide box */
.ios-guide-box {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.guide-icon {
    font-size: 1.1rem;
}

.guide-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.guide-text strong {
    color: var(--text-primary);
}

.ios-share-glyph {
    font-size: 1rem;
    vertical-align: middle;
}

/* Buttons style */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
}

.primary-btn {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: var(--shadow-glow-orange);
}

.primary-btn.disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Armed alarm state colors (Y-GÓ orange theme) */
.primary-btn.ready {
    background: var(--primary-grad);
}
.primary-btn.ready:hover {
    opacity: 0.92;
}

.primary-btn.active {
    background: var(--accent-rose-grad);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.01); box-shadow: 0 0 22px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
}

/* Landmarks Drawer list details */
.drawer-empty-msg {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 20px 0;
}

.landmarks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landmark-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.landmark-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(37, 99, 235, 0.2);
}

.lm-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.landmark-item.station .lm-icon-circle {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.lm-info {
    flex: 1;
    overflow: hidden;
}

.lm-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-type {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.lm-dist {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* ==========================================
   OLED Screensaver Mode Overlay (Power Saver)
   ========================================== */
#screensaver-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #4b5563; /* Very faint gray to save OLED energy */
}

.screensaver-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.screensaver-pulse-circle {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    width: 8px;
    height: 8px;
    background-color: #1e3a8a; /* Deep blue */
    border-radius: 50%;
}

.pulse-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid #1e3a8a;
    border-radius: 50%;
    animation: screensaverRingPulse 2.8s infinite ease-out;
}

@keyframes screensaverRingPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.screensaver-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ea580c; /* Faint orange */
    letter-spacing: 0.15em;
    opacity: 0.55;
}

.screensaver-tag {
    font-size: 0.72rem;
    color: #1f2937;
}

.screensaver-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0;
}

.screensaver-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
}

.screensaver-distance {
    font-size: 2.8rem;
    font-weight: 800;
    color: #d1d5db; /* Grey */
    opacity: 0.6;
}

.screensaver-dest-name {
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4b5563;
    opacity: 0.6;
}

.screensaver-exit-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-md);
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.screensaver-exit-btn:hover {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

/* Fullscreen Alarm Screen Overlay (Critical Alerts) */
#alarm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1001;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: flashingAlert 1s infinite alternate;
}

@keyframes flashingAlert {
    0% { background-color: #0c0205; }
    100% { background-color: #3b0712; }
}

.alarm-content {
    width: 100%;
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.alarm-pulsar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--accent-rose-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.8);
    animation: bellRinging 0.15s infinite alternate;
}

@keyframes bellRinging {
    0% { transform: rotate(-8deg) scale(1); }
    100% { transform: rotate(8deg) scale(1.05); }
}

.alarm-content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.distance-alert {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fca5a5;
}

.distance-alert span {
    font-weight: 700;
}

.orientation-card {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
}

.orientation-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

#alarm-landmarks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
}

#alarm-landmarks-list li {
    font-size: 0.82rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.alarm-dismiss-btn {
    width: 100%;
    height: 56px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #3b0712;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.alarm-dismiss-btn:hover {
    background: #fca5a5;
    color: #000000;
    transform: translateY(-2px);
}

.alarm-dismiss-btn:active {
    transform: translateY(1px);
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive adjustment for tablet/desktop */
@media (min-width: 600px) {
    .main-header, .search-section, .bottom-sheet-section, .map-actions-column {
        max-width: 440px;
        margin: 0 auto;
        left: 20px;
    }
    .map-actions-column {
        left: auto;
        right: calc((100vw - 440px) / 2 + 10px);
    }
    .center-dest-btn {
        left: 50%;
        transform: translateX(-50%);
    }
    #pwa-install-banner {
        max-width: 440px;
        margin: 0 auto;
        left: 20px;
        bottom: calc(300px + env(safe-area-inset-bottom, 0px));
    }
    #screensaver-overlay {
        background-color: #000000;
    }
}

/* Toast Notifications UX */
.toast-container {
    position: fixed;
    bottom: calc(240px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    padding: 12px 22px;
    border-radius: 50px;
    background: rgba(13, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.toast-success .toast-icon {
    color: var(--accent-emerald);
}

.toast-info {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.toast-info .toast-icon {
    color: #60a5fa;
}

.toast-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.toast-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

