/* Two Lights - Apple-Inspired Design */
/* Modern CSS Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px; /* Apple's preferred base size */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.47059; /* Apple's golden ratio */
    color: #1d1d1f;
    background-color: #fbfbfd;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.022em;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Reserve aspect ratio to prevent CLS */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

input, button, textarea, select {
    font: inherit;
}

/* Dark Mode Support (Apple Style) */
@media (prefers-color-scheme: dark) {
    body {
        color: #f5f5f7;
        background-color: #000000;
    }

    .section {
        background-color: #000000;
    }

    .hero-content {
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-link,
    .faq-question {
        color: #f5f5f7;
    }

    .chip {
        background-color: rgba(255, 255, 255, 0.1);
        color: #f5f5f7;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .widget-content,
    .visit-item,
    .activity,
    .faq-item,
    .author-box {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
    padding: 8px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus Styles for Accessibility */
:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
    border-radius: 4px;
}

:focus-visible {
    outline: 3px solid #007aff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.15);
}

/* High contrast support */
@media (prefers-contrast: high) {
    :focus,
    :focus-visible {
        outline: 3px solid #000;
        outline-offset: 2px;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: #000;
        color: #fff;
    }
}

/* Enhanced Sticky Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 251, 253, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 max(22px, env(safe-area-inset-left));
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.01em;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(0, 122, 255, 0.08);
    color: #007aff;
}

.nav-link.active {
    background-color: rgba(0, 122, 255, 0.12);
    color: #007aff;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #007aff;
    border-radius: 50%;
}

/* Optimized Hero Section */
.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
    overflow: clip;
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 35%;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 500px at 50% 55%, rgba(0,0,0,.45), transparent 70%),
        linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25) 40%, rgba(0,0,0,.1));
}

@media (max-width: 768px) {
    .hero__shade {
        background:
            radial-gradient(600px 400px at 50% 60%, rgba(0,0,0,.6), transparent 70%),
            linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.4) 30%, rgba(0,0,0,.2));
    }
}

.hero__content {
    position: relative;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    max-width: min(72ch, 92vw);
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    line-height: 1.05;
    margin: 0 0 .6rem;
    font-weight: 600;
}

.hero__sub {
    font-size: clamp(1rem, 1.2vw + .8rem, 1.2rem);
    margin: 0 auto 1.2rem;
    opacity: .95;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-bottom: .8rem;
}

.btn {
    padding: .7rem 1rem;
    border-radius: .75rem;
    border: 1px solid rgba(255,255,255,.6);
    backdrop-filter: blur(2px);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn--primary {
    background: #ffffff;
    color: #0b1b2b;
    border-color: #fff;
}

.btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.btn:focus-visible {
    outline: 3px solid #ffd24a;
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary:hover {
    background: #f0f0f0;
}

.btn--ghost:hover {
    background: rgba(255,255,255,.2);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    justify-content: center;
    margin: .2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
    opacity: .95;
}

.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero__scroll::before {
    content: 'Scroll to explore';
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.hero__scroll::after {
    content: '⌄';
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

.hero__scroll:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 640px) {
    .hero {
        min-height: 68vh;
    }
    .hero__img {
        object-position: 60% 30%;
    }
}


.chip {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Layout & Typography - Enhanced Hierarchy */
.section {
    padding: clamp(48px, 8vw, 96px) max(24px, env(safe-area-inset-left));
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 800px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    opacity: 0.5;
}

.section:last-of-type::after {
    display: none;
}

/* Enhanced Section Headers with Self-linking */
.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(24px, 4vw, 48px);
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    position: relative;
    cursor: pointer;
}

.section-title:hover::before {
    content: '#';
    position: absolute;
    left: -24px;
    color: #007aff;
    opacity: 0.4;
    font-weight: 300;
    font-size: 0.7em;
    transition: opacity 0.2s ease;
}

.section h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(24px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    position: relative;
    cursor: pointer;
}

.section h2:hover::before {
    content: '#';
    position: absolute;
    left: -24px;
    color: #007aff;
    opacity: 0.4;
    font-weight: 300;
    font-size: 0.7em;
    transition: opacity 0.2s ease;
}

.section h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin: clamp(24px, 3vw, 32px) 0 clamp(16px, 2vw, 24px) 0;
    color: #2d2d2d;
    line-height: 1.2;
}

/* Optimized Live Strip */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 0;
}

.kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.kpi:hover {
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

.kpi__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.kpi__content {
    flex: 1;
    text-align: left;
    line-height: 1.2;
}

.kpi__label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.kpi__value {
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 600;
}

.live-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.source-badges {
    opacity: 0.8;
}

.badge {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kpi {
        padding: 12px;
        gap: 8px;
    }
}

/* Grid Layouts */
.visit-grid,
.activities-grid,
.tips-grid,
.directions-grid {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: 32px;
}

.visit-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.activities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.directions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Live Information Dashboard Layout - Balanced Design */
.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: 1.5rem;
}

.live-widget.tides-widget {
    grid-column: 1;
    grid-row: 1;
}

.live-widget.sun-widget {
    grid-column: 2;
    grid-row: 1;
}

.live-widget.water-widget {
    grid-column: 3;
    grid-row: 1;
}

.live-widget.weather-widget {
    grid-column: 1 / 3;
    grid-row: 2;
}

.live-widget.status-widget {
    grid-column: 3;
    grid-row: 2;
}

/* Balanced Live Widgets */
.live-widget {
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(0.875rem, 2vw, 1.125rem);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    height: fit-content;
}

.live-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.live-widget h3 {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    line-height: 1.2;
}

/* Specific Widget Layouts */
.live-widget.tides-widget .widget-content {
    padding: 0;
    background: none;
    border: none;
}

.live-widget.sun-widget .widget-content,
.live-widget.water-widget .widget-content {
    padding: 0;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.live-widget.weather-widget {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
}

.live-widget.weather-widget .widget-content {
    padding: 0;
    background: none;
    border: none;
}

/* Balanced Weather Forecast */
.weather-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    margin: 0;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 0.75rem);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    gap: 0.375rem;
}

.forecast-name {
    font-size: 10px;
    font-weight: 600;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.forecast-icon {
    font-size: 1.125rem;
}

.forecast-temp {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

.forecast-desc {
    font-size: 9px;
    color: #86868b;
    line-height: 1.2;
    max-width: 60px;
    word-wrap: break-word;
}

.forecast-wind {
    font-size: 8px;
    color: #a1a1a6;
    margin-top: 0.125rem;
}

/* Ultra Compact Tides Display */
.next-tides {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tide-highlight {
    flex: 1;
    padding: clamp(0.375rem, 1vw, 0.5rem);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tide-highlight strong {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.tide-highlight small {
    display: block;
    font-size: 10px;
    color: #86868b;
    margin-top: 0.125rem;
    opacity: 0.8;
}

/* Today's Tides - More Compact */
.todays-tides {
    margin-top: 0.5rem;
}

.todays-tides h4 {
    font-size: 10px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tide-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tide-time {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    align-items: center;
    font-size: 11px;
}

.tide-time .time {
    font-weight: 600;
    font-size: 11px;
}

.tide-time .type {
    font-weight: 500;
    color: #007aff;
    font-size: 10px;
}

.tide-time .height {
    font-size: 10px;
    color: #86868b;
}

.tide-time.past {
    opacity: 0.5;
}

/* Compact Sun Times */
.sun-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
}

.sun-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.625rem, 1.5vw, 0.875rem);
    background-color: rgba(255, 193, 7, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    text-align: center;
    gap: 0.375rem;
}

.sun-icon {
    font-size: 1.125rem;
}

.sun-item strong {
    font-size: 10px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sun-time {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

/* Compact Water Temperature */
.water-temp {
    margin: 0;
}

.temp-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 0.625rem);
    background-color: rgba(52, 152, 219, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.15);
    text-align: center;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.temp-value {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1;
}

.temp-desc {
    font-size: 9px !important;
    color: #86868b !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600 !important;
    line-height: 1;
}

.temp-details {
    font-size: 8px;
    color: #a1a1a6;
    text-align: center;
    line-height: 1.2;
}

/* Improved Card Density - Reduced Chrome */
.visit-item,
.activity,
.live-widget,
.tip,
.direction {
    background: rgba(255, 255, 255, 0.7);
    padding: clamp(20px, 3vw, 24px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.visit-item:hover,
.activity:hover,
.live-widget:hover,
.tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.visit-item h3,
.activity h3,
.tip h3,
.direction h3 {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.022em;
}

.widget-content {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    font-size: 15px;
    line-height: 1.47059;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Image Containers (Apple Style) */
.map-container {
    margin: clamp(2rem, 6vw, 4rem) 0;
    text-align: center;
}

.map-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.map-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Gallery with Responsive Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lists */
.history-list {
    list-style: none;
    padding: 0;
}

.history-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: #1a1a1a;
    list-style: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus {
    background-color: #e3f2fd;
}

.faq-question::marker {
    display: none;
}

.faq-question::after {
    content: '+';
    float: right;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Author Box */
.author-box {
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Enhanced Links with External Indicators */
a {
    color: #007aff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 122, 255, 0.3);
}

a:hover,
a:focus {
    color: #0051d5;
    border-bottom-color: rgba(0, 81, 213, 0.5);
}

/* External link indicator */
a[target="_blank"]::after {
    content: ' ↗';
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 2px;
}

/* 2-Column Lists on Desktop */
.facts {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

@media (min-width: 768px) {
    .facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }
}

.facts li {
    line-height: 1.6;
    padding-left: 0;
}

.facts li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    margin-right: 8px;
}

/* Footer (Apple Style) */
.footer {
    background: linear-gradient(135deg, #f5f5f7 0%, #fafbfd 100%);
    color: #86868b;
    padding: clamp(3rem, 6vw, 4rem) max(22px, env(safe-area-inset-left));
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: clamp(4rem, 8vw, 6rem);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.42857;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer a {
    color: #007aff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #0051d5;
    text-decoration: underline;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design (Apple Style) */
@media (max-width: 834px) {
    .nav-list {
        gap: clamp(1rem, 3vw, 2rem);
        padding: 8px 0;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .hero {
        height: 85vh;
        min-height: 500px;
    }

    .hero-content {
        padding: clamp(1.5rem, 6vw, 3rem);
        border-radius: 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .section {
        padding: clamp(3rem, 6vw, 4rem) max(22px, env(safe-area-inset-left));
    }

    .visit-grid,
    .activities-grid,
    .tips-grid,
    .directions-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 4vw, 1.5rem);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 4vw, 1.5rem);
    }

    /* Mobile Live Information Layout */
    .live-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }

    .live-widget.tides-widget {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .live-widget.sun-widget {
        grid-column: 1;
        grid-row: 2;
    }

    .live-widget.water-widget {
        grid-column: 2;
        grid-row: 2;
    }

    .live-widget.weather-widget {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .live-widget.status-widget {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    /* Compact Mobile Weather */
    .weather-forecast {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .forecast-day:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 10px;
        padding: 4px 8px;
    }

    .hero {
        height: 75vh;
        min-height: 400px;
    }

    .hero-chips {
        gap: 8px;
    }

    .chip {
        font-size: 11px;
        padding: 4px 12px;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    /* Mobile Live Information - Single Column */
    .live-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 0.5rem;
    }

    .live-widget.tides-widget,
    .live-widget.sun-widget,
    .live-widget.water-widget,
    .live-widget.weather-widget,
    .live-widget.status-widget {
        grid-column: 1;
    }

    .live-widget.tides-widget { grid-row: 1; }
    .live-widget.sun-widget { grid-row: 2; }
    .live-widget.water-widget { grid-row: 3; }
    .live-widget.weather-widget { grid-row: 4; }
    .live-widget.status-widget { grid-row: 5; }

    /* Ultra-compact mobile widgets */
    .live-widget {
        padding: 1rem;
    }

    .live-widget h3 {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }

    /* Mobile Tides - Side by Side */
    .next-tides {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    /* Mobile Sun Times - Side by Side */
    .sun-times {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Mobile Weather - Show only 3 days */
    .weather-forecast {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .forecast-day {
        padding: 0.5rem;
    }

    .forecast-day:nth-child(n+4) {
        display: none;
    }
}

/* iPhone Pro Max and larger */
@media (min-width: 1024px) {
    .hero-image {
        transform: scale(1.02);
    }

    .hero-image:hover {
        transform: scale(1.05);
    }

    .visit-item:hover,
    .activity:hover,
    .live-widget:hover,
    .tip:hover {
        transform: translateY(-12px) scale(1.03);
    }
}

/* Print Styles */
@media print {
    .header,
    .live-grid,
    .gallery-grid {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .hero {
        height: auto;
        page-break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .section-title {
        color: #000;
        font-size: 18pt;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    a::after {
        content: ' (' attr(href) ')';
        font-size: 10pt;
        color: #666;
    }
}

/* Animation & Transitions (Apple Style) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .hero-image {
        animation: subtle-float 25s ease-in-out infinite alternate;
    }

    @keyframes subtle-float {
        from {
            transform: scale(1.05) translateY(0px);
        }
        to {
            transform: scale(1.08) translateY(-10px);
        }
    }

    /* Parallax scroll effect for sections */
    .section {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Staggered animation delays */
    .section:nth-child(1) { animation-delay: 0.1s; }
    .section:nth-child(2) { animation-delay: 0.2s; }
    .section:nth-child(3) { animation-delay: 0.3s; }
    .section:nth-child(4) { animation-delay: 0.4s; }
    .section:nth-child(5) { animation-delay: 0.5s; }

    /* Breathing animation for interactive elements */
    .live-widget {
        animation: gentle-pulse 3s ease-in-out infinite;
    }

    @keyframes gentle-pulse {
        0%, 100% {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }
        50% {
            box-shadow: 0 8px 30px rgba(0, 122, 255, 0.1);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-image {
        transform: scale(1.05) !important;
    }

    .section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Real Estate Section Styles */
#real-estate .lede {
    max-width: 70ch;
    margin-inline: auto;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

#real-estate .kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (max-width: 800px) {
    #real-estate .kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kpi {
    background: var(--surface, #f5f7fb);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.kpi-label {
    display: block;
    font-size: 0.82rem;
    color: #5a6472;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.kpi-note .kpi-value {
    font-weight: 500;
}

.search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

#real-estate .btn {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.2s ease;
}

#real-estate .btn:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.facts {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.facts li {
    line-height: 1.5;
}

.map-card {
    margin: 0;
}

.map-card img {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    height: auto;
}

.map-card figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.faq {
    margin-top: 2rem;
}

.faq summary {
    cursor: pointer;
    margin-top: 0.75rem;
    font-weight: 600;
    color: #0066cc;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "▶";
    font-size: 0.75rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.faq[open] summary::before {
    transform: rotate(90deg);
}

.faq ul {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.faq li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    line-height: 1.5;
}

.disclaimer {
    font-size: 0.85rem;
    color: #6a7380;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
}

/* Dark mode support for real estate section */
@media (prefers-color-scheme: dark) {
    .kpi {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .kpi-label {
        color: #ccc;
    }

    .kpi-value {
        color: #f5f5f5;
    }

    #real-estate .btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #f5f5f5;
    }

    #real-estate .btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .faq summary {
        color: #66b3ff;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .faq li {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox--active {
    opacity: 1;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lightbox__caption {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

.lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.2s ease;
    z-index: 1002;
}

.lightbox__close:hover,
.lightbox__close:focus {
    opacity: 0.7;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1002;
}

.lightbox__prev {
    left: -80px;
}

.lightbox__next {
    right: -80px;
}

.lightbox__prev:hover,
.lightbox__prev:focus,
.lightbox__next:hover,
.lightbox__next:focus {
    background: rgba(0, 0, 0, 0.9);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    transform: translateY(-50%) scale(1.1);
}

/* Gallery item hover effect */
.gallery-item img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.gallery-item img:hover,
.gallery-item img:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
    .lightbox__prev {
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox__next {
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox__close {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .lightbox__caption {
        bottom: 20px;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        max-width: 90%;
    }

    .lightbox__content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__prev,
    .lightbox__next,
    .gallery-item img {
        transition: none;
    }

    .lightbox__prev:hover,
    .lightbox__prev:focus,
    .lightbox__next:hover,
    .lightbox__next:focus {
        transform: translateY(-50%);
    }

    .gallery-item img:hover,
    .gallery-item img:focus {
        transform: none;
    }
}

/* Dark mode adjustments for lightbox */
@media (prefers-color-scheme: dark) {
    .lightbox {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* POI Grid & Cards */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Restaurant Cards - 2x2 layout */
#eats .poi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Restaurant Images - Consistent sizing */
#eats .poi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#eats .poi-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.poi-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.poi-card h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.poi-card p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin: 0 0 12px 0;
    max-width: 70ch;
}

.poi-card p:last-child {
    margin-bottom: 0;
    margin-top: auto;
}

.poi-card__access,
.poi-card__distance,
.poi-card__type {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin: 0.5rem 0;
}

.poi-card__note {
    font-size: 0.875rem;
    color: #b7610a;
    font-weight: 500;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(183, 97, 10, 0.1);
    border-radius: 4px;
    border-left: 3px solid #b7610a;
}

.poi-card__map-link,
.poi-card__link {
    display: inline-block;
    font-size: 0.875rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 102, 204, 0.2);
    transition: all 0.2s ease;
}

.poi-card__map-link:hover,
.poi-card__map-link:focus,
.poi-card__link:hover,
.poi-card__link:focus {
    background: rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
    outline: 2px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

.poi-fallback {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    margin: 1rem 0;
}

.sources {
    font-size: 0.8125rem;
    color: #888;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-style: italic;
}

.sources a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.sources a:hover,
.sources a:focus {
    text-decoration: underline;
    color: #004499;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .poi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #eats .poi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .poi-card {
        padding: 1.25rem;
    }
}

/* Dark mode support for POI cards */
@media (prefers-color-scheme: dark) {
    .poi-card {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .poi-card h3 {
        color: #f5f5f5;
    }

    .poi-card p {
        color: #ccc;
    }

    .poi-card__access,
    .poi-card__distance,
    .poi-card__type {
        color: #aaa;
    }

    .poi-card__note {
        color: #fbbf24;
        background: rgba(251, 191, 36, 0.1);
        border-color: #fbbf24;
    }

    .poi-card__map-link,
    .poi-card__link {
        color: #66b3ff;
        background: rgba(102, 179, 255, 0.1);
        border-color: rgba(102, 179, 255, 0.2);
    }

    .poi-card__map-link:hover,
    .poi-card__map-link:focus,
    .poi-card__link:hover,
    .poi-card__link:focus {
        background: rgba(102, 179, 255, 0.15);
        border-color: rgba(102, 179, 255, 0.3);
    }

    .poi-fallback {
        background: rgba(255, 255, 255, 0.05);
        color: #999;
    }

    .sources {
        color: #aaa;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .sources a {
        color: #66b3ff;
    }

    .sources a:hover,
    .sources a:focus {
        color: #99ccff;
    }
}

/* Quick Facts & Overview Styles */
.quick-facts {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.quick-facts h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.quick-facts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-facts li {
    margin-bottom: 0.875rem;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.quick-facts li:last-child {
    margin-bottom: 0;
}

/* Parking Note Styles */
.parking-note {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: rgba(183, 97, 10, 0.1);
    border-radius: 6px;
    border-left: 3px solid #b7610a;
    font-size: 0.9375rem;
    color: #8b4513;
    font-weight: 500;
}

/* Beyond Park Callout */
.beyond-park-callout {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.beyond-park-callout h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.beyond-park-callout p {
    margin: 0;
    line-height: 1.5;
}

.beyond-park-callout a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.beyond-park-callout a:hover,
.beyond-park-callout a:focus {
    color: #004499;
    outline: 2px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

/* Trail Map Styles */
.trail-map-container {
    margin: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.trail-map {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

.trail-map:hover {
    transform: scale(1.02);
}

/* Visually Hidden Utility Class */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark Mode Support for New Elements */
@media (prefers-color-scheme: dark) {
    .quick-facts {
        background: rgba(102, 179, 255, 0.1);
        border-color: #66b3ff;
    }

    .quick-facts h3 {
        color: #f5f5f5;
    }

    .parking-note {
        background: rgba(251, 191, 36, 0.1);
        border-color: #fbbf24;
        color: #fbbf24;
    }

    .beyond-park-callout {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .beyond-park-callout h3 {
        color: #f5f5f5;
    }

    .beyond-park-callout a {
        color: #66b3ff;
    }

    .beyond-park-callout a:hover,
    .beyond-park-callout a:focus {
        color: #99ccff;
    }

    .trail-map-container {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Best Views Section Styles */
#best-views .poi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 12px;
}

#best-views .poi-card .note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-style: italic;
    color: #666;
}

/* Optional tighter grid on large screens */
@media (min-width: 1100px) {
    #best-views .poi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Dark mode support for Best Views */
@media (prefers-color-scheme: dark) {
    #best-views .poi-card .note {
        color: #aaa;
    }
}

/* Shore Access Section Styles */
.grid.two-col {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 960px) {
    .grid.two-col {
        grid-template-columns: 1fr;
    }
}

#shore-access .facts {
    display: grid;
    gap: 0.5rem;
    padding-left: 1.1rem;
}

#shore-access .links li {
    margin: 0.25rem 0;
}

/* Things to Do Section Styles */
#things-to-do .facts {
    display: grid;
    gap: 0.5rem;
    padding-left: 1.1rem;
}

/* Itinerary Cards */
.itinerary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.itinerary-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0.04) 100%);
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.itinerary-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duration {
    background: #0066cc;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.itinerary-card p {
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.activity-category {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.activity-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.activity-item {
    margin-bottom: 1.5rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item h4,
.photo-timing h4,
.photo-challenges h4,
.wildlife-watching h4,
.nearby-spots h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.activity-item p {
    color: #333;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.tip {
    font-size: 0.9375rem;
    color: #0066cc;
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

.photo-timing ul,
.photo-challenges ul,
.wildlife-watching ul,
.nearby-spots ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-timing li,
.photo-challenges li,
.wildlife-watching li,
.nearby-spots li {
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    line-height: 1.4;
}

.photo-timing li:last-child,
.photo-challenges li:last-child,
.wildlife-watching li:last-child,
.nearby-spots li:last-child {
    border-bottom: none;
}

/* Practical Information */
.practical-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    padding: 0.5rem 0;
    color: #333;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-section li:last-child {
    border-bottom: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .itinerary-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0 2rem 0;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .practical-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .itinerary-card {
        padding: 1.25rem;
    }

    .activity-category {
        padding: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .itinerary-card {
        background: linear-gradient(135deg, rgba(102, 179, 255, 0.12) 0%, rgba(102, 179, 255, 0.06) 100%);
        border-color: #66b3ff;
    }

    .itinerary-card h3 {
        color: #f5f5f5;
    }

    .duration {
        background: #66b3ff;
        color: #000;
    }

    .itinerary-card p {
        color: #ccc;
    }

    .activity-category {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .activity-category h3 {
        color: #f5f5f5;
        border-color: #66b3ff;
    }

    .activity-item h4,
    .photo-timing h4,
    .photo-challenges h4,
    .wildlife-watching h4,
    .nearby-spots h4 {
        color: #f5f5f5;
    }

    .activity-item p,
    .photo-timing li,
    .photo-challenges li,
    .wildlife-watching li,
    .nearby-spots li {
        color: #ccc;
    }

    .tip {
        color: #66b3ff;
    }

    .info-section h3 {
        color: #f5f5f5;
    }

    .info-section li {
        color: #ccc;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .practical-info {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Where to Stay Section Styles */
#where-to-stay .poi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
    #where-to-stay .poi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#where-to-stay .poi-card p {
    margin: 0.4rem 0;
}

/* Hide empty grids / placeholders that create vertical gaps */
.poi-grid:empty,
#poi-viewpoints:empty,
#best-views .poi-grid:empty {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

/* Section spacing: tighten top gap and normalize heading margins */
.section { padding-block: clamp(32px, 5vw, 64px); }
.section > .wrap > h2 { margin: 0 0 8px 0; }
.section > .wrap > .lede { margin: 8px 0 16px; max-width: 70ch; }
.section > .wrap > *:first-child { margin-top: 0; }

/* Anchor offset for sticky headers so in-page links don't hide H2 */
:target { scroll-margin-top: 96px; } /* adjust if header height differs */

/* Consistent card grid */
#viewpoints .poi-grid,
#best-views .poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.poi-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}
.poi-card p { margin-top: .4rem; }
.poi-card .note { margin-top: auto; opacity: .8; font-size: .92rem; }

/* Performance Optimizations */
.section:not(:first-child) {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__scroll::after {
        animation: none;
    }

    .gallery-item:hover,
    .poi-card:hover,
    .kpi:hover {
        transform: none;
    }
}

/* Critical path optimizations - will-change hints */
.nav-link,
.poi-card,
.gallery-item {
    will-change: transform;
}

.nav-link:not(:hover),
.poi-card:not(:hover),
.gallery-item:not(:hover) {
    will-change: auto;
}

/* Reference Cards Layout */
.reference-cards {
    margin: 32px 0;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card-row.single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto 20px;
}

.reference-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.reference-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.reference-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 122, 255, 0.2);
}

.safety-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.06));
    border-color: rgba(255, 193, 7, 0.2);
}

.safety-card h3 {
    border-bottom-color: rgba(255, 193, 7, 0.4);
    color: #e65100;
}

.compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    padding-left: 16px;
    position: relative;
}

.compact-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #007aff;
    font-weight: 600;
}

.safety-card .compact-list li::before {
    content: '⚠';
    color: #ff9500;
}

@media (max-width: 768px) {
    .card-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reference-card {
        padding: 16px;
    }

    .reference-card h3 {
        font-size: 15px;
    }

    .compact-list li {
        font-size: 13px;
        padding-left: 14px;
    }
}

/* Updated Navigation Styles */
#site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: .5rem;
    background: #000;
    color: #fff;
}

.nav-list {
    display: flex;
    gap: .75rem;
    overflow: auto;
    padding: .5rem 1rem;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
}

.nav-list a {
    white-space: nowrap;
    padding: .35rem .6rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-list a:focus,
.nav-list a:hover {
    background: rgba(0,0,0,.05);
}

.nav-list a[aria-current="true"] {
    background: #0b57d0;
    color: #fff;
}

#nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 920px) {
    #nav-toggle {
        display: inline-block;
        margin: .5rem 1rem .25rem;
    }

    .nav-list {
        display: none;
        flex-wrap: wrap;
    }

    .nav-list.open {
        display: flex;
    }
}

/* Prevent headings being hidden under sticky header when linked */
:target {
    scroll-margin-top: 88px;
}