/* =====================================================================
   Visit Korea (working title) — tourism / inspiration theme.
   3D glassmorphism, parallax fixed scenic backgrounds, micro-interactions.
   ===================================================================== */

:root {
    --ink-900: #0b1c33;
    --ink-700: #1f3556;
    --ink-500: #4a607f;
    --ink-300: #94a4be;
    --ink-100: #d6deea;

    --accent-coral: #ff6b6b;
    --accent-amber: #ffc857;
    --accent-aqua:  #2bd4d9;
    --accent-deep:  #0770e3;

    --glass-bg:     rgba(255, 255, 255, 0.10);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-bord:   rgba(255, 255, 255, 0.28);
    --glass-shadow: 0 18px 48px rgba(8, 22, 44, 0.28);
    --glass-shadow-hover: 0 32px 80px rgba(8, 22, 44, 0.36);

    --radius-md: 12px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --container: 1200px;
    --header-h: 72px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- reset + base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    color: var(--ink-900);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
        'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1200px 800px at 90% -10%, rgba(255, 200, 87, 0.12), transparent 60%),
        radial-gradient(1000px 700px at -10% 110%, rgba(43, 212, 217, 0.14), transparent 60%),
        linear-gradient(180deg, #f5f8fd 0%, #eaf1fb 100%);
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease-out); }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.small { font-size: 0.8125rem; }

/* ---- ambient page background (parallax-fixed) -------------------- */
body.has-bg .page-bg {
    position: fixed;
    inset: -10% -5%;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.78) saturate(1.05);
    transform: scale(1.12);
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}
body.has-bg::before {
    /* darker glassmorphic veil for legibility */
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 800px at 80% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(160deg, rgba(11, 28, 51, 0.50) 0%, rgba(11, 28, 51, 0.24) 50%, rgba(11, 28, 51, 0.62) 100%);
    z-index: -1;
    pointer-events: none;
}
body.has-bg { color: rgba(255, 255, 255, 0.94); }
body.has-bg p { color: rgba(255, 255, 255, 0.84); }
body.has-bg .muted { color: rgba(255, 255, 255, 0.72); }
body.has-bg h1, body.has-bg h2, body.has-bg h3 { color: white; }

/* ---- layout helpers ---------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 1.25rem; }
.main { min-height: calc(100vh - var(--header-h) - 200px); }
.section-head {
    margin-bottom: 1.75rem;
}
.section-head h2 { margin: 0 0 .35em; }
.section-head .muted { margin: 0; }

/* ---- header ------------------------------------------------------ */
.site-header {
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
body.has-bg .site-header.glass {
    background: rgba(11, 28, 51, 0.30);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    width: 32px;
    height: 32px;
}
.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-amber));
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.5) inset,
        0 4px 16px rgba(255, 107, 107, 0.45);
}
.brand:hover .brand-dot { transform: scale(1.1); transition: transform .25s var(--ease-out); }

/* ---- glass primitives --------------------------------------------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-bord);
    box-shadow: var(--glass-shadow);
}
.glass-pill {
    margin-left: auto;
    display: inline-flex;
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 18px rgba(8, 22, 44, 0.10);
}
body.has-bg .glass-pill {
    background: rgba(11, 28, 51, 0.32);
    border-color: rgba(255, 255, 255, 0.18);
}
.glass-pill-sm {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: white !important;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
.glass-pill-sm:hover { background: rgba(255, 255, 255, 0.30); transform: translateX(-2px); }

.lang-link {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .8125rem;
    color: var(--ink-700);
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
body.has-bg .lang-link { color: rgba(255, 255, 255, 0.86); }
.lang-link:hover { color: var(--accent-deep); background: rgba(255, 255, 255, 0.45); }
.lang-link.is-active {
    background: linear-gradient(135deg, var(--accent-deep), #5b9af7);
    color: white;
    box-shadow: 0 6px 14px rgba(7, 112, 227, 0.45);
}
.lang-link.is-active:hover { color: white; }
@media (max-width: 760px) {
    .lang-link { padding: 4px 9px; font-size: .75rem; }
}

/* ---- hero (homepage tourism feel) -------------------------------- */
.hero-tourism {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.25rem;
    position: relative;
}
.hero-tourism .hero-inner { max-width: 760px; padding: 1rem 0; }
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
}
.hero-tourism h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}
.hero-tourism h1 em {
    background: linear-gradient(120deg, var(--accent-amber), var(--accent-coral));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
    text-shadow: none;
}
.hero-tourism .hero-sub {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.94);
    max-width: 560px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero-scroll {
    position: absolute;
    left: 50%; bottom: 1.5rem;
    transform: translateX(-50%);
    width: 24px; height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
}
.hero-scroll::before {
    content: '';
    position: absolute;
    left: 50%; top: 6px;
    width: 3px; height: 8px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-hint 1.6s var(--ease-out) infinite;
}
@keyframes scroll-hint {
    0% { transform: translate(-50%, 0); opacity: 1; }
    60% { transform: translate(-50%, 12px); opacity: 0.2; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ---- city grid (homepage) ---------------------------------------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    perspective: 1400px;
}
@media (max-width: 1100px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .city-grid { grid-template-columns: 1fr; } }

.city-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
    background: rgba(11, 28, 51, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: var(--glass-shadow);
    transition:
        transform .35s var(--ease-out),
        box-shadow .35s var(--ease-out),
        border-color .35s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
}
.city-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.45);
    color: white;
}
.city-card-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .8s var(--ease-out), filter .35s var(--ease-out);
}
.city-card:hover .city-card-bg { transform: scale(1.08); filter: saturate(1.15); }
.city-card-bg-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.18);
}
.city-card-initial {
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    user-select: none;
}
.city-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 28, 51, 0.10) 0%, rgba(11, 28, 51, 0.78) 100%);
    pointer-events: none;
}
.city-card-shine {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 35%);
    mix-blend-mode: overlay;
    opacity: .55;
    transition: opacity .35s var(--ease-out);
    pointer-events: none;
}
.city-card:hover .city-card-shine { opacity: 1; }
.city-card-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 2;
}
.city-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: white;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.city-card-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.city-card-summary {
    color: rgba(255, 255, 255, 0.88);
    font-size: .8125rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- destination hero (city detail) ------------------------------ */
.destination-hero {
    background-color: var(--ink-900);
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 48vh;
    padding: 1.5rem 1.25rem 2rem;
    display: flex;
    align-items: flex-start;
    position: relative;
}
.destination-hero.parallax {
    background-attachment: fixed;
}
@supports not (background-attachment: fixed) {
    .destination-hero.parallax { background-attachment: scroll; }
}
.destination-hero h1 {
    color: white;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin: .5rem 0 .35em;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.destination-hero .badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: white;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.destination-hero .lead {
    font-size: 1.1875rem;
    opacity: .94;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
}

/* ---- destination prose card -------------------------------------- */
.prose-card {
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--glass-shadow);
}
.prose { font-size: 1.0625rem; line-height: 1.7; }
body.has-bg .prose { color: rgba(255, 255, 255, 0.92); }

/* ---- partner banner block --------------------------------------- */
.partner-block-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.partner-chip {
    --tab-color: var(--accent-deep);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(8, 22, 44, 0.18);
}
.partner-chip-mono {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tab-color);
    color: white;
    border-radius: 8px;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.partner-chip-sub { margin: 0; font-size: .9rem; }

/* ---- banner grid (3D glass cells) -------------------------------- */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    perspective: 1200px;
}
@media (max-width: 520px) { .banner-grid { grid-template-columns: 1fr; } }

/* ---- top search widget (slot 0, sits inside the partner block) --- */
.search-widget-frame {
    border-radius: var(--radius-md);
    padding: .75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.search-widget-frame iframe {
    display: block;
    margin: 0 auto;
    border: 0;
    max-width: 100%;
}

.banner-cell {
    position: relative;
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
    transition:
        transform .35s var(--ease-out),
        box-shadow .35s var(--ease-out),
        border-color .35s var(--ease-out);
}
.banner-cell:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.55);
}
.banner-cell-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 35%);
    pointer-events: none;
    opacity: .8;
    transition: opacity .35s var(--ease-out);
    z-index: 1;
}
.banner-cell:hover .banner-cell-shine { opacity: 1; }
.banner-cell-frame {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: .25rem;
}
.banner-cell-frame iframe {
    border: 0;
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.banner-cell-label {
    position: absolute;
    bottom: 8px; left: 10px;
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(11, 28, 51, 0.55);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .02em;
    z-index: 2;
}

/* ---- FAQ (AEO-friendly) ------------------------------------------ */
.faq {
    padding-top: 1rem;
}
.faq-sub { margin: -.5rem 0 1.5rem; max-width: 720px; }
.faq-list {
    display: grid;
    gap: .75rem;
    max-width: 880px;
}
.faq-item {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 30px rgba(8, 22, 44, 0.08);
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
body.has-bg .faq-item {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}
.faq-item[open] {
    border-color: rgba(7, 112, 227, 0.45);
    box-shadow: 0 16px 40px rgba(8, 22, 44, 0.16);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
body.has-bg .faq-item summary { color: white; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '＋';
    font-size: 1.25rem;
    line-height: 1;
    color: var(--accent-deep);
    font-weight: 600;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
    padding: 0 1.25rem 1.125rem;
    color: var(--ink-700);
    font-size: .9375rem;
    line-height: 1.65;
}
body.has-bg .faq-answer { color: rgba(255, 255, 255, 0.86); }
.faq-answer p { margin: 0; }

/* ---- empty / 404 ------------------------------------------------- */
.empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--ink-500);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
}
.center { text-align: center; }
.big-404 {
    font-size: 7rem;
    font-weight: 900;
    color: var(--accent-coral);
    margin: 2rem 0 .5rem;
    letter-spacing: -0.04em;
    text-shadow: 0 6px 30px rgba(255, 107, 107, 0.3);
}

/* ---- footer ------------------------------------------------------ */
.site-footer {
    margin-top: 5rem;
    padding: 2.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}
body.has-bg .site-footer {
    background: rgba(11, 28, 51, 0.32);
    border-top-color: rgba(255, 255, 255, 0.16);
}
.site-footer .disclosure {
    font-size: .8125rem;
    margin: 0 0 .65rem;
    color: var(--ink-500);
}
body.has-bg .site-footer .disclosure { color: rgba(255, 255, 255, 0.72); }
.site-footer .copy {
    font-size: .8125rem;
    color: var(--ink-500);
    margin: 0;
}
body.has-bg .site-footer .copy { color: rgba(255, 255, 255, 0.62); }

/* ---- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .destination-hero.parallax { background-attachment: scroll; }
}
