/* ===================================
   Stay 헤더 스타일
   참고 디자인 기반, 모바일 우선
   =================================== */

#stay-header-container {
    position: relative;
    z-index: 1000;
}

.stay-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.95);
}

.stay-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.stay-header.hidden {
    top: -100px;
}

/* 로고 */
.stay-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.stay-logo {
    height: 28px;
    width: auto;
    display: flex;
    align-items: center;
}

.stay-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* 모바일 헤더 */
.stay-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    height: 56px;
}

.stay-mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    width: 23px;
    height: 23px;
}

.stay-hamburger-line {
    width: 17px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.stay-mobile-menu-btn.active .stay-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.stay-mobile-menu-btn.active .stay-hamburger-line:nth-child(2) {
    opacity: 0;
}

.stay-mobile-menu-btn.active .stay-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* 데스크톱 헤더 */
.stay-header-desktop {
    display: none;
}

.stay-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.stay-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stay-nav-link {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.stay-nav-link:hover {
    opacity: 0.7;
}

/* 메인 내비게이션 호버 컬러 (Find a stay / My stay / Locations 통일) */
.stay-nav > a.stay-nav-link:hover,
.stay-locations-menu:hover .stay-nav-link,
.stay-locations-menu.stay-nav-item.active .stay-nav-link {
    opacity: 1;
    color: #c4c4c4;
}

.stay-nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stay-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.stay-nav-item.active .stay-dropdown-arrow {
    transform: rotate(180deg);
}

/* 드롭다운 */
.stay-nav-item {
    position: relative;
}

.stay-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    min-width: 180px;
    z-index: 1001;
}

.stay-nav-item.active .stay-dropdown {
    display: block;
}

.stay-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stay-dropdown-item:last-child {
    border-bottom: none;
}

.stay-dropdown-item:hover {
    background: #F3F4F6;
}

/* 모바일 메뉴 오버레이 */
.stay-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.stay-mobile-menu-overlay.active {
    transform: translateX(0);
}

.stay-mobile-menu-content {
    padding: 60px 16px 40px;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.stay-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.stay-close-icon {
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.stay-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.stay-mobile-nav-link {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    transition: opacity 0.3s ease;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stay-mobile-nav-link:hover {
    opacity: 0.7;
}

.stay-mobile-nav-section {
    display: flex;
    flex-direction: column;
}

.stay-mobile-dropdown {
    display: none;
    margin-top: 8px;
    margin-left: 16px;
    flex-direction: column;
    gap: 8px;
}

.stay-mobile-nav-section.active .stay-mobile-dropdown {
    display: flex;
}

.stay-mobile-dropdown-item {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.stay-mobile-dropdown-item:hover {
    color: white;
}

/* 반응형 */
@media (min-width: 768px) {
    .stay-header-mobile {
        display: none;
    }

    .stay-header-desktop {
        display: block;
    }
}

@media (max-width: 767px) {
    .stay-header-desktop {
        display: none;
    }

    .stay-header-mobile {
        display: flex;
    }
}