* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #0a0e17;
    color: #e8eaed;
    overflow: hidden;
    height: 100vh;
}

#map {
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.version-label {
    position: fixed;
    bottom: 8px;
    left: 8px;
    z-index: 1000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(139, 149, 165, 0.6);
    pointer-events: none;
}

.leaflet-container {
    background: #0a0e17;
}

.info-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: rgba(18, 24, 41, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 24px;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.info-panel.hidden {
    transform: translateX(100%);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.panel-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d4ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.panel-subtitle {
    font-size: 13px;
    color: #8b95a5;
}

.location-info {
    background: rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.location-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b95a5;
    margin-bottom: 6px;
}

.location-coords {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #00d4ff;
}

.location-elevation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8b95a5;
    margin-top: 4px;
}

.result-section {
    margin-bottom: 20px;
}

.result-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b95a5;
    margin-bottom: 8px;
}

.result-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #e8eaed;
}

.result-value.warning {
    color: #ff6b6b;
}

.result-value.success {
    color: #00ff88;
}

.data-grid {
    display: grid;
    gap: 12px;
}

.data-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.transit-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.transit-card.tc-selected {
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06) !important;
}

.tll-outer {
    position: relative;
    width: 0;
    height: 0;
    pointer-events: none !important;
    background: none !important;
    border: none !important;
}
.tll-text {
    position: absolute;
    left: 18px;
    top: -40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    padding: 3px 7px;
    background: rgba(8, 10, 16, 0.85);
    border-radius: 4px;
    border: none;
    letter-spacing: 0.3px;
}
.tll-svg {
    position: absolute;
    left: 0;
    top: -20px;
}

.data-item-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b95a5;
    margin-bottom: 4px;
}

.data-item-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #e8eaed;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8b95a5;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.refresh-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #0a0e17;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.close-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #8b95a5;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8eaed;
}

.share-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #8b95a5;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}

.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(18, 24, 41, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 9999;
}

.share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.top-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.map-recalc-bar {
    text-align: center;
}

/* ─── Band visibility filter bar ─────────────────────────────────────────── */
.band-filter-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    gap: 2px;
    align-items: center;
    background: rgba(18, 24, 41, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px 8px;
    border-radius: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    user-select: none;
}
.band-filter-bar.hidden { display: none; }
.bfb-option { cursor: pointer; }
.bfb-option input[type="radio"] { display: none; }
.bfb-option span {
    display: block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #8b95a5;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.bfb-option input[type="radio"]:checked + span {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35);
}
.bfb-option:hover span { color: #c8ccd4; }

.map-recalc-bar.hidden {
    display: none;
}

.map-recalc-btn {
    background: rgba(18, 24, 41, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: #00d4ff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    padding: 7px 20px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.map-recalc-btn:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(18, 24, 41, 0.97);
}

.map-recalc-coords {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8b95a5;
    margin-left: 8px;
}

/* ─── Cookie banner ───────────────────────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    background: rgba(18, 24, 41, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    font-size: 13px;
    color: #c8ccd4;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 7px 16px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8b95a5;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.cookie-btn-accept {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.cookie-btn-accept:hover {
    background: rgba(0, 212, 255, 0.25);
}

.iss-marker {
    background: none;
    border: none;
}

.iss-marker::before {
    content: '🛰️';
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.radius-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    background: rgba(18, 24, 41, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 220px;
}

.radius-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b95a5;
    margin-bottom: 8px;
}

.radius-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 10px;
}

.radius-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 212, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.radius-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.radius-hint {
    font-size: 10px;
    color: #8b95a5;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.period-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #00d4ff;
    margin-bottom: 10px;
    text-align: center;
}

.period-slider-wrap {
    position: relative;
    height: 24px;
    margin: 4px 0 4px;
}

.period-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.period-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #00d4ff;
    border-radius: 2px;
}

.period-slider-wrap input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.period-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    pointer-events: all;
}

.period-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    pointer-events: all;
}

.coords-divider {
    border: none;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    margin: 12px 0 10px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.contact-icon {
    font-size: 11px;
    color: #8b95a5;
    flex-shrink: 0;
}

.contact-link {
    font-size: 11px;
    color: #8b95a5;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.contact-link:hover {
    color: #00d4ff;
}

.contact-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8b95a5;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.contact-copy-btn:hover {
    color: #00d4ff;
}

.contact-copy-btn.copied {
    color: #00ff88;
}

.coords-paste-hint {
    font-size: 10px;
    color: #4a5568;
    margin-bottom: 5px;
    line-height: 1.3;
}

.coords-paste-btn {
    width: 100%;
    padding: 5px;
    background: rgba(0, 212, 255, 0.07);
    border: 1px dashed rgba(0, 212, 255, 0.25);
    border-radius: 5px;
    color: #8b95a5;
    font-size: 11px;
    cursor: pointer;
    margin-bottom: 7px;
    transition: background 0.2s, color 0.2s;
}

.coords-paste-btn:hover {
    background: rgba(0, 212, 255, 0.16);
    color: #00d4ff;
}

.coords-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.coords-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 5px 8px;
    color: #e8eaed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    outline: none;
    width: 0;
}

.coords-input::placeholder { color: #4a5568; }

.coords-input:focus {
    border-color: rgba(0, 212, 255, 0.5);
}

.coords-go {
    width: 100%;
    padding: 6px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: #00d4ff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.coords-go:hover { background: rgba(0, 212, 255, 0.22); }

.map-toggle-row {
    display: flex;
    gap: 6px;
}

.map-btn {
    flex: 1;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    color: #8b95a5;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.map-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #c8ccd4;
}

.progress-bar-wrap {
    margin-top: 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #00d4ff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.2s ease;
}

/* ─── Observer panel ──────────────────────────────────────────────────────── */

.observer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: rgba(10, 16, 28, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 24px 20px 20px;
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.observer-panel.hidden {
    transform: translateX(100%);
}

.obs-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.obs-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b95a5;
    margin-bottom: 0;
}

.obs-params-block {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    padding: 14px;
}

.obs-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.obs-param {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 10px;
}

.obs-param-full {
    grid-column: 1 / -1;
}

.obs-param-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b95a5;
    margin-bottom: 3px;
}

.obs-param-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #00d4ff;
}

.obs-type-transit {
    color: #00ff88;
}

.obs-type-nearmiss {
    color: #ffaa00;
}

.obs-maps-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.obs-map-btn {
    flex: 1;
    padding: 5px 0;
    font-size: 11px;
    font-family: inherit;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.obs-map-btn:hover {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.5);
}

.obs-view-btn {
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 6px;
    color: #00d4ff;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.obs-view-btn:hover {
    background: rgba(0, 212, 255, 0.22);
}

#solarDiskCanvas {
    display: block;
    border-radius: 6px;
    background: #050810;
}

.obs-disk-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 212, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.obs-disk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.obs-disk-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.anim-toggle-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 5px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.anim-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* ─── Panel reopen tab ────────────────────────────────────────────────────── */

.panel-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(18, 24, 41, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #00d4ff;
    padding: 14px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, padding 0.2s;
}

.panel-tab:hover {
    background: rgba(18, 24, 41, 0.98);
    border-color: rgba(0, 212, 255, 0.6);
    padding-right: 14px;
}

.panel-tab.hidden {
    display: none;
}

.panel-tab-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8b95a5;
    line-height: 1;
}


/* ─── Settings FAB (mobile only) ─────────────────────────────────────────── */

.settings-fab {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: rgba(18, 24, 41, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: #00d4ff;
    font-size: 17px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-fab:hover {
    background: rgba(18, 24, 41, 0.98);
    border-color: rgba(0, 212, 255, 0.6);
}

@media (max-width: 768px) {
    .settings-fab {
        display: flex;
    }

    .radius-control {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: 20px;
        z-index: 1002;
    }

    .radius-control.open {
        transform: translateY(0);
    }

    .info-panel {
        width: 100%;
        height: auto;
        max-height: 60vh;
        top: auto;
        bottom: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 20px 20px 0 0;
        /* explicit translateY(0) overrides desktop translateX(0) — fixes glitch */
        transform: translateY(0);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* make room for filter bar floating above */
        padding-bottom: 70px;
    }

    .info-panel.hidden {
        transform: translateY(100%);
    }

    .observer-panel {
        width: 100%;
        height: auto;
        max-height: 90vh;
        top: auto;
        bottom: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 20px 20px 0 0;
        transform: translateY(0);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .observer-panel.hidden {
        transform: translateY(100%);
    }

    /* Band filter bar floats above info-panel on mobile */
    .band-filter-bar {
        z-index: 1001;
        bottom: 12px;
    }
}

/* ─── Click info panel ───────────────────────────────────────────────────── */

.recalc-bar {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 212, 255, 0.12);
    text-align: center;
}

.recalc-bar.hidden {
    display: none;
}

.recalc-coords {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8b95a5;
    margin-bottom: 8px;
}

.recalc-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.recalc-btn:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ─── Calc popup ─────────────────────────────────────────────────────────── */

.calc-popup .leaflet-popup-content-wrapper {
    background: rgba(18, 24, 41, 0.96);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #e8eaed;
    padding: 0;
}

.calc-popup .leaflet-popup-tip-container {
    display: none;
}

.calc-popup .leaflet-popup-content {
    margin: 0;
}

.calc-popup-inner {
    padding: 10px 14px 10px;
    text-align: center;
}

.calc-popup-coords {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #8b95a5;
    margin-bottom: 8px;
}

.calc-popup-link {
    display: inline-block;
    font-size: 12px;
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.4);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.calc-popup-link:hover {
    color: #fff;
    border-color: #fff;
}
