/* Local Web Fonts (GDPR/DSGVO compliant, no external Google requests) */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit_wght.ttf') format('truetype-variations'),
         url('fonts/Outfit_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Syne';
    src: url('fonts/Syne_wght.ttf') format('truetype-variations'),
         src: url('fonts/Syne_wght.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* Global Reset & Variables - 100% aligned with fanoe.rocks Coastal Design */
:root {
    --bg-light: #f8f9fa; /* Very Light Grey/Ivory (fanoe.rocks surface) */
    --primary: #0077b6; /* Ocean Blue (fanoe.rocks primary) */
    --primary-container: #00b4d8; /* Bright Blue */
    --secondary: #5c677d; /* Soft Slate (fanoe.rocks secondary) */
    --tertiary: #ffb703; /* Sunshine Yellow (fanoe.rocks tertiary) */
    --on-surface: #2b2d42; /* Dark Navy Text (fanoe.rocks text) */
    --outline-variant: rgba(0, 119, 182, 0.12);
    --ambient-shadow: 0 15px 35px rgba(0, 119, 182, 0.08);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --glow-esbjerg: radial-gradient(circle, rgba(0, 119, 182, 0.12) 0%, rgba(0, 180, 216, 0.06) 50%, transparent 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh; /* Locked viewport height to prevent mobile browser UI shifting */
    background-color: var(--bg-light);
    color: var(--on-surface);
    font-family: var(--font-body);
    overflow: hidden; /* STRICT ZERO SCROLL */
}

/* Custom Cursor (Awwwards Style - Hidden on touch devices via pointer media query) */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: multiply; /* Looks incredible on light background */
    transition: width 0.2s ease, height 0.2s ease;
}

.custom-cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 119, 182, 0.4);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    transition: transform 0.08s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: var(--bg-light);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader-content {
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.preloader-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--secondary);
}

.preloader-title-wrap {
    overflow: hidden;
    margin: 1.5rem 0;
}

.preloader-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    animation: textUp 1.5s ease;
}

.preloader-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(0, 119, 182, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes textUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Main Container - Locked to a static, beautiful full-screen view */
.scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* STRICT ZERO SCROLL */
    scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Sections */
.city-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden; /* STRICT ZERO SCROLL */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light);
    
    /* Elegant grid background aligned with fanoe.rocks */
    background-image: linear-gradient(to right, rgba(0, 119, 182, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 119, 182, 0.03) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

/* Animated Glow Backgrounds */
.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    transform: translate3d(-50%, -50%, 0);
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    will-change: transform;
}

#esbjerg .background-glow {
    background: var(--glow-esbjerg);
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(-45%, -55%, 0) rotate(180deg) scale(1.15); }
    100% { transform: translate3d(-50%, -50%, 0) rotate(360deg) scale(1); }
}

/* Animated Wave & Tide Background System */
.waves-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Covers lower portion elegantly */
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    animation: tideEffect 30s infinite ease-in-out alternate;
    will-change: transform;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%; /* Double width for seamless scroll loop */
    height: 100%;
    will-change: transform;
}

.wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Beautiful overlapping translucent wave layers */
.wave-1 {
    height: 100%;
    opacity: 0.04;
    animation: waveScroll 24s infinite linear;
    fill: var(--primary);
}

.wave-2 {
    height: 85%;
    opacity: 0.05;
    animation: waveScroll 18s infinite linear reverse;
    fill: var(--primary-container);
    bottom: -5px;
}

.wave-3 {
    height: 75%;
    opacity: 0.03;
    animation: waveScroll 32s infinite linear;
    fill: var(--primary);
    bottom: -10px;
}

.wave-4 {
    height: 65%;
    opacity: 0.05;
    animation: waveScroll 14s infinite linear reverse;
    fill: var(--primary-container);
    bottom: -15px;
}

/* Keyframes for horizontal tide wave propagation */
@keyframes waveScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Keyframes for slow vertical tide level changes */
@keyframes tideEffect {
    0% {
        transform: translateY(15px);
    }
    100% {
        transform: translateY(-20px);
    }
}

/* Keyframes for stronger mobile vertical tide level changes */
@keyframes tideEffectMobile {
    0% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(-30px);
    }
}

/* Container & Grid layout */
.section-container {
    width: 85%;
    max-width: 1400px;
    height: 82%; /* Keeps a balanced ratio within 100vh */
    max-height: 800px; /* Keep it perfectly proportioned on huge screens */
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1.2fr 1fr;
    position: relative;
    z-index: 2;
}

/* Headers */
.section-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 119, 182, 0.08);
    padding-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.country {
    color: var(--primary);
    font-family: var(--font-heading);
}

.coordinates {
    color: var(--secondary);
}

/* Hero Content & City Title */
.hero-content {
    grid-column: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.title-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.city-name {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 9.5rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--primary); /* Ocean Blue */
    text-shadow: 0 2px 10px rgba(0, 119, 182, 0.05);
    text-transform: uppercase;
}

/* Weather Display Card (Glassmorphism - fanoe.rocks inspired white-ice styling) */
.weather-display {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85); /* Gorgeous Frosted Glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--outline-variant);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 1.25rem 1.75rem; /* ULTRA COMPACT VERTICAL SPACING FOR ZERO SCROLL */
    box-shadow: var(--ambient-shadow);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: rgba(0, 119, 182, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 119, 182, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* Compact margin */
}

.status-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(0, 119, 182, 0.08); /* Ocean Blue Accent */
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-weight: 700;
}

.weather-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    stroke-width: 1.5;
}

.temp-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.25rem; /* Compact margin */
}

.temp-value {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 6.5vw, 5.5rem); /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--on-surface);
}

.temp-unit {
    font-size: 1.75rem;
    font-weight: 300;
    margin-top: 0.5rem;
    margin-left: 0.2rem;
    color: var(--secondary);
}

.weather-desc {
    font-size: 1.3rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem; /* Compact margin */
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem; /* Tight grid gap */
    border-top: 1px solid rgba(0, 119, 182, 0.06);
    padding-top: 0.75rem; /* Compact padding */
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.72rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    letter-spacing: 0.12em;
    color: var(--secondary);
    font-weight: 600;
}

.detail-value {
    font-size: 1.05rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    font-weight: 600;
    color: var(--on-surface);
}

/* Astronomical Grid (Sun rise/set & Day Length) */
.astro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    border-top: 1px solid rgba(0, 119, 182, 0.06);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.astro-border-less {
    border-top: none !important;
    margin-top: 0.35rem !important;
    padding-top: 0 !important;
}

.astro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}

.astro-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    stroke-width: 1.5;
}

.astro-icon.sun {
    color: var(--tertiary); /* Beautiful Sunshine Yellow */
}

.astro-icon.moon {
    color: var(--primary); /* Deep Ocean Blue */
}

.astro-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.astro-label {
    font-size: 0.65rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    letter-spacing: 0.08em;
    color: var(--secondary);
    font-weight: 700;
}

.astro-value {
    font-size: 1rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    font-weight: 600;
    color: var(--on-surface);
}

/* Aurora Panel Styles */
.aurora-panel {
    border-top: none !important;
    margin-top: 0.35rem !important;
    padding-top: 0 !important;
}

.aurora-item-wide {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
}

.aurora-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.aurora-sub-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.05rem;
}

.aurora-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.05);
    flex-shrink: 0;
}

.aurora-details-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    text-align: left;
    width: 100%;
}

.aurora-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Tide Calendar Styles */
.tide-calendar {
    margin-top: 0.65rem; /* Tightened margin */
    border-top: 1px solid rgba(0, 119, 182, 0.06);
    padding-top: 0.65rem; /* Tightened padding */
}

.tide-calendar-title {
    font-family: var(--font-heading);
    font-size: 0.72rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    letter-spacing: 0.15em;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tide-title-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-size: 0.65rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(0, 119, 182, 0.15);
    background: rgba(0, 119, 182, 0.03);
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: none;
}

.tide-title-link:hover {
    background: rgba(0, 119, 182, 0.1);
    border-color: rgba(0, 119, 182, 0.3);
    color: var(--on-surface) !important;
}

.title-info-icon {
    width: 8px;
    height: 8px;
}

.tide-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Tightened list gaps */
}

.tide-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    padding: 0.05rem 0; /* Ultra tight vertical bounds */
}

.tide-type {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tide-type.high {
    color: var(--primary); /* Ocean Blue */
}

.tide-type.low {
    color: #e63946; /* Deep Coral Red */
}

.tide-arrow {
    font-size: 0.6rem;
}

.tide-time-wrap {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.tide-height {
    font-weight: 600;
    color: var(--on-surface);
    width: 55px;
    text-align: right;
}

.tide-time {
    color: var(--secondary);
    font-size: 0.88rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
}

.tide-loading {
    font-size: 0.88rem;
    color: var(--secondary);
    font-style: italic;
}

.tide-disclaimer {
    font-size: 0.62rem; /* ENHANCED/LARGER FONT SIZE FOR LEGIBILITY */
    color: var(--secondary);
    margin-top: 0.35rem; /* Tightened margin */
    font-style: italic;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}

/* Scroll Indicator (Hidden entirely for Esbjerg single city focus) */
.scroll-helper {
    display: none;
}

/* Reveal Animations on Scroll */
.reveal-text {
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

.reveal-card {
    transform: translateY(80px) scale(0.95);
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

/* Active State Triggered by IntersectionObserver */
.city-section.active .reveal-text {
    transform: translateY(0);
    opacity: 1;
}

.city-section.active .reveal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Height-Based Desktop Optimizations (Tightens spacings on small laptop viewports) */
@media (max-height: 900px) and (min-width: 1025px) {
    .section-container {
        height: 85%;
    }
    .glass-card {
        padding: 1rem 1.5rem;
    }
    .card-header {
        margin-bottom: 0.35rem;
    }
    .temp-value {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
    .weather-desc {
        margin-bottom: 0.5rem;
    }
    .weather-details-grid {
        padding-top: 0.5rem;
        gap: 0.4rem;
    }
    .astro-grid {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
        gap: 0.4rem;
    }
    .tide-calendar {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }
    .tide-events-list {
        gap: 0.2rem;
    }
    .tide-event {
        padding: 0.05rem 0;
        font-size: 0.85rem;
    }
}

@media (max-height: 750px) and (min-width: 1025px) {
    .section-container {
        height: 88%;
    }
    .glass-card {
        padding: 0.75rem 1.25rem;
    }
    .card-header {
        margin-bottom: 0.25rem;
    }
    .temp-value {
        font-size: 3.2rem;
    }
    .weather-desc {
        margin-bottom: 0.35rem;
    }
    .weather-details-grid {
        padding-top: 0.35rem;
        gap: 0.3rem;
    }
    .astro-grid {
        margin-top: 0.3rem;
        padding-top: 0.3rem;
        gap: 0.3rem;
    }
    .tide-calendar {
        margin-top: 0.3rem;
        padding-top: 0.3rem;
    }
    .tide-events-list {
        gap: 0.15rem;
    }
    .tide-event {
        padding: 0.02rem 0;
        font-size: 0.8rem;
    }
    .tide-disclaimer {
        margin-top: 0.25rem;
        font-size: 0.55rem;
    }
    .city-name {
        font-size: clamp(3rem, 7vw, 6.5rem);
    }
}

/* Tablet Layout & Spacing */
@media (max-width: 1024px) {
    .section-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: 85%;
        height: 85dvh;
        gap: 1rem;
    }

    .hero-content {
        grid-row: 2;
        align-items: flex-end;
        justify-content: flex-start;
        height: auto;
    }

    .city-name {
        font-size: clamp(3rem, 12vw, 6.5rem);
    }

    .weather-display {
        grid-row: 3;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
    }

    .glass-card {
        max-width: 100%;
        padding: 1.25rem 1.75rem;
    }
}

/* Smartphone Portrait Mode - GUARANTEES STRICT ZERO SCROLL WITH MAXIMUM READABILITY */
@media (max-width: 576px) {
    .city-section {
        height: 100vh;
        height: 100dvh;
        overflow: hidden; /* STRICT NO VERTICAL SCROLL ON SMARTPHONES */
        align-items: center;
    }

    .section-container {
        width: 88%;
        height: 86%;
        height: 86dvh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.35rem; /* Tight mobile container gaps */
        padding: 0.25rem 0;
    }

    .section-header {
        padding-bottom: 0.35rem;
        font-size: 0.65rem;
        margin-bottom: 0.1rem;
        border-bottom-color: rgba(0, 119, 182, 0.05);
    }

    .hero-content {
        margin: 0.15rem 0;
    }

    .city-name {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -0.03em;
    }

    .glass-card {
        padding: 0.65rem 0.85rem 0.85rem; /* Highly optimized padding to fit 100dvh */
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0, 119, 182, 0.05);
        margin-top: 0.15rem;
    }

    .card-header {
        margin-bottom: 0.35rem;
    }

    .status-tag {
        font-size: 0.65rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
        padding: 0.2rem 0.5rem;
    }

    .weather-icon-container {
        width: 32px;
        height: 32px;
    }

    .w-icon {
        width: 16px;
        height: 16px;
    }

    .temp-container {
        margin-bottom: 0.15rem;
    }

    .temp-value {
        font-size: clamp(3rem, 9vw, 3.8rem); /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    .temp-unit {
        font-size: 1.15rem;
        margin-top: 0.3rem;
    }

    .weather-desc {
        font-size: 1.1rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
        margin-bottom: 0.65rem;
    }

    .weather-details-grid {
        gap: 0.5rem;
        padding-top: 0.65rem;
        border-top-color: rgba(0, 119, 182, 0.05);
    }

    .detail-item {
        gap: 0.1rem;
    }

    .detail-label {
        font-size: 0.65rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
        letter-spacing: 0.10em;
    }

    .detail-value {
        font-size: 0.92rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    /* Astro Grid on Mobile (3-column Layout aligning with Weather Grid) */
    .astro-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top-color: rgba(0, 119, 182, 0.05);
    }

    .astro-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        text-align: center;
    }

    .astro-icon {
        width: 12px;
        height: 12px;
    }

    .astro-info {
        display: flex;
        flex-direction: column;
        gap: 0.05rem;
    }

    .astro-label {
        font-size: 0.58rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
        letter-spacing: 0.05em;
    }

    .astro-value {
        font-size: 0.85rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    /* Aurora Panel on Mobile */
    .aurora-panel {
        margin-top: 0.4rem !important;
    }
    
    .aurora-sub-row {
        gap: 0.4rem;
    }

    .aurora-icon-wrapper {
        width: 18px;
        height: 18px;
    }

    /* Tighten Tide Calendar on Mobile to shift bottom disclaimer up */
    .tide-calendar {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top-color: rgba(0, 119, 182, 0.05);
    }

    .tide-calendar-title {
        font-size: 0.65rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
        margin-bottom: 0.35rem;
    }

    .tide-events-list {
        gap: 0.2rem;
    }

    .tide-event {
        padding: 0.05rem 0;
        font-size: 0.85rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    .tide-time-wrap {
        gap: 0.5rem; /* Tightened gap on mobile to prevent any wrap */
    }

    .tide-time {
        font-size: 0.78rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    .tide-height {
        width: auto;
    }

    .tide-disclaimer {
        margin-top: 0.35rem;
        font-size: 0.58rem; /* ENHANCED/LARGER FONT SIZE FOR MOBILE LEGIBILITY */
    }

    /* Enhanced Waves & Tides for Mobile to make water-motion extremely visible behind glass-card */
    .waves-background {
        height: 52%; /* Rises higher to be beautifully visible around and behind the glass card */
        animation: tideEffectMobile 22s infinite ease-in-out alternate;
    }

    .wave-1 { opacity: 0.07; }
    .wave-2 { opacity: 0.08; }
    .wave-3 { opacity: 0.05; }
    .wave-4 { opacity: 0.08; }
}

/* Extreme Small Screen Height Adjustments (e.g. iPhone SE / height <= 660px) */
@media (max-height: 660px) and (max-width: 576px) {
    .section-container {
        height: 90dvh;
        gap: 0.2rem;
    }
    
    .city-name {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 0.4rem 0.65rem 0.65rem; /* Max vertical reduction */
        border-radius: 12px;
    }

    .weather-desc {
        margin-bottom: 0.35rem;
    }

    .weather-details-grid {
        padding-top: 0.4rem;
        gap: 0.3rem;
    }

    .astro-grid {
        margin-top: 0.35rem;
        padding-top: 0.4rem;
        gap: 0.3rem;
    }

    .astro-value {
        font-size: 0.78rem;
    }

    .tide-calendar {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }

    .tide-events-list {
        gap: 0.15rem;
    }

    .tide-event {
        padding: 0.02rem 0;
        font-size: 0.78rem;
    }

    .tide-disclaimer {
        margin-top: 0.2rem;
        font-size: 0.52rem;
    }
}

/* Hide Custom Cursor entirely on Touchscreens */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* ==========================================================================
   Info & Safety Page Styles (info.html)
   ========================================================================== */

html.info-html, body.info-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh;
    background-color: var(--bg-light);
    
    /* Grid background from fanoe.rocks */
    background-image: linear-gradient(to right, rgba(0, 119, 182, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 119, 182, 0.03) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.info-page-container {
    width: 85%;
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
    z-index: 2;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 119, 182, 0.08);
    padding-bottom: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.info-tag {
    color: var(--primary);
    font-family: var(--font-heading);
}

.info-coordinates {
    color: var(--secondary);
}

.info-section {
    margin-bottom: 4rem;
}

.info-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--secondary);
    max-width: 850px;
    line-height: 1.5;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--outline-variant);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--ambient-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.info-card:hover {
    border-color: rgba(0, 119, 182, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 119, 182, 0.1);
}

.info-card.highlight-card {
    border-color: rgba(230, 57, 70, 0.2); /* Soft Coral warning border in light mode */
    background: rgba(230, 57, 70, 0.01);
}

.info-card.highlight-card:hover {
    border-color: rgba(230, 57, 70, 0.4);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 119, 182, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-card-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.highlight-card .info-card-icon {
    background: rgba(230, 57, 70, 0.08);
}

.highlight-card .info-card-icon i {
    color: #e63946;
}

.info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--on-surface);
}

.info-card-body p {
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card-body p strong {
    color: var(--on-surface);
}

.info-card-body p:last-child {
    margin-bottom: 0;
}

.info-card-body ul, .info-card-body ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.info-card-body li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-card-body li strong {
    color: var(--on-surface);
}

.info-card-body li:last-child {
    margin-bottom: 0;
}

/* Button & Link Styles */
.link-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary, .btn-secondary, .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-container);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid rgba(0, 119, 182, 0.15);
}

.btn-secondary:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-back {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid rgba(0, 119, 182, 0.12);
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.04);
}

.btn-back:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    background: rgba(0, 119, 182, 0.05);
    border: 1px solid rgba(0, 119, 182, 0.15);
    padding: 0.5rem 1.15rem;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(-4px);
}

.disclaimer-note {
    font-size: 0.7rem !important;
    color: var(--secondary) !important;
    line-height: 1.4 !important;
    font-style: italic;
    border-top: 1px solid rgba(0, 119, 182, 0.08);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.info-footer-btn {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* Info Link on Main Page Disclaimer */
.info-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 119, 182, 0.2);
    transition: border-color 0.3s, color 0.3s;
    margin-left: 0.25rem;
    display: inline-block;
    font-weight: 600;
}

.info-link:hover {
    color: var(--on-surface);
    border-color: var(--on-surface);
}

/* Response on small screens */
@media (max-width: 768px) {
    .info-page-container {
        width: 90%;
        margin: 2rem auto;
    }
    
    .info-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .info-coordinates {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        text-align: right;
    }
    
    .info-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.0;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .info-lead {
        font-size: 1.05rem;
        line-height: 1.45;
    }
    
    .info-section {
        margin-bottom: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .link-grid {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .info-page-container {
        width: 92%;
        margin: 1.5rem auto;
    }
    
    .info-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .btn-back-top {
        padding: 0.4rem 0.9rem;
        font-size: 0.68rem;
    }
    
    .info-coordinates {
        font-size: 0.58rem;
        max-width: 60%;
        line-height: 1.3;
        text-align: right;
    }
    
    .info-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 0.85rem;
    }
    
    .info-lead {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .info-section {
        margin-bottom: 1.5rem;
    }
    
    .info-card {
        padding: 1.25rem;
        border-radius: 18px;
    }
    
    .info-card-header {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .info-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .info-card-icon i {
        width: 16px;
        height: 16px;
    }
    
    .info-card h2 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .info-card-body p, .info-card-body li {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .info-card-body ul, .info-card-body ol {
        margin-left: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .info-card-body li {
        margin-bottom: 0.5rem;
    }
    
    .disclaimer-note {
        font-size: 0.65rem !important;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .btn-back {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .info-footer-btn {
        margin-top: 2.5rem;
    }
}