html {
    scroll-behavior: smooth;
}

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

body {
    background: #07111f;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    align-items: center;
    background: rgba(8, 16, 30, 0.94);
    border-bottom: 1px solid rgba(125, 211, 252, 0.18);
    display: flex;
    justify-content: space-between;
    padding: 18px 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #38bdf8;
    font-size: 30px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #e2e8f0;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #38bdf8;
}

.hero {
    align-items: center;
    background:
        linear-gradient(rgba(4, 10, 22, 0.84), rgba(4, 10, 22, 0.9)),
        radial-gradient(circle at 18% 16%, rgba(14, 165, 233, 0.26), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.16), transparent 26%),
        #07111f;
    display: flex;
    justify-content: center;
    min-height: 86vh;
    padding: 80px 20px;
}

.hero-content {
    max-width: 920px;
    text-align: center;
}

.eyebrow {
    color: #7dd3fc;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero h1 {
    color: #38bdf8;
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero p {
    color: #dbeafe;
    font-size: 21px;
    margin-bottom: 30px;
}

.global-now-section {
    background:
        radial-gradient(circle at 12% 2%, rgba(14, 165, 233, 0.2), transparent 27%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.16), transparent 28%),
        #081729;
    border-top: 1px solid rgba(125, 211, 252, 0.12);
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
    padding: 72px 8%;
}

.global-now-heading {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto 28px;
    max-width: 1280px;
}

.global-now-heading > div { max-width: 790px; }

.global-kicker {
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.global-now-heading h2 {
    color: #f8fafc;
    font-size: clamp(31px, 4vw, 47px);
    line-height: 1.1;
    margin-bottom: 13px;
}

.global-now-heading > div > p:last-child {
    color: #cbd5e1;
    font-size: 17px;
    max-width: 730px;
}

.experience-switch {
    background: transparent;
    border: 1px solid rgba(103, 232, 249, 0.55);
    border-radius: 999px;
    color: #cffafe;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 15px;
    width: auto !important;
}

.experience-switch:hover,
.experience-switch[aria-pressed="true"] {
    background: #164e63;
}

.global-situation-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto 20px;
    max-width: 1280px;
}

.global-situation-card {
    background: rgba(15, 35, 58, 0.78);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 12px;
    min-height: 122px;
    padding: 17px;
}

.global-situation-card span,
.global-situation-card small {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.global-situation-card strong {
    color: #f8fafc;
    display: block;
    font-size: 32px;
    line-height: 1;
    margin: 13px 0 8px;
}

.global-map-layout {
    align-items: stretch;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 2.1fr) minmax(290px, 0.9fr);
    margin: 0 auto;
    max-width: 1280px;
}

.global-map-main,
.my-places-panel {
    background: rgba(7, 17, 31, 0.78);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 14px;
    overflow: hidden;
}

.global-map-toolbar {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding: 15px 17px;
}

.global-map-toolbar strong {
    color: #f8fafc;
    display: block;
    font-size: 16px;
}

.global-map-toolbar span {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.global-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.global-refresh-button {
    background: #0e7490;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    width: auto !important;
}

.global-pin-button {
    background: #172a46;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 7px;
    color: #bae6fd;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    width: auto !important;
}

.global-pin-button.active {
    background: #f59e0b;
    border-color: #fde68a;
    color: #1c1917;
}

#global-map {
    height: 540px;
    width: 100%;
}

.global-map-attribution {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
    padding: 11px 15px 13px;
}

.my-places-panel {
    padding: 20px;
}

.my-places-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.my-places-heading h3 {
    color: #f8fafc;
    font-size: 22px;
}

.my-places-heading > span {
    color: #94a3b8;
    font-size: 10px;
    max-width: 105px;
    text-align: right;
}

.my-places-panel > p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}

.my-places-form {
    display: grid;
    gap: 8px;
}

.my-places-form input {
    background: #0b1d31;
    border: 1px solid rgba(125, 211, 252, 0.25);
    color: #f8fafc;
    width: 100%;
}

.my-places-form button {
    background: #0284c7;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 11px;
    width: 100% !important;
}

.my-places-feedback {
    color: #fcd34d !important;
    min-height: 18px;
}

.my-places-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.my-place-empty {
    border: 1px dashed rgba(125, 211, 252, 0.26);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12px;
    padding: 13px;
    text-align: center;
}

.my-place-item {
    align-items: center;
    background: rgba(30, 52, 80, 0.62);
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 8px;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.my-place-open {
    background: transparent;
    border: 0;
    color: #e0f2fe;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    padding: 0;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto !important;
}

.my-place-delete {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 6px;
    color: #fca5a5;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 7px;
    width: auto !important;
}

.global-coverage-details {
    background: rgba(15, 35, 58, 0.5);
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 10px;
    color: #cbd5e1;
    margin: 20px auto 0;
    max-width: 1280px;
    padding: 0 16px;
}

.global-coverage-details summary {
    color: #bae6fd;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
    padding: 14px 0;
}

.global-coverage-details summary::-webkit-details-marker { display: none; }
.global-coverage-details summary::after { content: "+"; float: right; font-size: 18px; }
.global-coverage-details[open] summary::after { content: "−"; }
.global-coverage-details > div { border-top: 1px solid rgba(148, 163, 184, 0.16); padding: 12px 0; }
.global-coverage-details p { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }

.global-alert-marker {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 10px;
    font-weight: 900;
    height: 27px;
    justify-content: center;
    text-align: center;
    width: 27px;
}

body.simple-view .global-situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.simple-view .global-situation-card:nth-child(n+3),
body.simple-view .global-coverage-details,
body.simple-view .map-time-disclosure,
body.simple-view .map-read-grid,
body.simple-view .map-limits { display: none; }
body.simple-view #global-map { height: 380px; }
body.simple-view .global-map-attribution { display: none; }

.hero-button,
.dashboard-card button {
    background: #0ea5e9;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    padding: 15px 28px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-button:hover,
.dashboard-card button:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.features,
.statistics {
    padding: 76px 10%;
    text-align: center;
}

.features {
    background: #0f172a;
}

.statistics {
    background: #07111f;
}

.features h2,
.statistics h2 {
    color: #38bdf8;
    font-size: 38px;
    margin-bottom: 34px;
}

.feature-grid,
.stats-grid,
.layer-grid,
.metrics-grid,
.insight-grid {
    display: grid;
    gap: 20px;
}

.feature-grid,
.stats-grid,
.layer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.stat-card,
.layer-card {
    background: #12213a;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    padding: 26px;
    text-align: left;
    transition: transform 0.25s ease;
}

.feature-card:hover,
.stat-card:hover,
.layer-card:hover {
    transform: translateY(-4px);
}

.feature-card h3,
.layer-card strong {
    color: #7dd3fc;
    margin-bottom: 10px;
}

.feature-card p,
.layer-card p,
.stat-card p {
    color: #cbd5e1;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    color: #f8fafc;
    font-size: 32px;
}

.dashboard {
    background: #0b1221;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.dashboard-card {
    background: #13213a;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.14);
    max-width: 1100px;
    padding: 34px;
    width: 100%;
}

.dashboard-card h2 {
    color: #38bdf8;
    font-size: 34px;
    text-align: center;
}

.dashboard-card > p {
    color: #cbd5e1;
    margin: 8px 0 24px;
    text-align: center;
}

.dashboard-card form {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
}

.dashboard-card input {
    border: 0;
    border-radius: 8px;
    font-size: 17px;
    padding: 15px;
    width: 100%;
}

.watchlist-panel {
    margin: 0 auto 40px;
    max-width: 1100px;
    padding: 0 24px;
}

.route-safety-panel {
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    margin: 0 auto 40px;
    max-width: 1100px;
    padding: 32px 28px;
}

.route-safety-header h2 {
    color: #f8fafc;
    font-size: 28px;
    margin-bottom: 8px;
}

.route-safety-header p {
    color: #cbd5e1;
    font-size: 14px;
    max-width: 720px;
}

.route-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 6px;
}

.route-form input {
    background: #0f1a2e;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #f8fafc;
    flex: 1;
    font-family: inherit;
    font-size: 15px;
    min-width: 200px;
    padding: 12px 14px;
}

.route-form button {
    background: #0ea5e9;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 22px;
}

.route-form button:hover {
    background: #0284c7;
}

.route-form button:disabled {
    background: #334155;
    cursor: not-allowed;
}

.route-feedback {
    color: #fca5a5;
    font-size: 13px;
    min-height: 18px;
}

.route-verdict-banner {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left-width: 5px;
    border-radius: 10px;
    margin-top: 12px;
    padding: 18px 20px;
}

.route-verdict-banner p {
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 6px;
}

.route-action {
    color: #fecaca !important;
    font-weight: 700;
}

.route-segment-bar {
    display: flex;
    gap: 3px;
    height: 26px;
    margin-top: 16px;
}

.route-segment {
    border-radius: 3px;
    flex: 1;
}

.route-risky-list {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    margin-top: 14px;
    padding: 12px 16px;
}

.route-risky-list strong {
    color: #fecaca;
    font-size: 13px;
}

.route-risky-list ul {
    color: #fee2e2;
    font-size: 13px;
    margin: 8px 0 0 18px;
}

.route-risky-list li {
    margin-bottom: 4px;
}

.route-alt {
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 14px;
}

.route-alt .risk-pill {
    display: inline-block;
    font-size: 11px;
    margin-left: 6px;
    min-width: auto;
    padding: 3px 10px;
}

.property-disclaimer {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 14px;
}

.regional-context-box {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    margin: 0 0 18px;
    padding: 14px 18px;
}

.regional-context-box strong {
    color: #7dd3fc;
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.regional-context-box p {
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 4px;
}

.regional-disclaimer {
    color: #94a3b8 !important;
    font-size: 11px !important;
    margin-top: 8px !important;
}

.watchlist-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.watchlist-header h2 {
    color: #f8fafc;
    font-size: 26px;
    margin: 0;
}

.watchlist-updated {
    color: #94a3b8;
    font-size: 13px;
}

.watchlist-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin: -6px 0 14px;
}

.watchlist-state {
    border-radius: 10px;
    padding: 18px 22px;
}

.watchlist-pending {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.watchlist-clear {
    background: rgba(22, 163, 74, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.watchlist-stale {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.watchlist-stale-note {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    color: #fde68a;
    font-size: 13px;
    grid-column: 1 / -1;
    padding: 10px 14px;
}

.watchlist-active {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.watchlist-alert-card {
    animation: watchlist-card-glow 2s infinite;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 16px;
}

@keyframes watchlist-card-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.22); }
    50% { box-shadow: 0 0 14px 2px rgba(220, 38, 38, 0.2); }
}

.watchlist-alert-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.watchlist-alert-top strong {
    color: #f8fafc;
    font-size: 16px;
}

.watchlist-alert-card p {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 34px;
}

.watchlist-check-btn,
#manual-refresh-btn {
    background: #0ea5e9;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
}

.watchlist-check-btn:hover,
#manual-refresh-btn:hover {
    background: #0284c7;
}

.risk-border-low { border-left-color: #16a34a; }
.risk-border-watch { border-left-color: #f59e0b; }
.risk-border-moderate { border-left-color: #eab308; }
.risk-border-high { border-left-color: #dc2626; }
.risk-border-severe { border-left-color: #b91c1c; }
.risk-border-critical { border-left-color: #7f1d1d; }

.dual-score-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 18px 0;
}

.dual-score-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left-width: 5px;
    border-radius: 10px;
    padding: 16px 18px;
}

.dual-score-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dual-score-value {
    color: #f8fafc;
    display: block;
    font-size: 28px;
    font-weight: 900;
    margin: 4px 0 8px;
}

.dual-score-card p {
    color: #cbd5e1;
    font-size: 13px;
}

.rent-warning-banner {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-left-width: 5px;
    border-radius: 10px;
    color: #fecaca;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 18px;
    padding: 14px 18px;
}

.search-hint {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.ground-alert {
    animation: ground-alert-glow 1.6s infinite;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 16px 18px;
}

@keyframes ground-alert-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
    50% { box-shadow: 0 0 18px 4px rgba(220, 38, 38, 0.25); }
}

.ground-alert strong {
    color: #fecaca;
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.ground-alert p {
    color: #fee2e2;
    font-size: 14px;
}

.live-dot {
    animation: blink-dot 1.2s infinite;
    background: #ef4444;
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    margin-right: 6px;
    width: 9px;
}

.coastal-badge {
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 999px;
    color: #7dd3fc;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    padding: 3px 10px;
}

.error-message {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 8px;
    color: #fecaca;
    margin-top: 18px;
    padding: 14px;
}

.prediction-card {
    background: #1a3151;
    border-radius: 8px;
    margin-top: 26px;
    padding: 24px;
}

.weather-panel {
    align-items: center;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.88), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(186, 230, 253, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(240px, 360px) 1fr;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.sky {
    background: linear-gradient(180deg, #38bdf8, #0f172a);
    border-radius: 8px;
    height: 230px;
    overflow: hidden;
    position: relative;
}

.scene-clear .sky {
    background: linear-gradient(180deg, #38bdf8, #facc15);
}

.scene-rain .sky,
.scene-storm .sky {
    background: linear-gradient(180deg, #334155, #0f172a);
}

.scene-mist .sky {
    background: linear-gradient(180deg, #94a3b8, #334155);
}

.scene-snow .sky {
    background: linear-gradient(180deg, #dbeafe, #64748b);
}

.sun,
.moon,
.cloud,
.rain,
.bolt,
.mist,
.snow {
    position: absolute;
}

.sun {
    background: #fde047;
    border-radius: 50%;
    box-shadow: 0 0 38px rgba(253, 224, 71, 0.8);
    height: 76px;
    left: 36px;
    top: 34px;
    width: 76px;
}

.moon {
    background: #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(226, 232, 240, 0.7);
    display: none;
    height: 58px;
    right: 42px;
    top: 34px;
    width: 58px;
}

.cloud {
    animation: drift 10s linear infinite;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    height: 38px;
    width: 115px;
}

.cloud::before,
.cloud::after {
    background: inherit;
    border-radius: 50%;
    content: "";
    position: absolute;
}

.cloud::before {
    height: 58px;
    left: 18px;
    top: -28px;
    width: 58px;
}

.cloud::after {
    height: 46px;
    right: 18px;
    top: -20px;
    width: 46px;
}

.cloud-one {
    left: 90px;
    top: 82px;
}

.cloud-two {
    animation-duration: 14s;
    left: -30px;
    opacity: 0.72;
    top: 128px;
    transform: scale(0.8);
}

.cloud-three {
    animation-duration: 18s;
    left: 190px;
    opacity: 0.55;
    top: 46px;
    transform: scale(0.68);
}

.rain {
    animation: rainDrop 0.72s linear infinite;
    background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(191, 219, 254, 0.95) 12px 15px, transparent 15px 24px);
    display: none;
    height: 180px;
    left: 0;
    top: 58px;
    transform: skewX(-13deg);
    width: 100%;
}

.rain-two {
    animation-delay: 0.22s;
    opacity: 0.75;
}

.rain-three {
    animation-delay: 0.44s;
    opacity: 0.5;
}

.bolt {
    background: #fde047;
    clip-path: polygon(42% 0, 70% 0, 56% 38%, 82% 38%, 34% 100%, 45% 52%, 20% 52%);
    display: none;
    height: 110px;
    left: 150px;
    top: 64px;
    width: 76px;
}

.mist {
    animation: mistMove 7s ease-in-out infinite alternate;
    background: rgba(226, 232, 240, 0.62);
    border-radius: 999px;
    display: none;
    height: 18px;
    left: 28px;
    top: 120px;
    width: 280px;
}

.mist-two {
    animation-delay: 1.4s;
    top: 156px;
}

.snow {
    animation: snowFall 3.2s linear infinite;
    background-image:
        radial-gradient(circle, #fff 2px, transparent 3px),
        radial-gradient(circle, #fff 2px, transparent 3px),
        radial-gradient(circle, #fff 2px, transparent 3px);
    background-position: 20px 0, 110px 32px, 210px 12px;
    background-size: 90px 90px;
    display: none;
    height: 220px;
    left: 0;
    top: 0;
    width: 100%;
}

.snow-two {
    animation-delay: 1.4s;
    opacity: 0.7;
}

.scene-rain .rain,
.scene-storm .rain,
.scene-storm .bolt,
.scene-mist .mist,
.scene-snow .snow {
    display: block;
}

.scene-storm .bolt {
    animation: flash 1.8s infinite;
}

.scene-rain .sun,
.scene-storm .sun,
.scene-mist .sun,
.scene-snow .sun {
    display: none;
}

.scene-storm .moon,
.scene-mist .moon {
    display: block;
}

.weather-readout span {
    color: #bae6fd;
    display: block;
    font-weight: 800;
    text-transform: uppercase;
}

.weather-readout strong {
    color: #fff;
    display: block;
    font-size: 56px;
    line-height: 1;
    margin: 10px 0;
}

.weather-readout p {
    color: #e0f2fe;
    font-size: 20px;
    margin-bottom: 8px;
}

.weather-readout small {
    color: #cbd5e1;
    display: block;
}

.result-header {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.result-header h3 {
    color: #7dd3fc;
    font-size: 28px;
}

.travel-banner {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-left-width: 5px;
    border-radius: 10px;
    margin-top: 18px;
    padding: 18px 20px;
}

.travel-banner p {
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 8px;
}

.travel-verdict {
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 6px 14px;
}

.travel-window {
    color: #bae6fd !important;
    font-weight: 600;
}

.share-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.share-label {
    color: #94a3b8;
    font-size: 13px;
}

.share-btn {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    text-decoration: none;
}

.share-btn:hover {
    background: #273549;
}

.share-whatsapp:hover { border-color: #25D366; }
.share-x:hover { border-color: #ffffff; }
.share-facebook:hover { border-color: #1877F2; }
.share-telegram:hover { border-color: #229ED9; }

.risk-pill {
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    min-width: 110px;
    padding: 10px 16px;
    text-align: center;
}

@keyframes pulse-alert-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
    50% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
}

@keyframes pulse-alert-ring-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 29, 29, 0.7); }
    50% { box-shadow: 0 0 0 13px rgba(127, 29, 29, 0); }
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.risk-low,
.low-risk {
    background: #16a34a;
}

.risk-watch {
    background: #f59e0b;
}

.risk-moderate {
    background: #eab308;
}

.risk-medium,
.medium-risk {
    background: #f59e0b;
}

.risk-high,
.high-risk {
    animation: pulse-alert-ring 1.6s infinite;
    background: #dc2626;
}

.risk-severe {
    animation: pulse-alert-ring 1.3s infinite;
    background: #b91c1c;
}

.risk-critical {
    animation: pulse-alert-ring-critical 1s infinite;
    background: #7f1d1d;
}

.gauge {
    background: #20304f;
    border-radius: 999px;
    height: 18px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.gauge-fill {
    background: linear-gradient(90deg, #00c853, #ffb300, #d50000);
    height: 100%;
}

.ai-score {
    color: #7dd3fc;
    font-size: 17px;
    font-weight: 800;
}

.metrics-grid,
.insight-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 22px;
}

.metrics-grid div,
.insight-grid section {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 16px;
}

.metrics-grid span,
.layer-card span {
    color: #cbd5e1;
    display: block;
    font-size: 14px;
}

.metrics-grid strong {
    color: #f8fafc;
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

.earth-engine-panel {
    background: rgba(6, 78, 59, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 8px;
    margin-top: 22px;
    padding: 18px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;

    max-width: 100%;
}

.earth-engine-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.earth-engine-header h3 {
    color: #86efac;
    font-size: 20px;
}

.earth-engine-header span {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 999px;
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.earth-engine-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.earth-engine-grid div {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 12px;
}

.earth-engine-grid span {
    color: #a7f3d0;
    display: block;
    font-size: 12px;
}

.earth-engine-grid strong {
    color: #f8fafc;
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.earth-engine-factors {
    color: #d1fae5;
    display: grid;
    font-size: 13px;
    gap: 6px;
    list-style: disc;
    margin: 14px 0 0 18px;
}

.earth-engine-panel > p {
    color: #d1fae5;
    font-size: 13px;
}

.advice-box {
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 8px;
    color: #e0f2fe;
    margin-top: 22px;
    padding: 16px;
}

.safety-action-box {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-left-width: 4px;
    border-radius: 8px;
    color: #fee2e2;
    font-size: 15px;
    font-weight: 600;
    margin-top: 22px;
    padding: 14px 16px;
}

.safety-action-box strong {
    color: #fecaca;
}

.watchlist-action {
    color: #fecaca;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px !important;
    min-height: 0 !important;
}

.map-decision {
    border-top: 1px solid rgba(125, 211, 252, 0.18);
    margin-top: 28px;
    padding-top: 24px;
}

.map-decision-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.map-kicker {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.map-decision-heading h3 {
    color: #f8fafc;
    font-size: 22px;
    line-height: 1.25;
}

.map-live-status {
    align-items: center;
    color: #bae6fd;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    padding-top: 6px;
}

.map-action-summary {
    align-items: center;
    background: rgba(15, 35, 58, 0.78);
    border-left-width: 4px;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(150px, 0.7fr) 2fr;
    margin-top: 18px;
    padding: 14px 16px;
}

.map-action-summary span {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.map-action-summary strong {
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.25;
}

.map-action-summary p {
    color: #dbeafe;
    font-size: 14px;
}

.map-time-disclosure {
    background: rgba(15, 35, 58, 0.62);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 10px;
    margin: 16px 0 12px;
    padding: 0 14px;
}

.map-time-disclosure summary {
    color: #bae6fd;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
    padding: 13px 0;
}

.map-time-disclosure summary::-webkit-details-marker { display: none; }

.map-time-disclosure summary::after {
    color: #7dd3fc;
    content: "+";
    float: right;
    font-size: 19px;
    font-weight: 400;
    line-height: 0.8;
}

.map-time-disclosure[open] summary::after { content: "−"; }

.map-time-selector {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 12px 0 14px;
}

.map-time-selector > span {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.map-time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.map-time-btn {
    background: #172a46;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 999px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
    width: auto !important;
}

.map-time-btn:hover,
.map-time-btn.active {
    background: #0e7490;
    border-color: #67e8f9;
    color: #fff;
}

.map-route-prompt {
    color: #cbd5e1;
    font-size: 13px;
    margin: -2px 0 13px;
}

.map-route-prompt a {
    color: #7dd3fc;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-search-panel {
    background: rgba(15, 35, 58, 0.7);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 10px;
    margin: 0 0 13px;
    padding: 14px;
}

.map-search-panel > label {
    color: #bae6fd;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}

.map-search-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.map-search-actions input {
    background: #07111f;
    border: 1px solid rgba(125, 211, 252, 0.3);
    color: #f8fafc;
    min-width: 0;
    width: 100%;
}

.map-search-btn,
.map-pin-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 13px;
    white-space: nowrap;
    width: auto !important;
}

.map-search-btn {
    background: #0284c7;
    color: #fff;
}

.map-pin-btn {
    background: #172a46;
    border-color: rgba(125, 211, 252, 0.42);
    color: #bae6fd;
}

.map-pin-btn.active {
    background: #f59e0b;
    border-color: #fde68a;
    color: #1c1917;
}

.map-pin-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.map-search-feedback {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 9px;
}

.map-pin-mode,
.map-pin-mode .leaflet-interactive {
    cursor: crosshair !important;
}

#map {
    border-radius: 8px;
    height: 470px;
    margin: 0 0 16px;
    overflow: hidden;
    width: 100%;
}

.map-read-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-read-card {
    background: rgba(15, 35, 58, 0.62);
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 10px;
    padding: 15px;
}

.map-read-card summary {
    color: #bae6fd;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    margin-bottom: 10px;
    justify-content: space-between;
    list-style: none;
}

.map-read-card summary::-webkit-details-marker { display: none; }

.map-read-card summary::after {
    color: #7dd3fc;
    content: "+";
    font-size: 20px;
    font-weight: 400;
    line-height: 0.75;
}

.map-read-card[open] summary::after { content: "−"; }

.map-read-card[open] summary { margin-bottom: 12px; }

.map-read-content {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 2px;
}

.map-key-list,
.map-factor-list {
    color: #cbd5e1;
    font-size: 13px;
    list-style: none;
}

.map-key-list li,
.map-factor-list li {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    line-height: 1.4;
    margin-top: 8px;
}

.map-factor-list li::before {
    color: #7dd3fc;
    content: "•";
    font-size: 17px;
    line-height: 1;
}

.map-key-symbol {
    display: inline-block;
    flex: 0 0 auto;
    margin-top: 3px;
}

.map-key-pin {
    background: #2563eb;
    border: 2px solid #dbeafe;
    border-radius: 50% 50% 50% 0;
    height: 12px;
    transform: rotate(-45deg);
    width: 12px;
}

.map-key-ring {
    border: 2px solid #eab308;
    border-radius: 50%;
    height: 13px;
    width: 13px;
}

.map-key-water {
    background: repeating-linear-gradient(90deg, #38bdf8 0 4px, transparent 4px 7px);
    height: 3px;
    margin-top: 8px;
    width: 16px;
}

.map-community-note,
.map-limits {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 12px;
}

.map-community-note strong {
    color: #fca5a5;
}

.map-limits {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 12px;
}

.map-guide {
    background: rgba(7, 17, 31, 0.93);
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.4;
    max-width: 220px;
    padding: 10px 12px;
}

.map-guide strong {
    color: #fff;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.map-guide p {
    color: #bae6fd;
    margin-bottom: 7px;
}

.map-guide ul {
    list-style: none;
}

.map-guide li {
    align-items: center;
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.map-guide-pin,
.map-guide-ring,
.map-guide-water {
    display: inline-block;
    flex: 0 0 auto;
}

.map-guide-pin {
    background: #2563eb;
    border: 1px solid #dbeafe;
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.map-guide-ring {
    border: 2px solid #eab308;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.map-guide-water {
    background: #38bdf8;
    height: 2px;
    width: 12px;
}

.map-legend {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 12px;
    padding: 10px 12px;
    line-height: 1.6;
}

.map-legend-row {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.map-legend-swatch {
    border-radius: 3px;
    display: inline-block;
    height: 10px;
    width: 14px;
}

.map-legend-dot {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.map-legend-line {
    background: repeating-linear-gradient(90deg, #38bdf8 0 4px, transparent 4px 8px);
    display: inline-block;
    height: 2px;
    width: 16px;
}

.map-legend-note {
    color: #94a3b8;
    font-size: 11px;
    white-space: normal;
}

.map-label {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
}

.insight-grid h3,
.prediction-card > h3 {
    color: #7dd3fc;
    margin-bottom: 12px;
}

.factor-list {
    margin-left: 18px;
}

.factor-list li {
    margin-bottom: 8px;
}

.checklist {
    display: grid;
    gap: 10px;
    list-style: none;
}

.checklist li {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

.check-mark {
    color: #4ade80;
    font-weight: 900;
    margin-right: 6px;
}

.history-answer {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    margin-top: 16px;
    padding: 12px 14px;
}

.history-answer strong {
    color: #7dd3fc;
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.history-answer p {
    color: #cbd5e1;
    font-size: 13px;
}

.layer-grid {
    margin: 22px 0;
}

.layer-card strong {
    display: block;
    font-size: 26px;
    margin: 8px 0;
}

.tide-forecast-box {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    margin: 0 0 22px;
    padding: 16px 18px;
}

.tide-forecast-box strong {
    color: #7dd3fc;
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.tide-events {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tide-event {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tide-event-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tide-event-value {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
}

.tide-source {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 10px;
}

.forecast-container {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 16px;
}

.forecast-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #1e293b;
    min-height: 270px;
    padding: 16px;
    position: relative;
    text-align: center;
    transition: transform 0.25s ease;
}

.forecast-card:hover {
    transform: translateY(-6px);
}

.forecast-card::before {
    border-radius: 999px;
    content: "";
    display: block;
    height: 42px;
    margin: 0 auto 10px;
    width: 42px;
}

.mini-clear::before {
    background: #facc15;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.68);
}

.mini-clouds::before,
.mini-mist::before {
    background: #cbd5e1;
}

.mini-rain::before,
.mini-storm::before {
    background: linear-gradient(#64748b 45%, #38bdf8 46%);
}

.mini-snow::before {
    background: #e0f2fe;
}

.forecast-card h3 {
    color: #0f4c81;
    font-size: 20px;
    margin-bottom: 8px;
}

.forecast-card p {
    font-size: 14px;
    margin: 6px 0;
}

.forecast-risk {
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    margin-top: 12px;
    padding: 8px;
}

.forecast-action {
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.timeline-track {
    display: flex;
    gap: 6px;
    margin: 16px 0 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.timeline-slot {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 56px;
}

.timeline-time {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.timeline-bar-track {
    align-items: flex-end;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 4px;
    display: flex;
    height: 70px;
    width: 18px;
}

.timeline-bar {
    border-radius: 4px;
    width: 100%;
}

.timeline-rain {
    color: #7dd3fc;
    font-size: 10px;
}

.timeline-risk {
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
}

.emergency-panel {
    margin: 26px 0;
}

.emergency-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.emergency-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid #f87171;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
}

.emergency-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.emergency-card strong {
    color: #f8fafc;
    font-size: 15px;
}

.emergency-distance {
    color: #cbd5e1;
    font-size: 13px;
}

.emergency-phone {
    color: #7dd3fc;
    font-size: 13px;
    text-decoration: none;
}

.emergency-phone:hover {
    text-decoration: underline;
}

.emergency-note {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 10px;
}

.community-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 8px;
    margin-top: 26px;
    padding: 24px;
}

.community-header h3 {
    color: #7dd3fc;
    font-size: 24px;
    margin-bottom: 8px;
}

.community-header p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.community-stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 24px;
}

.community-stat {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    padding: 14px 16px;
}

.community-stat span {
    color: #cbd5e1;
    display: block;
    font-size: 13px;
}

.community-stat strong {
    color: #f8fafc;
    display: block;
    font-size: 24px;
    margin-top: 4px;
}

.contribute-form {
    background: rgba(19, 33, 58, 0.7);
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    padding: 20px;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-row label {
    color: #bae6fd;
    font-size: 14px;
    font-weight: 700;
}

.field-row select,
.field-row textarea {
    background: #0f1a2e;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    padding: 12px;
}

.field-row textarea {
    min-height: 90px;
    resize: vertical;
}

.star-rating {
    display: flex;
    gap: 6px;
}

.star {
    background: none;
    border: 0;
    color: #475569;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star:hover {
    transform: scale(1.12);
}

.star.active {
    color: #facc15;
}

.contribute-form button[type="submit"] {
    background: #0ea5e9;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    padding: 14px;
    transition: background 0.2s ease;
}

.contribute-form button[type="submit"]:hover {
    background: #0284c7;
}

.contribute-form button[type="submit"]:disabled {
    background: #334155;
    cursor: not-allowed;
}

.contribute-feedback {
    font-size: 14px;
    min-height: 18px;
}

.contribute-feedback.success {
    color: #4ade80;
}

.contribute-feedback.error {
    color: #fca5a5;
}

.community-feed {
    margin-top: 24px;
}

.community-feed h4 {
    color: #7dd3fc;
    margin-bottom: 12px;
}

.reports-list {
    display: grid;
    gap: 10px;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.report-item {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-left: 3px solid #0ea5e9;
    border-radius: 6px;
    padding: 12px 14px;
}

.report-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.report-category {
    color: #bae6fd;
    font-size: 13px;
    font-weight: 700;
}

.report-rating {
    color: #facc15;
    font-weight: 800;
}

.report-comment {
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 6px;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.report-meta span {
    background: rgba(56, 189, 248, 0.12);
    border-radius: 999px;
    color: #bae6fd;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
}

.report-empty {
    color: #94a3b8;
    font-size: 14px;
    list-style: none;
    padding: 12px 0;
}

footer {
    background: #0f172a;
    padding: 38px 20px;
    text-align: center;
}

footer h2 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 18px 0 22px;
}

.contact-item {
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 4px;
}

.contact-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-item a {
    color: #7dd3fc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.spinner {
    align-items: center;
    background: rgba(5, 10, 20, 0.72);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 9999;
}

.spinner.active {
    display: flex;
}

.scan-loader {
    background: linear-gradient(145deg, #0b2039, #07111f);
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    max-width: 410px;
    padding: 34px 32px 30px;
    text-align: center;
    width: calc(100% - 36px);
}

.scan-radar {
    background: repeating-radial-gradient(circle, rgba(56, 189, 248, 0.34) 0 2px, transparent 3px 22px), #08233a;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    height: 94px;
    margin: 0 auto 22px;
    overflow: hidden;
    position: relative;
    width: 94px;
}

.scan-radar::after {
    animation: radarSweep 1.8s linear infinite;
    background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.8), transparent 54deg);
    content: "";
    inset: -2px;
    position: absolute;
}

.scan-radar span {
    background: #d9f99d;
    border-radius: 50%;
    box-shadow: 0 0 12px #d9f99d;
    height: 8px;
    left: 55px;
    position: absolute;
    top: 32px;
    width: 8px;
    z-index: 1;
}

.scan-kicker {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scan-loader h2 {
    color: #f8fafc;
    font-size: 25px;
    margin: 5px 0 21px;
    overflow-wrap: anywhere;
}

.scan-steps {
    min-height: 30px;
    position: relative;
}

.scan-steps span {
    animation: scanStep 8s infinite;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 700;
    inset: 0;
    opacity: 0;
    position: absolute;
}

.scan-steps span:nth-child(2) { animation-delay: 2s; }
.scan-steps span:nth-child(3) { animation-delay: 4s; }
.scan-steps span:nth-child(4) { animation-delay: 6s; }

.scan-note {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 17px;
}

.share-card-preview {
    background: #0b2039;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 10px;
    color: #94a3b8;
    display: block;
    font-size: 12px;
    margin: 4px 0 18px;
    max-width: 420px;
    overflow: hidden;
}

.share-card-preview:hover { border-color: #38bdf8; }

.share-card-preview img {
    display: block;
    height: auto;
    width: 100%;
}

.share-card-preview span {
    display: block;
    padding: 8px 12px;
}

@keyframes radarSweep {
    to { transform: rotate(360deg); }
}

@keyframes scanStep {
    0%, 4% { opacity: 0; transform: translateY(6px); }
    8%, 21% { opacity: 1; transform: translateY(0); }
    25%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes drift {
    0% {
        transform: translateX(-24px);
    }
    50% {
        transform: translateX(28px);
    }
    100% {
        transform: translateX(-24px);
    }
}

@keyframes rainDrop {
    from {
        background-position: 0 -60px;
    }
    to {
        background-position: 0 80px;
    }
}

@keyframes flash {
    0%, 78%, 100% {
        opacity: 0;
    }
    80%, 90% {
        opacity: 1;
    }
}

@keyframes mistMove {
    from {
        transform: translateX(-24px);
    }
    to {
        transform: translateX(24px);
    }
}

@keyframes snowFall {
    from {
        background-position: 20px -80px, 110px -40px, 210px -60px;
    }
    to {
        background-position: 20px 120px, 110px 160px, 210px 140px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .dashboard-card form,
    .weather-panel {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
    }

    .forecast-container {
        grid-template-columns: 1fr;
    }

    .community-panel {
        padding: 18px;
    }

    .global-now-section {
        padding: 50px 20px;
    }

    .global-now-heading {
        flex-direction: column;
        gap: 16px;
    }

    .global-situation-grid,
    body.simple-view .global-situation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .global-situation-card {
        min-height: 105px;
        padding: 13px;
    }

    .global-situation-card strong {
        font-size: 27px;
    }

    .global-map-layout {
        grid-template-columns: 1fr;
    }

    #global-map {
        height: 410px;
    }

    .map-decision-heading,
    .map-action-summary {
        grid-template-columns: 1fr;
    }

    .map-decision-heading {
        flex-direction: column;
        gap: 4px;
    }

    .map-live-status {
        padding-top: 0;
    }

    .map-read-grid {
        grid-template-columns: 1fr;
    }

    .map-search-actions {
        grid-template-columns: 1fr 1fr;
    }

    .map-search-actions input {
        grid-column: 1 / -1;
    }

    .map-search-btn,
    .map-pin-btn {
        white-space: normal;
    }

    #map {
        height: 500px;
    }

    .map-guide {
        font-size: 10px;
        max-width: 165px;
        padding: 8px 9px;
    }

    .map-guide p {
        display: none;
    }

    .map-legend {
        max-width: 180px;
    }

    .star {
        font-size: 26px;
    }
}
.flood-reference{
    margin-top:40px;
    padding:25px;
    background:#0d1b2a;
    border-radius:15px;
    border:1px solid #1d4f7a;
}

.flood-reference h2{
    color:#29b6f6;
    margin-bottom:20px;
}

.flood-reference p{
    color:#d8e7f3;
    line-height:1.8;
    margin-bottom:20px;
}

.risk-table{
    width:100%;
    border-collapse:collapse;
}

.risk-table th{
    background:#164c77;
    color:white;
    padding:12px;
}

.risk-table td{
    padding:12px;
    border:1px solid #294f70;
    color:#e8f2fb;
}

.risk-table tr:nth-child(even){
    background:#13293d;
}
body{
    font-family:Arial,sans-serif;
    padding:20px;
    margin:0;
    background:linear-gradient(-45deg,#0f4c81,#1e88e5,#4fc3f7,#81d4fa);
    background-size:400% 400%;
    animation:waterFlow 12s ease infinite;
}

@keyframes waterFlow{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.result{
    margin-top:20px;
    padding:15px;
    border-radius:12px;
    background:#ffffff;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    opacity:0;
    transform:translateY(20px);
    transition:all .5s ease;
}

.result.show{
    opacity:1;
    transform:translateY(0);
}

button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#1565c0;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:scale(1.03);
    box-shadow:0 0 20px rgba(33,150,243,.5);
}

input{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    transition:.3s;
}

input:focus{
    border-color:#2196f3;
    box-shadow:0 0 10px rgba(33,150,243,.3);
}
.risk{
    padding:6px 14px;
    border-radius:20px;
    color:white;
    font-weight:bold;
    display:inline-block;
    animation:pulse 2s infinite;
}

.low{
    background:#2e7d32;
}

.medium{
    background:#f9a825;
}

.high{
    background:#ef6c00;
}

.extreme{
    background:#c62828;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}
.gauge{
    display:flex;
    justify-content:center;
    margin:20px 0;
}

.gauge-circle{
    width:120px;
    height:120px;
    border-radius:50%;
    border:10px solid #2196f3;
    display:flex;
    align-items:center;
    justify-content:center;
    background:white;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    animation:spinIn .8s ease;
}

.gauge-value{
    font-size:32px;
    font-weight:bold;
    color:#1565c0;
}

@keyframes spinIn{
    from{
        transform:scale(.5) rotate(-180deg);
        opacity:0;
    }
    to{
        transform:scale(1) rotate(0deg);
        opacity:1;
    }
}