/**
 * 公共 header 與 footer 樣式
 * 供 index.html、itineraries.html、contact-us.html 等使用 header-placeholder / footer-placeholder 的頁面引用
 */

/* --- 導航列：Hero 狀態（首頁透明） --- */
#main-nav {
    background-color: transparent;
    box-shadow: none;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
#main-nav .nav-text-primary { color: #ffffff; }
#main-nav .nav-icon-box { border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }
#main-nav .hamburger-line { background-color: #ffffff; }

/* --- 導航列：Scrolled 狀態（捲動後 / 子頁面預設） --- */
#main-nav.scrolled {
    background-color: #faf7f2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#main-nav.scrolled .nav-text-primary { color: #0F2823; }
#main-nav.scrolled .nav-icon-box { border-color: rgba(15, 40, 35, 0.2); color: #0F2823; }
#main-nav.scrolled .hamburger-line { background-color: #0F2823; }

/* --- 導航 Icon 按鈕 Hover --- */
.nav-icon-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-icon-box:hover {
    background-color: #C8AA6E !important;
    border-color: #C8AA6E !important;
    color: #0F2823 !important;
    transform: translateY(-2px);
}

/* --- 菜單遮罩 --- */
#menu-overlay {
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}
#menu-overlay.open {
    transform: translateX(0);
}

/* --- 菜單內圓形 Icon --- */
.menu-social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}
.menu-social-icon:hover {
    background-color: #0F2823;
    color: white;
    border-color: #0F2823;
}

/* --- 菜單連結 Hover --- */
.menu-link-item:hover {
    color: #C8AA6E;
}

/* --- Footer 圖示圓圈（確保 alma-gold 等色在 Tailwind 外也能生效） --- */
footer .icon-circle {
    transition: all 0.3s ease;
}

/* --- 搜尋遮罩 --- */
#search-overlay {
    position: fixed;
    inset: 0;
    background-color: #faf7f2;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#search-overlay.open {
    opacity: 1;
    visibility: visible;
}
#search-overlay .search-inner {
    width: 100%;
    max-width: 560px;
    padding: 0 1.5rem;
}
#search-overlay .search-input-wrap {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(15, 40, 35, 0.25);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
#search-overlay .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0F2823;
    font-size: 1.5rem;
    font-family: inherit;
    outline: none;
}
#search-overlay .search-input::placeholder {
    color: rgba(15, 40, 35, 0.45);
}
#search-overlay .search-close {
    background: none;
    border: none;
    color: #0F2823;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}
#search-overlay .search-close:hover {
    color: #C8AA6E;
}
#search-overlay .search-hint {
    color: rgba(15, 40, 35, 0.5);
    font-size: 0.875rem;
}
