/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg, #f4f1ea 0%, #eef2ef 100%);
    padding-top: 92px;
    padding-bottom: 60px;
    color: #222222;
    box-sizing: border-box;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

img {
    border: 5px solid #326c7a;
}

.blog-section .media-card p,
.blog-section .media-card strong {
    color: #2b2b2b;
   
}

.video-card {
    border: 5px solid #282d2e;
}

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

.site-header,
.gallery-section,
.video-section,
.destinations-section,
.blog-section,
.countdown-card,
.inquiry-container,
.booking-inquiry-section,
.booking-page-section,
.about-section,
.legal-wrap,
.thank-you-wrap,
.booking-closed,
.package-form-wrap {
    width: min(1100px, 92%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    max-width: 100%;
}

.media-card img,
.media-card iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

.blog-section .media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Single blog post full width */
.blog-section .media-grid:has(.media-card:only-child) {
    grid-template-columns: 1fr;
}

.blog-section .media-grid:has(.media-card:only-child) .media-card {
    max-width: 100%;
}

.blog-section .media-card {
    background: #dfdcdc;
    border: 5px solid #cfe8ee;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 95, 115, 0.08);
    padding: 10px;
    text-align: left;
    
}

.blog-section .media-card .media-caption {
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    position: fixed;
    top: 36px !important;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1200;
    background: #fbfaf7;
    border-bottom: 1px solid #d8ddd8;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.brand-link h1 {
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    margin: 0;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    white-space: nowrap;
    font-size: 0.98rem;
}

.navbar .site-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
}

.countdown-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1300;
    background: linear-gradient(90deg, #023e8a, #0077b6, #00b4d8);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-weight: 700;
    height: 36px;
    box-sizing: border-box;
}

.countdown-marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeMove 18s linear infinite;
}

@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

footer img,
.footer img,
.footer-logo {
    width: 140px;
    height: auto;
    border: 5px solid #70806c;
}

.footer-links {
    margin: 6px 0;
}

.footer-links a,
.card-btn {
    color: #023e8a;
    font-weight: 700;
    text-decoration: none;
}

.card-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #e6fbff;
    border: 1px solid #cfe8ee;
}

.home-intro,
.home-links,
.featured-image,
.about-section,
.legal-wrap,
.thank-you-wrap,
.package-form-wrap {
    width: min(900px, 92%);
    margin-left: auto;
    margin-right: auto;
}

.about-card,
.thank-you-card,
.booking-closed,
.legal-wrap,
.package-form-card {
    background: #ffffff;
    border: 1px solid #cfe8ee;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 95, 115, 0.08);
    padding: 32px 24px;
}

.home-link-btn,
.thank-you-btn,
.about-home-btn,
.booking-closed .cta-btn,
.legal-home-btn,
.submit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a9396 0%, #0077b6 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
}

.navbar .site-logo,
.site-header .site-logo {
    width: 32px;
    height: 32px;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.footer-logo-left {
    margin-right: auto;
}

.footer-logo-right {
    margin-left: auto;
}

/* Sensory-friendly additions */
a, button, input, select, textarea {
    transition: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #023e8a;
    outline-offset: 3px;
}

html {
    scroll-behavior: auto;
}

@media screen and (max-width: 1024px) {
    .blog-section .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 88px;
    }

    .countdown-marquee {
        font-size: 0.9rem;
        padding: 7px 12px;
        height: 32px;
    }

    .navbar {
        padding: 8px 14px;
        top: 32px !important;
    }

    .nav-brand h1 {
        font-size: 0.95rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .site-logo {
        width: 32px;
        height: 32px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1250;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: min(84vw, 280px);
        height: calc(100vh - 32px);
        padding: 18px;
        position: fixed;
        top: 32px !important;
        right: 0;
        background: #8a9b8f;
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1100;
        align-items: flex-start;
        justify-content: flex-start;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .nav-links a {
        color: #ffffff;
        font-size: 1rem;
    }

    .blog-section .media-grid,
    .gallery-section .media-grid,
    .media-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-section .media-card,
    .gallery-section .media-card,
    .media-card {
        width: 100%;
        max-width: 100%;
    }

    .thank-you-wrap {
        width: min(100%, 100%);
        padding: 28px 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    footer img,
    .footer img,
    .footer-logo {
        width: 100px;
        margin: 8px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .countdown-marquee-track {
        animation: none !important;
        padding-left: 0;
    }
}

@media (prefers-contrast: more) {
    body {
        background: #ffffff;
        color: #111111;
    }

    .navbar,
    .blog-section .media-card,
    .about-card,
    .booking-closed,
    .thank-you-card,
    .package-form-card,
    .legal-wrap {
        box-shadow: none;
        border-color: #000000;
    }
}
