/* ===== Flight Weather Dashboard — DRONESHOT.TW ===== */

:root {
    --bg-dark: #0f1724;
    --bg-dark-2: #1a2332;
    --primary: #FEEEA5;
    --primary-dark: #EBCF7A;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --good: #2ecc71;
    --caution: #f0b90b;
    --bad: #e74c3c;
    --radius: 16px;
    --blur: blur(16px);
    --header-h: 54px;
    --loc-h: 56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #080e1a 0%, #1a2332 40%, #0f1724 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ===== Header ===== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(55, 58, 70, 0.88);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center;
    padding: 0 16px; z-index: 100; gap: 12px;
}
.header-logo img { height: 30px; display: block; }
.header-title { font-size: 15px; font-weight: 700; flex: 1; letter-spacing: .5px; }
.header-btn {
    background: rgba(255,255,255,0.08); border: none; color: var(--text-primary);
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; transition: background .2s;
}
.header-btn:hover { background: rgba(255,255,255,0.18); }
.header-btn:disabled { opacity: .35; cursor: default; }

/* ===== Location Bar ===== */
.location-bar {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: var(--loc-h);
    background: rgba(10, 16, 26, 0.82);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex; align-items: center;
    padding: 0 12px; gap: 8px; z-index: 99;
}
.location-search {
    flex: 1; display: flex; align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 0 12px; height: 40px;
    transition: border-color .2s;
}
.location-search:focus-within { border-color: var(--primary); }
.location-search i { color: var(--text-muted); font-size: 18px; margin-right: 8px; flex-shrink: 0; }
.location-search input {
    flex: 1; background: none; border: none;
    color: var(--text-primary); font-size: 14px;
    font-family: inherit; outline: none; min-width: 0;
}
.location-search input::placeholder { color: var(--text-muted); }
.search-btn {
    background: var(--primary); color: #1a2332; border: none;
    padding: 6px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap; flex-shrink: 0;
    transition: background .2s;
}
.search-btn:hover { background: var(--primary-dark); }
.gps-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    color: var(--primary); height: 40px; padding: 0 12px;
    border-radius: 12px; display: flex; align-items: center; gap: 4px;
    cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500;
    white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.gps-btn:hover { background: rgba(254,238,165,0.12); border-color: var(--primary); }
.gps-btn i { font-size: 18px; }

/* ===== Location Info ===== */
.location-info {
    margin-top: calc(var(--header-h) + var(--loc-h));
    padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 2px;
}
.location-name {
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.location-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }

/* ===== Welcome Screen ===== */
.welcome-screen {
    margin-top: calc(var(--header-h) + var(--loc-h) + 40px);
    text-align: center; padding: 40px 24px;
}
.welcome-icon { font-size: 60px; color: var(--primary); margin-bottom: 16px; }
.welcome-screen h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.welcome-screen p { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.welcome-gps-btn {
    background: linear-gradient(135deg, #FEEEA5, #F6A170);
    color: #1a2332; border: none; padding: 14px 36px; border-radius: 50px;
    font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
    box-shadow: 0 4px 18px rgba(246,161,112,0.35);
    transition: all .3s; display: inline-flex; align-items: center; gap: 8px;
}
.welcome-gps-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(246,161,112,0.5); }

/* ===== Dashboard Grid ===== */
.dashboard { padding: 8px 12px 28px; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ===== Card ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden; transition: all .25s;
}
.card:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.16); }
.card-wide { grid-column: span 2; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px 0;
}
.card-title {
    font-size: 11px; font-weight: 700; color: var(--text-secondary);
    display: flex; align-items: center; gap: 5px;
    text-transform: uppercase; letter-spacing: .4px;
}
.card-title i { font-size: 15px; color: var(--primary); }
.card-body { padding: 10px 14px 14px; }

/* ===== Status Dots ===== */
.status-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
}
.status-dot.good    { background: var(--good); box-shadow: 0 0 8px rgba(46,204,113,.5); }
.status-dot.caution { background: var(--caution); box-shadow: 0 0 8px rgba(240,185,11,.5); }
.status-dot.bad     { background: var(--bad); box-shadow: 0 0 8px rgba(231,76,60,.5); }
.status-dot.unknown { background: var(--text-muted); }

/* ===== Card 1: Weather ===== */
.weather-main { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.weather-icon { font-size: 38px; color: var(--primary); flex-shrink: 0; }
.weather-temp { font-size: 26px; font-weight: 900; line-height: 1.1; }
.weather-desc { font-size: 13px; color: var(--text-secondary); }
.weather-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.weather-detail {
    text-align: center; padding: 5px 4px;
    background: rgba(0,0,0,0.2); border-radius: 8px;
}
.weather-detail .label { display: block; font-size: 10px; color: var(--text-muted); margin-bottom: 1px; }
.weather-detail .value { font-size: 12px; font-weight: 700; }

/* ===== Card 2: Temperature (2×2 grid) ===== */
.temp-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.temp-cell {
    text-align: center; padding: 6px 4px;
    background: rgba(0,0,0,.2); border-radius: 8px;
}
.temp-val { font-size: 20px; font-weight: 900; line-height: 1.2; }
.temp-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.temp-spread-val { color: var(--caution); }

/* ===== Card 3: Sun ===== */
.sun-row { display: flex; gap: 8px; }
.sun-cell {
    flex: 1; text-align: center; padding: 8px 4px;
    background: rgba(0,0,0,.2); border-radius: 8px;
}
.sun-cell i { font-size: 22px; }
.sunrise-icon { color: #f39c12; }
.sunset-icon { color: #9b59b6; }
.sun-time { font-size: 18px; font-weight: 900; margin: 4px 0 2px; }
.sun-lbl { font-size: 10px; color: var(--text-muted); }
.sun-daylight { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ===== Card 4: Rain ===== */
.rain-main { margin-bottom: 10px; }
.rain-value { font-size: 26px; font-weight: 900; line-height: 1.1; }
.rain-current { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== Mini Bar Charts ===== */
.rain-hourly, .cloud-hourly { display: flex; gap: 3px; height: 44px; align-items: flex-end; }
.mini-bar {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; height: 100%; justify-content: flex-end;
}
.mini-bar-fill {
    width: 100%; border-radius: 2px 2px 0 0; min-height: 1px;
    background: linear-gradient(to top, rgba(52,152,219,.55), rgba(52,152,219,.25));
    transition: height .5s;
}
.cloud-bar-fill {
    background: linear-gradient(to top, rgba(149,165,166,.55), rgba(149,165,166,.25));
}
.mini-bar-label { font-size: 8px; color: var(--text-muted); margin-top: 1px; line-height: 1; }

/* ===== Card 5: Wind Altitude ===== */
.wind-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.wind-row:last-child { margin-bottom: 0; }
.wind-label { width: 38px; font-size: 12px; font-weight: 700; text-align: right; color: var(--text-secondary); flex-shrink: 0; }
.wind-bars { flex: 1; }
.wind-bar-track {
    height: 18px; background: rgba(0,0,0,.2); border-radius: 4px;
    position: relative; overflow: hidden;
}
.wind-bar { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px; transition: width .6s; }
.speed-bar { background: linear-gradient(90deg, #3498db, #2980b9); z-index: 2; }
.gust-bar { background: rgba(231,76,60,.25); z-index: 1; }
.wind-value { width: 80px; font-size: 12px; font-weight: 700; text-align: right; flex-shrink: 0; }
.gust-value { color: var(--bad); font-weight: 400; font-size: 11px; }
.wind-legend {
    display: flex; gap: 14px; margin-top: 6px; padding-top: 6px;
    border-top: 1px solid var(--glass-border);
    font-size: 10px; color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-color { width: 12px; height: 7px; border-radius: 2px; }
.wind-color { background: #3498db; }
.gust-color { background: rgba(231,76,60,.45); }
.wind-unit { margin-left: auto; }

/* ===== Card 6: Wind Direction ===== */
.compass-container { display: flex; justify-content: center; margin-bottom: 6px; }
.compass { width: 110px; height: 110px; position: relative; }
.compass-ring {
    position: absolute; inset: 0; border: 2px solid var(--glass-border); border-radius: 50%;
}
.compass-labels span {
    position: absolute; font-size: 11px; font-weight: 700; color: var(--text-muted);
}
.compass-n { top: 4px; left: 50%; transform: translateX(-50%); color: var(--primary) !important; }
.compass-e { right: 4px; top: 50%; transform: translateY(-50%); }
.compass-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.compass-w { left: 4px; top: 50%; transform: translateY(-50%); }
.compass-arrow { position: absolute; inset: 0; transition: transform .6s ease; }
.arrow-head {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-bottom: 28px solid var(--primary);
}
.arrow-tail {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 22px solid rgba(255,255,255,.15);
}
.compass-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 12px; font-weight: 700;
    background: var(--bg-dark-2); padding: 3px 7px; border-radius: 6px; z-index: 2;
}
.wind-dir-detail { text-align: center; font-size: 12px; color: var(--text-secondary); }

/* ===== Card 7: Cloud ===== */
.cloud-display { display: flex; justify-content: center; margin-bottom: 8px; }
.cloud-circle-wrap { position: relative; width: 76px; height: 76px; }
.cloud-circle-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cloud-bg { fill: none; stroke: rgba(0,0,0,.22); stroke-width: 8; }
.cloud-fill {
    fill: none; stroke: #95a5a6; stroke-width: 8; stroke-linecap: round;
    transition: stroke-dashoffset .6s;
}
.cloud-value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 17px; font-weight: 900;
}

/* ===== Card 8: Kp ===== */
.kp-display { text-align: center; margin-bottom: 10px; }
.kp-value { font-size: 30px; font-weight: 900; line-height: 1.1; }
.kp-desc { font-size: 12px; color: var(--text-secondary); }
.kp-scale { margin-bottom: 6px; }
.kp-bar {
    height: 8px; border-radius: 4px; position: relative; margin-bottom: 3px;
    background: linear-gradient(90deg, #2ecc71 0%, #2ecc71 33%, #f0b90b 33%, #f0b90b 55%, #e74c3c 55%, #e74c3c 100%);
}
.kp-indicator {
    position: absolute; top: -3px; width: 4px; height: 14px;
    background: #fff; border-radius: 2px; transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(255,255,255,.5); transition: left .6s;
}
.kp-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); }
.kp-gps-impact { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== Card 9: AQI ===== */
.aqi-display { display: flex; justify-content: center; margin-bottom: 10px; }
.aqi-circle {
    width: 76px; height: 76px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 3px solid var(--glass-border); transition: all .3s;
}
.aqi-good              { border-color: #2ecc71; background: rgba(46,204,113,.08); }
.aqi-moderate          { border-color: #f0b90b; background: rgba(240,185,11,.08); }
.aqi-unhealthy-sens    { border-color: #e67e22; background: rgba(230,126,34,.08); }
.aqi-unhealthy         { border-color: #e74c3c; background: rgba(231,76,60,.08); }
.aqi-very-unhealthy    { border-color: #8e44ad; background: rgba(142,68,173,.08); }
.aqi-hazardous         { border-color: #7f1d1d; background: rgba(127,29,29,.08); }
.aqi-value { font-size: 22px; font-weight: 900; line-height: 1.1; }
.aqi-label { font-size: 9px; color: var(--text-muted); }
.aqi-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 6px; }
.aqi-detail {
    text-align: center; padding: 4px; background: rgba(0,0,0,.2); border-radius: 6px;
}
.aqi-detail .label { display: block; font-size: 9px; color: var(--text-muted); }
.aqi-detail .value { font-size: 12px; font-weight: 700; }
.aqi-station { font-size: 10px; color: var(--text-muted); text-align: center; }

/* ===== Card 10: Sunset Quality ===== */
.sunset-quality { text-align: center; margin-bottom: 10px; }
.sunset-score {
    font-size: 30px; font-weight: 900; line-height: 1.1;
    background: linear-gradient(135deg, #f39c12, #e74c3c, #8e44ad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sunrise-score {
    background: linear-gradient(135deg, #3498db, #f39c12, #f1c40f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sunset-text { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.sunset-times { display: flex; flex-direction: column; gap: 5px; }
.sunset-time-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 8px; background: rgba(0,0,0,.2); border-radius: 8px; font-size: 11px;
}
.sunset-time-item .label { color: var(--text-muted); }
.sunset-time-item .value { font-weight: 700; font-size: 12px; }

/* ===== Card 11: 3-Day Forecast (wide) ===== */
.forecast-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 6px; margin-bottom: 10px;
}
.forecast-tab {
    background: rgba(0,0,0,.2); border: 1px solid transparent;
    border-radius: 10px; padding: 8px 6px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    transition: all .2s; min-width: 0;
}
.forecast-tab:hover { background: rgba(255,255,255,.06); }
.forecast-tab.active {
    background: rgba(254,238,165,.12); border-color: var(--primary);
}
.forecast-tab-day { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.forecast-tab-date { font-size: 10px; color: var(--text-muted); }
.forecast-tab-icon { font-size: 22px; color: var(--primary); line-height: 1; margin: 2px 0; }
.forecast-tab-temp { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.forecast-tab-temp .tmax { color: #ff6b35; }
.forecast-tab-temp .tmin { color: #3498db; }
.forecast-tab-rain { font-size: 10px; color: var(--text-muted); }

.forecast-hourly {
    display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 8px;
    scrollbar-width: thin;
}
.forecast-hourly::-webkit-scrollbar { height: 4px; }
.forecast-hourly::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }
.forecast-hour {
    flex: 0 0 52px; display: flex; flex-direction: column;
    align-items: center; gap: 3px; padding: 6px 2px;
    background: rgba(0,0,0,.18); border-radius: 8px;
}
.forecast-hour-time { font-size: 10px; color: var(--text-muted); font-weight: 700; }
.forecast-hour-icon { font-size: 18px; color: var(--primary); line-height: 1; }
.forecast-hour-temp { font-size: 12px; font-weight: 700; }
.forecast-hour-rain-wrap {
    width: 100%; height: 4px; background: rgba(52,152,219,.12);
    border-radius: 2px; overflow: hidden;
}
.forecast-hour-rain-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
}
.forecast-hour-rain-label { font-size: 9px; color: var(--text-muted); }
.forecast-hour-wind { font-size: 10px; color: var(--text-secondary); font-weight: 500; }

.forecast-legend {
    font-size: 10px; color: var(--text-muted); text-align: center;
    padding-top: 4px; border-top: 1px solid var(--glass-border);
    margin-top: 4px;
}

/* ===== Footer ===== */
.app-footer {
    padding: 18px 16px; border-top: 1px solid var(--glass-border); margin-top: 12px;
}
.footer-credits { text-align: center; font-size: 10px; color: var(--text-muted); line-height: 1.9; }
.footer-credits a { color: var(--text-secondary); text-decoration: none; }
.footer-credits a:hover { color: var(--primary); }

/* ===== Loading ===== */
body.is-loading .bx-refresh { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card.is-loading .card-body { opacity: .25; pointer-events: none; }

/* ===== Responsive ===== */
@media (min-width: 600px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 840px) {
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .card-wide { grid-column: span 3; }
    .dashboard { max-width: 980px; margin: 0 auto; padding: 8px 20px 40px; }
    .location-info { max-width: 980px; margin-left: auto; margin-right: auto; }
    #card-wind-dir { grid-column: span 2; }
}

@media (min-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
    .card-wide { grid-column: span 2; }
    .dashboard { max-width: 1120px; }
    .location-info { max-width: 1120px; }
    #card-wind-dir { grid-column: span 2; }
}

@media (max-width: 380px) {
    .gps-btn span { display: none; }
    .gps-btn { padding: 0 10px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: span 1; }
    .header-title { font-size: 13px; }
}

/* 能見度 (VLOS) 卡片 */
.vis-main { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.vis-value { font-size: 28px; font-weight: 800; }
.vis-vlos { font-size: 14px; font-weight: 700; }
.vis-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.vis-bar-fill { height: 100%; width: 0; border-radius: 4px; background: var(--good); transition: width .4s ease; }
.vis-bar-fill.good    { background: var(--good); }
.vis-bar-fill.caution { background: var(--caution); }
.vis-bar-fill.bad     { background: var(--bad); }
.vis-note { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.6); }

/* ===== Best Windows (P4) ===== */
.windows-list { display: flex; flex-direction: column; gap: 10px; }
.win-empty { font-size: 13px; color: var(--text-muted); padding: 8px 0; }
.win-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
}
.win-rank {
    font-size: 11px; font-weight: 700;
    color: var(--text-muted); min-width: 16px; text-align: center;
}
.win-score {
    min-width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900; flex-shrink: 0;
}
.win-score.good    { background: rgba(46,204,113,.18); color: var(--good); }
.win-score.caution { background: rgba(240,185,11,.18); color: var(--caution); }
.win-score.bad     { background: rgba(231,76,60,.18);  color: var(--bad); }
.win-body { flex: 1; min-width: 0; }
.win-when {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 5px;
}
.win-gh-badge {
    font-size: 10px; font-weight: 700;
    background: rgba(240,185,11,.2); color: var(--caution);
    padding: 2px 7px; border-radius: 5px;
}
.win-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.win-stat {
    display: flex; align-items: center; gap: 3px;
    font-size: 12px; color: var(--text-secondary);
}
.win-stat i { font-size: 14px; color: var(--text-muted); }

/* ===== Retry GPS Button ===== */
.retry-gps-btn {
    background: rgba(254,238,165,.12); color: var(--primary);
    border: 1px solid rgba(254,238,165,.3); border-radius: 8px;
    font-size: 11px; font-weight: 700; font-family: inherit;
    padding: 3px 10px; cursor: pointer; transition: all .2s;
}
.retry-gps-btn:hover { background: rgba(254,238,165,.22); }

/* ===== METAR Card ===== */
.metar-ap-header {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}
.metar-ap-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.metar-ap-meta { font-size: 11px; color: var(--text-muted); }

.metar-data-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
    margin-bottom: 14px;
}
.metar-col { display: flex; flex-direction: column; gap: 5px; }
.metar-row {
    display: flex; align-items: baseline; gap: 6px;
    font-size: 13px;
}
.metar-lbl { color: var(--text-muted); font-size: 11px; white-space: nowrap; min-width: 52px; }
.metar-val { font-weight: 700; color: var(--text-primary); }
.metar-sub { font-size: 11px; font-weight: 400; color: var(--text-muted); }

.metar-clouds-section {
    border-top: 1px solid var(--glass-border); padding-top: 10px;
}
.metar-clouds-label {
    font-size: 10px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
}
.metar-clouds-list { display: flex; flex-direction: column; gap: 8px; }
.metar-cloud-row { display: flex; align-items: center; gap: 10px; }
.metar-cloud-code {
    font-size: 12px; font-weight: 900; color: var(--text-secondary);
    min-width: 30px; flex-shrink: 0;
}
.metar-skc-code { color: #5dade2; }
.metar-cloud-ht {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    min-width: 90px; flex-shrink: 0;
}
.metar-cloud-ht small { font-size: 10px; font-weight: 400; color: var(--text-muted); margin-left: 1px; }
.metar-cloud-icons { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.metar-cloud-svg {
    width: 22px; height: 15px; color: var(--text-secondary);
    flex-shrink: 0;
}
.metar-sky-clear {
    flex: 1; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, #5dade2, rgba(93,173,226,.15));
    max-width: 160px;
}
