/* ============================================================
   Custom CSS Overrides
   ============================================================ */

/* ── Hero Banner: 100vh when screen < 1000px, else 1000px ── */
.hero-carousel {
    position: relative;
}
.hero-carousel .image-wrapper {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    /* No background needed — .hero-bg-zoom handles it */
    background-image: none !important;
}
@media (min-height: 1000px) {
    .hero-carousel .image-wrapper {
        height: 1000px;
        min-height: 1000px;
    }
}

/* ── Hero background zoom element ── */
.hero-bg-fill,
.hero-bg-zoom {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-bg-fill {
    inset: 0;
    z-index: 0;
    background-size: cover;
    opacity: 1;
    filter: blur(40px) brightness(.6) saturate(1.1);
    transform: scale(1.15);
}
.hero-bg-zoom {
    inset: 0;
    background-size: 100% auto !important;
    background-position: center bottom !important;
    z-index: 0;
    will-change: transform;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}
/* When a slide becomes active, smoothly zoom to normal — no flicker */
.hero-carousel .carousel-item.active .hero-bg-zoom {
    transform: scale(1.00);
}

/* Keep overlay and content above the bg-zoom div */
.hero-carousel .image-wrapper::before { z-index: 1; }
.hero-carousel .bg-content { position: relative; z-index: 2; }

/* ── Booking form: float 200px above the bottom of the hero ── */
section#checkRooms.check-room {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item,
    .hero-carousel .image-wrapper {
        height: 405px !important;
        min-height: 405px !important;
    }
    .hero-bg-fill {
        opacity: 1;
        filter: blur(25px) brightness(.6) saturate(1.1);
        transform: scale(1.15);
    }
    .hero-bg-zoom,
    .hero-carousel .carousel-item.active .hero-bg-zoom {
        inset: 0;
        background-size: auto 100% !important;
        background-position: center center !important;
        transform: none;
    }
    section#checkRooms.check-room {
        position: relative;
        background: #111;
    }
    .hero-carousel .carousel-caption {
        padding-top: 2rem;
        white-space: normal !important;
    }
    .hero-carousel .carousel-caption .display-4 {
        width: 100%;
        font-size: clamp(1.5rem, 7vw, 1.85rem);
        line-height: 1.1;
        white-space: normal;
    }
    .hero-carousel .carousel-caption span.ff-sub {
        display: block !important;
        width: 78vw !important;
        max-width: 300px !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        font-size: .9rem;
        line-height: 1.35;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}

/* ── Overlay: 50% dark translucent for ALL bg-image sections ── */
.bg-overlay::before {
    opacity: 0.50 !important;
}
.bg-overlay-300::before { opacity: 0.50 !important; }
.bg-overlay-400::before { opacity: 0.50 !important; }
.bg-overlay-500::before { opacity: 0.50 !important; }
.bg-overlay-700::before { opacity: 0.50 !important; }

/* ── Sub-banner on inner pages: 400px, vertically & horizontally centered ── */
.page-sub-banner {
    height: 400px !important;
    min-height: 400px !important;
    background-size: cover !important;
    background-position: center 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    will-change: background-position;
}
/* Override theme: bg-content fills 100% height, which kills flex centering */
.page-sub-banner .bg-content {
    height: auto !important;
    width: 100%;
    text-align: center;
}
@media (max-width: 991.98px) {
    .page-sub-banner { height: 300px !important; min-height: 300px !important; }
}
@media (max-width: 575.98px) {
    .page-sub-banner { height: 220px !important; min-height: 220px !important; }
}

/* ── Discover section: cover ── */
#filler-quote {
    background-size: cover !important;
    background-position: center 50% !important;
    will-change: background-position;
}

/* ── Rooms slider: equal height, cover ── */
.room-slider-1 .card-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Room card hover-reveal panel sits on a dark image overlay — the outline
   "Details" button needs light styling here or its primary-colored text
   and border become unreadable against the dark overlay. */
.card-overlay-slide .card-img-overlay .btn-outline-primary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .65) !important;
}
.card-overlay-slide .card-img-overlay .btn-outline-primary:hover {
    background-color: #fff !important;
    color: var(--bs-primary) !important;
    border-color: #fff !important;
}

/* Site-wide warm background palette from the approved design. */
:root {
    --bs-body-bg: #fffef2;
    --bs-body-bg-rgb: 255, 254, 242;
    --bs-secondary-bg: #fffef2;
    --bs-secondary-bg-rgb: 255, 254, 242;
    --bs-tertiary-bg: #fffef2;
    --bs-tertiary-bg-rgb: 255, 254, 242;
}
body,
main {
    background-color: #fffef2;
}
.home-about-section,
.home-about-section .bg-body {
    background-color: #fffef2 !important;
}
.home-about-section .home-about-heading {
    color: #1a4314 !important;
}

/* Homepage section colors from the approved layout. */
#location,
#location .bg-body,
#home-amenities {
    background-color: #f9f8e6 !important;
}
#unique-selling-proposition {
    background-color: #fffef2 !important;
}

/* Site-wide alternating section background (#FFFEF2 / #f9f8e6) — scoped per section id
   so it doesn't affect every other use of the shared Bootstrap subtle-bg utility classes. */
#ourMission,
#ourCoreValues,
#inclusions,
#facilitiesAmenities,
#dayPassExperience,
#islandHopping,
#sec-villas,
#sec-fiesta-pavilion,
#sec-beach-club,
#generalPolicies {
    background-color: #f9f8e6 !important;
}

/* Homepage amenities and full-view USP carousel. */
.home-amenity-card {
    background: rgba(255, 254, 242, .7);
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
}
.home-amenity-icon {
    flex: 0 0 auto;
}
.usp-carousel {
    background: #fffef2;
}
.usp-carousel .carousel-inner {
    aspect-ratio: 4 / 3;
}
.usp-carousel .carousel-item {
    height: 100%;
    text-align: center;
}
.usp-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

/* Plain (no background) prev/next arrows — shared by the USP slider and the
   Services page section sliders; same size/style as the room-gallery arrows
   (#roomCarousel on single room pages), which use the unstyled Bootstrap
   default (3rem icon, no background) — kept explicit here as a safeguard. */
.usp-carousel .carousel-control-prev,
.usp-carousel .carousel-control-next,
.services-carousel .carousel-control-prev,
.services-carousel .carousel-control-next {
    background-color: transparent !important;
}
.usp-carousel .carousel-control-prev-icon,
.usp-carousel .carousel-control-next-icon,
.services-carousel .carousel-control-prev-icon,
.services-carousel .carousel-control-next-icon {
    background-color: transparent;
}

/* Complete amenity list on room detail pages. */
.room-amenities-complete ul {
    border-radius: .75rem;
    padding: 1.5rem;
}
.room-amenities-complete li {
    display: flex;
    align-items: center;
}

/* ── Primary color: #0876B5 ── */
:root {
    --bs-primary: #0876B5;
    --bs-primary-rgb: 8, 118, 181;
    --bs-link-color: #0876B5;
    --bs-link-color-rgb: 8, 118, 181;
    --bs-link-hover-color: #065a8a;
}
.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    --bs-btn-bg: #0876B5;
    --bs-btn-border-color: #0876B5;
    --bs-btn-hover-bg: #065a8a;
    --bs-btn-hover-border-color: #065a8a;
    --bs-btn-active-bg: #054f7a;
    --bs-btn-active-border-color: #054f7a;
    background-color: #0876B5 !important;
    border-color: #0876B5 !important;
}
.btn-primary:hover { background-color: #065a8a !important; border-color: #065a8a !important; }
.btn-outline-primary {
    --bs-btn-color: #0876B5;
    --bs-btn-border-color: #0876B5;
    --bs-btn-hover-bg: #0876B5;
    --bs-btn-hover-border-color: #0876B5;
    color: #0876B5 !important;
    border-color: #0876B5 !important;
}
.btn-outline-primary:hover { background-color: #0876B5 !important; color: #fff !important; }
.text-primary { color: #0876B5 !important; }
.bg-primary { background-color: #0876B5 !important; }
a:not(.btn):not(.nav-link):not(.card-link):not(.navbar-brand) { color: #0876B5; }
/* Splide arrow background */
.splide__arrow { background: #0876B5 !important; }
.splide__arrow svg { fill: #fff !important; }

/* ── Services cards: 2×2 grid, image+text side by side ── */
#extra-services .services-container {
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
}
#extra-services .svc-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
#extra-services .svc-card .row { flex: 1; min-height: 220px; }
#extra-services .svc-img-col {
    overflow: hidden;
    min-height: 200px;
}
#extra-services .svc-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-height: 200px;
}
#extra-services .svc-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.75rem;
}
#extra-services .svc-placeholder {
    background: var(--bs-secondary-bg);
    border: 2px dashed var(--bs-border-color) !important;
    opacity: 0.5;
}
#extra-services .svc-placeholder .svc-img-col {
    background: var(--bs-tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Attractions: compact cards, equal-height images ── */
#attractions .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#attractions figure {
    height: 240px;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
}
#attractions figure img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
}
#attractions .card-body {
    padding: 1rem 1.25rem;
}

/* ── Attraction modal: image left, content right, fits viewport ── */
.modal-attraction .modal-dialog { max-width: 780px; }
.modal-attraction .modal-header { border-bottom: 0; padding-bottom: 0; }
.modal-attraction .modal-body { padding: 0; }
.modal-attraction .modal-img-col {
    min-height: 280px;
    max-height: 380px;
    overflow: hidden;
}
.modal-attraction .modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modal-attraction .modal-text-col {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-attraction .attraction-distance-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Promos Splide carousel: full image, no crop ── */
#promos-section .promo-splide .splide__slide {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}
#promos-section .promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0;
    background: #fffef2;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#promos-section .promo-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* tallest images are 1080×1080 — container matches their height at any card width */
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
}
#promos-section .promo-img-wrap a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
#promos-section .promo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    cursor: zoom-in;
}
#promos-section .promo-card .card-body {
    padding: 1.25rem;
    flex: 1;
}

/* ── Promo popup modal ── */
#promoPopupModal .modal-dialog {
    max-width: 680px;
}
#promoPopupModal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}
#promoPopupModal .popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
#promoPopupModal .popup-close-btn:hover {
    background: rgba(0,0,0,0.9);
}
#promoPopupModal .modal-body {
    padding: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}
#promoPopupModal .popup-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f4f4f4;
}
/* Backdrop 30% */
#promoPopupModal ~ .modal-backdrop,
.modal-backdrop.show { opacity: 0.30 !important; }

/* ── Footer social icons: larger ── */
#footer .follow-us .list-inline-item a svg,
#footer ul.list-inline .list-inline-item a svg {
    width: 28px;
    height: 28px;
}

/* ── Booking sidebar: contact info block — primary bg, white text ── */
.booking-contact-info {
    background: var(--bs-primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.booking-contact-info h5,
.booking-contact-info p,
.booking-contact-info small,
.booking-contact-info span,
.booking-contact-info i {
    color: #fff !important;
}
.booking-contact-info .text-body-secondary { color: rgba(255,255,255,.75) !important; }

/* ── Footer copyright: centered ── */
#footer .footer-copyright {
    text-align: center;
    padding-top: 1rem;
}
#footer .footer-copyright p { margin-bottom: 0; }

/* ── Task 1: Booking form promo code placeholder white ── */
.check-room input::placeholder { color: rgba(255,255,255,0.75) !important; }
.check-room input[placeholder]  { color: rgba(255,255,255,0.75) !important; }

/* ── Task 5: Footer — all text white, links white, hover stays primary ── */
#footer,
#footer p,
#footer span,
#footer li,
#footer small,
#footer h5,
#footer h6,
#footer em,
#footer .text-body-tertiary,
#footer .text-body-secondary,
#footer .text-body-emphasis {
    color: #fff !important;
}
#footer a.nav-link,
#footer a.text-body {
    color: #fff !important;
}
#footer a.text-primary,
#footer .text-primary {
    color: var(--bs-primary) !important;
}

/* Keep all designated link hover states synchronized with the dynamic primary color. */
.link-hover-primary {
    --bs-link-hover-primary: var(--bs-primary);
}
.link-hover-primary:hover,
.link-hover-primary:focus {
    color: var(--bs-primary) !important;
}

/* ── Contact page: icon-only social buttons ── */
.contact-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.contact-social-btn svg { display: block; }

/* ── Meeting page: services "Maybe You Are Interested" carousel ── */
.meeting-svc-wrap { padding: 0 3rem; }
.meeting-svc-card { min-height: 220px; border-color: var(--bs-border-color-translucent) !important; }
.meeting-svc-img-col { overflow: hidden; min-height: 220px; }
.meeting-svc-splide .splide__arrow {
    background: rgba(0,0,0,.12) !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,.15);
    width: 2.5rem;
    height: 2.5rem;
}
.meeting-svc-splide .splide__arrow:hover { background: rgba(0,0,0,.22) !important; }
.meeting-svc-splide .splide__arrow svg { fill: #555 !important; }
.meeting-svc-splide .splide__arrow--prev { left: -3rem; }
.meeting-svc-splide .splide__arrow--next { right: -3rem; }
.meeting-svc-splide .splide__pagination { margin-top: 1.5rem; }
.meeting-svc-splide .splide__pagination__page { background: rgba(0,0,0,.2); }
.meeting-svc-splide .splide__pagination__page.is-active {
    background: var(--bs-primary);
    transform: scale(1.2);
}
@media (max-width: 767px) {
    .meeting-svc-wrap { padding: 0 2.25rem; }
    .meeting-svc-splide .splide__arrow--prev { left: -2.25rem; }
    .meeting-svc-splide .splide__arrow--next { right: -2.25rem; }
}

/* ── Task 6: Body text dark gray on light backgrounds ── */
:root {
    --bs-secondary-color: #494949;
}
.text-body-secondary { color: rgb(17, 17, 17) !important; }
[data-bs-theme="dark"] .text-body-secondary { color: rgba(255,255,255,0.72) !important; }

/* ── Testimonials section — full-width, centered, 1 per slide ── */
/* Shared presentation for ACF WYSIWYG fields. */
.acf-wysiwyg {
    color: inherit;
    font-family: var(--bs-body-font-family);
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.acf-wysiwyg > :first-child { margin-top: 0 !important; }
.acf-wysiwyg > :last-child { margin-bottom: 0 !important; }
.acf-wysiwyg p { margin: 0 0 1rem; }
.acf-wysiwyg h1,
.acf-wysiwyg h2,
.acf-wysiwyg h3,
.acf-wysiwyg h4,
.acf-wysiwyg h5,
.acf-wysiwyg h6 {
    color: inherit;
    font-family: "Cinzel", serif;
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
}
.acf-wysiwyg h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.acf-wysiwyg h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.acf-wysiwyg h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
.acf-wysiwyg h4 { font-size: 1.25rem; }
.acf-wysiwyg h5 { font-size: 1.1rem; }
.acf-wysiwyg h6 { font-size: 1rem; }
.acf-wysiwyg ul,
.acf-wysiwyg ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}
.acf-wysiwyg li + li { margin-top: 0.35rem; }
.acf-wysiwyg a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.acf-wysiwyg blockquote {
    border-left: 3px solid var(--bs-primary);
    font-style: italic;
    margin: 1.25rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
}
.acf-wysiwyg img {
    height: auto;
    max-width: 100%;
}
.acf-wysiwyg table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    width: 100%;
}
.acf-wysiwyg th,
.acf-wysiwyg td {
    border: 1px solid var(--bs-border-color);
    padding: 0.65rem;
    vertical-align: top;
}
.acf-wysiwyg .has-text-align-center { text-align: center; }
.acf-wysiwyg .has-text-align-right { text-align: right; }
.acf-wysiwyg .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.acf-wysiwyg .alignleft { float: left; margin: 0.25rem 1rem 0.75rem 0; }
.acf-wysiwyg .alignright { float: right; margin: 0.25rem 0 0.75rem 1rem; }
.acf-wysiwyg::after { clear: both; content: ""; display: table; }

/* Compact WYSIWYG treatment for contact cards, header, and footer. */
.acf-wysiwyg--compact { line-height: 1.55; }
.acf-wysiwyg--compact p { margin-bottom: 0.35rem; }
.acf-wysiwyg--compact h1,
.acf-wysiwyg--compact h2,
.acf-wysiwyg--compact h3,
.acf-wysiwyg--compact h4,
.acf-wysiwyg--compact h5,
.acf-wysiwyg--compact h6 {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
}
.acf-wysiwyg--compact ul,
.acf-wysiwyg--compact ol { margin-bottom: 0.35rem; }
[data-bs-theme="dark"] .acf-wysiwyg--compact a { color: inherit; }

/* Contact information follows each outer ACF repeater group. */
.contact-info-group + .contact-info-group {
    margin-top: 1.5rem;
}
.contact-info-group__title {
    font-family: "Red Hat Text", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.6rem;
}
.contact-info-group__row {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    line-height: 1.6;
    min-width: 0;
}
.contact-info-group__row + .contact-info-group__row {
    margin-top: 0.4rem;
}
.contact-info-group__icon {
    flex: 0 0 1.1rem;
    line-height: 1.5;
    text-align: center;
}
.contact-info-group__emails .flex-grow-1,
.contact-info-group__phones .flex-grow-1 {
    min-width: 0;
    overflow-wrap: anywhere;
}
.contact-info-group__separator {
    white-space: pre-wrap;
}
#contact .contact-info-group + .contact-info-group {
    margin-top: 1.75rem;
}

#testimonials {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    position: relative;
}
/* Splide root fills the section with generous vertical padding */
#testimonials .testimonial-splide {
    padding: 4rem 0 5rem;
}
/* Track: no overflow clip so slide is full-width */
#testimonials .splide__track {
    overflow: visible;
}
/* Each slide centered with readable max-width */
#testimonials .splide__list {
    display: flex;
    align-items: center;
}
.testimonial-slide-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* Quote text */
.testimonial-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.85;
    color: #fff !important;
    font-weight: 400;
}
/* 5 stars */
.testimonial-stars {
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 4px;
}
/* Customer name */
.testimonial-name {
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Arrows — positioned at the vertical center of the section */
#testimonials .splide__arrow {
    background: transparent !important;
    box-shadow: none !important;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
}
#testimonials .splide__arrow--prev { left: 1rem; }
#testimonials .splide__arrow--next { right: 1rem; }
#testimonials .splide__arrow svg { fill: #fff !important; width: 1.1rem; height: 1.1rem; }
/* Pagination dots */
.testimonial-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    justify-content: center;
}
#testimonials .splide__pagination__page {
    background: rgba(255,255,255,.4);
    width: 10px;
    height: 10px;
}
#testimonials .splide__pagination__page.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* ── Gallery page: Tab 1 nav — active tab background uses the primary color ── */
.gallery-nav-tabs .nav-link.active,
.gallery-nav-tabs .nav-link.active:hover,
.gallery-nav-tabs .nav-link.active:focus {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary) var(--bs-primary) var(--bs-primary);
}

/* ── Links on dark backgrounds (header nav, footer, sidebar offcanvas): active & hover both go white + underlined ── */
[data-bs-theme="dark"] .navbar-nav .nav-link.active,
[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-nav .nav-link:focus,
[data-bs-theme="dark"] a.link-hover-primary.active,
[data-bs-theme="dark"] a.link-hover-primary:hover,
[data-bs-theme="dark"] a.link-hover-primary:focus {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ── Icons on dark backgrounds (footer / sidebar social + contact-info icons): always white, never tinted, never underlined ── */
[data-bs-theme="dark"] .list-inline-item a.link-hover-primary,
[data-bs-theme="dark"] .list-inline-item a.link-hover-primary:hover,
[data-bs-theme="dark"] .list-inline-item a.link-hover-primary:focus,
[data-bs-theme="dark"] .contact-info-group__icon,
[data-bs-theme="dark"] .contact-info-group__icon.text-primary,
#footer .contact-info-group__icon,
#footer .contact-info-group__icon.text-primary,
#ocRightInfo .contact-info-group__icon,
#ocRightInfo .contact-info-group__icon.text-primary {
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Footer 1st column (brand/about): centered content ── */
#footer .col-xl-3.col-lg-12 .mb-8 {
    text-align: center;
}

/* ── Mobile menu burger icon: plain white, no hover/focus background or underline ── */
.navbar button[data-bs-toggle="offcanvas"][aria-controls="offcanvasNavbar"] {
    background: transparent !important;
    text-decoration: none !important;
}
.navbar button[data-bs-toggle="offcanvas"][aria-controls="offcanvasNavbar"]:hover,
.navbar button[data-bs-toggle="offcanvas"][aria-controls="offcanvasNavbar"]:focus {
    color: #fff !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* Mobile primary and information sidebars. */
.sidebar-logo {
    height: auto;
    max-height: 100px;
    max-width: 100%;
}
/* Right info offcanvas (#ocRightInfo): centered, icon-close-to-details style — applies at every viewport width, desktop included. */
#ocRightInfo .mobile-offcanvas-header {
    align-items: center;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 92px;
    padding: 1rem 1.25rem;
}
#ocRightInfo .mobile-sidebar-back {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    justify-self: start;
    padding: .5rem;
}
#ocRightInfo .mobile-sidebar-logo-link {
    align-items: center;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    justify-self: center;
    min-width: 0;
}
#ocRightInfo .sidebar-logo {
    height: auto;
    max-height: 68px;
    max-width: 112px;
    width: auto;
}
#ocRightInfo .mobile-offcanvas-header .btn-close {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
}
#ocRightInfo .oc-info-body {
    text-align: center;
}
#ocRightInfo .oc-info-body .contact-info-group__row {
    justify-content: center;
    text-align: center;
}
#ocRightInfo .oc-info-body .contact-info-group__row > .flex-grow-1 {
    flex: 0 1 auto !important;
}
#ocRightInfo .oc-info-body .contact-info-group__emails,
#ocRightInfo .oc-info-body .contact-info-group__phones {
    justify-content: center;
}
#ocRightInfo .oc-info-body .contact-info-group__emails .flex-grow-1,
#ocRightInfo .oc-info-body .contact-info-group__phones .flex-grow-1 {
    text-align: center;
    max-width: 240px;
}
#ocRightInfo .oc-info-body .contact-info-group__address {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
@media (max-width: 1199.98px) {
    #offcanvasNavbar .mobile-offcanvas-header {
        align-items: center;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 92px;
        padding: 1rem 1.25rem;
    }
    #offcanvasNavbar .mobile-sidebar-burger {
        align-items: center;
        background: transparent;
        border: 0;
        color: #fff;
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        justify-self: start;
        padding: .5rem;
    }
    #offcanvasNavbar .mobile-sidebar-logo-link {
        align-items: center;
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        justify-self: center;
        min-width: 0;
    }
    #offcanvasNavbar .sidebar-logo {
        height: auto;
        max-height: 68px;
        max-width: 112px;
        width: auto;
    }
    #offcanvasNavbar .mobile-offcanvas-header .btn-close {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin: 0;
    }
    #offcanvasNavbar .mobile-primary-menu-body {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        padding-top: 2rem;
        text-align: center;
    }
    #offcanvasNavbar .navbar-nav {
        align-items: center;
        margin-bottom: 0 !important;
        margin-left: auto;
        margin-right: auto !important;
        text-align: center;
        width: 100%;
    }
    #offcanvasNavbar .navbar-nav .nav-link {
        justify-content: center;
        text-align: center;
    }
    #offcanvasNavbar .dropdown-menu,
    #offcanvasNavbar .dropdown-item {
        text-align: center;
    }
    #offcanvasNavbar .mobile-sidebar-book-now {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        margin-top: 30px;
        min-width: 180px;
    }
    #ocRightInfo .oc-quick-links {
        display: none;
    }
}

/* Mobile booking bar and footer alignment. */
@media (max-width: 767.98px) {
    #checkRooms .control-icon > .check-date {
        padding-left: 3rem;
        padding-right: 3rem;
        text-align: center;
    }
    #footer,
    #footer .row > [class*="col-"],
    #footer .contact-info-group,
    #footer .contact-info-group__row {
        text-align: center;
    }
    #footer .contact-info-group__row {
        justify-content: center;
    }
    #footer .contact-info-group__emails,
    #footer .contact-info-group__phones {
        justify-content: center;
    }
    #footer .contact-info-group__row > .flex-grow-1 {
        flex: 0 1 auto !important;
    }
    #footer .contact-info-group__emails .flex-grow-1,
    #footer .contact-info-group__phones .flex-grow-1 {
        text-align: center;
        max-width: 240px;
    }
    #footer .contact-info-group__address {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
    }
    #footer .footer-quick-links {
        display: none;
    }
    #footer .list-inline,
    #footer .nav {
        justify-content: center;
        padding-left: 0;
    }
    #footer .btn.w-100 {
        display: inline-flex;
        justify-content: center;
        max-width: 240px;
    }
}

/* Use the ACF-driven primary color for headings and section subheadings on light surfaces. */
body {
    --tp-heading-color: var(--bs-primary);
}
body :is(h1, h2, h3, h4, h5, h6):not(.text-white):not(.text-light),
body .ff-sub.text-uppercase.text-body-secondary:not(.text-white):not(.text-light) {
    color: var(--tp-heading-color) !important;
}

/* Preserve readable headings on dark, image-overlay, and primary surfaces. */
body :is(
    [data-bs-theme="dark"],
    .bg-dark,
    .text-bg-dark,
    .bg-primary,
    .text-bg-primary,
    .bg-overlay,
    .hero-carousel,
    .hero-video,
    .page-sub-banner,
    .booking-contact-info
) {
    --tp-heading-color: #fff;
}

/* Light components nested inside dark sections switch back to primary. */
body :is(
    .bg-body,
    .bg-white,
    .bg-light,
    .bg-body-secondary,
    .bg-body-tertiary,
    .bg-light-subtle,
    .bg-primary-subtle,
    .text-bg-light,
    .card:not(.bg-dark):not(.bg-primary):not(.text-bg-dark):not(.text-bg-primary),
    .modal-content,
    .dropdown-menu
) {
    --tp-heading-color: var(--bs-primary);
}
