:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #eef7ff;
    --ink: #171717;
    --muted: #66707a;
    --line: #e5e8eb;
    --accent: #00a2ff;
    --accent-strong: #0078d4;
    --warm: #0078d4;
    --gold: #d6a62d;
    --sky: #d9eafa;
    --shadow: 0 22px 60px rgba(25, 44, 67, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.home-page {
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    min-height: 76px;
    border-bottom: 1px solid rgba(229, 232, 235, 0.9);
}

.site-footer {
    min-height: 80px;
    color: var(--muted);
    font-size: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    border-radius: 999px;
    padding: 8px 10px;
}

.nav-links a:hover {
    background: rgba(0, 162, 255, 0.08);
    color: var(--accent-strong);
}

.search-hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 12px;
}

.search-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
}

.search-intro h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.14;
    letter-spacing: 0;
}

.search-intro p:not(.eyebrow) {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    text-align: right;
}

.result-header h1,
.detail-header h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: 0;
}

.result-header p,
.detail-header p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--warm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.search-panel {
    align-self: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 26px;
    color: var(--ink);
}

.search-hero .search-panel {
    border-color: #d7e1ef;
    box-shadow: 0 14px 34px rgba(42, 55, 77, 0.08);
}

.custom-search-panel {
    margin-top: 14px;
}

.panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
}

.panel-header .eyebrow {
    margin: 0;
}

.search-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 520px;
}

.search-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid #dce8f8;
    border-radius: 999px;
    background: #f0f6ff;
    color: #315071;
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.search-hero .field-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

label span,
.mood-field legend {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    padding: 0 12px;
}

select:hover {
    border-color: rgba(0, 162, 255, 0.48);
}

select:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(0, 162, 255, 0.22);
    outline-offset: 2px;
}

.mood-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    border: 0;
}

.search-hero .mood-field {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.mood-field legend {
    width: 100%;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    padding: 0 14px;
}

.chip input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.chip span {
    margin: 0;
    color: var(--ink);
}

.chip:has(input:checked),
.chip.is-selected {
    border-color: var(--accent);
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0 18px;
}

.primary-button {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 162, 255, 0.22);
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.search-actions .primary-button {
    width: auto;
    min-width: 180px;
}

.primary-button:hover {
    background: var(--accent-strong);
}

.secondary-button {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.button-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-label {
    line-height: 1;
}

.saved-section,
.flow-section,
.seo-link-section,
.result-page,
.detail-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.flow-section {
    padding: 28px 0 16px;
}

.seo-link-section {
    padding: 12px 0 18px;
}

.saved-section {
    padding: 24px 0 64px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2,
.empty-state h2,
.place-detail h2,
.course-card h2 {
    margin: 0;
    letter-spacing: 0;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.flow-card {
    display: grid;
    gap: 8px;
    min-height: 156px;
    border: 1px solid #dfe6ee;
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(42, 55, 77, 0.06);
    padding: 18px;
    transition: transform 160ms ease, border-color 160ms ease;
}

.flow-card:hover {
    border-color: rgba(0, 162, 255, 0.48);
    transform: translateY(-2px);
}

.flow-card span {
    color: var(--warm);
    font-size: 13px;
    font-weight: 800;
}

.flow-card strong {
    font-size: 20px;
    line-height: 1.22;
}

.flow-card small {
    color: var(--muted);
    font-size: 13px;
}

.quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.quick-links span {
    color: var(--ink);
    font-weight: 800;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid #dfe6ee;
    border-radius: 999px;
    background: #ffffff;
    color: #4f5d69;
    font-weight: 700;
    padding: 0 12px;
}

.quick-links a:hover {
    border-color: rgba(0, 162, 255, 0.48);
    color: var(--accent-strong);
}

.seo-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.seo-link-grid a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #ffffff;
    color: #27313a;
    font-size: 14px;
    font-weight: 800;
    padding: 0 14px;
}

.seo-link-grid a:hover {
    border-color: rgba(0, 162, 255, 0.48);
    color: var(--accent-strong);
}

.saved-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.muted {
    color: var(--muted);
}

.result-page,
.detail-page {
    padding: 40px 0 64px;
}

.result-header,
.detail-header {
    padding: 28px 0;
}

.ad-band {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    margin: 10px 0 24px;
    border: 1px dashed #c7d3df;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.course-list {
    display: grid;
    gap: 18px;
}

.course-card,
.detail-header,
.place-detail,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(42, 55, 77, 0.08);
}

.course-card {
    padding: 22px;
}

.course-card.is-hidden {
    display: none;
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 48px;
    border-radius: 8px;
    background: #fff4d8;
    color: #6d4a00;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.metric-row div,
.place-meta div {
    padding: 12px;
    border-radius: 8px;
    background: #f7f9fc;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.place-flow {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.place-flow li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.place-flow span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
}

.place-flow small {
    color: var(--muted);
}

.place-link {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(0, 162, 255, 0.36);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.place-link:hover {
    color: var(--accent-strong);
    text-decoration-color: var(--accent);
}

.place-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.place-title-row h2 {
    margin: 0;
}

.reservation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(0, 162, 255, 0.28);
    border-radius: 999px;
    background: #edf8ff;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.reservation-link:hover {
    border-color: var(--accent);
    background: #dff2ff;
}

.reason,
.notice {
    color: var(--muted);
}

.notice {
    padding: 14px 16px;
    border-left: 4px solid var(--warm);
    background: #f0f8ff;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.load-more-row {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.load-more-row .primary-button {
    width: min(320px, 100%);
}

.detail-header {
    padding: 28px;
}

.detail-places {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.place-detail {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
}

.place-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 28px;
}

.empty-state .primary-button {
    width: auto;
}

.standalone {
    width: min(640px, calc(100% - 32px));
    margin: 80px auto;
}

@media (max-width: 860px) {
    .search-intro {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .search-intro p:not(.eyebrow) {
        text-align: left;
        white-space: normal;
    }

    .search-hero .field-grid,
    .flow-grid,
    .seo-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-header h1,
    .detail-header h1 {
        font-size: 38px;
    }

    .search-panel {
        align-self: auto;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .site-header {
        min-height: 112px;
        padding: 14px 0;
    }

    .nav-links {
        gap: 6px;
    }

    .search-hero {
        padding-top: 24px;
    }

    .search-intro h1 {
        font-size: 30px;
    }

    .search-summary {
        justify-content: flex-start;
    }

    .search-hero .field-grid,
    .flow-grid,
    .seo-link-grid {
        grid-template-columns: 1fr;
    }

    .search-actions .primary-button {
        width: 100%;
    }

    .panel-header {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .field-grid,
    .place-detail {
        grid-template-columns: 1fr;
    }

    .course-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .place-flow li {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .secondary-button,
    .primary-button {
        width: 100%;
    }
}
