/* Global Variables */
:root {
    --brand-orange: #e87a1e;
    --brand-orange-hover: #d16b15;
    --brand-dark: #3a3a3a;
    --bg-offwhite: #FAF9F6;
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
.serif-text, .serif-title {
    font-family: var(--font-serif);
}
.text-brand-orange {
    color: var(--brand-orange) !important;
}
.bg-offwhite {
    background-color: var(--bg-offwhite);
}

/* Overlines */
.hero-overline, .section-overline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hero-overline { color: white; }
.line { width: 35px; height: 1px; background-color: white; display: inline-block; }
.line-orange { width: 35px; height: 1px; background-color: var(--brand-orange); display: inline-block; }

/* Buttons */
.btn-brand-primary {
    background-color: var(--brand-orange);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-primary:hover {
    background-color: var(--brand-orange-hover);
    color: white;
}
.btn-outline-white {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
.btn-outline-brand {
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    font-size: 0.7rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-outline-brand:hover {
    background-color: var(--brand-orange);
    color: white;
}
a.btn-link {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Navbar - Glassmorphism Effect */
.navbar {
    /* Highly transparent dark background to let the image show through */
    background: rgba(20, 20, 20, 0.15); 
    
    /* The core blur effect */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    /* Subtle highlight on the bottom edge to mimic glass */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    
    transition: all 0.4s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Scrolled state for better readability when moving down the page */
.navbar.scrolled {
    /* Slightly darker and more opaque when scrolling over white sections */
    background: rgba(20, 20, 20, 0.75); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    
    /* Adds a subtle drop shadow to separate the glass from the content below */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
}
.logo-img {
    height: 40px;
    transition: height 0.3s ease;
}
.navbar.scrolled .logo-img { height: 35px; }
.nav-link {
    color: white !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 0.5rem 1rem !important;
}
.small-icon { font-size: 0.6rem; margin-top: -2px; }

/* Language Selector Box */
.lang-selector > a {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem !important;
    border-radius: 2px;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 0;
    padding: 10px 0;
}
.dropdown-item {
    font-size: 0.8rem;
    padding: 8px 20px;
    color: var(--brand-dark);
}
.dropdown-item:hover {
    background-color: var(--bg-offwhite);
    color: var(--brand-orange);
}

/* Hero Carousel */
#heroCarousel { height: 100dvh; min-height: 600px; }
.carousel-item { background-size: cover; background-position: center; }
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6) 100%);
}
.hero-title {
    font-family: var(--font-serif);
    color: var(--brand-orange);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0;
}
.hero-subtitle {
    font-family: var(--font-serif);
    color: white;
    font-size: 2rem;
    font-style: italic;
    line-height: 1.1;
    font-weight: 400;
}
@media (max-width: 991px) {
    .hero-title, .hero-subtitle { font-size: 3rem; }
}

/* Slider Controls */
.slider-controls-container {
    position: absolute;
    bottom: 50px;
    right: 5%;
    z-index: 10;
}
.slider-controls { color: white; }
.progress-track {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    position: relative;
}
.progress-fill {
    width: 33.33%;
    height: 100%;
    background: white;
    transition: width 0.6s ease; /* Added transition for smooth sliding */
}
.slider-arrow { cursor: pointer; font-size: 1rem; }
.slider-fraction { font-size: 0.85rem; font-weight: 500; letter-spacing: 2px; }

/* Mobile Layout Adaptation */
@media (max-width: 991px) {
    /* Lifts the hero text/buttons block up to prevent button clipping */
    #heroCarousel .row.align-items-end {
        padding-bottom: 6rem !important;
    }
    
    /* Centers the progress bar, arrows, and fraction at the bottom of small screens */
    .slider-controls-container {
        position: absolute;
        bottom: 25px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 10;
    }
}

/* Desktop Layout Position */
@media (min-width: 992px) {
    .slider-controls-container {
        position: absolute;
        bottom: 50px;
        right: 5%;
        z-index: 10;
    }
}

/* Layout Sections */
.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 0;
}
.section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-desc { font-size: 0.95rem; line-height: 1.8; }

/* Split Pane (Golf/Stay) */
.split-pane {
    background-size: cover;
    background-position: center;
    min-height: 600px;
    transition: transform 0.5s ease;
}
.split-title { font-family: var(--font-serif); font-size: 3rem; }
.split-desc { font-size: 0.9rem; line-height: 1.6; max-width: 400px; }

/* Promo Cards */
.promo-card { transition: box-shadow 0.3s ease; }
.promo-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.promo-card .card-title { font-size: 1.25rem; color: #222; }
.card-features { list-style: none; border-left: 1px solid #ddd; }
.card-features li {
    position: relative;
    margin-bottom: 6px;
    font-size: 0.75rem;
}
.card-features li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: var(--brand-orange);
}

/* Experience Cards */
.experience-card {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.experience-card .text-brand-orange {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9), 0px 0px 12px rgba(0, 0, 0, 0.7) !important;
    font-weight: 700 !important; /* Makes the thin letters thicker and bolder */
    letter-spacing: 3px !important; /* Gives the letters more breathing room */
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* 35% black tint. Change to 0.5 for even darker */
    z-index: 0;
    pointer-events: none;
}

/* Forces the text content to sit above the new dark tint */
.experience-card > div {
    position: relative;
    z-index: 1;
}

/* Footer Links */
.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--brand-orange); }
.social-icons a:hover i { color: var(--brand-orange); }
.footer-lang a:hover { color: var(--brand-orange) !important; }

.getting-here .info-box {
    border: 1px solid var(--brand-orange) !important;
    background-color: rgba(232, 122, 30, 0.2) !important; /* 20% opacity brand orange */
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    /* Optional: adds a slight blur to the ocean background behind the box for a premium feel */
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
}

.getting-here .info-box .text-brand-orange {
    font-size: 1.2rem; /* Makes the orange dot slightly larger and clearer */
    line-height: 0;
}

/* =========================================
SPLIT PANE SPACING & CORNERS
========================================= */

/* Adds a subtle corner radius now that the panels don't touch the screen edge */
.split-pane {
    border-radius: 6px;
    overflow: hidden;
}

/* =========================================
NEW DINING PAGE STYLES
========================================= */

/* Shorter Hero Banner for Subpages */
.page-hero {
    height: 55vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

/* Custom Tabs Styling */
.custom-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.custom-tabs .nav-link {
    color: #3a3a3a !important; /* Dark text for visibility */
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 1rem 1rem 1rem !important;
    margin-bottom: -1px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.custom-tabs .nav-link:hover {
    color: var(--brand-orange) !important;
}

.custom-tabs .nav-link.active {
    color: var(--brand-orange) !important;
    border-bottom: 2px solid var(--brand-orange) !important;
}

/* Tab Content Layout Styles */
.resto-features li {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Mini Image Slider in Tab Content */
.mini-slider {
    height: 320px;
    overflow: hidden;
}
.mini-slider .carousel-inner {
    height: 100%;
}
/* Fade Animation for dynamic text swapping */
.fade-in {
    animation: fadeIn 0.7s ease-in-out;
}
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Ensure the text container doesn't jump in height when swapping content */
.min-h-350 {
    min-height: 350px;
}

.dynamic-resto-slider .carousel-item {
    /* Bootstrap default is 0.6s. Increased to 1.2s for a smoother, slower pan */
    transition: transform 0.7s ease-in-out !important; 
}

/* =========================================
HOTEL PAGE STYLES
========================================= */

/* Warm beige background for the lower amenities section */
.bg-warm-beige {
    background-color: #f3efe8; /* Replicates the slightly darker, warm tone in the mockups */
}

/* Modifier to make the hotel sliders slightly taller than the dining ones */
.hotel-slider {
    height: 380px; 
}

/* =========================================
GOLF PAGE STYLES
========================================= */

/* Underline for the Pricing Grid Headers */
.pricing-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Large Serif Numbers for the Stats Block */
.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--brand-dark);
    line-height: 1;
}

/* =========================================
VENUE PAGE STYLES
========================================= */

/* Constrain heights for the zig-zag meeting room images so they remain consistent */
.meeting-row {
    padding-bottom: 2rem;
}

.meeting-img {
    height: 350px;
    border-radius: 2px;
}

/* =========================================
EXPERIENCES PAGE STYLES
========================================= */

/* Spacing between the zig-zag rows */
.experience-row {
    padding-bottom: 2rem;
}

/* Constrain the heights for all images and sliders on the Experience tabs */
.experience-slider {
    height: 400px;
    border-radius: 2px;
}

/* Ensure slider arrows are always clickable and on top */
.slider-arrow {
    position: relative;
    z-index: 20;
    padding: 10px; /* Gives a larger hit-area for the mouse/finger */
    cursor: pointer;
}

/* =========================================
ABOUT US & CONTACT PAGE STYLES
========================================= */

/* Spacing between the zig-zag rows on the About Us page */
.about-row {
    padding-bottom: 2rem;
}

/* Map Wrapper & Iframe Styling */
.map-wrapper {
    border-radius: 4px;
    overflow: hidden;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Contact List specific tweaks */
.contact-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* =========================================
FOOD & BEVERAGE GALLERY SLIDER
========================================= */

.gallery-slider-container {
    position: relative;
    padding: 0 1rem;
}

/* The scrolling track */
.gallery-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
    -ms-overflow-style: none;  /* Hides scrollbar in IE/Edge */
    padding-bottom: 1rem;
    
    /* FIX: Reverted to 100% so the card math works perfectly */
    width: 100%; 
}

.gallery-track::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome/Safari */
}

/* Base style (Desktop: 5 Items) */
.gallery-item {
    flex: 0 0 calc((100% - (1.5rem * 4)) / 5); /* 5 items minus the gaps */
    aspect-ratio: 2 / 3; /* Forces portrait/poster size */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet: 4 items */
@media (max-width: 991px) {
    .gallery-item {
        flex: 0 0 calc((100% - (1.5rem * 3)) / 3);
    }
}

/* Mobile: 1 items */
@media (max-width: 575px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

/* Large Navigation Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--brand-dark);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: var(--brand-orange);
    color: white;
}

/* Pull arrows slightly outside the container for elegance */
.gallery-arrow-left {
    left: -15px;
}
.gallery-arrow-right {
    right: -15px;
}

.gallery-item:first-child {
    margin-left: auto;
}

.gallery-item:last-child {
    margin-right: auto;
}

/* =========================================
SCROLL TO TOP BUTTON
========================================= */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Class added via JavaScript when scrolling */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--brand-orange-hover);
    color: white;
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Slightly smaller for mobile screens */
@media (max-width: 767px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* =========================================
SWING & STAY PROMO TABLE STYLES
========================================= */

/* Fixes column sizes to be perfectly equal */
.promo-table .w-33 {
    width: 33.33%;
}

/* Creates the light greenish/grey alternating rows */
.promo-table tbody tr:nth-child(even) {
    background-color: #f7fbf6;
}

/* Subtle line separator between rows */
.promo-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}
.promo-table tbody tr:last-child {
    border-bottom: none;
}

/* Hover effect so rows highlight when the user points at them */
.promo-table tbody tr:hover {
    background-color: #eef6ec;
}

/* =========================================
PROMO SIDEBAR BADGE (Mobile Responsive)
========================================= */

.promo-sidebar-badge {
    background: linear-gradient(180deg, #bde477 0%, #9cc868 100%);
    min-width: 40px; /* Thinner width for mobile screens */
}

.promo-vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
    white-space: nowrap;
    font-size: 0.85rem; /* Smaller text for mobile screens */
}

.promo-vertical-text-kr {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    white-space: nowrap;
    font-size: 0.85rem; /* Smaller text for mobile screens */
}

/* Restores the larger, spacious sizes for Desktop (lg) screens */
@media (min-width: 992px) {
    .promo-sidebar-badge {
        min-width: 65px;
    }
    .promo-vertical-text {
        font-size: 1.25rem; 
    }
    .promo-vertical-text-kr {
        font-size: 1.25rem; 
    }
}

/* Add a border between weekday/weekend on desktop, but not mobile */
@media (min-width: 576px) {
    .border-start-sm {
        border-left: 1px solid #e0e0e0;
    }
    .w-sm-50 {
        width: 50% !important;
    }
}

/* Responsive tweaks so the table stays readable on smartphones */
@media (max-width: 767px) {
    .promo-table th, .promo-table td {
        font-size: 0.75rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* =========================================
LUXURY TERMS & CONDITIONS LIST
========================================= */

.luxury-list li {
    position: relative;
    padding-left: 32px; /* Leaves room for the icon */
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444; /* Slightly softer than pure black for elegance */
}

/* Positions the FontAwesome icon perfectly next to the first line of text */
.luxury-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 1.1rem;
}

/* =========================================
QR CODE CARDS (TERMS & CONDITIONS)
========================================= */

.qr-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.qr-header {
    background-color: var(--brand-orange);
}

.qr-link {
    display: block;
    cursor: zoom-in;
}

/* =========================================
SWING & STAY BANNER (SEAMLESS)
========================================= */

.promo-banner-seamless {
    width: 100%;
    text-align: center;
    background: transparent;
    box-shadow: none; 
    margin-bottom: 0.5rem; 
}

.seamless-hero-img {
    width: 100%;
    max-width: 850px; 
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply; 
    
    /* NEW: Fades out the harsh cropped edges smoothly */
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}

/* =========================================
ACTIVE & HOVER NAVBAR LINKS
========================================= */

/* Ensure relative positioning so the underline aligns correctly */
.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

/* Change text color to the brand orange for active and hovered links */
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--brand-orange) !important;
}

/* The fancy animated underline */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; /* Sits cleanly just below the text */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-orange);
    transition: width 0.3s ease;
}

/* Expands the underline when active or hovered */
/* The calc() perfectly accounts for your existing 1rem horizontal padding */
.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
    width: calc(100% - 2rem); 
}

/* =========================================
SUBPAGE HERO OVERLAY (Better Readability)
========================================= */

/* Ensure the hero section can hold our absolute overlay */
.page-hero {
    position: relative;
}

/* Creates a dark tint perfectly sized to the banner */
.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* 45% black tint. Increase to 0.6 if you want it even darker! */
    z-index: 0;
    pointer-events: none;
}

/* Forces all the text inside the hero to sit safely on top of the dark tint */
.page-hero > * {
    position: relative;
    z-index: 1;
}

/* =========================================
PARADISE SPLIT LOADING SCREEN (ULTRA-LUXURY)
========================================= */

#loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rich, seamless dark background */
.loader-half {
    position: absolute;
    left: 0; width: 100%; height: 50%;
    background-color: #0c0d0f; /* Deep, sophisticated charcoal */
    /* Buttery smooth easing for the door open effect */
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-top { top: 0; }
.loader-bottom { bottom: 0; }

/* The text container with a slow, breathing fade-in */
#loader-content {
    position: relative;
    z-index: 1000000;
    text-align: center;
    opacity: 0;
    animation: luxuryFadeIn 1.5s ease forwards 0.2s;
}

/* High-end Serif Title with metallic orange gradient */
.loader-brand {
    font-family: "Didot", "Bodoni MT", "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 5px;
    
    /* Elegant gradient applied to the text */
    background: linear-gradient(to right, #e67e22, #f39c12, #e67e22);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
}

/* Clean, modern tracking for the subtitle */
.loader-sub {
    font-family: "Montserrat", "Helvetica Neue", sans-serif;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* --- ANIMATIONS --- */

@keyframes luxuryFadeIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* --- THE TEXT FADE-OUT OVERRIDE --- */
#loader-content.fade-out {
    animation: none !important; /* This breaks the lock preventing the fade! */
    opacity: 0 !important;
    transform: scale(1.05) !important;
    transition: all 0.5s ease !important;
}

/* --- EXIT STATES (Triggered by JS) --- */
/* Doors slide open immediately when .loaded is added to body */
body.loaded .loader-top { 
    transform: translateY(-100%); 
}
body.loaded .loader-bottom { 
    transform: translateY(100%); 
}
/* Completely removes the wrapper so it blocks nothing */
body.loaded #loader-wrapper {
    visibility: hidden;
    opacity: 0;
    transition: all 0s 1.2s;
}

/* =========================================
DISABLE IMAGE DRAGGING & SELECTION
========================================= */
img {
    -webkit-user-drag: none; /* Specifically targets Chrome/Safari drag */
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none; /* Prevents highlighting images like text */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* =========================================
HOVER DROPDOWN (DESKTOP ONLY)
========================================= */
/* 992px is the standard threshold for desktop screens */
@media all and (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        margin-top: 0;
        /* Optional: Adds a very subtle, smooth fade-in effect */
        animation: fadeDropdown 0.3s ease forwards;
    }
}

@keyframes fadeDropdown {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
FIX NAV UNDERLINE CONFLICT
========================================= */
.navbar .nav-link[data-bs-toggle="dropdown"]::after,
.navbar .nav-item.dropdown > .nav-link::after {
    /* 1. Strip away Bootstrap's triangle borders */
    border: none !important;
    
    /* 2. Remove the forced margin that misaligns the line */
    margin: 0 !important;
    
    /* 3. Reset the alignment */
    vertical-align: baseline !important;
}

/* =========================================
1. THE WIDGET FRAME BACKGROUND
========================================= */
/* 1. Destroy the widget's default outer background and borders */
.trustindex-seamless .ti-widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Force the carousel to take up the full width of the container */
.trustindex-seamless .ti-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. Style the individual review cards for a luxury feel */
.trustindex-seamless .ti-review-item {
    transition: border-color 0.3s ease !important;
}

/* 4. Add the Paradise Orange hover interaction */
.trustindex-seamless .ti-review-item:hover {
    border-color: #d96b27 !important;
}

/* 5. Override default yellow stars with Paradise Orange */
.trustindex-seamless .ti-star {
    color: #d96b27 !important;
}

/* =========================================
2. TRUSTINDEX STYLE OVERRIDES (TAMING THE WIDGET)
========================================= */
/* Force the main widget wrapper to lose its rounded edges */
.review-widget-frame .ti-widget,
.review-widget-frame .ti-widget-container {
    border-radius: 0 !important;
}

/* Strip the heavy shadows and bubbly corners from the individual review cards */
.review-widget-frame .ti-review-item {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid #f0f0f0 !important; /* Replaces shadow with a clean luxury border */
    background-color: #faf9f6 !important; /* An off-white to match your theme */
    transition: border-color 0.3s ease !important;
}

/* Add a subtle Paradise Orange interaction when hovering over a review */
.review-widget-frame .ti-review-item:hover {
    border-color: #d96b27 !important;
}

/* Recolor the Trustindex star ratings to match Paradise Orange */
.review-widget-frame .ti-star {
    color: #d96b27 !important;
}

/* =========================================
LUXURY GALLERY PAGE
========================================= */
/* Image Gallery Zoom Effect */
.gallery-wrapper {
    overflow: hidden;
    position: relative;
    background-color: #000; /* Prevents white flashes during load */
}

.gallery-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    width: 100%;
    height: 350px;
    object-fit: cover;
    opacity: 0.95;
}

.gallery-wrapper:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Video Gallery Styling */
.video-card {
    border: 1px solid #eaeaea;
    background-color: #ffffff;
    padding: 15px;
    transition: border-color 0.3s ease;
}

.video-card:hover {
    border-color: #d96b27;
}

.video-card video {
    width: 100%;
    height: auto;
    outline: none;
    object-fit: cover;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background-color: #000000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    outline: none;
}

.video-title {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* =========================================
GUEST SHARED PHOTOS (UGC CAROUSEL)
========================================= */
.ugc-photo-card {
    position: relative;
    overflow: hidden;
    background-color: #000000;
    aspect-ratio: 9 / 16; /* Standard Instagram Reel & TikTok size */
    cursor: pointer; /* Changes the mouse to a pointing hand to indicate it's clickable */
}

.ugc-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0.92;
}

.ugc-photo-card:hover img {
    transform: scale(1.08);
    opacity: 0.75;
}

/* Hover Overlay displaying guest handle */
.ugc-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    /* We removed the opacity: 0 and transform rules here */
    opacity: 1; 
}

.ugc-photo-card:hover .ugc-photo-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Luxury Control Buttons */
.ugc-carousel-btn {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ugc-carousel-btn:hover {
    background-color: #d96b27; /* Paradise Orange */
    border-color: #d96b27;
    color: #ffffff;
}

.ugc-photo-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ugc-photo-card:hover video {
    transform: scale(1.05);
}

/* The little play icon for the top right corner of video cards */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 3.5rem; /* Big, clear play button */
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevents the icon from blocking the click */
}

.is-playing .video-indicator {
    opacity: 0;
}

/* =========================================
NATIVE MOBILE SWIPE CAROUSEL ENGINE
========================================= */
@media (max-width: 767px) {
    .mobile-swipe-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        
        /* Hide scrollbars for a clean app-like look */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
        padding-bottom: 10px; /* Space for the shadow */
    }
    
    .mobile-swipe-row::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .mobile-swipe-row > [class*='col-'] {
        /* Makes the card take up 85% of the screen, revealing a peek of the next image to encourage swiping */
        flex: 0 0 85% !important; 
        max-width: 85% !important;
        scroll-snap-align: center;
    }
}

/* Image Gallery Zoom Effect & Perfect Alignment */
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 4 / 3; /* Forces a perfect uniform rectangle on ALL devices */
    width: 100%;
}

.gallery-wrapper img {
    width: 100%;
    height: 100% !important; /* The !important stops Bootstrap from overriding this */
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.95;
}

.gallery-wrapper:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* =========================================
LUXURY CONTINUOUS SLIDER TRACK
========================================= */
.luxury-scroll-track {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Ensures the JS button clicks glide smoothly */
    
    /* Hide the ugly browser scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;  
    padding-bottom: 15px; 
}

.luxury-scroll-track::-webkit-scrollbar {
    display: none;
}

.luxury-scroll-track > div {
    scroll-snap-align: start; /* Snaps the image perfectly to the left edge */
    flex-shrink: 0; /* Prevents the grid columns from squishing */
}

#be-booking-form {
    width: 100%;
    max-width: 1296px;
    margin: 0 auto;
}

#tl-booking-cart {
    z-index: 1 !important;
}

#block-search,
#block-search * {
    box-sizing: border-box;
}

#block-search {
    max-width: 1296px;
    margin: 0 auto;
    background: #fbf0e7;
    backdrop-filter: blur(15px);
}

#block-search.block-search--main {
    background: rgba(251, 240, 231, 0.3);
    border: 1px solid rgba(251, 240, 231, 0.5);
}

#block-search.block-search--vertical {
    max-width: 362px;
    margin: 0;
    background: rgba(251, 240, 231, 0.3);
    border: 1px solid rgba(251, 240, 231, 0.5);
}

.be-container {
    padding: 0 30px;
}

/* =========================================
FLOATING BOOKING WIDGET (BRIDGE)
========================================= */
.booking-bridge-container {
    position: relative;
    z-index: 50;         
    margin-top: -55px;   
    margin-bottom: 30px; 
}

/* 1. THE WHITE PILL WRAPPER */
.booking-widget-wrapper {
    background-color: #ffffff;
    border-radius: 50px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); 
    
    /* FIX: We use exact padding to center it, completely avoiding Flexbox */
    padding: 5px 40px 25px 40px; 
    
    width: 100%;
    max-width: 1200px;   
    margin: 0 auto;
    
    /* Removed display: flex and align-items: center so Exely can breathe natively */
}

/* 2. EXELY WIDGET OVERRIDES */
.booking-widget-wrapper #block-search,
.booking-widget-wrapper #block-search.block-search--main {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .booking-bridge-container {
        margin-top: -20px; 
    }
    .booking-widget-wrapper {
        border-radius: 15px; 
        /* Resets padding on mobile so it doesn't look lopsided */
        padding: 15px 20px; 
    }
}

/* =========================================
EXELY FLOATING WIDGET (SIZE & POSITION FIX)
========================================= */

/* 1. Base Container Positioning */
.x-tl-booking-widget-container {
    top: auto !important;
    bottom: 20px !important; 
    right: 20px !important; /* Matches your scroll-to-top button */
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    z-index: 998 !important; 
}

/* 3. Force Perfect Circle & Size */
.x-tl-booking-widget {
    background: #d96b27 !important;
    height: 45px !important;        /* Reduced from 50px */
    width: 45px !important;         /* Reduced from 50px */
    min-width: 45px !important;     /* Reduced from 50px */
    border-radius: 50% !important;  
    padding: 0 !important;          
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    box-sizing: border-box !important;
}

/* Hover state */
.x-tl-booking-widget:hover {
    background: #bf5a1f !important;
}

/* 4. Center the Icon */
.x-tl-booking-widget__icon {
    margin: 0 !important;
    transform: scale(0.7) !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5. Hide the Label completely */
.x-tl-booking-widget__label {
    display: none !important; 
}

body:has(#scrollToTopBtn.show) .x-tl-booking-widget-container {
    bottom: 70px !important; 
}

@media (min-width: 768px) {

    body:has(#scrollToTopBtn.show) .x-tl-booking-widget-container {
        bottom: 90px !important; 
    }

    .x-tl-booking-widget-container {
        right: 33px !important; 
        bottom: 150px !important;
    }

    .x-tl-booking-widget {
        height: 45px !important;
        width: 45px !important;
    }
}