/*==============================================
  LUXURY HOTEL NAVBAR - PREMIUM STYLING
  Complete responsive design for all devices
  ================================================*/

:root {
    /* Website Color Scheme */
    --primary-gold: #E8BF4B;
    --primary-gold-dark: #D4A740;
    --primary-dark: #1B1B1B;
    --primary-light: #FAFAF8;
    --text-dark: #3C3C3C;
    --text-light: #6C757D;
    --border-light: #EBEBEB;
    --bg-highlight: #F5F1EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --navbar-height: 100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*==============================================
  MAIN NAVBAR STRUCTURE
  ================================================*/

.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important; /* Extremely high to stay on top */
    background: #FFFFFF !important;
    border-bottom: 2px solid #000000 !important;
    box-shadow: var(--shadow-md) !important;
    width: 100% !important;
    transform: none !important; /* Disable any sliding animations */
    transition: none !important;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
}

.navbar-brand-luxury,
.navbar-actions-group {
    flex: 0 0 auto;
    min-width: fit-content;
}

@media (max-width: 1400px) {
    .navbar-container {
        padding: 0 1rem;
        gap: 0.25rem;
    }
}

/*==============================================
  NAVBAR BRAND (LOGO + NAME)
  ================================================*/

.navbar-brand-luxury {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 12px;
    border: none;
    box-shadow: none;
    transition: none; /* Removed to prevent blurring */
}

.navbar-brand-luxury:hover {
    opacity: 1; /* Keep consistent opacity */
}

.navbar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: none; /* Removed to prevent blurring */
    will-change: auto;
}

.navbar-brand-link:hover {
    opacity: 1;
}

.navbar-logo {
    height: 110px !important;
    width: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 0 0.5px rgba(180, 0, 0, 0.4)) !important; /* Softened red border line */
    transition: none !important;
    will-change: auto !important;
    image-rendering: auto;
    image-rendering: high-quality;
}

.navbar-brand-link:hover .navbar-logo {
    filter: none !important;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1;
}

.navbar-brand-text .brand-name-bold {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1B1B1B !important;
    margin: 0;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: #1B1B1B !important;
    text-shadow: none;
}

.navbar-brand-text .navbar-slogan-styled {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #D4A740 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: none !important;
    -webkit-text-fill-color: #D4A740 !important;
    font-style: normal;
    display: inline-block;
}

@media (max-width: 1550px) {
    .navbar-slogan-styled {
        display: block !important;
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
}

/*==============================================
  DESKTOP NAVIGATION MENU
  ================================================*/

.navbar-menu-desktop {
    display: none;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem;
    margin: 0 auto;
    gap: clamp(0.4rem, 0.6vw, 0.8rem);
    /* Tight, minimal spacing between nav items */
}

@media (min-width: 1200px) {
    .navbar-menu-desktop {
        display: flex;
    }
}

.navbar-menu-desktop>* {
    position: relative;
    /* No margins needed, using flex gap */
}

.navbar-menu-desktop i.fa-chevron-down {
    display: inline-block !important;
    /* Keep the dropdown arrow */
    font-size: 0.55rem;
    margin-left: 0.35rem;
    color: var(--primary-gold);
    opacity: 0.8;
}

/* Hide all other generic icons for premium look on desktop */
.navbar-menu-desktop .nav-link-luxury>i:not(.fa-chevron-down) {
    display: none !important;
}

.nav-link-luxury {
    position: relative;
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    /* Heritage / Luxury look */
    font-weight: 800;
    /* Sophisticated bold */
    font-size: 0.85rem;
    /* Adjusted size to fit navbar */
    padding: 0.6rem 0;
    transition: color 0.4s ease-out;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    /* Super Elegant tracking, scaled down to fit */
}

.nav-link-luxury:hover,
.nav-item-luxury:hover>.nav-link-luxury {
    color: var(--primary-gold-dark);
}

/* Elegant gold sliding underline */
.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    /* Very thin, aristocratic line */
    background: var(--primary-gold-dark);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link-luxury:hover::after,
.nav-item-luxury:hover>.nav-link-luxury::after {
    width: 100%;
}

/* Dropdown Toggle Styles */
.dropdown-toggle-luxury i {
    transition: transform 0.3s ease-out;
}

.dropdown-container:hover .dropdown-toggle-luxury i {
    transform: rotate(180deg);
}

/*==============================================
  DROPDOWN MENUS (DESKTOP)
  ================================================*/

.dropdown-container {
    position: relative;
}

/* Invisible bridge between menu item and dropdown */
.dropdown-container::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
    pointer-events: auto;
    z-index: 1999;
}

.dropdown-menu-luxury {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 12px;
    min-width: 180px;
    padding-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    will-change: opacity, visibility;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 2000;
}

.dropdown-container:hover .dropdown-menu-luxury {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item-luxury {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease-out, color 0.2s ease-out, border-left-color 0.2s ease-out, padding-left 0.2s ease-out;
    will-change: background, color, border-left-color, padding-left;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-item-luxury i {
    font-size: 1rem;
    color: var(--primary-gold);
    transition: color 0.2s ease-out;
    will-change: color;
}

.dropdown-item-luxury:hover {
    background: var(--primary-light);
    color: var(--primary-gold-dark);
    border-left-color: var(--primary-gold);
    padding-left: 1.2rem;
}

.dropdown-item-luxury:first-child {
    border-top: none;
}

.dropdown-item-luxury:last-child {
    border-bottom: none;
}

/*==============================================
  ACTION ACTIONS GROUP (DESKTOP)
  ================================================*/

.navbar-actions-group {
    display: none;
    justify-self: end;
    gap: 0;
    align-items: center;
    background: #fdfaf3;
    /* Creamy background to separate actions */
    border-radius: 50px;
    padding: 3px;
    border: 1px solid var(--primary-gold);
    box-shadow: 0 4px 12px rgba(232, 191, 75, 0.15);
    overflow: hidden;
}

@media (min-width: 1300px) {
    .navbar-actions-group {
        display: flex;
    }
}

@media (min-width: 992px) {
    .navbar-actions-group {
        display: flex;
    }
}

.action-divider {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    margin: 0 0.25rem;
}

/* User Login - Utility Style */
.btn-navbar-utility {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-navbar-utility i {
    font-size: 1.1rem;
    color: var(--text-light);
}

.btn-navbar-utility:hover {
    color: var(--primary-gold-dark);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-navbar-utility:hover i {
    color: var(--primary-gold);
}

/* Book Now - Primary CTA Style */
.btn-navbar-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: var(--primary-gold);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-navbar-primary:hover {
    background: var(--primary-gold-dark);
    color: #fff;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.35);
}

.btn-navbar-primary i {
    font-size: 0.95rem;
}

/*==============================================
  MOBILE HAMBURGER MENU
  ================================================*/

.hamburger-menu-luxury {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1051;
}

@media (min-width: 1300px) {
    .hamburger-menu-luxury {
        display: none;
    }
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
    transform-origin: center;
}

.hamburger-menu-luxury.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu-luxury.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-luxury.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/*==============================================
  MOBILE MENU OVERLAY
  ================================================*/

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    will-change: opacity, visibility;
    z-index: 1051;
}

.mobile-menu-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
}

/*==============================================
  MOBILE MENU PANEL
  ================================================*/

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    z-index: 1052;
    transition: right 0.3s ease-out;
    will-change: right;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 85vw;
        right: calc(-85vw);
    }
}

.mobile-menu-panel.active {
    right: 0;
}

/*==============================================
  MOBILE MENU HEADER
  ================================================*/

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mobile-menu-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-brand h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: 0.5px;
}

.mobile-menu-brand small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-menu-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease-out;
    will-change: color;
}

.mobile-menu-close:hover {
    color: var(--primary-gold);
}

/*==============================================
  MOBILE MENU CONTENT
  ================================================*/

.mobile-menu-content {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-out, color 0.2s ease-out, padding-left 0.2s ease-out;
    will-change: background, color, padding-left;
    width: 100%;
    text-align: left;
}

.mobile-nav-link i {
    font-size: 1.1rem;
    color: var(--primary-gold);
    min-width: 1.1rem;
    transition: color 0.2s ease-out;
    will-change: color;
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-gold-dark);
    padding-left: 2rem;
}

.mobile-nav-link:hover i {
    color: var(--primary-gold-dark);
}

/*==============================================
  MOBILE DROPDOWN MENUS
  ================================================*/

.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-toggle-mobile {
    justify-content: space-between;
    position: relative;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.mobile-nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary-gold);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    will-change: max-height;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
}

.mobile-nav-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease-out, color 0.2s ease-out, border-left-color 0.2s ease-out, padding-left 0.2s ease-out;
    will-change: background, color, border-left-color, padding-left;
    border-left: 3px solid transparent;
}

.mobile-dropdown-item i {
    font-size: 1rem;
    color: var(--primary-gold);
}

.mobile-dropdown-item:hover {
    background: #E9ECEF;
    color: var(--primary-gold-dark);
    border-left-color: var(--primary-gold);
    padding-left: 3.75rem;
}

/*==============================================
  MOBILE MENU DIVIDER
  ================================================*/

.mobile-menu-divider {
    margin: 1rem 1.5rem;
    border: none;
    border-top: 1px solid var(--border-light);
}

/*==============================================
  MOBILE ACTION BUTTONS
  ================================================*/

.mobile-btn-book,
.mobile-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 1.5rem;
    padding: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.mobile-btn-book {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.mobile-btn-login {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.mobile-btn-book:active,
.mobile-btn-login:active {
    transform: scale(0.96);
}

/*==============================================
  BODY PADDING ADJUSTMENT
  ================================================*/

body {
    padding-top: 100px !important;
    margin: 0 !important;
}

@media (max-width: 1299.98px) {
    body {
        padding-top: 70px !important;
    }
}

/*==============================================
  RESPONSIVE BREAKPOINTS
  ================================================*/

/* Tablet & Small Desktop (Below 1300px) */
@media (max-width: 1299.98px) {
    .navbar-container {
        padding: 0.5rem 1.25rem !important;
        height: 70px !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .navbar-logo {
        height: 75px !important;
    }

    .navbar-brand-luxury {
        padding: 0.4rem 0.8rem;
    }

    .navbar-brand-text h4 {
        font-size: 1rem;
    }

    .navbar-brand-text span {
        display: inline-block !important;
        font-size: 0.62rem;
    }

    .navbar-menu-desktop,
    .navbar-actions-group {
        display: none !important;
    }
}

/* Medium Mobile (481px - 767px) */
@media (max-width: 767.98px) {
    .navbar-container {
        padding: 0.5rem 1rem !important;
        height: 70px !important;
    }

    .navbar-logo {
        height: 75px !important;
    }

    .navbar-brand-luxury {
        padding: 0.3rem 0.6rem;
    }

    .navbar-brand-text h4 {
        font-size: 0.95rem;
    }

    .navbar-brand-text span {
        font-size: 0.6rem;
    }

    .mobile-menu-panel {
        width: 300px;
        right: -300px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0.4rem 0.75rem !important;
        height: 70px !important;
    }

    .navbar-logo {
        height: 75px !important;
    }

    .navbar-brand-luxury {
        padding: 0.25rem 0.5rem;
    }

    .navbar-brand-text h4 {
        font-size: 0.9rem;
    }

    .navbar-brand-text span {
        font-size: 0.56rem;
        letter-spacing: 0.5px;
    }

    .mobile-menu-header {
        padding: 1.25rem;
    }

    .mobile-menu-brand h5 {
        font-size: 0.95rem;
    }

    .mobile-nav-link {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .mobile-dropdown-item {
        padding: 0.7rem 1.25rem 0.7rem 3.25rem;
        font-size: 0.9rem;
    }

    .mobile-btn-book,
    .mobile-btn-login {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding: 0.9rem;
        font-size: 0.9rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .navbar-container {
        height: 60px;
        padding: 0.5rem 1.5rem;
    }

    body {
        padding-top: 60px;
    }

    .mobile-menu-header {
        padding: 0.75rem 1rem;
    }

    .mobile-nav-link {
        padding: 0.75rem 1rem;
    }

    .mobile-menu-panel {
        height: 100vh;
    }
}

/*==============================================
  SMOOTH SCROLL BEHAVIOR
  ================================================*/

html {
    scroll-behavior: smooth;
}

/*==============================================
  ACCESSIBILITY
  ================================================*/

.nav-link-luxury:focus,
.mobile-nav-link:focus,
.btn-navbar-book:focus,
.btn-navbar-login:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}