/* ==========================================================================
   HOTEL PMS — WORLD-CLASS ELITE SYSTEM (V4.2 "SOVEREIGN HARDENED")
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@100;300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0B1121;
    --primary-indigo: #4F46E5;
    --secondary: #E5C76B;
    --bg-base: #FFFFFF;
    --bg-dark: #0B1121;
    --text-main: #1E293B;
    --text-light: #64748B;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elite: 0 50px 100px -20px rgba(15, 23, 42, 0.12);
}

* { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--bg-base); color: var(--text-main); line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 900; line-height: 1.1; color: var(--primary); }
.section { padding: 160px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Navigation & Header (Ultra-Stability Pass) --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 2rem 0;
    z-index: 10000;
    transition: var(--transition);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1.25rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 950; text-decoration: none; color: white !important; display: flex; align-items: center; gap: 15px; }
.logo img { max-height: 44px; width: auto; transition: var(--transition); }
.navbar.scrolled .logo { color: var(--primary) !important; }
.logo i { color: var(--secondary); }

.nav-links { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,1); font-weight: 700; font-size: 0.75rem; letter-spacing: 1.2px; text-transform: uppercase; transition: var(--transition); }
.navbar.scrolled .nav-links a { color: var(--text-main); }
.nav-links a:hover { color: var(--secondary) !important; transform: translateY(-2px); }

/* Custom 3-Line Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px; /* Wider Hit Area */
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--primary); }

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--secondary) !important; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--secondary) !important; }

/* MOBILE REBOOT (FORCE VISIBILITY & FUNCTION) */
@media (max-width: 1024px) {
    .navbar { 
        background: #0B1121 !important; 
        padding: 1rem 0 !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
    }
    .logo { color: white !important; }
    .hamburger { display: flex !important; }
    .hamburger span { background: white !important; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: #0B1121 !important;
        display: flex !important; /* Force Display */
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 10000 !important;
        visibility: hidden; /* Hide until we open */
        opacity: 0;
    }
    .nav-links.mobile-open { 
        right: 0 !important; 
        visibility: visible !important;
        opacity: 1 !important;
    }
    .nav-links a { font-size: 1.75rem !important; color: white !important; padding: 1.5rem 0 !important; }
}

/* --- Hero & Search Architect --- */
.hero-content h1 { font-size: clamp(3rem, 10vw, 6rem); color: white; margin-bottom: 2rem; }
.hero-content { margin-top: -100px; /* Lift text to avoid search bar overlap */ }
.hero-tagline { color: var(--secondary); letter-spacing: 8px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; display: block; margin-bottom: 1.5rem; }

.booking-bar.v3 {
    background: white;
    padding: 2.5rem 3.5rem;
    border-radius: 24px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: repeat(2, 1fr) repeat(3, 110px) auto;
    gap: 2.5rem;
    margin-top: -110px;
}
.booking-field { position: relative; }
.booking-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #E2E8F0; /* Heritage Dividers */
}
.booking-field label { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 800; color: #94A3B8; letter-spacing: 1.5px; margin-bottom: 8px; display: block; }
.booking-field input, .booking-field select { border: none; width: 100%; font-weight: 900; color: var(--primary); font-size: 0.95rem; outline: none; background: transparent; cursor: pointer; }

.btn-search { 
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: var(--secondary);
    border: none;
    border-radius: 12px;
    padding: 1.25rem 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-search:hover { 
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 199, 107, 0.3);
}

/* --- Content Modules --- */
.room-grid.scalable { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 4rem; }
.room-card.elite { border: none; background: white; transition: var(--transition); border-radius: 0; }
.room-card.elite .room-img-container { height: 450px; overflow: hidden; border-radius: 20px; }
.room-card.elite:hover .room-img { transform: scale(1.05); }

.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.facility-card-mini { background: #F8FAFC; padding: 3.5rem; border-radius: 32px; border: 1px solid #E2E8F0; transition: var(--transition); }
.facility-card-mini:hover { border-color: var(--secondary); background: white; transform: translateY(-10px); }

/* --- Sovereign 2.0 Footer --- */
.monarch-footer { background: var(--bg-dark); color: white; padding: 140px 0 60px; }
.monarch-line { height: 1px; background: linear-gradient(90deg, transparent, var(--secondary), transparent); opacity: 0.3; margin-bottom: 50px; }

/* Custom Scroll */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border: 3px solid #F8FAFC; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

@media (max-width: 1200px) {
    .booking-bar.v3 { grid-template-columns: repeat(2, 1fr) repeat(3, 1fr); gap: 1.5rem; padding: 2rem; }
    .btn-search { grid-column: span 5; margin-top: 1rem; }
}
@media (max-width: 768px) {
    .booking-bar.v3 { grid-template-columns: 1fr; }
    .btn-search { grid-column: span 1; }
    .section { padding: 100px 0; }
}
