/* Version 1.8 navigation update */
:root {
    --header-height: 80px;
    /* adjust to your actual header height */
    --accent-mint: #64ffda;
    --danger-red: #ff4d4d;
    --warning-orange: #ffb74d;
    --deep-bg: #0a192f;
    --card-glass: rgba(10, 25, 47, 0.95);
    --primary: #0a192f;
    --accent: #64ffda;
    --bg: #0a192f;
    --vibrant-blue: #00f2ff;
    --text-bright: #ffffff;
    --text-dim: #d1e8ff;
    --text-muted: #a3c9ff;
    --transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;
}

html,
body {
    background-color: var(--deep-bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 40px;
    line-height: 1.6;
}

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



/* Custom Styled Select Wrapper */
.spot-selector-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 5px;
}

/* The arrow icon inside the dropdown */
.selector-wrapper i {
    position: absolute;
    right: 15px;
    color: #64ffda;
    pointer-events: none;
    font-size: 0.8rem;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a192f;
    /* Matches your site background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Higher than everything else */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
    color: var(--accent-mint);
}

.loader-logo {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100, 255, 218, 0.1);
    border-top: 3px solid var(--accent-mint);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Class to hide the overlay */
.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}

.difficulty-badge {
    background: rgba(100, 255, 218, 0.15);
    color: var(--accent-mint);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Fix the inner chart - Remove the negative margins! */
.chart-inner {
    padding: 20px;
    background: rgba(15, 43, 71, 0.8);
    border-radius: 12px;
    margin: 0;
    /* Changed from -35px -35px 0 because parent padding is 0 */
}


.full-width {
    grid-column: 1 / -1;
}

#forecast-7day {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px 12px;
    margin-top: 20px;
}

.day-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-mint);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wind-max {
    font-size: 1.4rem;
    font-weight: 900;
}

.gust-max {
    font-size: 0.85rem;
    color: var(--warning-orange);
    margin: 4px 0;
}

.temp-range {
    font-size: 0.9rem;
    color: #a3c9ff;
}

#slider-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
    /* Keeps slider shape consistent */
    background: #0a192f;
}

#slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Updated Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 47, 0.6);
    color: var(--accent-mint);
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.slider-nav:hover {
    background: var(--accent-mint);
    color: #0a192f;
}

/* Pagination Dots */
.dots-container {
    position: absolute;
    bottom: 55px;
    /* Placed above the caption */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 11;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-mint);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-mint);
}

/* Caption Overlay */
#slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 15px 20px;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.95));
    color: white;
    font-size: 0.95rem;
    text-align: center;
    z-index: 9;
}

.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
    /* Ensure it stays on top of images */
}

#progress-bar {
    height: 100%;
    background: var(--accent-mint);
    width: 0%;
}

/* This class triggers the 5-second animation */
.progress-running {
    animation: fillBar 5s linear forwards;
}

@keyframes fillBar {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Pause the bar when the slider is hovered */
#slider-container:hover #progress-bar {
    animation-play-state: paused;
}

/* --- Modern Disclaimer Container --- */
.data-disclaimer {
    /* Removed the confusing grid-columns from here */
    background: rgba(10, 25, 47, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- The Actual Layout Grid --- */
.disclaimer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Asymmetric flow */
    gap: 40px;
    align-items: start;
}

/* Fix for Mobile: Ensure the grid collapses to 1 column */
@media (max-width: 768px) {
    .disclaimer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .data-disclaimer {
        padding: 20px;
        /* Slimmer padding for small screens */
    }
}

.data-disclaimer .section-title {
    color: var(--accent-mint);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sources-list p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sources-list ul {
    list-style: none;
    padding: 0;
}

.sources-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #fff;
}

.sources-list li i {
    color: var(--accent-mint);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sources-list li strong {
    color: var(--accent-mint);
    font-weight: 700;
    margin-right: 5px;
}

.warning-text {
    background: rgba(255, 183, 77, 0.08);
    /* Subtle orange tint */
    border-left: 4px solid #ffb74d;
    /* Warning orange accent */
    padding: 20px;
    border-radius: 4px 12px 12px 4px;
}

.warning-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.warning-text strong {
    color: #ffb74d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .disclaimer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.sources-list ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.sources-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sources-list i {
    color: var(--accent-mint);
    margin-right: 10px;
    width: 20px;
}

.warning-text {
    background: rgba(255, 183, 77, 0.05);
    border-left: 3px solid var(--warning-orange);
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Footer Styling --- */
.footer {
    background: #050a12;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        /* Switch to 2x2 grid for tablets */
    }
}

.footer-logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--accent-mint);
    margin-bottom: 15px;
}

.footer h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-mint);
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--accent-mint);
    color: #050a12;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
}

.sep {
    color: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

/* Responsive Fix */

@media (max-width: 600px) {

    .footer-top,
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
}

/* Style the text inside the blocks */
.info-block p {
    font-size: 0.95rem;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.info-block:hover {
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

footer.footer {
    width: 100%;
    margin-top: 80px;
    padding: 50px 20px 40px;
}

.spot-info-section {
    margin: 60px auto;
    max-width: 1000px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* space between blocks */
}

.info-block i {
    margin-right: 12px;
    color: var(--accent-mint);
    width: 24px;
    /* The chosen width */
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Normal tide value - big and bold */
.current-level {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

/* Fallback text when no tide data - smaller and lighter */
.no-tide-fallback {
    font-size: 1.0rem;
    /* much smaller than normal */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    /* slightly faded */
    font-style: italic;
    /* optional: italic for "note" feel */
    padding: 10px 0;
}

/* Section Titles (SPOT DETALJER / SPOT BESKRIVELSE) */
.section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-mint);
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 10px;
}

/* Responsive fix for mobile */
@media (max-width: 900px) {
    .spot-details-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.no-tide-fallback {
    font-size: 0.95rem;
    /* Matches your info-block paragraph size */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    padding-right: 15px;
    /* Space for the info icon */
}


.full-width {
    grid-column: 1 / -1;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    color: var(--accent-mint);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-mint);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.beaufort-desc {
    font-size: 0.8rem;
    color: var(--accent-mint);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

.compass-disk {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.05);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.wind-status {
    padding: 10px;
    border-radius: 10px;
    font-family: 'Syncopate';
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}

.water-level-box {
    background: rgba(100, 255, 218, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.current-level {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.sun-container {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(100, 255, 218, 0.3);
}

.sun-box {
    text-align: center;
}

.sun-box i {
    color: var(--warning-orange);
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.sun-box span {
    font-family: 'Syncopate';
    font-size: 0.8rem;
    font-weight: 700;
}

.sun-box label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
}

.chart-h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-mint);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Sørg for at disse matcher farverne i utils.js */
.status-danger {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.status-optimal {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.status-mid {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
}

/* Orange/Gul til Side-shore */
.status-danger {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* Rød til Off-shore */

/* ... Add any additional CSS from the truncated part in gem1.html ... */
/* Grundlæggende styling for badges */
/* --- Låst Badge Styling (Præcis 10px tekst) --- */
.wind-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;

    /* Tekst-størrelse låst til 10px (ca. 0.6rem) */
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    /* Gør teksten mere kompakt */

    /* Forhindrer overflow og sikrer at teksten bliver på én linje */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    width: 100%;
    max-width: 240px;
    /* Matcher bredden i dit Wind Card layout */
    box-sizing: border-box;
}

/* Gør ikonerne en smule mindre så de matcher den lille tekst */
.wind-status i {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

#spot-selector {
    background: rgba(10, 25, 47, 0.9);
    color: var(--accent-mint);
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 10px 40px 10px 18px;
    /* Use most specific values */
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* From later block */
}

#spot-selector:hover {
    border-color: var(--accent-mint);
    background: rgba(100, 255, 218, 0.05);
    transform: translateY(-2px);
    /* From later block */
}

#spot-selector option {
    background: #0a192f;
    color: #fff;
    padding: 10px;
    /* From later block */
}

/* ── Version 1.3 Master Badge Colors ────────────────────────────────── */

/* The new 'Warning / Caution' state */
.master-mid {
    background: linear-gradient(135deg, #ffb74d 0%, #f57c00 100%);
    color: #000;
    /* Dark text for better contrast on orange */
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.3);
}

/* Ensure the status badges for the sub-cards also have a 'mid' state */
.status-mid {
    background: rgba(255, 183, 77, 0.1);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.3);
}

/* Optional: Add a subtle pulse to the GO badge to make it stand out */
.master-go {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.no-tide-fallback {
    font-size: 0.85rem !important;
    /* Shrinks the text */
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    white-space: nowrap;
    /* Keeps it on one line */
}

.no-tide-fallback {
    font-size: 0.75rem !important;
    /* Smaller font to ensure it fits */
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--accent-mint);
}


#compass-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.arrow-container {
    position: relative;
    z-index: 2;
    /* Sørger for at pilen ligger over den grønne ring */
}


/* Farve til Side-on status */
.status-mid {
    background: rgba(255, 183, 77, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.4);
}

/* Farve til den store Master knap når det er "Muligt" */
.master-mid {
    background: linear-gradient(135deg, #ffb74d 0%, #f57c00 100%);
    color: #000;
    font-weight: 800;
}

.master-caution {
    background: linear-gradient(135deg, #ffb74d 0%, #f57c00 100%);
    color: #000;
    font-weight: 800;
    border: 1px solid var(--warning-orange);
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.4);
}

.master-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 15px;
    text-transform: uppercase;
}

.navigation-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
    /* or flex-start if you want left-aligned */
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-btn.google {
    border-color: #4285F4;
    color: #4285F4;
}

.nav-btn.google:hover {
    background: rgba(66, 133, 244, 0.15);
}

.nav-btn.apple {
    border-color: #a6a6a6;
    color: #a6a6a6;
}

.nav-btn.apple:hover {
    background: rgba(166, 166, 166, 0.15);
}

/* Icons */
.nav-btn i {
    font-size: 1.1rem;
}

.status-caution {
    background: rgba(255, 183, 77, 0.2);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

#low-fin-warning {
    display: none;
    /* Let the JavaScript decide when to show it */
    background: rgba(255, 183, 77, 0.25);
    border: 2px solid var(--warning-orange);
    /* ... rest of your styles ... */
}


/* Dynamic Background Glows */
body {
    transition: background 1.5s ease, box-shadow 1.5s ease;
}

/* Common badge typography — same for WIND, GUST, DIRECTION */

/* Optional: subtle highlight only for WIND badge */
.wind-badge-highlight {
    font-weight: 700;
    /* slightly bolder than others */
    transform: scale(1.04);
    /* very gentle emphasis */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.status-good {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
}

.status-bad {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.status-mid {
    background: rgba(255, 183, 77, 0.1);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.status-low {
    background: rgba(163, 201, 255, 0.1);
    color: #a3c9ff;
    border: 1px solid #a3c9ff;
}

/* If you want GUST and DIRECTION even a bit lighter */
.wind-status:not(.wind-badge-highlight) {
    font-weight: 500;
    opacity: 0.92;
}

body.bg-optimal {
    background: radial-gradient(circle at top right, rgba(100, 255, 218, 0.08), #0a192f);
}

body.bg-danger {
    background: radial-gradient(circle at top right, rgba(255, 77, 77, 0.08), #0a192f);
}

body.bg-warning {
    background: radial-gradient(circle at top right, rgba(255, 183, 77, 0.08), #0a192f);
}

.master-go {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
}

.master-nogo {
    background: rgba(255, 77, 77, 0.2);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.master-mid {
    background: rgba(255, 183, 77, 0.2);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.forecast-day-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.forecast-day-card:hover {
    border-color: rgba(100, 255, 218, 0.5);
    background: rgba(100, 255, 218, 0.05);
}

.day-name {
    font-family: 'Syncopate';
    font-size: 0.7rem;
    color: #64ffda;
    margin-bottom: 10px;
}

.wind-val {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 5px 0;
    color: #fff;
}

.wind-val span {
    font-size: 0.6rem;
    margin-left: 2px;
}

.gust-val {
    font-size: 0.8rem;
    color: #ffb74d;
    margin-bottom: 8px;
}

.temp-val {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* Farvekoder baseret på styrke */
.wind-high {
    color: #ff5252;
}

.wind-mid {
    color: #64ffda;
}

.wind-low {
    color: #4dabf5;
}

/* Forecast Border Logic */
.forecast-day-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Default state */
}

/* These will be applied via style.borderColor in JS or classList */
.epic-border {
    border: 2px solid var(--accent-mint) !important;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.15);
}

.gusty-border {
    border: 2px solid var(--warning-orange) !important;
}

.offshore-border {
    border: 2px solid var(--danger-red) !important;
}

/* Update these to match your new scale */
.status-low {
    background: rgba(163, 201, 255, 0.1);
    color: #a3c9ff;
    border: 1px solid #a3c9ff;
}

.status-optimal {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
}

.status-high {
    background: rgba(255, 183, 77, 0.1);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.status-danger {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden by default */
    width: 300px;
    height: 100%;
    background: var(--card-glass);
    z-index: 2000;
    /* Ensure this is higher than everything else */
    transition: 0.3s;
    padding: 80px 40px;
}

.nav-menu.active {
    right: 0;
}

/* Container for the selector and icon */
.spot-selector-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* The actual Select box */
#spot-selector-top {
    appearance: none;
    /* Removes default browser arrow */
    background: rgba(20, 38, 54, 0.8);
    color: #64ffda;
    /* Teal text */
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 8px 35px 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

#spot-selector-top:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

/* Custom Chevron Icon */
.spot-selector-container .fa-chevron-down {
    position: absolute;
    right: 12px;
    color: #64ffda;
    font-size: 0.7rem;
    pointer-events: none;
    /* Clicks go through to the select */
}

/* Sticky Logo Styling */
.sticky-logo {
    height: 35px;
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.3));
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}


.logo:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Logo container – dark glass look */
.logo-container {
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 255, 218, 0.18);
    border-radius: 10px;
    padding: 5px 12px;
    /* slightly tighter padding for smaller feel */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);

    /* Position tweak – a bit lower in the bar */
    position: relative;
    top: 3px;
    /* adjust 2–6px depending on your exact bar height */

    /* Smaller overall size */
    font-size: clamp(1.15rem, 2.3vw, 1.4rem);
    /* noticeably smaller than before */
    font-weight: 700;
    letter-spacing: 3.5px;
    /* tighter spacing for compact look */
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.03);
    background: rgba(10, 25, 47, 0.88);
    border-color: rgba(100, 255, 218, 0.35);
}

.logo-blue {
    color: #00f2ff;
}

.logo-white {
    color: #ffffff !important;
    /* forced white – no inheritance issues */
}

/* Make it look good in the sticky header */
.sticky-logo {
    margin-right: auto;
    /* pushes everything else to the right */
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(100, 255, 218, 0.15);
}

.session-and-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    /* space between text and dropdown */
}

.session-info {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.session-label {
    font-size: 0.68rem;
    color: var(--accent-mint);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

#spot-name-header {
    margin: 0;
    font-size: 1.35rem;
    font-family: 'Syncopate', sans-serif;
    color: white;
    letter-spacing: 1px;
}

/* If you keep the second session bar */
.session-control-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.12);
    padding: 12px 0;
}

.session-control-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.session-label {
    font-size: 0.68rem;
    color: var(--accent-mint);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

#spot-name-header {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Syncopate', sans-serif;
    color: white;
}

/* ── Menu Overlay – Cleaned & Consolidated ────────────────────────────────────── */





/* Dim header when menu open */
body.menu-open #top-header,
body.menu-open .session-control-bar,
body.menu-open .top-divider {
    opacity: 0.35;
    transition: opacity 0.6s ease;
}


body.menu-open {
    overflow: hidden;
    /* prevent scrolling behind menu */
}

/* Highest-specificity active highlight for menu */
body.menu-open .overlay-menu a.active,
.overlay-menu#id-navMenu a.active,
nav.overlay-menu a.active {
    color: var(--accent) !important;
    /* #64ffda teal */
    border-left: 8px solid var(--accent) !important;
    padding-left: 24px !important;
    font-weight: 900 !important;
    text-shadow: 0 0 12px rgba(100, 255, 218, 0.7) !important;
    background: linear-gradient(to right, rgba(100, 255, 218, 0.08), transparent) !important;
    transition: all 0.4s ease !important;
}

/* Make hover consistent too */
.overlay-menu a:hover,
.overlay-menu a:focus {
    color: var(--accent) !important;
    transform: translateX(12px) !important;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5) !important;
}