/* Explore Fuvahmulah Page */

.explore-hero,
.explore-cta {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.explore-hero-media,
.explore-cta-media {
    position: absolute;
    inset: 0;
}

.explore-hero-media img,
.explore-cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-hero-overlay,
.explore-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(10, 25, 41, 0.82) 0%, rgba(10, 25, 41, 0.52) 52%, rgba(0, 102, 204, 0.35) 100%);
}

.explore-hero-content,
.explore-cta-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 760px;
    padding: 4rem 0;
}

.explore-hero-content h1,
.explore-cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.explore-hero-content p,
.explore-cta-content p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    max-width: 62ch;
    line-height: 1.7;
}

.hero-kicker {
    display: inline-flex;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    color: #c9e8ff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.feature-grid,
.attraction-grid,
.experience-grid,
.services-grid,
.itinerary-grid {
    display: grid;
    gap: clamp(1.5rem, 2.2vw, 2rem);
    width: min(100%, 1260px);
    margin-inline: auto;
    justify-content: center;
    grid-auto-rows: 1fr;
}

#why-visit .container {
    max-width: 1240px;
}

#why-visit .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 2.6vw, 2rem);
    width: min(100%, 1240px);
    margin-inline: auto;
    align-items: stretch;
}

#why-visit .feature-card {
    padding: clamp(1.75rem, 2.4vw, 2rem);
    justify-content: flex-start;
}

#why-visit .feature-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    flex: 0 0 auto;
}

#why-visit .feature-card h3 {
    margin: 0 0 0.55rem;
}

#why-visit .feature-card p {
    margin: 0;
    line-height: 1.65;
}

.attraction-grid,
.experience-grid,
.services-grid,
.itinerary-grid,
.facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 290px));
}

#top-attractions .container {
    max-width: 1240px;
}

#top-attractions .attraction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --attraction-gap: clamp(1.75rem, 2.6vw, 2rem);
    gap: var(--attraction-gap);
    width: min(100%, 1240px);
    margin-inline: auto;
    align-items: stretch;
}

section[aria-labelledby="explore-related-links-title"] .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 228px));
}

.feature-card,
.experience-card,
.service-card,
.itinerary-card,
.stat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 6px 20px rgba(5, 39, 75, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover,
.feature-card:focus-within,
.experience-card:hover,
.experience-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.itinerary-card:hover,
.itinerary-card:focus-within,
.stat-card:hover,
.stat-card:focus-within,
.attraction-card:hover,
.attraction-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(5, 39, 75, 0.1);
}

.feature-card i,
.itinerary-card i,
.service-card i {
    color: var(--primary-blue);
}

.feature-card h3,
.experience-card h3,
.service-card h3,
.itinerary-card h3,
.stat-card h3 {
    margin: 0.5rem 0 0.4rem;
    color: #0f3557;
}

.feature-card p,
.experience-card p,
.service-card p,
.itinerary-card p {
    margin: 0;
    color: var(--text-light);
}

.attraction-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 20px rgba(5, 39, 75, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.attraction-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.attraction-copy {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.attraction-copy h3 {
    margin: 0 0 0.45rem;
    color: #0f3557;
}

.attraction-copy p {
    margin: 0;
    color: var(--text-light);
}

.map-wrapper {
    border: 1px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(5, 39, 75, 0.12);
}

.map-intro {
    max-width: 78ch;
    margin: 0 auto 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

.interactive-map-shell {
    position: relative;
    width: 100%;
    height: clamp(420px, 72vh, 760px);
    background: linear-gradient(140deg, #f5fbff, #e7f1fb);
}

.interactive-map-embed {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interactive-map-shell.is-ready .interactive-map-embed {
    opacity: 1;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.85rem;
    justify-items: center;
    background: linear-gradient(140deg, rgba(245, 251, 255, 0.95), rgba(231, 241, 251, 0.95));
    color: #16466f;
    z-index: 2;
}

.map-loading p {
    margin: 0;
    font-weight: 600;
}

.map-spinner {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 3px solid rgba(0, 102, 204, 0.2);
    border-top-color: #0066cc;
    animation: map-spin 1s linear infinite;
}

@keyframes map-spin {
    to {
        transform: rotate(360deg);
    }
}

.interactive-map-shell.is-ready .map-loading,
.interactive-map-shell.has-fallback .map-loading {
    display: none;
}

.map-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3;
}

.map-fallback img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 51, 0.38);
}

.map-fallback-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0066cc, #0a5ab0);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 75, 153, 0.32);
}

.map-fallback-cta:hover,
.map-fallback-cta:focus-visible {
    background: linear-gradient(135deg, #0a5ab0, #004a93);
}

.map-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.map-filter {
    border: 1px solid #d5e8fb;
    background: #f5faff;
    color: #144872;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.map-filter.active,
.map-filter:hover,
.map-filter:focus-visible {
    background: linear-gradient(135deg, #0066cc, #0a5ab0);
    border-color: #0066cc;
    color: #fff;
}

#explore-map {
    width: 100%;
    min-height: 410px;
}

.map-helper {
    padding: 0.8rem 1rem 1rem;
    margin: 0;
    color: var(--text-light);
}

.map-footer-link {
    margin: 1rem 0 0;
    text-align: center;
}

.map-footer-link a {
    color: #0f4f87;
    font-weight: 700;
    text-decoration: none;
}

.map-footer-link a:hover,
.map-footer-link a:focus-visible {
    color: #0a5ab0;
    text-decoration: underline;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 0;
    width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.9);
    display: none;
    place-items: center;
    z-index: 1500;
    padding: 1rem;
}

.gallery-lightbox.active {
    display: grid;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 960px;
    width: 100%;
}

.gallery-lightbox img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-lightbox button {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.88);
}

.facts-grid {
    display: grid;
    gap: clamp(1.5rem, 2.2vw, 2rem);
    width: min(100%, 1260px);
    margin-inline: auto;
    justify-content: center;
    grid-auto-rows: 1fr;
}

.stat-card h3 {
    margin-top: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-label {
    color: var(--text-light);
    margin: 0.4rem 0 0;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }

    #top-attractions .attraction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #top-attractions .attraction-grid > .attraction-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: min(100%, calc((100% - var(--attraction-gap)) / 2));
        justify-self: center;
    }
}

@media (max-width: 1024px) {
    #why-visit .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .explore-hero,
    .explore-cta {
        min-height: 56vh;
    }

    .explore-hero-content,
    .explore-cta-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .explore-hero-content p,
    .explore-cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .interactive-map-shell {
        height: 68vh;
        min-height: 380px;
        max-height: 640px;
    }

    section[aria-labelledby="explore-related-links-title"] .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 240px));
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        column-count: 1;
    }

    .feature-grid,
    .attraction-grid,
    .experience-grid,
    .services-grid,
    .itinerary-grid,
    .facts-grid,
    section[aria-labelledby="explore-related-links-title"] .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #why-visit .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #top-attractions .attraction-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .interactive-map-shell {
        min-height: 330px;
        height: 62vh;
    }

    .map-fallback-cta {
        width: calc(100% - 2rem);
        max-width: 320px;
    }
}
