:root {
    --bg-soft: #f3faff;
    --bg-soft-2: #e7f3ff;
    --surface: #ffffff;
    --surface-muted: #f4faff;
    --text-900: #000000;
    --text-700: #111111;
    --text-500: #3f3f46;
    --line: #d0e6f8;
    --sky-start: #87ceeb;
    --sky-end: #00bfff;
    --sky-strong: #00a9ef;
    --sky-blue: #00bfff;
    --cta-gradient: linear-gradient(135deg, #87ceeb 0%, #00bfff 100%);
    --coral: var(--sky-start);
    --coral-strong: var(--sky-strong);
    --gold: var(--sky-end);
    --cloud-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius-card: 34px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-900);
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5rem;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    color: var(--text-900);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
}

.section-head h2 {
    margin-bottom: 0 !important;
}

p {
    margin: 0;
    color: var(--text-700);
    line-height: 1.7;
}

a {
    color: inherit;
}

.site-shell {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 2rem;
    padding-top: 0;
}

.nav-wrap {
    margin-top: 0;
    padding: 0;
    border-radius: 0 0 30px 30px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--cloud-shadow);
    display: block;
    position: sticky;
    top: 0;
    z-index: 24;
    backdrop-filter: blur(8px);
    overflow: visible;
}

.header-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    position: relative;
    min-height: 108px;
    column-gap: 1rem;
    padding: 0.8rem 1.25rem 0.7rem;
}

.header-top-links {
    display: none;
}

.header-search {
    position: relative;
    width: min(100%, 360px);
    z-index: 4;
}

.header-search-desktop {
    grid-column: 1;
    justify-self: start;
}

.header-search-mobile {
    display: none;
    width: 100%;
}

.header-search-shell {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.24rem;
    border-radius: 999px;
    border: 1px solid rgba(208, 230, 248, 0.96);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(16, 66, 108, 0.12);
    backdrop-filter: blur(8px);
}

.header-search-input {
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0 0.85rem;
    height: 42px;
    border-radius: 999px;
}

.header-search-input:focus {
    outline: none;
}

.header-search-submit {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 42px;
    padding: 0.62rem 1rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--cta-gradient);
    cursor: pointer;
    touch-action: manipulation;
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    width: 100%;
    padding: 0.5rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 42px rgba(15, 35, 56, 0.14);
    backdrop-filter: blur(12px);
}

.header-search-section + .header-search-section {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(208, 230, 248, 0.78);
}

.header-search-section-title {
    padding: 0.32rem 0.7rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5780a3;
}

.header-search-item {
    display: grid;
    gap: 0.14rem;
    padding: 0.62rem 0.7rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-900);
    transition: background 0.18s ease, transform 0.18s ease;
    touch-action: manipulation;
}

.header-search-item:hover,
.header-search-item:focus-visible {
    background: #edf8ff;
    transform: translateY(-1px);
}

.header-search-item-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.header-search-item-meta {
    font-size: 0.78rem;
    color: #5f7183;
}

.header-auth {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 3;
    padding: 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(208, 230, 248, 0.92);
    box-shadow: 0 14px 28px rgba(16, 66, 108, 0.12);
    backdrop-filter: blur(8px);
}

.header-auth-form,
.mobile-auth-form,
.inline-auth-form {
    margin: 0;
}

.header-auth-link,
.header-auth-submit {
    min-width: 100px;
    min-height: 42px;
    padding: 0.62rem 0.98rem;
    border-radius: 999px;
}

.header-auth-link.active {
    box-shadow: inset 0 0 0 1px rgba(0, 172, 239, 0.22);
}

.header-auth .btn:hover,
.header-auth .btn:focus-visible {
    transform: none;
}

.mobile-auth-group {
    display: none;
}

.header-main-row {
    border-top: 1px solid rgba(208, 230, 248, 0.85);
    padding: 0.58rem 0.8rem 0.74rem;
}

/* 1. Header Brand Container: Vertical center + breathing room */
.header-brand, .brand {
    display: flex !important;
    grid-column: 2;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 1.2rem 0 !important;
    text-decoration: none;
    margin: 0 !important;
}

/* 2. Logo sizing balance */
.header-brand img, .brand img {
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
    transform: translateY(-4px) !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* 3. Text wrapper center alignment */
.header-brand-text, .brand-text, .brand span {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* 4. Main title */
.header-brand-text strong, .brand strong {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #0f3454 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.02em !important;
}

/* 5. Subtitle */
.header-brand-text span, .brand small {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.62rem;
}

.main-nav > a,
.main-nav > .has-dropdown > a,
.main-nav > .admin-link {
    padding: 0.52rem 0.88rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-700);
    text-decoration: none;
    transition: 0.2s ease;
    touch-action: manipulation;
}

.main-nav > a:hover,
.main-nav > .has-dropdown > a:hover,
.main-nav > .admin-link:hover,
.main-nav > a.active,
.main-nav > .has-dropdown.active > a {
    color: #fff;
    background: var(--cta-gradient);
}

.main-nav > .admin-link {
    border: 1px solid var(--line);
}

.has-dropdown {
    position: relative;
}

@media (min-width: 1025px) {
    .has-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: max(100%, 220px);
        height: 0.75rem;
    }
}

@media (min-width: 769px) {
    .header-main-row {
        padding: 0.5rem 0.8rem 0.5rem;
    }

    .main-nav {
        margin-top: 0;
        align-items: center;
    }

    .main-nav > a,
    .main-nav > .has-dropdown > a,
    .main-nav > .admin-link {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
}

@media (min-width: 1025px) {
    .header-top-row {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

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

    .header-auth {
        display: none;
    }

    .mobile-auth-group {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        margin-top: 0.35rem;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(208, 230, 248, 0.85);
    }

    .header-search-mobile {
        display: block;
        margin-bottom: 0.35rem;
    }

    .mobile-auth-group .btn,
    .mobile-auth-group form {
        width: 100%;
    }
}

.dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--cloud-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
    z-index: 40;
}

@media (min-width: 1025px) {
    .dropdown {
        top: calc(100% + 0.2rem);
    }
}

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

.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    position: relative;
}

.dropdown a {
    display: block;
    border-radius: 18px;
    padding: 0.52rem 0.72rem;
    text-decoration: none;
    color: var(--text-700);
    font-size: 0.88rem;
    font-weight: 600;
    touch-action: manipulation;
}

.dropdown a:hover {
    background: #e8f6ff;
    color: var(--text-900);
}

.has-dropdown > a[data-menu-parent]::after {
    content: '▾';
    margin-left: 0.36rem;
    font-size: 0.72rem;
    line-height: 1;
}

@media (hover: none), (pointer: coarse) {
    .header-search-item:hover,
    .header-search-item:focus-visible {
        background: transparent;
        transform: none;
    }

    .main-nav > a:hover,
    .main-nav > .has-dropdown > a:hover,
    .main-nav > .admin-link:hover {
        color: var(--text-700);
        background: transparent;
    }

    .dropdown a:hover {
        background: transparent;
        color: var(--text-700);
    }

    .has-dropdown:hover > .dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }

    .has-dropdown:focus-within > .dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }
}

.main-content {
    margin-top: 1.1rem;
}

.flash-wrap {
    margin-top: 0.9rem;
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: #effdf2;
    color: #2c6e3e;
    border-color: #b4e3c0;
}

.flash-error {
    background: #f0f8ff;
    color: #2e5a7e;
    border-color: #b8d7ee;
}

.search-related-categories {
    margin: 0.9rem 0 1.2rem;
}

.search-related-label {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e7e97;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.section {
    margin: 0.5rem 0;
    animation: fade-up 0.45s ease both;
}

.page-head {
    padding: 1.8rem;
    border-radius: 34px;
    background: var(--cta-gradient);
    box-shadow: var(--cloud-shadow);
}

.page-head p,
.page-head .eyebrow {
    color: #0d3e63;
}

.page-head.compact {
    padding: 1.35rem 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.73rem;
    font-weight: 700;
}

/* 상품 카드 타이틀(h3) 볼드체 해제 및 텍스트 톤다운 */
.travel-card h3 {
    font-weight: 500 !important; /* 무거운 볼드체(700)에서 미디움(500)으로 두께를 뺌 */
    color: #333333 !important; /* 완전 까만색 대신 살짝 부드러운 진회색 적용 */
    text-align: center !important; /* 카드 타이틀 가운데 정렬 */
    line-height: 1.4 !important; /* 줄간격을 넓혀서 답답함 해소 */
    margin-bottom: 12px !important; /* 버튼과의 사이 간격 확보 */
}

.text-gradient-ph {
    /* 트로피컬 선셋 ~ 푸른 바다 느낌의 무지개 그라데이션 */
    background: linear-gradient(to right, #FF512F, #F09819, #00A9EF, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
