:root {
    /* Brand Color Palette */
    --brand-teal: #0B4745;
    /* Dark Teal */
    --brand-gold-muted: #B49D75;
    /* Muted Gold */
    --brand-gold-soft: #D2B68A;
    /* Soft Gold */
    --brand-white: #FBF2E1;
    /* Warm Off-White */

    /* Semantic Colors */
    --text-primary: var(--brand-white);
    --text-dark: var(--brand-teal);
    --bg-primary: var(--brand-teal);
    --bg-secondary: #083634;
    /* Slightly darker teal for contrast */
    --accent: var(--brand-gold-muted);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: var(--font-primary);

    /* Animation Variables */
    --brand-gold: var(--brand-gold-muted);
    /* Fallback alias if needed by JS */
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bidirectional Slide Animations (Scroll Linked) */
.slide-in-left {
    opacity: 0;
    transform: translateX(-150px);
    /* No transition for scroll scrubbing */
}

.slide-in-right {
    opacity: 0;
    transform: translateX(150px);
    /* No transition for scroll scrubbing */
}

.slide-in-up {
    opacity: 0;
    transform: translateY(100px);
    /* No transition for scroll scrubbing */
}

/* Helper to force visibility if JS fails/is disabled (optional, logical backup) */
.slide-in-left.viewport-visible,
.slide-in-right.viewport-visible,
.slide-in-up.viewport-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Glass Panel Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* =========================================
   Global Loading Animation
   ========================================= */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 54, 52, 0.9);
    /* Deep Brand Teal with opacity */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(180, 157, 117, 0.2);
    /* Muted Gold Track */
    border-top: 4px solid var(--brand-gold-muted);
    /* Active Gold */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    /* Light for body text */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    /* SemiBold for headings */
    color: var(--brand-white);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--brand-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-gold-soft);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    /* Transparent at top */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Smooth transition */
    border-bottom: 1px solid transparent;
}

/* Scrolled State */
.navbar.scrolled {
    background: rgba(251, 242, 225, 0.95);
    /* Warm Off-White */
    border-bottom: 1px solid rgba(11, 71, 69, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
}

.nav-brand a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--brand-white);
    /* White at top */
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-emblem {
    height: 40px;
    width: auto;
}

.nav-emblem-dark {
    display: none;
}

.navbar.scrolled .nav-emblem-light {
    display: none;
}

.navbar.scrolled .nav-emblem-dark {
    display: block;
}

.navbar.scrolled .nav-brand a {
    color: var(--brand-teal);
    /* Teal when scrolled */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links li a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 400;
    /* Regular */
    color: var(--brand-white);
    /* White at top */
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: var(--brand-teal);
    /* Teal when scrolled */
}

.nav-links li a:hover {
    color: var(--brand-gold-soft);
}

.navbar.scrolled .nav-links li a:hover {
    color: var(--brand-gold-muted);
}

/* Profile Icon Styles */
.profile-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--brand-white);
    padding: 8px;
    transition: all 0.3s ease;
}

.profile-icon-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.profile-icon-link:hover {
    background: var(--brand-white);
    color: var(--brand-teal) !important;
}

/* Scrolled State for Profile Icon */
.navbar.scrolled .profile-icon-link {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.navbar.scrolled .profile-icon-link:hover {
    background: var(--brand-teal);
    color: var(--brand-white) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--brand-white);
    transition: 0.3s;
}

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--brand-teal);
}

/* Main Content Padding for Fixed Nav */
main {
    padding-top: 0;
    min-height: 100vh;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(251, 242, 225, 0.05);
    /* Slight off-white tint */
    border: 1px solid rgba(180, 157, 117, 0.3);
    color: var(--brand-white);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
    font-weight: 300;
}

.form-control:focus {
    border-color: var(--brand-gold-soft);
    outline: none;
    background: rgba(251, 242, 225, 0.1);
}

.btn-primary {
    background-color: var(--brand-gold-muted);
    color: var(--brand-teal);
    /* Dark text on gold button for contrast */
    border: none;
    padding: 14px 32px;
    /* Slightly larger padding */
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother transition */
    letter-spacing: 1px;
    border-radius: 6px;
    /* Slightly rounded corners as requested */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--brand-gold-soft);
    transform: translateY(-3px) scale(1.02);
    /* Enhanced hover animation */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Specific fix for Hero Button Hover text color */
.hero .btn-primary:hover {
    color: #1d5c59 !important;
    /* Slightly lighter teal than default, overriding global a:hover */
}

/* Utilities */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .overview-bg {
        display: none;
        /* Hide the parallax background div on mobile */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        text-align: center;
        border-bottom: 1px solid var(--gold-primary);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 1.15rem;
        font-weight: 600;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Gallery Styles */
.gallery-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-primary);
}

.gallery-tabs {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 20;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    box-sizing: border-box;
}

.tab-btn {
    background: rgba(11, 71, 69, 0.6);
    /* Semi-transparent teal */
    border: 1px solid var(--brand-gold-muted);
    color: var(--brand-white);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--brand-gold-muted);
    color: var(--brand-teal);
    border-color: var(--brand-gold-muted);
}

.gallery-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    /* Slower transition for luxury feel */
    display: none;
}

.gallery-item.active {
    opacity: 1;
    display: block;
}

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

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    /* Darker gradient for legibility */
    padding: 4rem 2rem 3rem;
    /* More padding */
    color: var(--brand-white);
    text-align: center;
}

.gallery-item .caption h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.gallery-item .caption p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 71, 69, 0.3);
    color: var(--brand-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.carousel-control:hover {
    background: var(--brand-gold-muted);
    color: var(--brand-teal);
    border-color: var(--brand-gold-muted);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: 85%;
    z-index: 20;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    /* Allow scrolling from start */
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 10px;
    /* Add some padding for shadow/hover space */

    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-indicators::-webkit-scrollbar {
    display: none;
}

.gallery-indicators .indicator {
    /* Kept for backward compatibility if used anywhere else, though likely replaced */
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-indicators .indicator.active {
    background: var(--brand-gold-soft);
    border-color: var(--brand-gold-soft);
    transform: scale(1.2);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .gallery-tabs {
        top: 90px;
        gap: 0.5rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-item img {
        object-fit: contain;
    }

    .gallery-item .caption {
        padding: 1.5rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0,0,0,0.4));
    }

    .gallery-item .caption h3 {
        font-size: 1.25rem;
    }

    .gallery-item .caption p {
        font-size: 0.85rem;
    }

    .gallery-indicators {
        bottom: 130px;
        max-width: 95%;
    }
}

/* =========================================
   Overview Section (Sticky Scroll)
   ========================================= */
@media (min-width: 901px) {
    .overview-scroll-track {
        height: 800vh;
        /* Increased to 800vh to allow read phase for Slide 1 & 2 while keeping carousel fast */
        position: relative;
        z-index: 10;
    }
}

@media (max-width: 900px) {
    .overview-scroll-track {
        height: auto;
        position: relative;
        z-index: 10;
        padding-bottom: 4rem;
        /* Mobile background: Skyline for Slide 2 & 3 */
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hargeisa_skyline_tall.webp');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
}

@media (min-width: 901px) {
    .sticky-viewport {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .sticky-viewport {
        position: relative;
        height: auto;
        overflow: visible;
    }
}

.overview-bg {
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    /* Increased height for prominent parallax effect with vertical image */
    background-size: cover;
    background-position: center;
    /* Image set inline or via JS, but base styles here */
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

@media (min-width: 901px) {
    .overview-content {
        position: relative;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-white);
        pointer-events: none;
        /* Let scroll pass through if needed, though sticky handles it */
    }
}

@media (max-width: 900px) {
    .overview-content {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        /* Gap handled by slide padding and background split */
        padding: 0;
        color: var(--brand-white);
    }
}

@media (min-width: 901px) {
    .overview-content .slide {
        position: absolute;
        width: 80%;
        max-width: 800px;
        opacity: 0;
        transform: translateY(100px);
        /* Larger starting offset for impact */
        transition: transform 0.1s linear, opacity 0.1s linear;
        will-change: transform, opacity;
    }
}

@media (max-width: 900px) {
    .overview-content .slide {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        /* Fill the screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center text vertically */
        opacity: 1;
        transform: none;
        padding: 4rem 2rem;
        box-sizing: border-box;
    }

    .overview-content .slide-1 {
        /* Mobile background: Hero image for Slide 1 */
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero_suite.webp');
        background-size: cover;
        background-position: center;
        margin-bottom: 0;
    }

    .overview-content .slide-2,
    .overview-content .slide-3 {
        background: transparent;
        /* They share the scroll-track background */
        margin-bottom: 0;
    }
}

@media (min-width: 901px) {
    .overview-content .slide-3 {
        max-width: 1200px;
        width: 90%;
    }
}

@media (max-width: 900px) {
    .overview-content .slide-3 {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .rooms-carousel-track {
        padding: 0 5vw !important;
    }

    .carousel-card {
        width: 300px !important;
        height: 350px !important;
    }
}

.overview-content h2 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.overview-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 300;
}

@media (max-width: 768px) {
    .overview-content h2 {
        font-size: 2.5rem;
    }

    .overview-content p {
        font-size: 1rem;
    }
}

/* =========================================
   Luxurious Auth Pages (Split Layout)
   ========================================= */
.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-image-side {
    width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
    /* Hidden on mobile by default */
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Subtle dim */
}

.auth-form-side {
    width: 100%;
    background-color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

@media (min-width: 992px) {
    .auth-image-side {
        display: block;
        width: 50%;
    }

    .auth-form-side {
        width: 50%;
    }
}

.auth-logo {
    text-align: left;
    margin-bottom: 2rem;
}

.logo-img {
    height: 80px;
    /* Adjust based on actual logo */
    width: auto;
}

.auth-title {
    font-size: 3rem;
    color: var(--brand-teal);
    font-weight: 400;
    /* Outfit Light/Regular */
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.lux-form .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--brand-teal);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.lux-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    /* Soft radius */
    background: #FAFAFA;
    font-size: 1rem;
    color: var(--brand-teal);
    transition: all 0.3s;
}

.lux-form .form-control:focus {
    border-color: var(--brand-gold-muted);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(180, 157, 117, 0.1);
}

/* Phone Input Styling */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-code-select {
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FAFAFA;
    color: var(--brand-teal);
    border: 1px solid #E0E0E0;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    color: #999;
    cursor: pointer;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 0.8rem;
}

.lux-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-gold-muted);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--brand-teal);
}

.link-gold {
    color: var(--brand-gold-muted);
    text-decoration: underline;
}

.link-bold {
    font-weight: 600;
    color: var(--brand-teal);
    text-decoration: underline;
}

.link-gold-muted {
    color: var(--brand-gold-muted);
    font-size: 0.9rem;
}

.submit-group {
    margin-top: 2rem;
}

.btn-lux {
    background-color: var(--brand-gold-muted);
    color: #FFF;
    /* White text looks cleaner on gold */
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 4px;
    width: 100%;
}

.btn-lux:hover {
    background-color: #A38C68;
    /* Darker gold */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 157, 117, 0.3);
}

.auth-footer-text {
    margin-top: 1rem;
    text-align: center;
    color: var(--brand-teal);
}

.legal-text {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 2rem;
    color: #999;
}

.error-message {
    color: #D32F2F;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}


/* =========================================
   Profile Dropdown
   ========================================= */
.profile-dropdown-container {
    list-style: none;
    /* Ensure no bullet */
}

.profile-dropdown-trigger {
    position: relative;
    cursor: pointer;
    display: inline-block;
    /* Keep it inline with nav */
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 2px;
    background-color: var(--brand-white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1000;
    border: 1px solid rgba(180, 157, 117, 0.2);
}

.profile-dropdown-trigger:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Optional: Add a small arrow or bridge so mouse doesn't leave hover area */
.profile-dropdown-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    /* Bridge the gap */
    background: transparent;
}

.dropdown-header {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--brand-teal);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #FAFAFA;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
    text-transform: none;
    /* Override nav link uppercase if needed */
    letter-spacing: normal;
}

.dropdown-item:hover {
    background-color: rgba(180, 157, 117, 0.1);
    /* Soft gold tint */
    color: var(--brand-teal);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    margin: 4px 0;
}


/* =========================================
   Auth Pattern Overlay
   ========================================= */
.auth-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: 900px;
    /* Adjust scale of pattern */
    z-index: 5;
    /* Above basic overlay */
    opacity: 0.6;
    /* Semi-transparent as requested */

    /* Radial Feather from corner (Top-Left default) */
    -webkit-mask-image: radial-gradient(circle at top left, black 0%, transparent 70%);
    mask-image: radial-gradient(circle at top left, black 0%, transparent 70%);
    pointer-events: none;
}

/* =========================================
   Intl Tel Input Customization
   ========================================= */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid #E0E0E0;
}

.iti__selected-flag {
    background-color: #FAFAFA;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.lux-form .iti input {
    /* Ensure the input inside iti inherits our luxurious styles */
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FAFAFA;
    font-size: 1rem;
    color: var(--brand-teal);
    width: 100%;
    padding-left: 52px !important;
    /* Make room for flag */
}

.lux-form .iti input:focus {
    border-color: var(--brand-gold-muted);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(180, 157, 117, 0.1);
}


/* =========================================
   Intl Tel Input Fixes
   ========================================= */

/* Fix unreadable country name in dropdown */
.iti__country-name {
    color: var(--text-dark) !important;
}

/* Create the 'separate field' look for the flag container */
.iti__flag-container {
    background-color: #FAFAFA;
    border-right: 1px solid #E0E0E0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Increase padding to prevent overlap */
.lux-form .iti input {
    padding-left: 90px !important;
}

/* Ensure selected flag background matches */
.iti__selected-flag {
    background-color: transparent !important;
    /* Let container bg show */
}


/* Fix selected dial code color */
.iti__selected-dial-code {
    color: var(--text-dark) !important;
}


/* =========================================
   Split Inputs Styling
   ========================================= */
.split-inputs-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    /* Space between the two fields */
}

.split-input-half {
    flex: 1;
    width: 48%;
    /* Fallback */
}


/* Better styling for split inputs on mobile */
@media (max-width: 768px) {
    .split-inputs-container {
        flex-direction: column;
        gap: 0;
    }

    .split-input-half {
        width: 100%;
        margin-bottom: 20px;
    }
}


/* =========================================
   Flash Overlay Modal
   ========================================= */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dim background */
    backdrop-filter: blur(5px);
    /* Modern blur effect */
    z-index: 10000;
    /* On top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.flash-modal {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
    border: 1px solid var(--gold-accent);
}

@keyframes scaleUp {
    to {
        transform: scale(1);
    }
}

.flash-icon {
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.flash-icon svg {
    width: 3rem;
    height: 3rem;
}

.flash-message {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.flash-close-btn {
    background-color: var(--gold-accent);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.flash-close-btn:hover {
    background-color: #bfa15f;
    /* Darker gold */
}

/* Error button variant - red */
.flash-btn-error {
    background-color: #e53e3e !important;
}

.flash-btn-error:hover {
    background-color: #c53030 !important;
}

/* Success button variant - green */
.flash-btn-success {
    background-color: #48bb78 !important;
}

.flash-btn-success:hover {
    background-color: #38a169 !important;
}

/* Hide Footer content visual reset if needed */
footer {
    padding: 0;
    /* Remove padding if empty */
}


/* =========================================
   Modal Close X Icon
   ========================================= */
.flash-modal {
    position: relative;
    /* For absolute positioning of X */
}

.flash-close-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.flash-close-icon:hover {
    color: var(--text-dark);
}

/* =========================================
   Password Visibility Toggle
   ========================================= */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 40px;
    /* Space for icon */
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.password-toggle-icon:hover {
    color: var(--gold-accent);
}

.password-toggle-icon svg {
    width: 20px;
    height: 20px;
}


/* =========================================
   Flash Modal Visibility Fixes
   ========================================= */
.flash-close-btn {
    background-color: var(--brand-teal) !important;
    /* Dark Teal for high contrast */
    color: var(--brand-white) !important;
    font-weight: 600;
    border: 1px solid var(--brand-teal);
}

.flash-close-btn:hover {
    background-color: var(--bg-secondary) !important;
    /* Slightly darker teal */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.3);
}

.flash-close-icon {
    color: var(--brand-teal) !important;
    /* Dark Teal for visibility on white */
    font-weight: bold;
    opacity: 0.8;
}

.flash-close-icon:hover {
    color: var(--brand-gold-muted) !important;
    opacity: 1;
}

/* Ensure modal background is pure white */
.flash-modal {
    background-color: #ffffff !important;
    border: 1px solid var(--brand-gold-soft);
}


/* =========================================
   Fix Profile Dropdown Text Visibility
   ========================================= */
.dropdown-menu a.dropdown-item {
    color: var(--brand-teal) !important;
    /* Force Dark Teal */
    font-weight: 500;
}

.dropdown-menu a.dropdown-item:hover {
    color: var(--brand-teal) !important;
    background-color: rgba(180, 157, 117, 0.15) !important;
}

/* Ensure container background is opaque white */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}


/* =========================================
   Facilities Section
   ========================================= */
.facilities-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--brand-teal);
    padding: 6rem 2rem;
    overflow: hidden;
}

.facilities-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Beder Hotel Branding Pattern.png');
    background-repeat: repeat;
    background-size: 900px;
    opacity: 0.088;
    /* Reduced by another 50% */
    pointer-events: none;
    z-index: 0;
    /* Behind content */
}

.facilities-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.facilities-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.facilities-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.facilities-header h2 {
    color: var(--brand-gold-soft);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.facilities-header p {
    color: var(--brand-white);
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* 3D Flip Card Styles */
.facility-card-container {
    /* perspective: 1000px; - Removed to fix backdrop-filter */
    height: 320px;
    /* Fixed height for consistent flip */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.facility-card-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.facility-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy flip */
    cursor: pointer;
    /* Removed transform-style: preserve-3d to allow backdrop-filter */
}

.facility-card.flipped .card-front {
    opacity: 0;
    transform: rotateY(180deg);
    pointer-events: none;
}

.facility-card.flipped .card-back {
    opacity: 1;
    transform: rotateY(0deg);
    pointer-events: auto;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Enable backdrop-filter */
    /* isolation: isolate; - Removed to fix backdrop-filter */
    /* will-change: transform; - Removed to ensure backdrop-filter renders */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front {
    background: rgba(251, 242, 225, 0.1);
    /* Glassmorphism background - slightly more transparent */
    backdrop-filter: blur(20px) saturate(180%);
    /* Enhanced blur effect */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    opacity: 1;
    /* transform: rotateY(0deg); - Removed to fix backdrop-filter */
}

.card-back {
    background: rgba(15, 61, 62, 0.25);
    /* More transparent for glass effect */
    backdrop-filter: blur(15px) saturate(180%);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: #fbf2e1;
    /* Brand Cream */
    border: 1px solid rgba(210, 182, 138, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    opacity: 0;
    transform: rotateY(180deg);
    pointer-events: none;
}

.card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(251, 242, 225, 0.9);
}

.btn-flip-action {
    background: transparent;
    border: 1px solid #d2b68a;
    color: #d2b68a;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-flip-action:hover {
    background: #d2b68a;
    color: #0f3d3e;
}

/* Hover effect only on non-flipped card */
.facility-card-container:hover .card-front {
    background: rgba(251, 242, 225, 0.1);
    border-color: rgba(210, 182, 138, 0.4);
}

.facility-card-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.facility-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-gold-muted), var(--brand-gold-soft));
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
}

.facility-icon svg {
    width: 35px;
    height: 35px;
    color: var(--brand-teal);
}

.facility-card h3 {
    color: var(--brand-gold-soft);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.facility-card p {
    color: var(--brand-white);
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Stagger animation delays for cards */
.facility-card:nth-child(1) {
    transition-delay: 0.1s;
}

.facility-card:nth-child(2) {
    transition-delay: 0.2s;
}

.facility-card:nth-child(3) {
    transition-delay: 0.3s;
}

.facility-card:nth-child(4) {
    transition-delay: 0.4s;
}

.facility-card:nth-child(5) {
    transition-delay: 0.5s;
}

.facility-card:nth-child(6) {
    transition-delay: 0.6s;
}

.facility-card:nth-child(7) {
    transition-delay: 0.7s;
}

.facility-card:nth-child(8) {
    transition-delay: 0.8s;
}

/* Responsive */
@media (max-width: 768px) {
    .facilities-section {
        padding: 4rem 1.5rem;
    }

    .facilities-header h2 {
        font-size: 2.5rem;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================
   Booking Section - Modern Card-Based Design
   ========================================= */
.booking-section {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, #111, #1a1a1a);
    /* Dark background as requested */
    /* Moved image to ::before for opacity control */
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Beder Hotel Branding Pattern.png');
    background-repeat: repeat;
    background-size: 250px;
    opacity: 0.5;
    /* 50% opacity as requested */
    pointer-events: none;
    z-index: 0;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.booking-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    color: #ffffff;
    /* Changed to light color as requested */
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for contrast */
}

.booking-header p {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Light color with slight transparency */
    max-width: 600px;
    margin: 0 auto;
}

/* Category Tabs */
.booking-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.tab-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, #0B4745 0%, #155052 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(11, 71, 69, 0.25);
}

.tab-btn:not(.active):hover {
    background: rgba(11, 71, 69, 0.08);
    color: #0B4745;
}

/* Gallery Specific Tabs Blur Effect */
.gallery-tabs .tab-btn:not(.active) {
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
}

.gallery-tabs .tab-btn:not(.active):hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tab-more {
    padding: 0.75rem 1.25rem;
}

/* Modern Form Container */
.booking-form-modern {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(11, 71, 69, 0.08);
    position: relative;
    z-index: 2;
}

.booking-form-modern.disabled {
    opacity: 1;
    /* Was 0.6, fixed to prevent transparency */
    /* filter: grayscale(100%); MOVED TO CHILDREN to allow WhatsApp to stay green */
    pointer-events: none;
    background: #ffffff;
    /* Ensure opaque background */
}

/* Grayscale everything EXCEPT WhatsApp button when form is disabled */
.booking-form-modern.disabled .input-card,
.booking-form-modern.disabled #btnAddRoom,
.booking-form-modern.disabled .group-invoice-list,
.booking-form-modern.disabled .group-total-row,
.booking-form-modern.disabled .btn-check-availability {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Ensure WhatsApp button is always colorful and clickable */
.booking-form-modern.disabled .btn-whatsapp {
    filter: none !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 200 !important; /* Higher than booking-overlay (150) */
}


/* Global Booking Button Group (used in bottom form and rooms modal) */
.booking-btn-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
}

.booking-btn-group .btn-check-availability,
.booking-btn-group .btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}




/* Universal Booking Overlay (prevents interaction for guests) */
.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150 !important; /* Higher than form fields but below modals */
    cursor: pointer;
    border-radius: 24px;
    pointer-events: auto !important;
}

/* Input Card Styles */
.input-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.input-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.06);
}

.input-card label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.75rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.input-icon-left,
.input-icon-right {
    width: 20px;
    height: 20px;
    color: #718096;
    flex-shrink: 0;
}

.modern-input,
.modern-select {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #2d3748;
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 0;
}

.modern-input::placeholder {
    color: #a0aec0;
}

.modern-input[readonly] {
    cursor: default;
    color: #2d3748;
}

.modern-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2rem;
}

.select-icon {
    position: absolute;
    right: 0;
    width: 20px;
    height: 20px;
    color: #718096;
    pointer-events: none;
}

/* Date Range Container */
.date-range-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.date-card {
    margin-bottom: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hide the default Flatpickr input as we use custom display */
.date-range-container input.flatpickr-input,
.date-range-container input[type="text"] {
    display: none !important;
}

/* Custom Result Display */
.result-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    color: #2d3748;
    /* Default text color (e.g. for 'to') */
}

.result-display .checkin-text {
    color: #10B981;
    /* Lighter, vibrant green */
}

.result-display .checkout-text {
    color: #9B2C2C;
    /* Dark Red */
}

.date-card .input-wrapper {
    border: none !important;
    padding: 0;
}

.date-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.date-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #2d3748;
}

.date-day {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #a0aec0;
}

.date-connector {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0B4745 0%, #D2B68A 50%, #0B4745 100%);
    border-radius: 2px;
    position: relative;
    margin-top: 1.5rem;
}

.date-connector::before,
.date-connector::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0B4745;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.date-connector::before {
    left: -4px;
}

.date-connector::after {
    right: -4px;
}

/* Guest Counters */
.guest-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.counter-card {
    margin-bottom: 0;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: flex-end;
}

.counter-card .counter-group {
    width: 100%;
}

.counter-card label {
    margin-bottom: 1rem;
}

.counter-group {
    display: flex;
    flex-direction: column;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.counter-icon {
    width: 32px;
    height: 32px;
    color: #0B4745;
    margin-bottom: 0.5rem;
}

.counter-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #0B4745;
}

.counter-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.counter-controls {
    display: flex;
    gap: 0.5rem;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn svg {
    width: 16px;
    height: 16px;
    color: #4a5568;
}

.counter-btn:hover {
    border-color: #0B4745;
    background: #f7fafc;
}

.counter-btn:hover svg {
    color: #0B4745;
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Room Filter Row */
.room-filter-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.room-card {
    flex: 1;
    margin-bottom: 0;
}

.advanced-filters {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #0B4745;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.advanced-filters svg {
    width: 16px;
    height: 16px;
}

.advanced-filters:hover {
    color: #155052;
    gap: 0.75rem;
}

/* Submit Buttons */
.booking-btn-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.btn-check-availability {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 1.25rem 1rem; /* Reduced padding slightly for better fit */
    background: linear-gradient(135deg, #0B4745 0%, #155052 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(11, 71, 69, 0.25);
}

.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    color: #ffffff;
}


.btn-check-availability:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 71, 69, 0.35);
}

.btn-check-availability:active {
    transform: translateY(0);
}

.booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(11, 71, 69, 0.08);
    box-shadow:
        0 20px 60px rgba(11, 71, 69, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Subtle glow on container hover */
.booking-form-container:hover {
    box-shadow:
        0 24px 70px rgba(11, 71, 69, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

/* Visual cue for disabled state */
.booking-form-container.disabled {
    opacity: 0.85;
    cursor: pointer;
    position: relative;
}

.booking-form-container.disabled::after {
    content: '🔒 Sign in to book your stay';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #0B4745;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(11, 71, 69, 0.15);
    z-index: 100;
    pointer-events: none;
}


.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    color: #0B4745 !important;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.85rem !important;
}

.form-group input,
.form-group select {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: #212529;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

.form-group input:hover,
.form-group select:hover {
    background: #ffffff;
    border-color: #D2B68A;
}

.form-group input:focus,
.form-group select:focus {
    background: #ffffff;
    border-color: #0B4745;
    box-shadow: 0 0 0 4px rgba(11, 71, 69, 0.08);
    transform: translateY(-2px);
}

/* Custom Select Dropdown Arrow */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Button Styling (Golden Gradient) */
.btn-book {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #0B4745 0%, #155052 100%);
    color: #FBF2E1;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 71, 69, 0.25);
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 71, 69, 0.35);
    background: linear-gradient(135deg, #155052 0%, #0B4745 100%);
}

.btn-book:hover::before {
    left: 100%;
}

.btn-book:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.3);
}

/* =========================================
   Auth Modal Styling
   ========================================= */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-content {
    background: #0f3d3e;
    padding: 3.5rem;
    border-radius: 16px;
    border: 1px solid #d2b68a;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal.active .auth-modal-content {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #d2b68a;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0;
}

.auth-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.auth-modal h2 {
    color: #d2b68a;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.auth-modal p {
    color: #fbf2e1;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.auth-modal-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-modal {
    flex: 1;
    padding: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-modal-primary {
    background: #d2b68a;
    color: #0f3d3e;
}

.btn-modal-primary:hover {
    background: #c1a375;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 182, 138, 0.3);
}

.btn-modal-outline {
    background: transparent;
    border: 2px solid #d2b68a;
    color: #d2b68a;
}

.btn-modal-outline:hover {
    background: rgba(210, 182, 138, 0.1);
    color: #fbf2e1;
    border-color: #fbf2e1;
    transform: translateY(-2px);
}

/* =========================================
   Interactive Form Elements
   ========================================= */

/* Font Enforcements - Outfit throughout */
.booking-section h2,
.booking-section label,
.btn-book,
.flatpickr-month {
    font-family: 'Outfit', sans-serif !important;
}

.booking-section p,
.booking-section input,
.booking-section select,
.flatpickr-calendar {
    font-family: 'Outfit', sans-serif !important;
}

/* Date Input Styling */
input.brand-input,
select.brand-select {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
}

/* Slider Group */
.guest-slider-group {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.guest-slider-group:hover {
    background: #ffffff;
    border-color: #D2B68A;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-header label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    color: #0B4745 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 0.01em;
}

.slider-value {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: #0B4745 !important;
    font-size: 1.5rem !important;
    min-width: 2.5rem;
    text-align: right;
}

/* Modern range slider */
input[type=range].brand-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    margin: 0.5rem 0;
}

input[type=range].brand-slider:focus {
    outline: none;
}

input[type=range].brand-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 3px;
    border: none;
}

input[type=range].brand-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0B4745 0%, #155052 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 71, 69, 0.3);
    transition: all 0.2s ease;
}

input[type=range].brand-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.4);
}

input[type=range].brand-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 3px;
    border: none;
}

input[type=range].brand-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0B4745 0%, #155052 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(11, 71, 69, 0.3);
    transition: all 0.2s ease;
}

input[type=range].brand-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.4);
}

/* Bulk booking link */
.bulk-booking-link {
    margin-top: 1rem;
    text-align: right;
}

.bulk-booking-link a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    color: #0B4745 !important;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px dashed #D2B68A;
    transition: all 0.2s ease;
}

.bulk-booking-link a:hover {
    color: #D2B68A !important;
    border-bottom-color: #0B4745;
}



/* Flatpickr Calendar Customization */
.flatpickr-calendar {
    font-family: 'Outfit', sans-serif !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 48px rgba(11, 71, 69, 0.15) !important;
    padding: 0.5rem !important;
    width: 307.5px !important;
}

.flatpickr-calendar.open {
    background: #ffffff !important;
}

.flatpickr-months {
    padding: 0.5rem 0 !important;
    background: transparent !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #2d3748 !important;
    fill: #2d3748 !important;
    height: auto !important;
    min-height: 40px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

.flatpickr-current-month {
    padding: 0.5rem 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 30px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #2d3748 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0.25rem !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flatpickr-current-month input.cur-year {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #2d3748 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0.25rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flatpickr-current-month .numInputWrapper {
    width: 6ch !important;
}

.flatpickr-current-month .numInputWrapper span {
    border: none !important;
    background: transparent !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    background: transparent !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-bottom-color: #2d3748 !important;
    border-top-color: #2d3748 !important;
}

.flatpickr-weekdays {
    background: #ffffff !important;
    height: auto !important;
    padding: 0.5rem 0 !important;
}

.flatpickr-weekdaycontainer {
    background: #ffffff !important;
}

.flatpickr-weekday {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    color: #718096 !important;
    background: #ffffff !important;
    font-size: 0.85rem !important;
}

.flatpickr-days {
    width: 245px !important;
}

.dayContainer {
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
}

.flatpickr-day {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    color: #2d3748 !important;
    border-radius: 8px !important;
    max-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.flatpickr-day:hover {
    background: #f7fafc !important;
    border-color: #cbd5e0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0B4745 !important;
    border-color: #0B4745 !important;
    color: #FBF2E1 !important;
    font-weight: 600 !important;
}

.flatpickr-day.inRange {
    background: rgba(11, 71, 69, 0.08) !important;
    border-color: transparent !important;
    color: #0B4745 !important;
}

.flatpickr-day.today {
    border-color: #0B4745 !important;
    background: rgba(11, 71, 69, 0.1) !important;
    font-weight: 500 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    opacity: 0.4 !important;
    color: #a0aec0 !important;
}

.flatpickr-day.today:hover {
    background: rgba(210, 182, 138, 0.1) !important;
    border-color: #D2B68A !important;
}

/* Navigation arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #2d3748 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #0B4745 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-section {
        padding: 4rem 1.5rem;
    }

    .booking-header h2 {
        font-size: 2rem;
    }

    .booking-header p {
        font-size: 1rem;
    }

    .booking-tabs {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .tab-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .booking-form-modern {
        padding: 1.75rem;
    }

    /* Stack date cards vertically */
    .date-range-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .date-connector {
        display: none;
    }

    /* Stack guest counters vertically */
    .guest-counters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Stack room filter row */
    .room-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .advanced-filters {
        justify-content: center;
    }
}

/* =========================================
   Footer Styling
   ========================================= */
.site-footer {
    background-color: #0f3d3e;
    /* Dark theme background */
    color: #f7fafc;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(210, 182, 138, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    color: #d2b68a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    color: #d2b68a;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #d2b68a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #718096;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}


/* =========================================
   Group Booking Feature Styles (Light Theme)
   ========================================= */
.group-booking-section {
    background: #f8fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.group-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.group-toggle-info h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0B4745;
    /* Brand Dark Teal */
    margin: 0 0 0.25rem 0;
}

.group-toggle-info p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.group-controls {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-input-grid {
    display: grid;
    grid-template-columns: 2fr 120px 100px;
    /* Room | Qty | Add */
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .group-input-grid {
        grid-template-columns: 1fr;
    }

    .group-input-grid button {
        width: 100%;
    }
}

/* Reusing .input-card but ensuring it fits */
.group-controls .input-card {
    margin-bottom: 0;
    /* Override default margin */
    padding: 1rem;
}

/* Quantity Input Styling specific to Group to match Input Card */
.qty-group-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    height: 52px;
    /* Match standard input height */
    overflow: hidden;
}

.qty-group-wrapper button {
    width: 36px;
    height: 100%;
    border: none;
    background: #f7fafc;
    color: #0B4745;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-group-wrapper button:hover {
    background: #edf2f7;
}

.qty-group-wrapper input {
    flex: 1;
    border: none;
    text-align: center;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #2d3748;
    background: transparent;
    width: 40px;
    /* Min width */
}

/* Invoice List Styles */
.group-invoice-list {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

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

.invoice-item:hover {
    background: #f8fafc;
}

.invoice-item-details strong {
    display: block;
    color: #2d3748;
    font-size: 1rem;
}

.invoice-item-details span {
    color: #718096;
    font-size: 0.85rem;
}

.invoice-item-price {
    font-weight: 700;
    color: #0B4745;
    font-size: 1.1rem;
    margin: 0 1rem;
}

.invoice-remove-btn {
    background: transparent;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.invoice-remove-btn:hover {
    background: #fff5f5;
}

.group-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: #2d3748;
}

.group-total-row span {
    font-weight: 700;
    color: #0B4745;
    font-size: 1.2rem;
}


/* Main Layout */
.rooms-page-container {
    display: flex;
    min-height: 100vh;
    background: #0f3d3e;
    /* Dark Brand Color */
    position: relative;
    padding-top: 80px;
    /* Offset for Fixed Navbar if needed */
    z-index: 1;
}

/* Pattern Overlay */
.rooms-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Beder Hotel Branding Pattern.png');
    background-repeat: repeat;
    background-size: 800px;
    /* Doubled from 400px */
    opacity: 0.075;
    /* Increased by 50% from 0.05 */
    z-index: -1;
    pointer-events: none;
}

/* 1. Sidebar Navigation */
.rooms-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0b2e2f 0%, #051b1c 100%);
    /* Slightly darker for contrast */
    color: #ffffff;
    padding: 3rem 1.5rem;
    position: fixed;
    top: 80px;
    /* Below Navbar */
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #d2b68a;
    margin: 0;
}

.room-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.room-category-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(5px);
}

.room-category-btn.active {
    background: #d2b68a;
    /* Gold Accent */
    color: #0f3d3e;
    /* Dark Text */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.room-category-btn.active::after {
    content: '→';
    font-size: 1.2rem;
    line-height: 1;
}

/* 2. Main Content Area */
.rooms-content {
    margin-left: 280px;
    flex: 1;
    padding: 4rem 4%;
    width: calc(100% - 280px);
}

.rooms-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.rooms-header h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: #d2b68a;
    /* Gold for Dark Mode */
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rooms-header p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    /* Light text */
    max-width: 600px;
}

/* 3. Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

/* Scoped to .rooms-grid to avoid affecting Booking Form */
.rooms-grid .room-card {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 500px;
    /* Tall, image-focused */
    /* Removed flex to prevent layout jumps during transition */
    display: block;
}

/* Specific transition for the card container's transform/opacity from JS */
.rooms-grid .room-card[style*="opacity"] {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.rooms-grid .room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    /* Restore hover transition if needed, but JS handles filter anims */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.rooms-grid .room-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Explicit Z-index */
    pointer-events: none;
    /* Allow clicks to pass through to content below */
}

.rooms-grid .room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rooms-grid .room-card:hover .room-card-image img {
    transform: scale(1.1);
}

/* Remove old overlay if present */
.rooms-grid .room-card-overlay {
    display: none;
}

.rooms-grid .room-card-content {
    position: absolute;
    /* Pinned to bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    /* Above image */
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    transform: translateY(0);
    transition: transform 0.3s ease;
    pointer-events: auto;
    /* Ensure clicks work */
}

/* Re-enable pointer events for the button */
.rooms-grid .room-card-content .btn-view-details {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    /* Force above gradient */
}



.room-card-content h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.room-price {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.room-price span {
    color: #d2b68a;
    font-weight: 700;
    font-size: 1.4rem;
}

.btn-view-details {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    /* Semi-transparent pill */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #d2b68a;
    color: #0f3d3e;
    border-color: #d2b68a;
    padding-right: 1.5rem;
    /* Reset padding change from previous design */
}

/* 4. Room Detail View */
/* 4. Room Detail View */
.room-detail-view {
    background: rgba(15, 61, 62, 0.95);
    /* Deep Glass Teal */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    margin-bottom: 4rem;
    animation: fadeIn 0.5s ease;
    color: #ffffff;
}

.room-detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* More space for image */
    gap: 4rem;
    align-items: start;
}

.room-detail-image {
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.room-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-detail-info h2 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    line-height: 1.1;
    color: #d2b68a;
    /* Gold */
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.detail-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.room-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.amenity-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.amenity-text strong {
    display: block;
    color: #d2b68a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.amenity-text span {
    color: #fff;
    font-size: 1rem;
}

.amenity-icon {
    width: 44px;
    height: 44px;
    background: rgba(210, 182, 138, 0.2);
    /* Translucent Gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2b68a;
    flex-shrink: 0;
}

.amenity-icon svg {
    width: 22px;
    height: 22px;
}

.room-booking-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-price {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-price span {
    display: block;
    font-size: 2rem;
    color: #d2b68a;
    font-weight: 700;
    line-height: 1;
}

.btn-book-now {
    background: #d2b68a;
    color: #0f3d3e;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(210, 182, 138, 0.3);
    flex: 1;
}

.btn-book-now:hover {
    background: #fff;
    color: #0f3d3e;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-close-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-close-detail:hover {
    color: #d2b68a;
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .rooms-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding-top: 100px;
        /* Below fixed nav */
    }

    .rooms-content {
        margin-left: 0;
        width: 100%;
        padding-top: 2rem;
    }

    .room-detail-content {
        grid-template-columns: 1fr;
    }

    .room-detail-image {
        height: 350px;
    }
}

/* Custom Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* New Input Style for Dropdowns */
.custom-select-trigger.input-style {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 1rem;
    height: 52px;
    background: #ffffff;
    margin-top: 0.5rem;
    /* Space from label */
}

.custom-select-trigger.input-style:hover {
    border-color: #cbd5e0;
}

.custom-select-wrapper.open .custom-select-trigger.input-style {
    border-color: var(--brand-gold);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-trigger:hover {
    border-bottom-color: var(--brand-gold);
}

.custom-select-trigger .trigger-text {
    flex-grow: 1;
}

.custom-select-trigger .arrow {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--brand-teal);
    border-right: 2px solid var(--brand-teal);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-bottom: 3px;
}

.custom-select-wrapper.open .custom-select-trigger .arrow {
    transform: rotate(225deg);
    border-color: var(--brand-gold);
    margin-bottom: -3px;
}

.custom-options {
    position: absolute;
    top: 100%;
    /* Below trigger */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.custom-option {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(210, 182, 138, 0.15);
    /* Gold tint */
    color: #0B4745;
    /* Brand Teal for contrast */
    padding-left: 1.5rem;
    /* Slight slide effect */
    font-weight: 500;
}

.custom-option.selected {
    background: var(--brand-teal);
    color: #fff;
}

/* =========================================
   Dining Page Styles
   ========================================= */
.dining-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/dining-hero.jpg');
    /* Verify image path later */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    text-align: center;
    margin-bottom: 0;
}


.dining-hero h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dining-hero p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 600px;
}

/* Menu Section */
.menu-section {
    padding: 4rem 1rem;
    background-color: var(--bg-secondary);
    min-height: 60vh;
    margin-bottom: 0;
    position: relative;
    /* Create a stacking context */
    z-index: 1;
}

.menu-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Beder Hotel Branding Pattern.png');
    background-size: 1000px;
    background-repeat: repeat;
    opacity: 0.1;
    /* Increased from 0.05 */
    z-index: -1;
    /* Behind content */
}

/* Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-tab {
    background: transparent;
    border: 1px solid var(--brand-gold-muted);
    color: var(--brand-white);
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-tab:hover,
.menu-tab.active {
    background: var(--brand-gold-muted);
    color: var(--brand-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 157, 117, 0.2);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-category-content {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out forwards;
}

.menu-category-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Card */
.menu-card {
    background: rgba(251, 242, 225, 0.03);
    /* Very subtle off-white transparent */
    border: 1px solid rgba(180, 157, 117, 0.1);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.menu-card:hover {
    background: rgba(251, 242, 225, 0.08);
    border-color: rgba(180, 157, 117, 0.3);
    transform: translateY(-3px);
}

.menu-details h3 {
    font-size: 1.5rem;
    color: var(--brand-gold-soft);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.menu-details p {
    font-size: 1rem;
    color: var(--brand-white);
    opacity: 0.8;
    line-height: 1.5;
}

.menu-price {
    font-size: 1.25rem;
    color: var(--brand-gold-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dining-hero h1 {
        font-size: 2.5rem;
    }

    .menu-tabs {
        gap: 0.5rem;
    }

    .menu-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        /* Full width on mobile */
    }

    .menu-card {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .menu-price {
        align-self: flex-end;
        /* Price to the right or bottom */
        margin-top: 0.5rem;
    }
}

/* =========================================
   Updated Menu Card Styles (Image Overlay)
   ========================================= */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Reset previous flex styles */
    display: block;
    padding: 0;
    background: #000;
    border: none;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #000;
    /* Ensure background stays dark */
}

.menu-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: -1;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.menu-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.3s ease;
}

.menu-card:hover .menu-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 70%);
}

.menu-details {
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
}

.menu-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--brand-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-details p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-price {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(11, 71, 69, 0.85);
    /* Brand teal with opacity */
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--brand-gold-muted);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(180, 157, 117, 0.3);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Adjustments Overrides */
@media (max-width: 768px) {
    .menu-card {
        height: 300px;
        /* Slightly shorter on mobile */
        flex-direction: column;
        /* Resetting reset */
        padding: 0;
        align-items: stretch;
    }

    .menu-price {
        align-self: auto;
        margin-top: 0;
    }
}

.site-footer {
    margin-top: 0 !important;
}

/* =========================================
   3D Flip Card Animation Styles
   ========================================= */

/* The Ghost Card (Animated Overlay) */
.menu-card-ghost {
    position: fixed;
    z-index: 1000;
    /* On top of everything */
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    /* Smooth, slight bounce */
    perspective: 1500px;
    cursor: default;
}

.menu-card-ghost.is-open {
    top: 50% !important;
    left: 50% !important;
    width: 90vw !important;
    max-width: 1000px !important;
    height: 600px !important;
    transform: translate(-50%, -50%) rotateY(180deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

/* Inner Container */
.ghost-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    /* Matches parent usually, but wrapper needed */
}

/* Faces */
.ghost-front,
.ghost-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Front Face (Copy of original card) */
.ghost-front {
    /* Existing card styles copied by JS or inherited, but ensures solid background */
    background: #000;
}

/* Back Face (Expanded Details) */
.ghost-back {
    transform: rotateY(180deg);
    background: #0B4745;
    /* Darker Teal */
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(210, 182, 138, 0.2);
    align-items: stretch;
}

/* Back Layout */
.ghost-back-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ghost-back-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ghost-back-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 71, 69, 0.95), rgba(8, 54, 52, 1));
}

.ghost-title {
    font-size: 2.5rem;
    color: var(--brand-gold-soft);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.ghost-price {
    font-size: 2rem;
    color: var(--brand-white);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.ghost-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.ghost-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 1px solid var(--brand-gold-muted);
    color: var(--brand-gold-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ghost-close-btn:hover {
    background: var(--brand-gold-muted);
    color: var(--brand-teal);
    transform: rotate(90deg);
}

/* Grid on Left (Simulated overlay on image) */
.ghost-img-grid-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 1rem;
}

.ghost-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ghost-thumb:hover {
    transform: scale(1.1);
    border-color: var(--brand-gold);
}

/* Mobile responsive for ghost */
@media (max-width: 768px) {
    .menu-card-ghost.is-open {
        width: 95vw !important;
        height: 85vh !important;
    }

    .ghost-back {
        flex-direction: column;
    }

    .ghost-back-left {
        flex: 7;
        max-height: 70%;
    }

    .ghost-back-right {
        flex: 3;
        padding: 1rem 1.5rem;
        justify-content: flex-start;
    }

    .ghost-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .ghost-desc {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
}


.ghost-back-right .btn-book-now {
    flex: 0 0 auto !important;
    /* Stop growing */
    width: fit-content;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    align-self: flex-start;
    /* Align left isntead of stretch */
}


/* Page Overlay for Ghost Card */
#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    /* Below ghost card (1000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    backdrop-filter: blur(5px);
}

#page-overlay.active {

    opacity: 1;
    visibility: visible;
}

/* Invoice Modal Styles */
.invoice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.invoice-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.invoice-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.invoice-modal-overlay.active .invoice-modal-card {
    transform: translateY(0);
}

.invoice-modal-header {
    background: #0f3d3e;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.invoice-modal-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #d2b68a;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: #d2b68a;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.invoice-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 70vh;
}

.invoice-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8fafc;
}

/* Modal Table */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.invoice-table th {
    text-align: left;
    padding: 1rem;
    color: #718096;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
}

.invoice-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.invoice-table tfoot td {
    border-top: 2px solid #0B4745;
    border-bottom: none;
    font-weight: 700;
    color: #0B4745;
    font-size: 1.2rem;
}

/* =========================================
   Modern Toggle Switch
   ========================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #0B4745;
    /* Brand Color */
}

input:focus+.slider {
    box-shadow: 0 0 1px #0B4745;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Hover effect */
.switch:hover .slider:before {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Add Room Toggle Button */
.btn-add-room {
    height: 52px;
    width: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #0B4745;
    /* Brand Teal */
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-add-room:hover {
    background: #0B4745;
    border-color: #0B4745;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 71, 69, 0.15);
}

.btn-add-room span {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

/* =========================================
   Flash Messages Overlay (Custom Alert)
   ========================================= */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker dim */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    /* Glassmorphism effect */
}

.flash-modal {
    background: var(--brand-white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    border: 1px solid var(--brand-gold-muted);
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.flash-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--brand-teal);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.flash-close-icon:hover {
    opacity: 1;
}

.flash-icon {
    margin-bottom: 1.25rem;
    color: var(--brand-gold-muted);
    display: flex;
    justify-content: center;
}

.flash-icon svg {
    width: 56px;
    height: 56px;
}

.flash-message {
    font-size: 1.15rem;
    color: var(--brand-teal);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.flash-close-btn {
    background: var(--brand-gold-muted);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 2px;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(180, 157, 117, 0.2);
}

.flash-close-btn:hover {
    background: #A38C68;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(180, 157, 117, 0.3);
}

/* Success vs Error Variants */


/* =========================================
   Contact Page
   ========================================= */
.contact-hero {
    position: relative;
    height: 28vh;
    min-height: 210px;
    display: flex;
    border-bottom: 10px solid var(--brand-gold-muted);
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(5, 27, 28, 0.95), rgba(5, 27, 28, 0.95)), url('../img/Beder Hotel Branding Pattern Dark.png');
    background-size: 360px;
    background-repeat: repeat;
    background-position: center;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ... (skip unchanged) ... */
.contact-form-card h2 {
    font-family: 'Outfit', sans-serif;
    color: #0B4745;
    /* teal-dark */
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 182, 138, 0.2), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-info-card:hover::before {
    left: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #fbf2e1;
    /* gold-light equivalent */
    color: #0B4745;
    /* teal-dark */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.contact-info-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: #0B4745;
    /* teal-dark */
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 182, 138, 0.2), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-form-card:hover::before {
    left: 100%;
}

.contact-form-card h2 {
    font-family: 'Cinzel', serif;
    color: #0B4745;
    /* teal-dark */
    margin-bottom: 2rem;
}

.form-group-contact {
    margin-bottom: 1.5rem;
}

.form-group-contact label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #0B4745;
    /* teal-dark */
    margin-bottom: 0.5rem;
}

.form-control-contact {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.form-control-contact:focus {
    outline: none;
    border-color: #D2B68A;
    /* gold-main */
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.map-section {
    width: 100%;
    height: 450px;
    background: #f8fafc;
    margin-bottom: 0;
}

/* =========================================
   USER PROFILE PAGE
   ========================================= */
.profile-hero {
    position: relative;
    height: 30vh;
    min-height: 250px;
    background: linear-gradient(rgba(11, 71, 69, 0.8), rgba(11, 71, 69, 0.8)), url('../img/Beder Hotel Branding Pattern.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -4rem;
    /* Overlap effect */
    z-index: 1;
}

.profile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.profile-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-container {
    padding-bottom: 4rem;
    z-index: 10;
    position: relative;
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.profile-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
}

.user-card {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: #0B4745;
    color: #D2B68A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-family: 'Outfit', sans-serif;
}

.user-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0;
    color: #333;
}

.user-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0 1rem;
}

.user-role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role-badge.admin {
    background: #e9d8fd;
    color: #553c9a;
}

.user-role-badge.user,
.user-role-badge.guest {
    background: #e6fffa;
    color: #2c7a7b;
}

.profile-nav {
    padding: 1rem;
}

.profile-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #4a5568;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.profile-nav-btn:hover {
    background: #f7fafc;
    color: #0B4745;
}

.profile-nav-btn.active {
    background: #0B4745;
    color: white;
}

.profile-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
.profile-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    min-height: 400px;
}

.profile-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 1rem;
}

.content-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #0B4745;
}

.content-header p {
    color: #718096;
    margin: 0;
}

/* Forms */
.profile-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-form.max-width-form {
    max-width: 500px;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-family: 'Outfit', sans-serif;
}

.profile-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.profile-form .form-control:focus {
    border-color: #D2B68A;
    box-shadow: 0 0 0 3px rgba(210, 182, 138, 0.2);
    outline: none;
}

.profile-form .form-control.disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* Validation Errors */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #e53e3e;
    /* Darker red */
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.form-actions .btn {
    border-radius: 8px;
}

/* Booking Table */
.profile-table-wrapper {
    overflow-x: auto;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th {
    text-align: left;
    padding: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #718096;
    border-bottom: 2px solid #f1f1f1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-table td {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

.booking-ref {
    font-family: monospace;
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.date-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.date-arrow {
    color: #cbd5e0;
}

.price-col {
    font-weight: 600;
    color: #2d3748;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.confirmed,
.status-badge.completed,
.status-badge.checked_in {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.pending {
    background: #feebc8;
    color: #744210;
}

.status-badge.cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #cbd5e0;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
}

/* =========================================
   Modern Toggle Switch
   ========================================= */
.toggle-wrapper {
    display: flex;
    align-items: center;
    /* Ensures vertical alignment */
    gap: 15px;
    /* Increased gap for neatness */
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
    /* Add slight padding for touch target */
    width: 100%;
    justify-content: flex-start;
}

.toggle-switch {
    position: relative;
    width: 48px;
    /* Slightly wider */
    height: 26px;
    /* Slightly taller */
    background-color: rgba(0, 0, 0, 0.4);
    /* darker standard bg for contrast */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Lighter border */
    border-radius: 26px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #e2e8f0;
    /* Bright white/grey for knob */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hide the default checkbox but keep it accessible/functional */
.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Checked State */
.toggle-input:checked+.toggle-switch {
    background-color: var(--brand-teal);
    /* Teal Background when active */
    border-color: var(--brand-gold);
    /* Gold Border when active */
}

.toggle-input:checked+.toggle-switch::after {
    transform: translateX(22px);
    background-color: var(--brand-gold);
    /* Gold Knob when active */
}

/* Focus State for Accessibility */
.toggle-input:focus+.toggle-switch {
    box-shadow: 0 0 0 2px rgba(210, 182, 138, 0.5);
}

/* Label Styling */
.toggle-label-text {
    font-size: 0.85rem;
    /* Adjusted for uppercase */
    color: var(--brand-teal);
    /* Dark Text as requested */
    font-weight: 600;
    /* Bold */
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.toggle-label-text a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 500;
    /* Bolder links */
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
    /* Highlight structure */
}

.toggle-label-text a:hover {
    color: var(--brand-gold-soft);
    border-bottom-color: var(--brand-gold-soft);
    text-decoration: none;
}

/* =========================================
   Hero Button Morph Animation (FLIP Support)
   ========================================= */
#hero-book-btn {
    /* Base styles */
    transition: none;
    will-change: top, left, width, height, border-radius, background-color, box-shadow;
    /* Ensure content doesn't wrap/break during shrink */
    white-space: nowrap;
    overflow: hidden;
}

/* Enabled during morph transition only */
/* Increased specificity to override #hero-book-btn transition: none */
#hero-book-btn.morph-transition {
    /* Smoother, less "snappy" easing for better visibility of shape change */
    transition:
        top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* FAB Content Switching */
/* Default State: Text Visible, Icon Hidden */
#hero-book-btn .btn-text {
    transition: opacity 0.2s ease;
    /* Fast fade out */
    opacity: 1;
    display: inline-block;
}

#hero-book-btn .btn-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Pop in */
}

/* FAB State: Text Hidden, Icon Visible */
#hero-book-btn.is-fab {
    background-color: var(--brand-gold-muted);
    box-shadow: 0 10px 25px rgba(11, 71, 69, 0.4);
}

#hero-book-btn.is-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(11, 71, 69, 0.5);
}

#hero-book-btn.is-fab .btn-text {
    opacity: 0;
    pointer-events: none;
}

#hero-book-btn.is-fab .btn-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   Modern Security Section
   ========================================= */
.security-lock-state {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.security-lock-state:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(180, 157, 117, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lock-icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(180, 157, 117, 0.1) 0%, rgba(180, 157, 117, 0.05) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 157, 117, 0.2);
    color: var(--brand-gold-muted);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lock-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5px;
}

/* Modern Button Styles */
.btn-modern {
    background: linear-gradient(135deg, var(--brand-gold-muted) 0%, #C5B08B 100%);
    color: var(--brand-teal);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(180, 157, 117, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 157, 117, 0.35);
    filter: brightness(1.05);
    color: var(--brand-teal);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Secondary / Ghost Link */
.link-modern-secondary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
}

.link-modern-secondary:hover {
    color: var(--brand-gold-soft);
    background: rgba(255, 255, 255, 0.05);
}

.form-actions {
    margin-top: 2rem;
}


.text-right {
    text-align: right;
}


/* Fix for Security Tab Visibility (Dark Text on White Content) */
#security {
    color: var(--brand-teal);
}

#security h2,
#security h3,
#security p,
#security label {
    color: var(--brand-teal) !important;
}

#security .text-muted {
    color: rgba(11, 71, 69, 0.7) !important;
}

#security .form-control {
    background: #F5F5F5 !important;
    border: 1px solid rgba(11, 71, 69, 0.15) !important;
    color: var(--brand-teal) !important;
}

#security .form-control:focus {
    background: #FFF !important;
    border-color: var(--brand-gold-muted) !important;
}

/* Update Lock State for Light Background */
#security .security-lock-state {
    background: rgba(11, 71, 69, 0.03);
    border: 1px solid rgba(11, 71, 69, 0.1);
}

#security .security-lock-state:hover {
    background: rgba(11, 71, 69, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#security .lock-icon-wrapper {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(11, 71, 69, 0.1);
}

#security .link-modern-secondary {
    color: rgba(11, 71, 69, 0.6);
}


/* =========================================
   Premium Profile Dropdown
   ========================================= */
.profile-dropdown-container {
    position: relative;
    list-style: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: rgba(8, 54, 52, 0.95);
    /* Deep Brand Teal */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(210, 182, 138, 0.3);
    /* Soft Gold Border */
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* Close Transition: JavaScript controls timing */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Invisible Bridge to prevent closing when moving mouse across gap */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    /* Covers the 15px gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Triangle/Arrow pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: rgba(8, 54, 52, 0.95);
    border-left: 1px solid rgba(210, 182, 138, 0.3);
    border-top: 1px solid rgba(210, 182, 138, 0.3);
    transform: rotate(45deg);
    z-index: -1;
}

/* CSS hover removed - JavaScript handles all open/close behavior */

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-gold-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--brand-white);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background: rgba(210, 182, 138, 0.15);
    /* Gold Tint */
    color: var(--brand-gold-soft);
    padding-left: 1.25rem;
    /* Slide effect */
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}

/* Login/Auth variants */
.dropdown-item.auth-action {
    justify-content: center;
    background: rgba(210, 182, 138, 0.1);
    margin-top: 0.5rem;
    font-weight: 500;
}

.dropdown-item.auth-action:hover {
    background: var(--brand-gold-muted);
    color: var(--brand-teal);
    padding-left: 1rem;
    /* No slide for center buttons */
}

/* Global Shimmer Animation */
/* Used for gold gradient text effects */
@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* =========================================
   Mobile Booking Form Redesign (Vertical Stack v3)
   ========================================= */
@media (max-width: 768px) {

    /* 1. App Sheet Container */
    .booking-form-modern {
        background: #FFFFFF;
        /* Clean White Sheet */
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        margin-top: 1.5rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        /* Soft lift */
        position: relative;
        flex-direction: column;
        gap: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    form#bookingForm {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* 2. Destination Header */
    .destination-card {
        text-align: center;
        margin-bottom: 0.5rem;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .destination-card label,
    .destination-card svg {
        display: none;
    }

    .destination-card input {
        font-family: 'Outfit', sans-serif;
        font-size: 1.2rem;
        /* Large Title */
        font-weight: 700;
        color: var(--brand-teal);
        text-align: center;
        background: transparent;
        border: none;
        padding: 0;
        width: 100%;
    }

    /* 3. Date Stack (Vertical List) */
    .date-range-container {
        display: flex;
        flex-direction: column;
        /* Stack vertically! */
        gap: 1rem;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0;
    }

    .date-input-group {
        background: #F8FAFC;
        /* Slight contrast input bg */
        border-radius: 12px;
        padding: 1rem 1.25rem;
        border: 1px solid #E2E8F0;
        display: flex;
        align-items: center;
        /* Center icon and text vertically */
        gap: 1rem;
        /* Space between icon and text */
        position: relative;
        min-height: 72px;
    }

    /* Active/Focus State */
    .date-input-group:active,
    .date-input-group:focus-within {
        border-color: var(--brand-gold-muted);
        background: #FFF;
        box-shadow: 0 4px 12px rgba(210, 182, 138, 0.15);
    }

    /* Date Labels */
    .date-input-group label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #64748B;
        margin-bottom: 0.25rem;
        display: block;
        font-weight: 600;
    }

    /* Restore Icons */
    .date-card svg {
        display: block !important;
        width: 20px;
        height: 20px;
        color: var(--brand-gold-muted);
    }

    /* Text Wrapper */
    .date-display {
        flex-direction: column;
        align-items: flex-start;
        flex-grow: 1;
    }

    /* Values */
    .date-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--brand-teal);
    }

    .date-day {
        font-size: 0.85rem;
        color: #94A3B8;
        margin-top: 2px;
    }

    /* CRITICAL: Ensure Inputs are Interactable */
    .date-input-group input {
        /* Remove absolute positioning - let inputs work naturally */
        pointer-events: auto !important;
        opacity: 1;
        /* Make input invisible but functional */
        background: transparent;
        border: none;
        color: transparent;
        cursor: pointer;
    }

    .date-connector {
        display: none;
    }

    /* 4. Guest & Room Selectors */
    .guest-counters,
    .room-filter-row {
        width: 100%;
        background: #F8FAFC;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        border: 1px solid #E2E8F0;
        min-height: 72px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .input-card.counter-card {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .input-card.counter-card label {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #64748B;
        font-weight: 600;
        margin-bottom: 0.25rem;
        display: block;
    }

    #guestSummary {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--brand-teal);
        width: 100%;
        display: block;
    }

    /* 5. Submit Buttons */
    .booking-btn-group {
        display: flex;
        flex-direction: row; /* Force side-by-side */
        gap: 0.75rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-check-availability,
    .btn-whatsapp {
        flex: 1;
        width: auto !important; /* Allow flex to control width */
        max-width: none !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.5rem !important;
        font-size: 0.95rem !important; /* Smaller text for mobile */
        text-align: center;
        border-radius: 12px !important;
        margin-top: 0 !important;
    }

    .btn-check-availability {
        background: #0B4745 !important; /* Hardcoded hex as failsafe */
        color: #FFF !important;
        /* Removed filter: none !important to allow global .disabled grayscale to work */
        opacity: 1 !important;
    }


    .btn-whatsapp {
        background: #25D366 !important;
        color: #FFF !important;
        filter: none !important;
        opacity: 1 !important;
        pointer-events: auto !important; /* Ensure clickable in disabled container */
        position: relative !important;
        z-index: 110 !important;
    }






    /* 6. Carousel Cards (Mobile Aspect Ratio) */
    .carousel-card {
        width: 80vw !important;
        /* Slightly wider */
        height: 55vh !important;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .carousel-card img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* 7. Disable Hero Morph Animation on Mobile */
    #hero-book-btn,
    #hero-book-btn.morph-transition,
    #hero-book-btn.is-fab {
        transition: none !important;
        transform: none !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        border-radius: 50px !important;
        background-color: var(--brand-white) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        top: auto !important;
        left: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #hero-book-btn .btn-text {
        opacity: 1 !important;
        display: inline-block !important;
        pointer-events: auto !important;
        color: var(--brand-teal) !important;
    }

    #hero-book-btn .btn-icon {
        display: none !important;
        opacity: 0 !important;
    }
}

/* =========================================
   Desktop Navbar Tweaks (Prevent Wrapping)
   ========================================= */
/* Default State (Mobile + Large Desktop): Show Full, Hide Short */
.nav-label-short {
    display: none;
}

/* Desktop Only: Prevent Wrapping */
@media (min-width: 769px) {
    .nav-links li a {
        white-space: nowrap;
    }
}

/* Narrow Desktop / Tablet Landscape (769px - 1170px) */
/* Prevent menu breaking on intermediate widths */
@media (min-width: 769px) and (max-width: 1170px) {

    /* 1. Reduce Spacing to fit more items */
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    /* 2. Switch to Short/Abbreviated Text */
    .nav-label-full {
        display: none;
    }

    .nav-label-short {
        display: inline;
    }
}

/* =========================================
   Security Caution Component
   ========================================= */
.remember-me-box {
    background: rgba(11, 71, 69, 0.03);
    /* Very light accent tint */
    border: 1px solid rgba(180, 157, 117, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.security-caution {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(180, 157, 117, 0.2);
    /* Separator inside box */
    font-size: 0.85rem;
    color: var(--brand-teal);
    /* Dark Text */
    line-height: 1.4;
    animation: fadeIn 0.4s ease-out;
}

.security-caution .security-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-gold-muted);
    flex-shrink: 0;
    margin-top: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Mobile Flatpickr Centering
   ========================================= */
@media (max-width: 900px) {
    .flatpickr-calendar {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 99999 !important;
        width: 90% !important;
        max-width: 350px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }

    /* Hide arrow since it's floating */
    .flatpickr-calendar.arrowTop:before,
    .flatpickr-calendar.arrowTop:after,
    .flatpickr-calendar.arrowBottom:before,
    .flatpickr-calendar.arrowBottom:after {
        display: none !important;
    }

    /* Ensure backdrop if needed (optional, flatpickr doesn't add one natively usually) */
    /* We could add a backdrop via JS or pseudo-element but let's stick to centering for now */
}

/* =========================================
   Side Panel Styles
   ========================================= */


#side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    /* Above Navbar (1000) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

#side-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 35%;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    /* Above Overlay */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

#side-panel.active {
    transform: translateX(0);
}

#side-panel-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

#side-panel-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

#side-panel-close-btn svg {
    width: 24px;
    height: 24px;
}

.side-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 80px 40px 40px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    #side-panel {
        width: 85%;
    }
}

/* Gallery Thumbnails */
.gallery-thumbnail {
    height: 32px;
    width: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--brand-gold-soft);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(180, 157, 117, 0.5);
}