/* ============================================================
   WHAT'S HAPPENING PAGE
   Consistent with the Horizon Sands Bali design system
   ============================================================ */

html,
body,
.whats-happening-page {
    background: #fffaf6;
}

.whats-happening-page {
    color: #1f2937;
}

/* ===== SCROLL MARGIN FOR ANCHOR LINKS ===== */
.wh-section,
.wh-hero {
    scroll-margin-top: 110px;
}

/* ============================================================
   HERO
   ============================================================ */
.wh-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 190px 0 88px;
    color: #ffffff;
    background:
        linear-gradient(rgba(9, 15, 24, 0.44), rgba(9, 15, 24, 0.56)),
        linear-gradient(rgba(190, 120, 75, 0.16), rgba(28, 22, 20, 0.22)),
        url('../images/Adventure.webp') center 40% / cover no-repeat;
}

.wh-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 250, 246, 0) 0%, #fffaf6 100%);
    pointer-events: none;
}

.wh-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.wh-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 244, 225, 0.92);
}

.wh-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.02;
    margin-bottom: 20px;
    color: #ffffff;
}

.wh-hero-text {
    font-size: 1.06rem;
    max-width: 660px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.wh-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.wh-stat-item {
    min-width: 170px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.wh-stat-item strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.wh-stat-item span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.93rem;
}

/* ============================================================
   ANCHOR NAV
   ============================================================ */
.wh-anchor-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.wh-anchor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 0;
}

.wh-anchor-links a {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wh-anchor-links a:hover {
    color: #111827;
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.wh-section {
    padding: 76px 0;
}

.wh-section-muted {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.wh-section-heading {
    margin-bottom: 36px;
    max-width: 760px;
}

.wh-section-label {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a5e49;
}

.wh-section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    margin-bottom: 12px;
    color: #1f2937;
}

.wh-section-subtext {
    font-size: 0.98rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   ATTRACTIONS FEATURE ROWS
   ============================================================ */
.wh-feature-list {
    display: grid;
    gap: 28px;
}

.wh-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.wh-feature-media {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #e9f0f5;
}

.wh-feature-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wh-feature-row:hover .wh-feature-image {
    transform: scale(1.04);
}

.wh-feature-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(17, 24, 39, 0.72);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.wh-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.wh-feature-category {
    margin-bottom: 10px;
    color: #8a5e49;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wh-feature-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.wh-feature-description {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.72;
    margin-bottom: 18px;
}

/* Detail rows within attraction cards */
.wh-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 20px;
}

.wh-detail-item {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.wh-detail-item--full {
    grid-column: 1 / -1;
}

.wh-detail-item dt {
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5e49;
}

.wh-detail-item dd {
    margin: 0;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.55;
}

.wh-cta-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ============================================================
   LOCAL EXPERIENCES GRID
   ============================================================ */
.wh-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wh-experience-card {
    padding: 26px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wh-experience-card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.wh-exp-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.wh-experience-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.wh-exp-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.68;
    margin-bottom: 14px;
}

.wh-exp-info {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a4d3a;
    background: #fdf2ea;
    border: 1px solid #f0d9c8;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ============================================================
   FERRY ROUTES
   ============================================================ */
.wh-ferry-list {
    display: grid;
    gap: 28px;
}

.wh-ferry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.wh-ferry-card--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.wh-ferry-card--reverse .wh-ferry-media {
    order: 2;
}

.wh-ferry-card--reverse .wh-ferry-content {
    order: 1;
}

.wh-ferry-media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #dde8f0;
}

.wh-ferry-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wh-ferry-card:hover .wh-ferry-image {
    transform: scale(1.04);
}

.wh-ferry-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.wh-ferry-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.wh-ferry-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
}

.wh-ferry-detail-item {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.wh-ferry-detail--full {
    grid-column: 1 / -1;
}

.wh-ferry-detail-item dt {
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5e49;
}

.wh-ferry-detail-item dd {
    margin: 0;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.55;
}

.wh-ferry-highlights {
    margin-bottom: 20px;
}

.wh-highlights-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5e49;
    margin-bottom: 8px;
}

.wh-highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wh-highlights-list li {
    padding: 5px 12px;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.wh-ferry-note {
    margin-top: 30px;
    padding: 20px 24px;
    background: #fdf8f2;
    border: 1px solid #f0dfc8;
    border-radius: 14px;
}

.wh-ferry-note p {
    margin: 0;
    font-size: 0.94rem;
    color: #5a4a3a;
    line-height: 1.65;
}

/* ============================================================
   CONCIERGE CTA
   ============================================================ */
.wh-cta-section {
    padding: 72px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.wh-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 52px 56px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.wh-cta-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: #111827;
}

.wh-cta-text p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.72;
    max-width: 640px;
    margin-bottom: 26px;
}

.wh-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ============================================================
   FOCUS & MOTION
   ============================================================ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(58, 122, 254, 0.34);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-up {
        transition: none !important;
        animation: none !important;
    }

    .wh-feature-image,
    .wh-ferry-image {
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1199px)
   ============================================================ */
@media (max-width: 1199.98px) {
    .wh-feature-row,
    .wh-ferry-card {
        gap: 22px;
        padding: 22px;
    }

    .wh-feature-content h3,
    .wh-ferry-content h3 {
        font-size: 1.48rem;
    }

    .wh-feature-description {
        font-size: 0.97rem;
    }

    .wh-cta-card {
        padding: 40px 40px;
    }
}

/* ============================================================
   RESPONSIVE — MEDIUM (≤ 991px)
   ============================================================ */
@media (max-width: 991.98px) {
    .wh-hero {
        min-height: auto;
        padding: 170px 0 72px;
    }

    .wh-feature-row {
        grid-template-columns: 1fr;
    }

    .wh-ferry-card {
        grid-template-columns: 1fr;
    }

    .wh-ferry-card--reverse {
        grid-template-columns: 1fr;
    }

    .wh-ferry-card--reverse .wh-ferry-media,
    .wh-ferry-card--reverse .wh-ferry-content {
        order: unset;
    }

    .wh-feature-media,
    .wh-ferry-media {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .wh-experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wh-detail-row,
    .wh-ferry-details {
        grid-template-columns: 1fr;
    }

    .wh-detail-item--full,
    .wh-ferry-detail--full {
        grid-column: 1;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767.98px) {
    .wh-hero {
        padding: 150px 0 64px;
    }

    .wh-hero-stats {
        flex-direction: column;
    }

    .wh-stat-item {
        min-width: unset;
    }

    .wh-anchor-links {
        flex-direction: column;
        gap: 12px;
    }

    .wh-section {
        padding: 60px 0;
    }

    .wh-experience-grid {
        grid-template-columns: 1fr;
    }

    .wh-feature-row,
    .wh-ferry-card {
        padding: 18px;
        gap: 18px;
    }

    .wh-cta-card {
        padding: 30px 24px;
    }

    .wh-cta-actions {
        flex-direction: column;
    }

    .wh-cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    .wh-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 575px)
   ============================================================ */
@media (max-width: 575.98px) {
    .wh-feature-content h3,
    .wh-ferry-content h3 {
        font-size: 1.3rem;
    }

    .wh-feature-description,
    .wh-exp-desc {
        font-size: 0.94rem;
    }

    .wh-detail-item,
    .wh-ferry-detail-item {
        padding: 10px 12px;
    }

    .wh-experience-card {
        padding: 22px 18px;
    }

    .wh-ferry-note {
        padding: 16px 18px;
    }
}
