:root {
    color-scheme: light;
    --ink: #171f2a;
    --muted: #6f7785;
    --line: #e4e8ee;
    --paper: #ffffff;
    --bg: #f5f7fa;
    --accent: #237865;
    --accent-dark: #174f43;
    --accent-soft: #edf6f1;
    --warm: #d56b55;
    --shadow: 0 14px 34px rgba(23, 31, 42, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fbfcff 0, var(--bg) 360px);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
}

.brand {
    display: grid;
    gap: 2px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.brand small {
    color: var(--warm);
    font-size: 12px;
    font-weight: 700;
}

.site-header nav {
    display: flex;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-header nav a {
    padding: 9px 11px;
    border-radius: 8px;
}

.site-header nav a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.exchange-strip {
    padding: 16px max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(90deg, rgba(237, 246, 241, .92), rgba(255, 255, 255, .72));
    border-bottom: 1px solid var(--line);
}

.exchange-inner {
    display: grid;
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #d9e7e0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(23, 31, 42, .05);
}

.exchange-title {
    display: grid;
    gap: 3px;
    min-width: 92px;
}

.exchange-title span,
.exchange-rate span,
.exchange-examples span,
.exchange-inner p {
    color: var(--muted);
}

.exchange-title span,
.exchange-inner p {
    font-size: 13px;
}

.exchange-title strong {
    color: var(--accent-dark);
    font-size: 15px;
}

.exchange-rate {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.exchange-rate strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.exchange-rate-muted {
    align-items: center;
    min-height: 28px;
    color: var(--muted);
    font-weight: 700;
}

.exchange-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exchange-examples span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

.exchange-inner p {
    margin: 0;
    justify-self: end;
    white-space: nowrap;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 64px;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.search-form {
    display: flex;
    gap: 12px;
    min-width: min(420px, 100%);
    background: transparent;
}

.search-form-wide {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) 140px;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(23, 31, 42, .05);
}

.search-form-wide label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 14px;
}

.suggestion-block {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.suggestion-block .suggestions {
    margin: 0;
}

.suggestions span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 14px;
}

.suggestions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.suggestions a:hover,
.suggestions a.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.result-note {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.source-note {
    margin-top: 10px !important;
    color: var(--warm) !important;
    font-size: 13px;
}

.original-name,
.original-address {
    margin-bottom: 8px !important;
    color: var(--muted) !important;
    font-size: 13px;
}

.original-address {
    margin-top: 4px !important;
}

.planner-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(120px, .45fr) minmax(180px, 1fr) 150px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 31, 42, .05);
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

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

.place-list li {
    display: grid;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.place-list span {
    color: var(--warm);
    font-size: 14px;
    font-weight: 700;
}

.place-list a {
    font-weight: 700;
    line-height: 1.35;
}

.place-list small {
    color: var(--muted);
    line-height: 1.45;
}

.planner-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.planner-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    font-size: 16px;
}

.planner-form button {
    align-self: end;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    cursor: pointer;
    min-width: 120px;
    white-space: nowrap;
    word-break: keep-all;
}

.search-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(23, 31, 42, .05);
    font-size: 16px;
}

.search-form-wide input {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.search-form button {
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: var(--accent);
    color: white;
    font-size: 15px;
    cursor: pointer;
    min-width: 96px;
    min-height: 48px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    word-break: keep-all;
    box-shadow: 0 10px 24px rgba(35, 120, 101, .18);
}

.search-form-wide button {
    align-self: end;
    min-height: 48px;
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(23, 31, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
    border-color: #cfd8df;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card img,
.placeholder-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e6eee8;
}

.placeholder-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(237, 246, 241, .96), rgba(255, 255, 255, .9) 54%, rgba(255, 247, 242, .94)),
        linear-gradient(90deg, transparent 0 18%, rgba(35, 120, 101, .07) 18% 19%, transparent 19% 100%);
    color: var(--accent-dark);
    font-size: 0;
    font-weight: 800;
}

.placeholder-image::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 68% 32%, var(--warm) 0 0, transparent 11px),
        conic-gradient(from 220deg, var(--accent-dark), var(--accent), #8ab7a8, var(--accent-dark));
    opacity: .9;
}

.placeholder-image::after {
    content: "Korea Guide";
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(23, 79, 67, .16);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(23, 31, 42, .08);
}

.card-body {
    padding: 18px;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.25;
}

.card p,
.muted {
    color: var(--muted);
}

.card p {
    margin: 0;
    line-height: 1.5;
}

.notice {
    padding: 16px;
    background: #fff7f2;
    border: 1px solid #f0c7b9;
    border-radius: 8px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.guide-trust {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--accent-soft);
    border: 1px solid #d2e5dc;
    border-radius: 8px;
    color: var(--accent-dark);
    line-height: 1.6;
}

.guide-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(23, 31, 42, .06);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.guide-card:hover {
    border-color: #cfd8df;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.guide-card a {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.guide-card span,
.guide-detail header span {
    color: var(--warm);
    font-size: 14px;
    font-weight: 700;
}

.guide-card h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
}

.guide-card p,
.guide-card small,
.guide-detail header p,
.guide-detail header small {
    color: var(--muted);
}

.guide-card p {
    margin: 0;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--warm);
    font-weight: 700;
}

.guide-detail {
    max-width: 860px;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 31, 42, .06);
}

.guide-detail header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.guide-detail header p {
    max-width: 720px;
    line-height: 1.65;
}

.guide-detail h1 {
    margin: 8px 0 12px;
    font-size: 34px;
    line-height: 1.25;
}

.guide-detail section {
    margin-top: 26px;
}

.guide-detail h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.guide-detail ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    line-height: 1.75;
}

.source-box {
    padding: 18px;
    background: var(--accent-soft);
    border: 1px solid #d2e5dc;
    border-radius: 8px;
}

.source-box a {
    color: var(--accent-dark);
    font-weight: 700;
}

.source-box p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 28px;
    align-items: start;
}

.detail img,
.detail-media {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
    background: #e6eee8;
}

.detail-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(23, 31, 42, .06);
}

.detail-panel h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.overview {
    margin-top: 22px;
    line-height: 1.75;
}

.site-footer {
    padding: 24px 32px;
    color: var(--muted);
    background: #ffffff;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .site-header,
    .page-heading,
    .detail {
        display: block;
    }

    .site-header nav {
        margin-top: 14px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .exchange-strip {
        padding: 12px 16px;
    }

    .exchange-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .exchange-inner p {
        justify-self: start;
        white-space: normal;
    }

    .exchange-rate strong {
        font-size: 24px;
    }

    .search-form {
        margin-top: 18px;
    }

    .search-form-wide,
    .planner-form {
        grid-template-columns: 1fr;
    }
}
