/* Core Landing Page Layout */
body {
    font-size: 0.75rem;
}

.landing-container {
    max-width: 1000px;
    padding: 30px;
    margin: 0 auto;
}

.landing-header {
    text-align: center;
}

.landing-header h1 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.landing-header p {
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Section Dividers */
.section-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 50px 0;
    position: relative;
    text-align: center;
}

.section-divider span {
    background: #0f172a;
    padding: 0 15px;
    position: relative;
    top: -12px;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Region Navigation Grid */
.region-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.region-card {
    flex: 1 1 225px;
    max-width: 260px;
    width: 100%;
    padding: 25px 18px;
    border-radius: 16px;
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.3));
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.region-card:hover {
    transform: translateY(-5px);
    border-color: #06b6d4;
    background: rgba(30, 41, 59, 0.6);
}

.region-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
}
.region-badge-warn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
    text-transform: uppercase;
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    margin-top: 16px;
}

.region-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #f8fafc;
}

.region-description {
    font-size: 0.8rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: #94a3b8;
    flex-grow: 1;
}

.region-action {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #060c18;
    background: #06b6d4;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.2s ease;
}

.region-card:hover .region-action {
    background: #22d3ee;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Side-by-Side Wrapper for Hotspots and Logger */
.top-panels-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Hotspots Panel */
.hotspot-panel {
    flex: 1 1 350px;
    text-align: center;
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 21px;
    padding: 33px;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative; /* REQUIRED for the absolute widget overlay */
    overflow: hidden;   /* Keeps the overlay blur inside the rounded corners */
}

.hotspot-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    margin: 0 0 15px 0;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollable Container for Top 20 */
#hotspot-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

#hotspot-container::-webkit-scrollbar {
    width: 6px;
}

#hotspot-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

#hotspot-container::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 10px;
}

#hotspot-container::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.6);
}

.hotspot-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 18px;
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.hotspot-item:hover {
    transform: translateX(4px);
    border-color: #06b6d4;
    background: rgba(30, 41, 59, 0.6);
}

.hotspot-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.hotspot-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.hotspot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hotspot-loc {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.hotspot-species {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 4px;
}

.hotspot-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.hotspot-prob {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.tab-rating {
    font-size: 0.6rem;
    padding: 3px 9px;
    border-radius: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Bottom Icon Tabs */
.hotspot-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.hotspot-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hotspot-tab:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-3px);
}

.hotspot-tab.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

/* Logger Panel */
.log-panel {
    flex: 1 1 350px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid #06b6d4;
    border-radius: 21px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.log-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    color: #f8fafc;
}

.log-panel p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 25px auto;
    max-width: 700px;
}

.log-btn {
    display: inline-block;
    background: #06b6d4;
    color: #060c18;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.log-btn:hover {
    background: #22d3ee;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

/* Science Panel */
.science-panel {
    text-align: left;
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 21px;
    padding: 33px;
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 0;
}

.science-panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    margin: 0 0 15px 0;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.science-panel p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 26px;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.science-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.science-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.4);
}

.science-card h3 {
    margin: 0 0 9px 0;
    color: #06b6d4;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.science-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.5;
}

.loading-pulse {
    animation: pulse 1.5s infinite;
    text-align: center;
    padding: 20px;
    color: #06b6d4;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#disclaimer-banner {
    background: rgba(6, 182, 212, 0.1);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    color: #cbd5e1;
    padding: 10px 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.disclaimer-text { max-width: 900px; margin: 0 auto; line-height: 1.4; }
.disclaimer-close { cursor: pointer; font-weight: 800; padding: 5px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; }

.full-width-panel { width: 100%; margin-bottom: 30px; }

/* Grid Layout Fixes */
.top-panels-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive Layout for Panels */
@media (max-width: 900px) {
    .top-panels-wrapper { grid-template-columns: 1fr; }
}

.log-panel h2 { font-size: 1.4rem !important; }
.log-panel p { font-size: 0.85rem !important; margin-bottom: 15px !important; }
.log-btn { padding: 12px 24px !important; font-size: 0.95rem !important; }

/* Timeline UI */
.timeline-column-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.timeline-column-grid::-webkit-scrollbar { height: 8px; }
.timeline-column-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }
.timeline-column-grid::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.3); border-radius: 10px; }
.timeline-column-grid::-webkit-scrollbar-thumb:hover { background: rgba(6, 182, 212, 0.6); }

.timeline-day-column {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 240px;
    scroll-snap-align: start;
}

@media (min-width: 1024px) {
    .timeline-column-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
    }
    .timeline-day-column { flex: unset; min-width: 0; }
}

.timeline-day-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-item-card {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #64748b;
    text-decoration: none;
    display: block;
    transition: transform 0.15s ease;
    height: 100%;
}

.timeline-item-card:hover { transform: translateY(-2px); }

.timeline-struct-name {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-prob-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
    display: block;
}

.timeline-rating-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 6px;
}

/* Prediction Disclaimer Widget Overlay Styles */
.widget-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}
.widget-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}
.overlay-content {
    background: #1e293b;
    border: 1px solid #06b6d4;
    padding: 25px 20px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.overlay-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
    color: #060c18;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}
.overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}
 /* [LOCATIONS GRID] 3-up on desktop, collapses on narrower screens. Readable link colour. */
        #locations-grid .loc-card {
            display:block; padding:12px 14px; border-radius:10px;
            background:rgba(15,23,42,0.5); border:1px solid rgba(255,255,255,0.06);
            color:#7dd3fc; text-decoration:none; font-weight:600; font-size:0.95rem;
            transition:background .15s ease, border-color .15s ease, transform .15s ease;
        }
        #locations-grid .loc-card:hover {
            background:rgba(14,165,233,0.12); border-color:rgba(14,165,233,0.4);
            color:#bae6fd; transform:translateY(-2px);
        }
        #locations-grid .loc-card .loc-coast {
            display:block; font-weight:400; font-size:0.75rem; color:#64748b; margin-top:2px;
        }
        @media (max-width: 900px) { #locations-grid { grid-template-columns:repeat(2, 1fr) !important; } }
        @media (max-width: 560px) { #locations-grid { grid-template-columns:1fr !important; } }