/* ===================================================
 * ROAYATY RESPONSIVE HEADER STYLES
 * =================================================== */

:root {
    --gold-gradient-start: #c39243;
    --gold-gradient-end: #a6722d;
    --gold-active: #b88a3e;
    --menu-text-dark: #332d27;
    --header-bg: #faf8f5;
    --top-border-color: #d1a866;
}

/* Header Outer Container */
.roayaty-header {
    background-color: var(--header-bg);
    border-top: 1px solid var(--top-border-color);
    width: 100%;
    padding: 12px 0;
    box-sizing: border-box;
    position: relative;
}

.roayaty-header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 1. LOGO STYLES */
.roayaty-brand {
    text-decoration: none !important;
    display: block;
}

.roayaty-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-title {
    color: #b88a3e;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.logo-subtitle {
    color: #a37b38;
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Direct image target to control logo dimensions */
.roayaty-brand img {
    max-height: 45px;      /* Adjust height as needed (e.g., 35px - 45px) */
    width: auto;           /* Maintains original aspect ratio without distortion */
    display: block;
    object-fit: contain;
    transition: all 0.2s ease;
}

.logo-icon {
    width: 28px;            /* Reduced from 36px */
    height: 28px;           /* Reduced from 36px */
    flex-shrink: 0;
}

.logo-title {
    color: #b88a3e;
    font-size: 1.05rem;     /* Reduced from 1.25rem */
    font-weight: 700;
    line-height: 1.1;
}

.logo-subtitle {
    color: #a37b38;
    font-size: 0.58rem;     /* Reduced from 0.65rem */
    font-weight: 600;
    margin-top: 1px;
}

/* 2. DESKTOP NAVIGATION LINKS */
/* Align Menu to the Right */
.roayaty-nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;       /* Pushes menu all the way to the right */
    margin-right: 0;
    z-index: 99999 !important;      /* Gap between the menu and the button */
}

.roayaty-mobile-header,
.roayaty-mobile-cta {
    display: none;
}

.roayaty-mobile-header img {
    width: 120px;
}

.roayaty-nav-list {
    display: flex;
    align-items: center;
    gap: 40px;              /* Increased spacing from 28px/32px to 40px */
    list-style: none;
    margin: 0;
    padding: 0;
}

.roayaty-nav-link {
    color: var(--menu-text-dark);
    font-size: 1.05rem;     /* Increased text size from 0.92rem to 1.05rem */
    font-weight: 700;
    text-decoration: none !important;
    position: relative;
    padding: 6px 0 10px 0;
    transition: color 0.2s ease;
}

.roayaty-nav-link:hover,
.roayaty-nav-link.active {
    color: var(--gold-active);
}

.roayaty-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold-active);
    border-radius: 2px;
}

/* 3. BUTTON & HAMBURGER STYLES */
.roayaty-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.roayaty-btn-book {
    background: linear-gradient(180deg, var(--gold-gradient-start) 0%, var(--gold-gradient-end) 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    box-shadow: 0 3px 6px rgba(166, 114, 45, 0.25);
    transition: all 0.25s ease;
}

.roayaty-btn-book:hover {
    background: linear-gradient(180deg, #b38235 0%, #946322 100%);
    box-shadow: 0 4px 10px rgba(166, 114, 45, 0.35);
}

.roayaty-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--menu-text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.roayaty-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998 !important;
}

/* ===================================================
 * MEDIA QUERIES FOR TABLET & MOBILE (< 1120px & < 991px)
 * =================================================== */

@media (max-width: 1280px) {
    .roayaty-nav-list {
        gap: 28px;
    }
    .roayaty-nav-link {
        font-size: 0.98rem;
    }
}

@media (max-width: 1199px) {
    .roayaty-nav-list {
        gap: 24px;
    }
    .roayaty-nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 1080px) {
    .roayaty-nav-list {
        gap: 20px;
    }
    .roayaty-nav-link {
        font-size: 0.92rem;
    }
}

@media (min-width: 992px) {
    .roayaty-nav-menu {
        margin-left: auto;       /* Keeps menu pushed toward the right */
        margin-right: 40px;      /* Increase or decrease this value to change the gap (e.g., 20px, 32px, 48px) */
    }

    .roayaty-header-right {
        display: flex;
        align-items: center;
        gap: 15px;               /* Spacing between elements inside the right block (like button and language dropdown) */
    }
}

@media (max-width: 991px) {
    .roayaty-nav-menu {
        z-index: 100005 !important; /* Higher than any dropdown */
    }

    .roayaty-nav-overlay {
        z-index: 100004 !important; /* Sits right behind the drawer */
    }

    /* Force the main header right section / language wrapper to stay lower than the drawer */
    .roayaty-header-right,
    .roayaty-lang-wrapper {
        z-index: 1 !important;
    }

    /* If the button floats or overlaps absolute, hide it completely when the drawer is open */
    .roayaty-nav-menu.is-active ~ * .roayaty-lang-wrapper,
    body.drawer-open .roayaty-lang-wrapper {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* 2. Push language wrapper down or hide it if it overlaps the header layout on mobile */
    .roayaty-lang-wrapper {
        transition: opacity 0.25s ease, visibility 0.25s ease;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Hidden state only when body has 'drawer-open' class */
    body.drawer-open .roayaty-lang-wrapper {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .roayaty-hamburger {
        display: flex;
    }

    .desktop-btn {
        display: none; /* Hide top header CTA button on mobile */
    }

    /* Mobile Drawer Base (LTR Default: Hidden to the Right) */
    .roayaty-nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        left: auto;
        width: 290px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    /* Active State for LTR (Slides in from Right) */
    .roayaty-nav-menu.is-active {
        right: 0; 
    }

    /* RTL Support for Mobile Drawer (Hidden to the Left) */
    html[dir="rtl"] .roayaty-nav-menu,
    body.rtl .roayaty-nav-menu {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    }

    /* Active State for RTL (Slides in from Left) */
    html[dir="rtl"] .roayaty-nav-menu.is-active,
    body.rtl .roayaty-nav-menu.is-active {
        left: 0;
        right: auto;
    }

    .roayaty-nav-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Header inside Drawer */
    .roayaty-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        border-bottom: 1px solid #eeeeee;
        margin-bottom: 15px;
    }

    .mobile-logo-text {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--gold-active);
    }

    .roayaty-close-drawer {
        background: transparent;
        border: none;
        font-size: 1.8rem;
        line-height: 1;
        color: #666;
        cursor: pointer;
    }

    /* Stacked Nav Links on Mobile */
    .roayaty-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .roayaty-nav-list li {
        width: 100%;
        border-bottom: 1px solid #f8f8f8;
    }

    .roayaty-nav-link {
        display: block;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .roayaty-nav-link.active::after {
        display: none; /* Remove horizontal underline on mobile drawer */
    }

    /* Drawer Bottom CTA */
    .roayaty-mobile-cta {
        display: block;
        margin-top: 25px;
    }

    .w-100 {
        width: 100%;
        box-sizing: border-box;
    }

    html[dir="rtl"] .roayaty-nav-menu .roayaty-nav-list,
    body.rtl .roayaty-nav-menu .roayaty-nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: right !important;
    }

    html[dir="rtl"] .roayaty-nav-menu .roayaty-nav-list li,
    body.rtl .roayaty-nav-menu .roayaty-nav-list li {
        width: 100% !important;
        border-bottom: 1px solid #f8f8f8 !important;
    }

    html[dir="rtl"] .roayaty-nav-menu .roayaty-nav-link,
    body.rtl .roayaty-nav-menu .roayaty-nav-link {
        display: block !important;
        padding: 12px 0 !important;
        text-align: right !important;
    }
}

/* Optional: Adjust for smaller mobile screens */
@media (max-width: 576px) {
    .roayaty-brand img {
        max-height: 32px;  /* Slightly smaller on mobile to save header space */
    }
}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none; /* Hide subtitle text on tiny mobile screens to prevent overflow */
    }
}

/* ===================================================
 * RTL HEADER & NAVIGATION ALIGNMENT
 * =================================================== */

html[dir="rtl"] .roayaty-header,
body.rtl .roayaty-header {
    direction: rtl !important;
}

/* Ensure Header Container Flex Direction Flips Smoothly */
html[dir="rtl"] .roayaty-header-container,
body.rtl .roayaty-header-container {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important;
    align-items: center !important;
}

html[dir="rtl"] .roayaty-nav-menu,
body.rtl .roayaty-nav-menu {
    margin-right: auto;
    margin-left: 0;
}

/* Navigation Menu Links in RTL */
html[dir="rtl"] .roayaty-nav-list,
body.rtl .roayaty-nav-list {
    display: flex !important;
    flex-direction: row !important;
    padding-right: 0 !important;
    margin-right: auto !important; 
    margin-left: unset !important;
    text-align: right !important;
    padding-left: 32px;
}

/* Fix Dropdown Alignment for Language Menu in RTL */
html[dir="rtl"] .roayaty-lang-dropdown,
body.rtl .roayaty-lang-dropdown {
    right: auto !important;
    left: 0 !important; 
}

/* Spacing Adjustments for RTL Menu Items */
html[dir="rtl"] .roayaty-nav-link,
body.rtl .roayaty-nav-link {
    margin-right: 0 !important;
    margin-left: 0 !important;
}