/* ========================================
   HEADER — Sakura Hotels
   Font: EB Garamond
   ======================================== */

/* ---- Wrapper ---- */
#header_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

#header_wrapper.hdr-transparent {
    background: transparent;
}

#header_wrapper.hdr-scrolled {
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Hide/show on scroll */
#header_wrapper.hdr-hidden {
    transform: translateY(-100%);
}

#header_wrapper.hdr-visible {
    transform: translateY(0);
}

/* ---- Main Container ---- */
.hdr-wrap-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    height: 90px;
}

/* ---- Logo ---- */
#hdr-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hdr-logo-white {
    height: 52px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.hdr-logo-color {
    height: 52px;
    width: auto;
    display: none;
    transition: opacity 0.3s ease;
}

/* On transparent (home/hero): show white logo */
.hdr-transparent .hdr-logo-white { display: block; }
.hdr-transparent .hdr-logo-color { display: none; }

/* On scrolled: show color logo */
.hdr-scrolled .hdr-logo-white { display: none; }
.hdr-scrolled .hdr-logo-color { display: block; }

/* ---- Desktop Menu ---- */
.hdr-strip-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.hdr-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.hdr-menu > li {
    position: relative;
}

.hdr-menu-link {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.hdr-scrolled .hdr-menu-link {
    color: #333;
}

.hdr-menu-link:hover,
.hdr-menu-link.hdr-active {
    color: var(--clr-primary) !important;
}

.hdr-chevron {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.hdr-has-dropdown:hover .hdr-chevron {
    transform: rotate(180deg);
}

/* ---- Dropdown Sub Menu ---- */
.hdr-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 200;
    pointer-events: none;
    border-radius: 4px;
}

.hdr-has-dropdown:hover .hdr-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hdr-sub-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: 'EB Garamond', 'Georgia', serif;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.hdr-sub-link:hover {
    background: #f9f9f9;
    color: var(--clr-primary);
    padding-left: 26px;
}

/* ---- Right Side Controls ---- */
.hdr-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* ---- Language ---- */
.hdr-lang {
    position: relative;
    cursor: pointer;
    font-size: 13px;
    font-family: 'EB Garamond', 'Georgia', serif;
    letter-spacing: 1px;
}

.hdr-transparent .hdr-lang {
    color: #fff;
}

.hdr-scrolled .hdr-lang {
    color: #333;
}

.hdr-lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.hdr-lang-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.hdr-lang:hover .hdr-lang-arrow {
    transform: rotate(180deg);
}

.hdr-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 80px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 200;
    border-radius: 4px;
}

.hdr-lang:hover .hdr-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hdr-lang-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease;
    text-align: center;
}

.hdr-lang-item:hover {
    background: #f5f5f5;
    color: var(--clr-primary);
}

/* ---- Book your stay button ---- */
.hdr-book-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    padding: 10px 22px;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hdr-book-btn:hover {
    background: #fff;
    color: #000;
}

.hdr-scrolled .hdr-book-btn {
    border-color: #333;
    color: #333;
}

.hdr-scrolled .hdr-book-btn:hover {
    background: #333;
    color: #fff;
}

/* ---- Hamburger ---- */
.hdr-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hdr-burger-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: background 0.3s ease;
}

.hdr-scrolled .hdr-burger-line {
    background: #333;
}

/* ---- Mobile Bar ---- */
#mobile_bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 900;
    justify-content: stretch;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mbar-book-btn,
.mbar-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mbar-book-btn {
    flex: 0 0 60%;
    background: var(--clr-primary);
    color: #fff;
}

.mbar-book-btn:hover {
    background: #8b6b4a; /* slightly darker gold/brown */
}

.mbar-wa-btn {
    flex: 0 0 40%;
    background: #000;
    color: #fff;
}

.mbar-wa-btn:hover {
    background: #222;
}

/* ---- Sidebar Overlay ---- */
#sidebar_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
}

#sidebar_overlay.is-active {
    display: block;
}

/* ---- Sidebar Menu ---- */
#menu_sidebar_wrap {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    z-index: 1200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow-y: auto;
}

#menu_sidebar_wrap.is-open {
    right: 0;
}

.menu_sidebar {
    height: 100%;
    position: relative;
}

.hdr-close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.hdr-close-sidebar:hover {
    color: var(--clr-primary);
}

.sidebar-inner {
    padding: 60px 30px 30px;
}

#sidebar_logo {
    display: block;
    margin-bottom: 35px;
}

#sidebar_logo img {
    height: 50px;
    width: auto;
}

/* Sidebar nav */
.sidebar-nav {
    margin-bottom: 30px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > li > a,
.sidebar-toggle {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    transition: color 0.2s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu > li > a:hover,
.sidebar-toggle:hover {
    color: var(--clr-primary);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    display: none;
    background: #f9f9f9;
}

.sidebar-submenu.is-open {
    display: block;
}

.sidebar-submenu li a {
    display: block;
    padding: 11px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-family: 'EB Garamond', 'Georgia', serif;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eeeeee88;
    transition: color 0.2s ease;
}

.sidebar-submenu li a:hover {
    color: var(--clr-primary);
}

/* Sidebar contacts */
.sidebar-contacts {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.sidebar-hotel-name {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.sidebar-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.sidebar-data {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Sidebar socials */
.sidebar-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sidebar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-socials a:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

/* ---- Visibility Helpers ---- */
.hidden-mobile {
    display: flex;
}

.hidden-desktop {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .hidden-mobile {
        display: none !important;
    }
    .hidden-desktop {
        display: flex !important;
    }
    #mobile_bar {
        display: flex !important;
    }
    .hdr-hamburger {
        display: flex !important;
    }
    #header_wrapper {
        padding-bottom: 0;
    }
    .hdr-wrap-main {
        padding: 15px 20px;
        height: auto;
    }
    .hdr-logo-white,
    .hdr-logo-color {
        height: 42px;
    }
    /* On mobile always show colored logo */
    .hdr-transparent .hdr-logo-white { display: none; }
    .hdr-transparent .hdr-logo-color { display: block; }
    
    /* Transparent header on mobile = still show color logo for readability */
    #header_wrapper.hdr-transparent {
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .hdr-transparent .hdr-burger-line {
        background: #333;
    }
}
