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

html {
    height: 100%;
    position: relative;
    /* Needed for ::before to position correctly if using absolute */
    background: none !important;
    /* Force no background */
    border: none !important;
    /* Force no border */
    outline: none !important;
    /* Force no outline */
    box-shadow: none !important;
    /* Force no box-shadow */
}

html::before {
    content: '';
    position: fixed;
    /* Ensures it covers the entire viewport and stays in place on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/dharamshala-mountain-view.png');
    /* Your background image */
    background-color: transparent;
    /* Ensure no background color */
    background-size: cover;
    /* Cover the entire viewport */
    background-position: center bottom;
    /* Center and align to bottom */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    opacity: 0.4;
    /* Grey mountain view background opacity - increased for visibility */
    z-index: -1;
    /* Ensures it stays behind all content */
    pointer-events: none;
    /* Allow clicks to pass through */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    /* Changed from none !important to transparent */
    min-height: 100vh;
    /* Ensure body takes at least full viewport height */
    display: flex;
    flex-direction: column;
    color: #333;
    border: none !important;
    /* Force no border */
    outline: none !important;
    /* Force no outline */
    box-shadow: none !important;
    /* Force no box-shadow */
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensure app container takes full viewport height */
}

/* --- Consistent Header Styles --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    font-weight: 600;
    background-color: #ffffff;
    /* Restored background color to hide body background in header */
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    padding-top: 0;
    /* Removed padding-top */
    padding-bottom: 0;
    /* Removed padding-bottom */
    height: 72px;
    /* Enforced fixed height */
    min-height: 72px;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Make header a positioning context for absolute children */
    /* position: relative; Removed to allow position: fixed to take effect */
}

/* Adjust main nav margin to create space for new section nav */
header .main-nav {
    margin-right: 20px;
}

/* Style for the logo link to remove underline and inherit color */
header a.logo-link,
header a.logo-link:link,
header a.logo-link:visited,
header a.logo-link:hover,
header a.logo-link:active,
header a.logo-link a {
    text-decoration: none !important;
    color: #333 !important;
}

header a.logo-link .logo {
    color: #333 !important;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none !important;
}

/* Original Nav (Contact Us, About Us) */
nav {
    margin-left: auto;
    margin-right: 40px;
    order: 3;
}

nav ul {
    display: flex;
    list-style-type: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #474747;
    transition: color 0.3s;
}

nav a:hover {
    color: #FF007A;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 20px;
    order: 4;
}

.header-auth a {
    color: white;
    /* Ensure text is white for header auth links */
}

.cta-button-small {
    background-color: #FF007A;
    /* A vibrant pink/magenta */
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}

.cta-button-small:hover,
.cta-button-small:focus,
.cta-button-small:active {
    background-color: #e6006e;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

#logout-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 10px;
    position: relative;
    z-index: 2;
    /* To ensure it stays above the absolutely positioned section-nav if there's overlap */
}

#logout-link:hover {
    color: #FF007A;
    text-decoration: none;
}

/* --- NEW SECTION NAV STYLES --- */
nav.section-nav {
    order: 2;
    /* Keep order for semantic flow, but won't affect absolute positioning */
    max-width: 900px;
    /* Keep this to control its max width */
    padding: 0 20px;
    box-sizing: border-box;

    /* Absolute positioning to center it horizontally on the page */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* Pulls it back by half its own width for true centering */
    z-index: 101;
    /* Ensure it stays above other header content if they overlap */
}

nav.section-nav ul {
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav.section-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.2s;
}

nav.section-nav a:hover:not(.active-section-link) {
    background-color: #f0f0f0;
    color: #FF007A;
}

/* Active section link style */
nav.section-nav a.active-section-link {
    color: #a0aec0;
    background-color: transparent;
    cursor: default;
    pointer-events: none;
    font-weight: 600;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
}

/* ============================================
   RESPONSIVE BREAKPOINTS:
   - Laptop: 1441px and above (MacBook Air 13-inch and larger)
   - Tablet: 441px - 1440px
   - Mobile: 440px and below (Pixel 10 Pro XL and smaller)
   ============================================ */

/* Tablet styles (441px - 1440px) */
@media (max-width: 1440px) and (min-width: 441px) {
    header {
        padding: 0 20px;
    }

    nav.section-nav {
        display: none;
        /* Hide section nav on tablets */
    }

    nav ul {
        gap: 20px;
    }
}

/* Mobile styles (430px and below - Pixel 10 Pro and smaller) */
@media (max-width: 440px) {
    header {
        padding: 0 15px;
        height: 60px;
        min-height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    nav.section-nav {
        display: none;
        /* Hide section nav on mobile */
    }

    /* Hide specific navigation links on mobile: Other Properties, Rooms & Suites, Amenities */
    nav ul li:nth-child(1),
    nav ul li:nth-child(2),
    nav ul li:nth-child(3) {
        display: none;
    }

    /* Keep Contact Us visible (4th item) */
    nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .cta-button-small {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .header-auth {
        gap: 10px;
    }

    /* Adjust main content margin for smaller header */
    main#main-content {
        margin-top: 60px;
    }

    /* Small mobile adjustments (within mobile breakpoint) */
    @media (max-width: 375px) {
        header {
            padding: 0 10px;
            flex-wrap: wrap;
            height: auto;
            min-height: 60px;
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .logo {
            font-size: 18px;
            width: 100%;
            text-align: center;
            margin-bottom: 5px;
        }

        nav {
            margin: 0;
            margin-right: 0;
            /* Ensure no right margin on mobile */
            order: 2;
            width: 100%;
        }

        nav ul {
            justify-content: center;
            gap: 10px;
            font-size: 0.8rem;
            flex-wrap: wrap;
        }

        .header-auth {
            order: 3;
            width: 100%;
            justify-content: center;
            margin-top: 5px;
        }

        .cta-button-small {
            padding: 5px 10px;
            font-size: 0.8em;
        }
    }
}