/* --- 1. GLOBAL RESET --- */
html {
    scroll-behavior: smooth; /* <--- This enables the scrolling animation */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

/* --- 2. LOGIN PAGE FIX (index.html) --- */
.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* This background image was missing for you */
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
                url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
}

.login-container {
    background: white;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 5px;
}

.login-container p {
    color: #666;
    margin-bottom: 25px;
}

/* --- 3. NAVBAR (For all other pages) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #0f172a; /* Dark Navy */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #c5a059; /* Gold */
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #c5a059;
}

.btn-reservation {
    background: #c5a059;
    padding: 8px 15px;
    border-radius: 4px;
    color: #0f172a !important;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 4. GLOBAL FORM STYLES (Fixes Contact & Login Inputs) --- */
/* This ensures all inputs are always full width and styled */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%; /* Forces full width */
    padding: 12px;
    margin-bottom: 15px; /* Spacing between boxes */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
    display: block; /* Ensures they sit on their own line */
}

input:focus, textarea:focus, select:focus {
    border-color: #c5a059;
    outline: none;
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

label {
    display: block; /* Puts label above the input */
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

button {
    cursor: pointer;
}

/* --- 5. BUTTONS --- */
.btn-primary {
    background: #0f172a;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
    text-align: center;
    display: inline-block;
    text-decoration: none; /* Removes underline from links */
}

.btn-primary:hover {
    background: #c5a059;
    color: #0f172a;
}

.btn-book {
    background: #c5a059;
    color: #0f172a;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

/* --- 6. PAGE SECTIONS (Hero, Rooms, Contact) --- */
.hero-section {
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Container Utility */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Rooms List Fix */
.room-card-horizontal {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.room-card-horizontal img {
    width: 40%;
    object-fit: cover;
}

.rc-content {
    padding: 30px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact Page Layout Fix */
.contact-layout {
    display: flex;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-text { flex: 1; }
.contact-form-wrapper { flex: 1; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .room-card-horizontal, .contact-layout {
        flex-direction: column;
    }
    
    .room-card-horizontal img {
        width: 100%;
        height: 200px;
    }
    
    .rc-content { width: 100%; }
}
/* =========================================
   ROOMS PAGE SPECIFIC STYLES
   (Paste this at the bottom of style.css)
   ========================================= */

/* 1. Header Layout (Aligns Title Center, Button Right) */
.header-flex-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2; /* Sits on top of the dark overlay */
}

/* 2. Invisible Spacer (Desktop Only) */
/* This balances the layout so the "Accommodations" text stays perfectly centered */
.spacer {
    width: 140px; /* Approximately the same width as the button */
    display: none; 
}

/* 3. The "Glass" Button Style */
.btn-glass {
    background: rgba(255, 255, 255, 0.25); /* Semi-transparent white */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 25px;
    border-radius: 50px; /* Rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(4px); /* Blurs the image behind the button */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass:hover {
    background: white;
    color: #0f172a; /* Navy text on hover */
    transform: translateY(-2px);
}

/* 4. Center the Room Cards List */
.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 5. Update Room Card Width for Centering */
/* We add max-width so they don't stretch too wide on big screens */
.room-card-horizontal {
    width: 100%;
    max-width: 900px; /* Keeps it looking elegant */
}

/* 6. Mobile Responsiveness for Rooms Header */
@media (min-width: 769px) {
    .spacer { display: block; } /* Spacer only exists on desktop */
}

@media (max-width: 768px) {
    .header-flex-hero {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .btn-glass {
        width: auto; /* Let button size itself on mobile */
        padding: 8px 20px;
    }
}
/* =========================================
   HOME PAGE SPECIFIC STYLES (UPDATED)
   (Replace the bottom section with this)
   ========================================= */

/* 1. Quick Book Bar (Now Hovers!) */
.quick-book-bar {
    background: white;
    padding: 35px 40px; /* More breathing room */
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Subtle shadow start */
    display: flex;
    align-items: flex-end;
    gap: 30px; /* More space between inputs */
    transition: all 0.3s ease; /* Smooth animation */
    max-width: 1100px;
    margin: 0 auto;
}

/* The Hover Effect you wanted */
.quick-book-bar:hover {
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Shadow grows */
}

.qb-item {
    flex: 1;
}

.qb-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qb-item input, 
.qb-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0;
    background: #f8fafc;
    transition: 0.3s;
}

.qb-item input:focus, .qb-item select:focus {
    background: white;
    border-color: #c5a059;
}

.qb-btn {
    background: #c5a059;
    color: #0f172a;
    padding: 12px 40px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    height: 48px; /* Perfectly matches input height */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.qb-btn:hover {
    background: #b08d45;
    transform: translateY(-2px);
}
/* 2. Feature Highlights Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid transparent; /* Prepare for hover effect */
}

.feature-box:hover {
    transform: translateY(-10px);
    border-top: 4px solid #c5a059;
}

.feature-box i {
    font-size: 3rem;
    color: #c5a059;
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: #0f172a;
}

/* Special border for the Medical box */
.highlight-border {
    border-top: 4px solid #c5a059;
}

/* Mobile Fixes for Home Page */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem !important; }
    
    .quick-book-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .qb-btn { width: 100%; }
}
/* --- RATES & TABLES REDESIGN --- */

/* The Card Wrapper */
.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Nice soft shadow */
    padding: 20px;
    max-width: 900px; /* Limits width */
    margin: 0 auto; /* Centers the card */
    overflow: hidden;
}

.table-container {
    overflow-x: auto; /* Allows scroll on mobile inside the card */
    margin-bottom: 0;
}

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

.rates-table th, .rates-table td {
    border-bottom: 1px solid #eee; /* Clean horizontal lines only */
    border-right: none;
    border-left: none;
    border-top: none;
    padding: 20px 15px; /* More breathing room */
    text-align: center;
    font-size: 0.95rem;
}

/* Header Styling */
.rates-table th {
    background: #0f172a;
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 20px;
}

/* Row Hover Effect */
.rates-table tr:hover {
    background-color: #f8fafc;
}

/* Remove border from last row */
.rates-table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: #fffbeb !important;
    font-weight: bold;
    color: #b45309;
}
/* --- ROOMS & DINING BUTTON GROUP --- */

.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 25px;
    flex-wrap: wrap; /* Allows wrapping on small mobile screens */
}

/* Adjust button glass slightly for the group */
.hero-btn-group .btn-glass {
    font-size: 0.85rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-btn-group .btn-glass:hover {
    background: white;
    color: #0f172a;
    border-color: white;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .hero-btn-group {
        flex-direction: column; /* Stack buttons on phone */
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btn-group .btn-glass {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================
   CHATBOT STYLES (Inline + Modal + Red X)
   ========================================= */

/* 1. The Trigger Button */
.inline-chat-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 2px solid #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 100; /* Ensures it sits above other background elements */
}

.inline-chat-trigger:hover {
    border-color: #c5a059;
    background: #fffbeb;
    transform: translateY(-2px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* 2. Dark Overlay */
.chat-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Dimmed background */
    z-index: 9998; /* Below the window, above everything else */
    display: none; /* Hidden by default */
}

/* 3. Chat Window (Centered Modal) */
.chat-window {
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    
    /* Centering Logic */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 9999; /* Topmost layer */
    border: 1px solid #ddd;
    overflow: hidden;
}

/* 4. The RED X Close Button */
.close-chat {
    display: inline-block; /* Makes it clickable */
    cursor: pointer;
    font-size: 2rem;
    line-height: 0.8;
    color: white;
    transition: all 0.2s ease;
    padding: 0 5px;
}

.close-chat:hover {
    color: #ff4757; /* Red color on hover */
    transform: scale(1.4); /* Make it bigger */
}

/* 5. Chat Layout Components */
.chat-header {
    background: #0f172a;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg {
    background: #e2e8f0;
    color: #333;
    padding: 8px 12px;
    border-radius: 12px 12px 12px 0;
    align-self: flex-start;
    max-width: 80%;
    font-size: 0.9rem;
}

.user-msg {
    background: #c5a059;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 12px 12px 0 12px;
    align-self: flex-end;
    max-width: 80%;
    font-size: 0.9rem;
    font-weight: bold;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 8px;
    background: white;
}

.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    margin-bottom: 0;
}

.chat-input-area button {
    background: #0f172a;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   FOOTER "BACK TO TOP" BUTTON
   ========================================= */

.btn-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 1px solid #c5a059; /* Gold Border */
    color: #c5a059;            /* Gold Text */
    text-decoration: none;
    border-radius: 50px;       /* Pill Shape */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    background: #c5a059;      /* Fills with Gold */
    color: #0f172a;           /* Text turns Navy */
    transform: translateY(-5px); /* Floats up slightly */
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4); /* Glowing Shadow */
}

.btn-back-to-top i {
    transition: transform 0.3s;
}

.btn-back-to-top:hover i {
    transform: translateY(-3px); /* Arrow moves up on hover */
}
/* =========================================
   MOBILE FIX FOR ROOMS HEADER
   ========================================= */

@media (max-width: 768px) {
    /* 1. Unlock the height so it grows with content */
    .hero-section {
        height: auto !important; /* Override the fixed height */
        min-height: 70vh;        /* Make it tall enough */
        padding: 100px 20px 50px; /* Add padding top so it doesn't hit navbar */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 2. Shrink the Title Text */
    .hero-content h1 {
        font-size: 2.2rem; /* Much smaller to prevent wrapping issues */
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .hero-content h5 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 3. Fix the Button Stack */
    .hero-btn-group {
        flex-direction: column; /* Stack them vertical */
        width: 100%;
        max-width: 300px; /* Limit width */
        margin: 0 auto;   /* Center perfectly */
        gap: 12px;        /* Consistent space between buttons */
    }

    /* 4. Resize Buttons for Mobile */
    .hero-btn-group .btn-glass {
        width: 100%;       /* Fill the container width */
        padding: 12px 0;   /* Comfortable touch target */
        font-size: 0.95rem;
        justify-content: center; /* Center text inside button */
    }
}