/* ============================================================
   IMPROVED RESPONSIVE STYLES
   surfing-ahangama.css (Fully Responsive)
   ============================================================ */

/* VARIABLES – consistent spacing & typography */
:root {
    --video-max-width: 520px;
    --faq-max-width: 860px;
    --spacing-section-mobile: 2rem 1rem;
    --spacing-section-tablet: 3rem 2rem;
    --spacing-section-desktop: 4rem 2rem;
}

/* ========== VIDEO SECTION – FIXED ROTATION & MOBILE ========== */
.video-wrapper {
    /* Spacing & visual */
    padding: 12px;
    margin: 4rem auto 0;               /* Combined margin (top, auto sides) */
    background: #fff;
    border-radius: 20px;
    /* Sizing & layout */
    width: 100%;
    max-width: var(--video-max-width, 800px);  /* Added fallback value */
    overflow: hidden;                  /* Clips content to border-radius */

    /* Animation – only transition properties that actually change */
    transition: box-shadow 0.3s ease, max-width 0.3s ease;
    height: 100%;
    /* Remove height: 100% – usually unnecessary and can cause layout bugs */
}

/* video rotated 270° but now fully responsive – no giant margins */
.surfing-video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 570px;
    margin: 0 auto;
    transform: rotate(270deg);
    transform-origin: center center;
    border-radius: 12px;
    object-fit: cover;
}

/* ==========  ROW WITH LARGE MARGIN FIX (prevent overflow) ========== */
.row.m-5 {
    margin: 2rem 0 !important;
}

.row.m-5 > [class*="col-"] {
    padding: 0 0.75rem;
}

/* desktop spacing for row */
@media (min-width: 992px) {
    .row.m-5 {
        margin: 3rem 0 !important;
    }
}

/* ========== TYPOGRAPHY – fluid & readable ========== */
.wrapper h3 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    letter-spacing: -0.01em;
}

.wrapper p {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.6;
    color: #2c3e2f;
}

/* Marshmellow title */
.col-md-6 h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1e4b3e, #2c7a5e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ========== WAVE HERO – FULLY RESPONSIVE (NO FLOAT, NO FIXED HEIGHT) ========== */
.wave-hero {
    position: relative;
    width: 100%;
    min-height: 920px; /* flexible height */
    display: flex;
    align-items: center;
}

/* background image layer with better mobile behaviour */
.wave-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2073&q=80');
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
}

/* disable fixed-attachment on mobile for performance & proper scrolling */
@media (max-width: 768px) {
    .wave-hero__bg {
        background-attachment: scroll !important;
    }
}

@media (min-width: 1024px) {
    .wave-hero__bg {
        background-attachment: scroll;
    }
}

/* overlay – keeps text readable */
.wave-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 70, 60, 0.65), rgba(0, 40, 35, 0.75));
    z-index: 2;
}

/* content wrapper – NO float, NO weird padding, fully responsive */
.wave-hero__content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    color: #fff;
    text-align: center;
}

/* SVG wave overlays – responsive height */
.wave-hero__wave {
    position: absolute;
    width: 100%;
    height: 70px;
    z-index: 3;
    fill: #ffffff;
    display: block;
    left: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .wave-hero__wave {
        height: 90px;
    }
}

.wave-hero__wave--top {
    top: 0;
    transform: scaleY(-1);
}

.wave-hero__wave--bottom {
    bottom: 0;
}

/* ========== FAQ EYEBROW + TITLE ========== */
.faq-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,240,0.2);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 1rem;
}

.faq-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 600;
}

.faq-title em {
    font-style: italic;
    font-weight: 700;
    color: #f9e45b;
}

.faq-divider {
    width: 70px;
    height: 3px;
    background: #f9c74f;
    border-radius: 4px;
}

/* ========== ACCORDION – FULLY RESPONSIVE, READABLE ========== */
.faq-accordion {
    width: 100%;
    max-width: var(--faq-max-width);
    margin: 2rem auto 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    backdrop-filter: blur(2px);
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-item:last-child {
    border-bottom: none;
}

.custom-accordion-btn {
    background: transparent !important;
    color: #1b3b2b !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.2rem 1.5rem;
    box-shadow: none !important;
    font-family: 'Jost', sans-serif;
    letter-spacing: -0.2px;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .custom-accordion-btn {
        font-size: 1.1rem;
        padding: 1.3rem 2rem;
    }
}

.custom-accordion-btn:not(.collapsed) {
    color: #005f4b !important;
    background: #f0f7f5 !important;
}

.custom-accordion-btn::after {
    filter: brightness(0.3);
    transition: transform 0.25s;
}

.accordion-body {
    background: #fefef7;
    padding: 0.8rem 2rem 1.5rem 2rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2c3e2f;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .accordion-body {
        font-size: 1rem;
        padding: 0.8rem 2.5rem 1.8rem 2.5rem;
    }
}

/* ========== ADDITIONAL RESPONSIVE TOUCHES ========== */
/* contact bar / footer spacing */
.contact-bar {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    word-break: break-word;
}

.footer-links li a {
    font-size: 0.9rem;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .footer-links {
        text-align: center;
    }
    .footer-heading {
        text-align: center;
        margin-top: 1rem;
    }
    .social-icons {
        justify-content: center;
        display: flex;
        gap: 1.2rem;
    }
    .newsletter-form {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* floating scroll buttons responsive */
.floating-scroll {
    bottom: 20px;
    right: 16px;
}

@media (min-width: 768px) {
    .floating-scroll {
        bottom: 30px;
        right: 24px;
    }
}

.scroll-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

/* breadcrumb banner text responsive */
.room-breadcrumb-banner__title {
    font-size: clamp(1.8rem, 8vw, 3.4rem);
}

/* ========== VIDEO SECTION BREAKPOINTS REFINED ========== */
@media (min-width: 992px) {
    .video-wrapper {
        max-width: 560px;
    }
    .surfing-video {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .video-wrapper {
        max-width: 90%;
        padding: 8px;
    }
    .surfing-video {
        max-height: 240px;
        transform: rotate(270deg) scale(0.98);
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        max-width: 100%;
        padding: 6px;
    }
    .surfing-video {
        max-height: 180px;
    }
    .custom-accordion-btn {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
    }
    .accordion-body {
        padding: 0.7rem 1.2rem 1.2rem;
    }
    .wave-hero__content {
        padding: 2rem 1rem;
    }
}

/* ========== FIX FOR ODD MARGIN ON ROW.COLUMN (improve readability) ========== */
.container.wrapper {
    padding-left: calc(1.5rem - 0px);
    padding-right: calc(1.5rem - 0px);
}

@media (min-width: 1400px) {
    .container.wrapper {
        max-width: 1320px;
    }
}

/* book now button adjust no overflow */
#hero_btn-book-now span {
    white-space: nowrap;
}

@media (max-width: 480px) {
    #hero_btn-book-now {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    #hero_btn-book-now span {
        font-size: 0.8rem;
    }
}

/* smooth-video-wrapper consistency */
.surfing-video {
    background: #0000000c;
    border-radius: 18px;
}

/* final overflow safety */
body {
    overflow-x: hidden;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* or 4 / 3 for taller maps */
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Removes bottom spacing */
}