/* CSS to force navbar height and prevent conflicts */
:root {
    --navbar-height: 80px;
    --navbar-scrolled-height: 60px;
}

.main-header {
    height: var(--navbar-height) !important;
    min-height: var(--navbar-height) !important;
    max-height: var(--navbar-height) !important;
    transition: all 0.4s ease-in-out !important;
}

.main-header.scrolled {
    height: var(--navbar-scrolled-height) !important;
    min-height: var(--navbar-scrolled-height) !important;
    max-height: var(--navbar-scrolled-height) !important;
}

.header-container,
.logo,
.menu li a {
    height: var(--navbar-height) !important;
    line-height: var(--navbar-height) !important;
    transition: all 0.4s ease-in-out !important;
}

.main-header.scrolled .header-container,
.main-header.scrolled .logo,
.main-header.scrolled .menu li a {
    height: var(--navbar-scrolled-height) !important;
    line-height: var(--navbar-scrolled-height) !important;
}

.logo img {
    height: calc(var(--navbar-height) * 0.85) !important; /* Increased logo size from 0.7 to 0.85 */
    width: auto !important;
    transition: all 0.4s ease-in-out !important;
    margin-top: -5px !important; /* Small adjustment to vertically center the larger logo */
}

.main-header.scrolled .logo img {
    height: calc(var(--navbar-scrolled-height) * 0.85) !important;
}

body {
    padding-top: var(--navbar-height) !important;
}

.hero-slider {
    margin-top: calc(var(--navbar-height) * -1) !important;
}

/* Mobile menu button fixes - removed as this is now handled in mobile.css */
/* Removing duplicate mobile menu button styling as it's now in mobile.css */

/* Room detail page adjustments */
.room-detail {
    padding-top: calc(var(--navbar-height) + 50px) !important;
}

/* Page header adjustments */
.page-header {
    padding-top: calc(var(--navbar-height) + 50px) !important;
}

/* Mobile adjustments - Note: Most mobile menu styling moved to mobile.css */
@media screen and (max-width: 768px) {
    /* Core positioning adjustments - specific to navbar height */
    body {
        padding-top: var(--navbar-height) !important;
    }

    .hero-slider {
        margin-top: calc(var(--navbar-height) * -1) !important;
    }
    
    /* Adjust hero slider for mobile */
    @media screen and (max-width: 576px) {
        .hero-slider {
            margin-top: calc(var(--navbar-height) * -1) !important;
        }
    }
}

/* WhatsApp reservation button has been removed */

.main-header.scrolled .whatsapp-header {
    margin-top: 15px !important; /* Adjusted for scrolled navbar */
    height: 30px !important;
}

.whatsapp-header:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

.whatsapp-header i {
    font-size: 18px !important;
    margin-right: 6px !important;
}

/* Language switch button adjustments - DESKTOP ONLY */
.language-switch {
    display: flex !important;
    align-items: center !important;
    margin-left: 15px !important;
    height: 30px !important; /* Reduced height */
    margin-top: 25px !important; /* Adjusted to vertically center */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px !important;
    padding: 0 5px !important;
}

.main-header.scrolled .whatsapp-header,
.main-header.scrolled .language-switch {
    margin-top: 15px !important; /* Adjusted for scrolled navbar */
}

.language-switch button {
    color: var(--light-text) !important;
    padding: 0 8px !important;
    height: 30px !important; /* Adjusted to match container */
    line-height: 30px !important; /* Match the height */
    font-size: 14px !important;
    position: relative !important;
    transition: all 0.3s !important;
}

.language-switch span {
    color: rgba(255, 255, 255, 0.5) !important;
}

.language-switch button.active,
.language-switch button:hover {
    color: var(--secondary-color) !important;
}

@media screen and (max-width: 768px) {
    .whatsapp-header {
        padding: 6px 12px !important;
        margin-top: 0 !important;
        font-size: 14px !important;
    }
      .whatsapp-header i {
        font-size: 16px !important;
    }
}

/* Further enhancements for the constrained button styling */
.menu li a {
    font-size: 15px !important;
    font-weight: 500 !important;
}

.main-header.scrolled .whatsapp-header,
.main-header.scrolled .language-switch {
    margin-top: 12px !important;
}

/* Mobile menu language-switch styling */
@media screen and (max-width: 768px) {
    .language-switch {
        background-color: rgba(255, 255, 255, 0.1) !important;
        height: 40px !important;
        margin: 10px 0 !important;
        border-radius: 5px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .language-switch button {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 16px !important;
    }
}

/* Removed duplicate mobile menu button code as it's now handled in mobile.css */
