:root {
    --bi-gold: #2a5d86;
    --bi-dark: #3d4348;
    --bi-text: #787878;
    --bi-heading: #E31E24;
    --bi-light-bg: #fdfdfd;
    --lvr-red: #E31E24;
}

/* Typography Global Styles */
body {
    font-family: 'Lato', sans-serif;
    color: var(--bi-text);
    line-height: 1.6;
    font-weight: 400; 
    font-size: 15px; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif {
    font-family: 'Playfair Display', serif;
    color: var(--bi-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
}

h2.display-4 { font-size: 2.4rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 1.5rem; }
h2.display-5 { font-size: 1.8rem; font-weight: 500; }

.uppercase-tracking {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 700;
    color: var(--bi-gold);
}

/* Top Bar */
.top-bar {
    background-color: var(--bi-gold);
    color: white;
    padding: 8px 0;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}
.top-bar i { margin-right: 6px; font-size: 11px; }

/* Navbar & Dropdowns */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1050;
}

.navbar-brand .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: visible;
}

.brand-title {
    font-size: 28px;
}

.brand-subtitle {
    font-size: 20px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: capitalize;
    font-weight: 700;
    color: var(--bi-heading) !important;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-toggle::after { display: none !important; }
.nav-link:hover { color: var(--bi-gold) !important; }

@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; 
        opacity: 1;
        visibility: visible;
        animation: fadeIn 0.2s ease-out;
    }
    .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    border: none;
    border-top: 3px solid var(--bi-gold);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    min-width: 180px;
}

.mega-menu-compact {
    min-width: 400px;
    padding: 1.2rem;
}

.dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 15px;
    color: #444;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.dropdown-item i {
    width: 20px;
    color: var(--bi-gold);
    font-size: 12px;
    margin-right: 10px;
    text-align: center;
}
.dropdown-item:hover {
    background-color: #fcfcfc;
    color: var(--bi-gold);
    padding-left: 18px;
}

/* Page Banners */
.page-banner {
    min-height: 520px; /* Further increased size for desktop */
    display: flex;
    align-items: flex-end; /* Align text at bottom */
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding-bottom: 5rem !important;
    margin-bottom: 0;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 5;
    text-align: left; /* Consistently left aligned bottom text */
}

.page-banner h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px !important;
    color: white !important;
}

.page-banner p, .page-banner .uppercase-tracking {
    color: white !important;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Carousel */
.hero-carousel .carousel-item {
    height: 90vh; /* Increased desktop height */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
    background-color: #000;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    color: white;
    z-index: 10;
    padding: 5rem 8%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.carousel-caption-custom h1 {
    color: white;
    font-size: 3.5rem; 
    font-weight: 500;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.carousel-caption-custom p {
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 100%;
    color: #ffffff;
    opacity: 0.95;
}

/* Carousel Nav Arrows */
.carousel-control-prev, .carousel-control-next { width: 5%; opacity: 0.7; z-index: 20; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-image: none !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.6rem;
    color: white;
}
.carousel-control-prev-icon::before { content: "\f053"; }
.carousel-control-next-icon::before { content: "\f054"; }

.slide-counter {
    position: absolute;
    bottom: 30px;
    right: 50px;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    z-index: 15;
    font-weight: 400;
    opacity: 0.8;
}

/* About Section */
.about-images-wrapper { position: relative; padding-bottom: 40px; }
.img-main { width: 85%; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-radius: 2px; }
.img-overlap { 
    width: 58%; 
    position: absolute; 
    right: 0; 
    bottom: -20px; 
    border: 10px solid #fff; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Guest Rooms Grid */
.room-card-featured { 
    background: #fff; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    height: 100%;
    border: 1px solid #f2f2f2;
}
.room-card-mini { position: relative; height: 260px; overflow: hidden; background: #000; margin-bottom: 20px; }
.room-card-mini img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.6s ease; }
.room-card-mini:hover img { transform: scale(1.05); opacity: 1; }
.room-overlay { position: absolute; bottom: 20px; left: 20px; color: white; z-index: 2; }
.room-overlay h4 { color: white; font-size: 18px; margin-bottom: 4px; font-weight: 500; font-family: 'Playfair Display', serif; }

.price-tag { 
    background: var(--bi-gold); 
    color: white; 
    padding: 4px 12px; 
    font-size: 9px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    display: inline-block;
}

.btn-bi-dark { 
    background: #2c2c2c; 
    color: #fff; 
    border: none; 
    padding: 14px 28px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 11px;
    letter-spacing: 0.1em;
    transition: 0.3s;
}
.btn-bi-dark:hover { background: #000; }

/* Facilities Showcase Section (from image_03898b.jpg) */
.facilities-showcase { background-color: #2c2c2c; color: #fff; }
.facilities-grid-item { height: 320px; overflow: hidden; position: relative; }
.facilities-grid-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%); 
    transition: 0.6s ease; 
}
.facilities-grid-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* Footer */
footer { box-sizing: border-box; }
footer h2 { color: #fff; font-size: 32px; font-weight: 500; margin-bottom: 15px; }
.footer-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 30px 0 20px; }

/* Gallery & Utilities */
.gallery-item { position: relative; cursor: pointer; transition: 0.3s; }
.gallery-item img { transition: 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); filter: brightness(0.8); }
.gallery-item::after { 
    content: '\f00e'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: white; 
    font-size: 24px; 
    opacity: 0; 
    transition: 0.3s; 
}
.gallery-item:hover::after { opacity: 1; }

.border-gold { border-color: var(--bi-gold) !important; }

/* Premium Add-ons */
.premium-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}

.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.8s ease;
}
.img-hover-zoom:hover img {
    transform: scale(1.1);
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item-1 { animation-delay: 0.1s; }
.stat-item-2 { animation-delay: 0.2s; }
.stat-item-3 { animation-delay: 0.3s; }
.stat-item-4 { animation-delay: 0.4s; }

.section-title {
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--bi-gold);
}

.bg-soft-light { background-color: #f8faff; }

@media (min-width: 992px) {
    .border-end-lg { border-right: 1px solid #dee2e6 !important; }
}

#scroll-to-top { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 42px; 
    height: 42px; 
    background: var(--bi-gold); 
    color: white; 
    border: none; 
    display: none; 
    z-index: 1000;
    font-size: 14px;
    border-radius: 50%;
    transition: 0.3s;
}
#scroll-to-top:hover {
    background: var(--bi-dark);
    transform: scale(1.1);
}

/* =========================================
   Mobile Responsiveness (Media Queries)
   ========================================= */

@media (max-width: 991.98px) {
    .brand-title {
        font-size: 18px;
    }
    .brand-subtitle {
        font-size: 13px;
    }
    .page-banner {
        min-height: 350px; /* Reduced from 450px to prevent side-cropping of wide photos */
        padding-bottom: 1.5rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    .page-banner .container {
        text-align: center !important;
        width: 100%;
        max-width: 100%;
    }
    .page-banner .container .row {
        justify-content: center !important;
        width: 100%;
    }
    .page-banner .container .col-md-8 {
        width: 100% !important;
    }
    .page-banner p, .page-banner .uppercase-tracking {
        display: none !important;
    }
    .mega-menu-compact {
        min-width: auto;
        width: 100%;
    }
    .dropdown-menu {
        border-top: none;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 1.5rem;
    }
    .carousel-caption-custom {
        padding: 2.5rem 5%;
        text-align: center;
        bottom: -1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    }
    .carousel-caption-custom h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    .carousel-caption-custom p, .carousel-caption-custom .uppercase-tracking {
        display: none !important;
    }
    
    /* Hide headings from slides 2, 3, and 4 in mobile only */
    .hero-carousel .carousel-item:nth-child(2) h1,
    .hero-carousel .carousel-item:nth-child(3) h1,
    .hero-carousel .carousel-item:nth-child(4) h1 {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .logo-container img { height: 55px !important; }
    .brand-title { font-size: 15px; }
    .brand-subtitle { font-size: 11px; }
    
    .hero-carousel .carousel-item {
        height: 45vh; /* Reduced from 60vh to prevent wide images from cropping sides */
        min-height: 300px;
    }
    
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.6rem; }
    
    /* Quick Services stack */
    .col-md-4.border-start.border-end {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .about-images-wrapper { display: none; } /* Hide overlap images on small mobile to prevent layout issues */
    
    .footer-section {
        text-align: center;
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption-custom h1 {
        font-size: 1.25rem;
    }
    .page-banner {
        min-height: 200px; /* Further reduced from 250px to ensure everyone fits in wide shots */
        padding-bottom: 1.2rem !important;
    }
    .slide-counter {
        right: 20px;
        bottom: 20px;
        font-size: 12px;
    }
}
