/* ============================================================
   HOME HERO SLIDER (modern SwiperJS)
   - Ken Burns zoom on active slide
   - Parallax-animated title + CTA
   - Custom fraction pagination + autoplay progress bar
   - Side navigation arrows
   ============================================================ */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-ink-900);
}

.home-hero__swiper {
    position: relative;
    width: 100%;
    height: 92vh;
    overflow: hidden;
}

.home-hero__slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    will-change: transform;
}

/* Ken Burns: only the active slide animates, prevents jitter on others */
.swiper-slide-active .home-hero__image {
    animation: home-hero-kenburns 9s ease-out forwards;
}

@keyframes home-hero-kenburns {
    0% {
        transform: scale(1.08) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.18) translate3d(-1.2%, -1%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .swiper-slide-active .home-hero__image {
        animation: none;
        transform: scale(1.05);
    }
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(10, 20, 30, 0.10) 0%,
            rgba(10, 20, 30, 0.00) 35%,
            rgba(10, 20, 30, 0.55) 80%,
            rgba(10, 20, 30, 0.78) 100%),
        linear-gradient(90deg,
            rgba(10, 20, 30, 0.45) 0%,
            rgba(10, 20, 30, 0.10) 55%,
            rgba(10, 20, 30, 0.00) 100%);
}

.home-hero__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding: var(--space-12, 3em) 0 var(--space-20, 5em);
    pointer-events: none;
}

.home-hero__inner {
    width: 100%;
    max-width: min(720px, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6, 1.5em);
}

.home-hero__title {
    margin: 0;
    color: var(--color-neutral-0);
    font-weight: var(--font-regular);
    font-size: var(--text-4xl);
    line-height: 1.05;
    letter-spacing: 0.005em;
}

.home-hero__cta {
    pointer-events: auto;
}

/* ----- Navigation arrows ----- */
.home-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-hero__nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-hero__nav:hover,
.home-hero__nav:focus-visible {
    background: var(--primary-solid);
    border-color: var(--primary-solid);
    color: #ffffff;
    outline: none;
}

.home-hero__nav:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-alpha-40, rgba(42, 169, 224, 0.4));
}

.home-hero__nav--prev {
    left: clamp(0.75rem, 2vw, 1.75rem);
}

.home-hero__nav--next {
    right: clamp(0.75rem, 2vw, 1.75rem);
}

.home-hero__nav.swiper-button-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* ----- Footer (pagination + progress) ----- */
.home-hero__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1rem, 2.4vw, 1.75rem);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.25rem;
    pointer-events: none;
}

.home-hero__pagination {
    pointer-events: auto;
    color: #ffffff;
    font-family: var(--font-sora, sans-serif);
    font-size: 0.875rem;
    font-weight: var(--font-medium, 500);
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    min-width: 4ch;
    text-align: center;
}

.home-hero__pagination .swiper-pagination-current {
    color: var(--primary-solid);
    font-size: 1.125rem;
    font-weight: var(--font-semibold, 600);
}

.home-hero__progress {
    position: relative;
    flex: 0 1 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.home-hero__progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary-solid);
    border-radius: inherit;
    transform-origin: left center;
}

/* When autoplay is running, JS sets a CSS variable for the duration */
.home-hero__swiper.is-autoplay .home-hero__progress span {
    animation: home-hero-progress var(--home-hero-autoplay, 6s) linear forwards;
}

@keyframes home-hero-progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* ----- Per-slide animated reveal ----- */
.home-hero__slide .home-hero__title,
.home-hero__slide .home-hero__cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-hero__slide .home-hero__cta {
    transition-delay: 0.15s;
}

.swiper-slide-active.home-hero__slide .home-hero__title,
.swiper-slide-active.home-hero__slide .home-hero__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BOOKING WIDGET — own section beneath the hero
   ============================================================ */
.booking-widget-section {
    position: relative;
    z-index: 1;
    background-color: var(--color-neutral-0);
}

.booking-widget-section__inner {
    display: flex;
    justify-content: center;
}



.booking-widget-section__widget {
    width: 100%;
}

.Configure-quickBook-Widget .MbsSearchWidget.dayUseSearch {
    background-color: transparent !important;
}

/* High-contrast mode tweaks */
body.high-contrast .home-hero__nav {
    background: #000000;
    border-color: #ffff00;
    color: #ffff00;
}

body.high-contrast .booking-widget-section__wrapper {
    background: #000000;
    border-color: #ffff00;
    box-shadow: 0 0 0 1px #ffff00;
}

/* About us section css starts  */
.home-about {
    position: relative;
    padding: var(--space-16, 4em) var(--space-4, 1em);
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-sky-50);
}

/* Soft gradient blob background */
.about-cta-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-cta-blobs .cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.cta-blob-1 {
    width: min(60vw, 520px);
    height: min(60vw, 520px);
    right: -15%;
    top: -20%;
    background: radial-gradient(circle, rgba(18, 33, 47, 0.4) 0%, transparent 70%);
    background-color: rgba(94, 129, 172, 0.5);
    background: radial-gradient(circle, rgba(18, 33, 47, 0.35) 0%, transparent 70%);
    background-color: var(--color-warm-500) !important;
}

.cta-blob-2 {
    width: min(50vw, 400px);
    height: min(50vw, 400px);
    left: -10%;
    bottom: -15%;
    background: radial-gradient(circle, rgba(18, 33, 47, 0.35) 0%, transparent 70%);
    background-color: rgba(61, 90, 128, 0.8);
    background: radial-gradient(circle, rgba(18, 33, 47, 0.35) 0%, transparent 70%);
    background-color: var(--color-neutral-400) !important;
}

.cta-blob-3 {
    width: min(50vw, 280px);
    height: min(50vw, 280px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(229, 99, 99, 0.12) 0%, transparent 70%);
    background-color: rgba(229, 99, 99, 0.3);
}

/* Floating glow shapes */
.about-glow-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.about-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
}

.about-glow-1 {
    width: 120px;
    height: 120px;
    left: 8%;
    top: 25%;
    background: rgba(229, 99, 99, 0.25);
}

.about-glow-2 {
    width: 80px;
    height: 80px;
    right: 12%;
    top: 30%;
    background: rgba(77, 144, 142, 0.3);
}

.about-glow-3 {
    width: 100px;
    height: 100px;
    left: 15%;
    bottom: 20%;
    background: rgba(94, 129, 172, 0.25);
}

.about-glow-4 {
    width: 60px;
    height: 60px;
    right: 20%;
    bottom: 30%;
    background: rgba(229, 99, 99, 0.2);
}

.home-about-title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-cormorant);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    letter-spacing: 0.01em;
}

.home-about-text {
    color: var(--color-neutral-900);
}

/* About us section css ends  */

/* ============================================================
   OUR ROOMS — repeating asymmetric grid (max 6 items)
   Layout (desktop, 2 cols). Every 3 cards = 1 block:
     Block 1 (rows 1–2): card1 TALL (col1) | card2 (col2 row1)
                                           | card3 (col2 row2)
     Block 2 (rows 3–4): card4 TALL (col1) | card5 (col2 row3)
                                           | card6 (col2 row4)
   ============================================================ */
.our-rooms.section-pad {
    background: var(--primary-contrast, #ebf6fc);
    padding: var(--space-20) 0;
}

.our-rooms__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}

.our-rooms .title-main {
    margin: 0;
    color: var(--color-ink-900);
    font-family: var(--font-cormorant);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: var(--font-regular);
    line-height: 1.05;
}

.our-rooms__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(180px, 24vw, 260px);
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
}

/* Card base */
.our-rooms__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: var(--color-neutral-200, #e8e1d9);
    text-decoration: none;
    color: #ffffff;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.45s ease;
}

.our-rooms__card:hover,
.our-rooms__card:focus-visible {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 40px -16px rgba(10, 20, 30, 0.35);
    transform: translateY(-2px);
}

.our-rooms__card:focus-visible {
    outline: 3px solid var(--a11y-focus-ring, var(--primary-solid));
    outline-offset: 3px;
}

/* Tall cards: every 3rd starting from card 1 (1, 4, 7, …) sit in column 1
   and span 2 rows. The 2 wide cards that follow flow into column 2. */
.our-rooms__card--1,
.our-rooms__card--4 {
    grid-column: 1;
    grid-row: span 2;
}

/* Media */
.our-rooms__card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.our-rooms__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.our-rooms__card:hover .our-rooms__card-img,
.our-rooms__card:focus-visible .our-rooms__card-img {
    transform: scale(1.08);
}

/* "No image" placeholder — uses theme primary as the gradient base */
.our-rooms__card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(120% 120% at 100% 50%,
            color-mix(in srgb, var(--primary-dark, #156f97) 75%, #6b1f8a 25%) 0%,
            color-mix(in srgb, var(--primary-darker, #0e4f6c) 80%, #2a0f3a 20%) 100%),
        var(--primary-darker, #0e4f6c);
    font-family: var(--font-sora);
    font-weight: var(--font-semibold, 600);
    font-size: 0.9375rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.our-rooms__card-placeholder svg {
    width: 3rem;
    height: 3rem;
    stroke: rgba(255, 255, 255, 0.92);
}

/* Bottom gradient overlay for legibility */
.our-rooms__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(10, 20, 30, 0.00) 35%,
            rgba(10, 20, 30, 0.45) 75%,
            rgba(10, 20, 30, 0.78) 100%);
    transition: background 0.45s ease;
    pointer-events: none;
}

.our-rooms__card:hover .our-rooms__card-overlay,
.our-rooms__card:focus-visible .our-rooms__card-overlay {
    background: linear-gradient(180deg,
            rgba(10, 20, 30, 0.05) 0%,
            rgba(10, 20, 30, 0.55) 60%,
            rgba(10, 20, 30, 0.85) 100%);
}

/* Card body (title) */
.our-rooms__card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.75rem);
}

.our-rooms__card-title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-sora);
    font-weight: var(--font-semibold, 600);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Footer / CTA — uses existing .btn-arrow class, no new button styles */
.our-rooms__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .our-rooms__grid {
        grid-auto-rows: clamp(160px, 28vw, 220px);
    }

    .our-rooms__card-title {
        letter-spacing: 0.08em;
    }
}

@media (max-width: 767px) {
    .our-rooms__head {
        flex-wrap: wrap;
    }

    /* Collapse to single column; cancel all spans */
    .our-rooms__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: clamp(180px, 52vw, 260px);
    }

    .our-rooms__card--1,
    .our-rooms__card--4 {
        grid-column: 1;
        grid-row: auto;
    }

    .our-rooms__footer {
        justify-content: stretch;
    }

    .our-rooms__footer .btn-arrow {
        width: 100%;
        justify-content: flex-start;
    }
}