:root {
    /* Color Palette */
    --bg-deep: #050811;
    --bg-panel: rgba(16, 23, 41, 0.6);
    --bg-panel-hover: rgba(22, 33, 59, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;

    --accent-blue: #3a8ef6;
    --accent-blue-glow: rgba(58, 142, 246, 0.5);

    --accent-gold: #ffcc00;
    --accent-gold-glow: rgba(255, 204, 0, 0.5);

    --success: #00d289;
    --warning: #ff5757;

    /* Geometry */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Font */
    --font-stack: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Stars */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.03) 1.5px, transparent 1.5px);
    background-size: 200px 200px, 300px 300px, 400px 400px, 150px 150px;
    animation: drift 100s linear infinite;
}

@keyframes drift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: -400px 200px, 600px 300px, -800px 400px, 300px -150px;
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(90deg, rgba(58, 142, 246, 0.1) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-blue);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.clock-panel {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.clock-panel .time {
    font-size: 2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.clock-panel .date {
    color: var(--text-muted);
    font-size: 1rem;
}

.clock-panel .tz {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-stack);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-primary:hover {
    background: #4b9fff;
    box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.settings-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-stack);
}

.settings-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Location Bar */
.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.location-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.indicator.active {
    background: var(--success);
    box-shadow: 0 0 12px rgba(0, 210, 137, 0.5);
}

.location-controls {
    display: flex;
    gap: 12px;
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.content-grid > div {
    min-width: 0;
}

/* Panels */
.panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.filters-panel {
    position: relative;
    z-index: 10;
}

.panel-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
}

.subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-badge {
    font-size: 0.85rem;
    padding: 0;
    background: transparent;
    color: var(--text-main);
}

/* Sky Map WebGL Container */
.canvas-container {
    position: relative;
    width: 100%;
    max-width: min(100%, 70vh);
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at center, rgba(16, 23, 41, 0.9) 0%, rgba(5, 8, 17, 1) 100%);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(58, 142, 246, 0.1);
    overflow: hidden;
    cursor: grab;
}

.canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.canvas-container:active {
    cursor: grabbing;
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-blue);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Base dot — used in legend at 8px */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot.iss {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.dot.overhead {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 210, 137, 0.8);
}

.dot.bright {
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.dot.selected {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Loaders */
.loader {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-style: italic;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Feed Lists */
.passes-list,
.transit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    /* Fade at the bottom to hint more content is scrollable */
    mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 32px), transparent 100%);
}

/* Right-column panels — consistent spacing via CSS (not inline styles) */
.col-right .glass-panel {
    margin-bottom: 24px;
}

.col-right .glass-panel:last-child {
    margin-bottom: 0;
}

.passes-list::-webkit-scrollbar,
.transit-list::-webkit-scrollbar {
    width: 6px;
}

.passes-list::-webkit-scrollbar-thumb,
.transit-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: default;
}

.card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass);
    transform: translateX(4px);
}

.card.iss-card {
    border-left: 3px solid var(--accent-gold);
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.card-title span {
    color: var(--accent-gold);
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.stat-value {
    color: var(--text-main);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(58, 142, 246, 0.3);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.info-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 6px;
    font-weight: bold;
}

.info-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Status Item in Modal */
.status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.status-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge-inline {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-inline.success {
    background: rgba(0, 210, 137, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 210, 137, 0.3);
}

.status-badge-inline.failed {
    background: rgba(255, 87, 87, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 87, 87, 0.3);
}

.status-badge-inline.stale {
    background: rgba(255, 204, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

/* HUD bar — shown inside canvas during first-person mode */
.hud-bar {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.8rem;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--accent-blue);
    display: flex;
    gap: 12px;
}

/* Side-panel backdrop — tap to dismiss on mobile */
.side-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 89;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.side-panel-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

/* Side Panel (Non-obstructive details) */
.side-panel-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    z-index: 90;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.side-panel-overlay.open {
    pointer-events: all;
}

.side-panel {
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-panel-overlay.open .side-panel {
    transform: translateX(0);
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0; /* never squeeze */
}

.side-panel-header h2 {
    margin: 0;
}

.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding-top: 14px;
    padding-right: 4px;
}

/* Satellite Details Modal */
#sat-details-content .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sat-details-content .detail-row label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

#sat-details-content .detail-row span {
    font-weight: 500;
}

#freq-info {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

#freq-info .ham-freq {
    display: block;
    color: var(--accent-gold);
    font-family: monospace;
    font-size: 1rem;
    margin-top: 4px;
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select .select-header {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select .select-header:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select .select-header .arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.custom-select.open .select-header .arrow {
    transform: rotate(180deg);
}

.custom-select .select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(16, 23, 41, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    z-index: 50;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.custom-select.open .select-dropdown {
    display: flex;
    flex-direction: column;
}

.custom-select .search-box {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-select .search-box input {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.custom-select .options-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.custom-select .options-list::-webkit-scrollbar {
    width: 6px;
}

.custom-select .options-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.custom-select .option-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.1s;
}

.custom-select .option-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.custom-select .option-item label {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-main);
    flex: 1;
}

.custom-select .option-item input[type="checkbox"] {
    cursor: pointer;
    width: auto;
    padding: 0;
}

/* Stale / degraded data warning banner */
.data-warning-banner {
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.data-warning-banner button {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    opacity: 0.7;
    flex-shrink: 0;
}

.data-warning-banner button:hover {
    opacity: 1;
}

/* WebGL not supported fallback message */
.webgl-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.webgl-fallback span {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }
    .content-grid > div {
        min-width: 0;
        width: 100%;
    }

    .canvas-container {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    /* Modal: tighter padding, scroll if taller than viewport */
    .modal-overlay {
        align-items: flex-start;
        padding: 16px;
        overflow-y: auto;
    }

    .modal {
        padding: 20px 16px;
        max-height: none; /* overlay scrolls instead */
    }

    .app-container {
        padding: 12px;
        gap: 12px;
    }

    /* Remove per-panel inline bottom margins — handled by .col-right .glass-panel rule */
    .col-right .glass-panel {
        margin-bottom: 12px;
    }

    /* Header: wrap on small screens */
    .app-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .clock-panel .time {
        font-size: 1.4rem;
    }

    /* Abbreviate date instead of hiding — keeps context for upcoming passes */
    .clock-panel .date {
        font-size: 0.75rem;
    }

    #toggle-time-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* Location bar */
    .location-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .location-status {
        font-size: 0.95rem;
    }

    .location-controls {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    /* GPS is primary (flex: 2) — Manual Input is secondary (flex: 1) */
    #btn-detect-loc {
        flex: 2;
    }

    #btn-manual-loc {
        flex: 1;
    }

    /* Panels */
    .panel {
        padding: 14px;
    }

    .panel-header h2 {
        font-size: 1.2rem;
    }

    /* Cards */
    .card {
        padding: 8px 12px;
    }

    /* Info button — larger tap target on mobile */
    .info-btn {
        width: 44px;
        height: 44px;
    }

    /* Sky map: full width, touch handled by Three.js OrbitControls */
    .canvas-container {
        max-width: 100%;
        touch-action: none;
    }

    /* Passes list: taller on mobile, viewport-relative */
    .passes-list,
    .transit-list {
        max-height: 45vh;
    }

    /* Side panel: slides up from bottom on mobile */
    .side-panel-overlay {
        width: 100%;
        top: auto;
        align-items: flex-end;
    }

    .side-panel {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        height: auto;
        max-height: 85vh;
        transform: translateY(100%);
        padding: 20px 16px;
    }

    .side-panel-overlay.open .side-panel {
        transform: translateY(0);
    }

    /* Filter dropdown */
    .custom-select .options-list {
        max-height: 160px;
    }
}

/* ── Landscape on small phones ────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    /* Switch back to two-column grid so the wide screen is used */
    .content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    /* Compact sky map */
    .canvas-container {
        max-width: min(45vw, 85vh);
    }

    /* Shrink header to save vertical space */
    .app-header {
        padding: 6px 12px;
    }

    .logo img {
        display: none;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .clock-panel .time {
        font-size: 1.1rem;
    }

    .clock-panel .date {
        display: none;
    }

    /* Compact panels */
    .panel {
        padding: 10px 14px;
    }

    .panel-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .panel-header h2 {
        font-size: 1rem;
    }

    /* Shorter pass lists — limited height in landscape */
    .passes-list,
    .transit-list {
        max-height: 30vh;
    }
}