/* Header Styles */
.dodamap-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
}

.dodamap-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.dodamap-header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.dodamap-header-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.dodamap-header-nav-link {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dodamap-header.scrolled .dodamap-header-nav-link {
    color: #1f2937;
}

.dodamap-header-nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
}

.dodamap-header-nav-link:hover {
    color: #10b981;
}

.dodamap-header.scrolled .dodamap-header-nav-link:hover {
    color: #10b981;
}

.dodamap-header-nav-link:hover::after {
    width: 100%;
}

.dodamap-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dodamap-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dodamap-header-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.dodamap-header-logo-text {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.dodamap-header.scrolled .dodamap-header-logo-text {
    color: #1f2937;
}

.dodamap-header-admin-link {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dodamap-header.scrolled .dodamap-header-admin-link {
    color: rgba(31, 41, 55, 0.5);
}

.dodamap-header-admin-link:hover {
    color: #10b981;
}

.dodamap-header.scrolled .dodamap-header-admin-link:hover {
    color: #10b981;
}

/* 상담문의 — 헤더에서 가장 먼저 눌리길 바라는 버튼이라 브랜드 오렌지로 채운다 */
.dodamap-header-consult {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #ef8b1f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(239, 139, 31, 0.28);
    transition: all 0.3s ease;
}

.dodamap-header-consult:hover {
    background: #d97a12;
    color: #ffffff;
    transform: translateY(-2px);
}

.dodamap-header-consult i {
    font-size: 14px;
}

/* 모바일 전체메뉴 안에 들어가는 사본. 데스크톱에서는 숨긴다 */
.dodamap-header-consult.is-mobile-only {
    display: none;
}

.dodamap-header-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.dodamap-header-mobile-toggle-bar {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.dodamap-header.scrolled .dodamap-header-mobile-toggle-bar {
    background: #1f2937;
}

.dodamap-header-mobile-toggle-bar:nth-child(1) {
    top: 12px;
}

.dodamap-header-mobile-toggle-bar:nth-child(2) {
    top: 19px;
}

.dodamap-header-mobile-toggle-bar:nth-child(3) {
    top: 26px;
}

.dodamap-header-mobile-toggle.active .dodamap-header-mobile-toggle-bar {
    background: #1f2937;
}

.dodamap-header-mobile-toggle.active .dodamap-header-mobile-toggle-bar:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.dodamap-header-mobile-toggle.active .dodamap-header-mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.dodamap-header-mobile-toggle.active .dodamap-header-mobile-toggle-bar:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dodamap-header {
        background: transparent;
    }

    .dodamap-header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .dodamap-header-container {
        padding: 0 20px;
        height: 70px;
    }

    .dodamap-header-left {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1001;
    }

    .dodamap-header-left.active {
        display: flex;
    }

    .dodamap-header-left.active .dodamap-header-nav-link {
        color: #1f2937;
        font-size: 28px;
        font-weight: 700;
    }

    .dodamap-header-left.active .dodamap-header-nav-link:hover {
        color: #10b981;
    }

    .dodamap-header-right {
        gap: 0;
        margin-right: 52px;
    }

    .dodamap-header-admin-link {
        display: none;
    }

    /* 헤더 바에서는 좁아서 아이콘만, 전체메뉴 안에서는 큼직하게 */
    .dodamap-header-right .dodamap-header-consult {
        padding: 9px 16px;
        font-size: 14px;
    }

    .dodamap-header-right .dodamap-header-consult span {
        display: none;
    }

    .dodamap-header-left.active .dodamap-header-consult.is-mobile-only {
        display: inline-flex;
        font-size: 20px;
        padding: 14px 40px;
    }

    .dodamap-header-logo-text {
        color: #1f2937;
    }

    .dodamap-header-mobile-toggle {
        display: flex;
        position: absolute;
        right: 20px;
    }
}
