:root {
  --deep: #0A2E2F; --teal: #0E5A5A; --mid: #1F8A8A; --pale: #BFE3DD; --page: #EEF4F2;
  --coral: #FF6B4A; --coral-d: #E4452B; --yellow: #F2C14E; --white: #fff;
  --ink: #0A2E2F; --ink-2: #3E5C5C; --line: #D3E2DE;
  --radius: 16px; --nav-h: 64px; --side-w: 232px;
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.nav :focus-visible, .tile:focus-visible, .btn-primary:focus-visible { outline-color: var(--yellow); }
[hidden] { display: none !important; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--deep); font-weight: 800; letter-spacing: .02em; }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--deep); position: relative; }
.brand-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--coral); }
.topbar-tools { display: flex; align-items: center; gap: 8px; }
#lang { appearance: none; background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 8px 32px 8px 14px; font-weight: 600; background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--page); font-weight: 800; font-size: 18px; color: var(--deep); }
.icon-btn:hover { background: var(--pale); }

/* 내비게이션: 모바일은 하단 탭, 데스크톱은 왼쪽 메뉴 */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--deep); padding-bottom: env(safe-area-inset-bottom); }
.nav-brand { display: none; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: #A9CFCB; text-decoration: none; font-size: 12px; font-weight: 600; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] svg { color: var(--coral); }
.nav a:hover { color: #fff; }
main { padding: 16px 16px calc(var(--nav-h) + 32px); max-width: 1080px; margin: 0 auto; outline: none; }
.foot { padding: 0 16px calc(var(--nav-h) + 28px); max-width: 1080px; margin: 0 auto; color: var(--ink-2); font-size: 13px; }

@media (min-width: 900px) {
  .nav { top: 0; bottom: auto; right: auto; width: var(--side-w); height: 100vh; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 20px 14px; }
  .nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .02em; padding: 4px 10px 22px; }
  .nav-brand .brand-dot { background: #fff; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
  .nav a[aria-current="page"] { background: var(--teal); }
  .topbar { margin-left: var(--side-w); justify-content: flex-end; }
  .topbar .brand { display: none; }
  main, .foot { margin-left: calc(var(--side-w) + max(0px, (100vw - var(--side-w) - 1080px) / 2)); margin-right: auto; padding-bottom: 48px; }
  .foot { padding-bottom: 32px; }
}

/* 공통 */
h1 { font-size: 26px; line-height: 1.25; margin: 4px 0 12px; }
h2 { font-size: 19px; margin: 28px 0 12px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.chip { display: inline-block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--mid); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn { border: 1px solid var(--deep); background: #fff; color: var(--deep); border-radius: 12px; padding: 10px 16px; font-weight: 700; min-height: 44px; }
.btn:hover { background: var(--pale); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: var(--deep); }
.btn-primary:hover { background: #ff8265; }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--teal); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select, .search input { border: 1px solid #A8C4BF; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 44px; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.err { color: #B3261E; font-size: 13px; font-weight: 600; min-height: 1.2em; }
.ok { color: var(--teal); font-size: 14px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 홈 */
.hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--deep); color: #fff; margin-bottom: 14px; }
.hero img { width: 100%; height: 200px; object-fit: cover; object-position: 50% 78%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 46, 47, .88), rgba(10, 46, 47, .05) 65%); }
@media (min-width: 900px) { .hero img { height: 240px; } }
.hero-copy { position: absolute; inset: 0; z-index: 1; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-copy h1 { margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-copy p { margin: 4px 0 0; color: #E3F2EF; }
.stage-note { margin: -6px 0 10px; color: var(--ink-2); font-size: 13px; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 12px; grid-auto-flow: dense; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 132px; } }
.tile { position: relative; overflow: hidden; border-radius: 18px; padding: 14px; display: flex; align-items: flex-end; text-align: left; text-decoration: none; border: 0; font-weight: 800; font-size: 18px; line-height: 1.25; color: #fff; background: var(--teal); }
.tile-s { grid-column: span 1; grid-row: span 1; }
.tile-w { grid-column: span 2; grid-row: span 1; }
.tile-l { grid-column: span 2; grid-row: span 2; font-size: 24px; }
.tile.c0 { background: var(--teal); color: #fff; }
.tile.c1 { background: var(--coral); color: var(--deep); }
.tile.c2 { background: var(--yellow); color: var(--deep); }
.tile.c3 { background: var(--deep); color: #fff; }
.tile.c4 { background: var(--mid); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 46, 47, .88), rgba(10, 46, 47, 0) 62%); }
.tile span.t { position: relative; }
.tile:hover { filter: brightness(1.06); }
.tile .arrow { z-index: 1; position: absolute; right: 12px; top: 10px; opacity: .8; font-size: 18px; }

/* 날씨 */
.weather { margin-top: 20px; }
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wx-now { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.wx-now svg { width: 56px; height: 56px; }
.wx-temp { font-size: 40px; font-weight: 800; line-height: 1; }
.wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wx-day { text-align: center; background: var(--page); border-radius: 12px; padding: 8px 2px; font-size: 12px; }
.wx-day svg { display: block; width: 34px; height: 34px; margin: 4px auto; }
.wx-day span { display: block; }
.wx-day b { display: block; font-size: 13px; }
.wx-day .pop { color: var(--mid); font-weight: 700; }
@media (max-width: 520px) { .wx-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pale); color: var(--deep); }
.badge.sample { background: var(--yellow); }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-main { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--pale); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: block; padding: 12px 14px 14px; }
.kicker { display: block; font-size: 12px; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .04em; }
.card-title { display: block; font-weight: 800; font-size: 17px; margin: 2px 0; }
.card-desc { display: block; color: var(--ink-2); font-size: 14px; }
.heart { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--deep); }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.heart[aria-pressed="true"] { color: var(--coral-d); }
.heart[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral-d); }
.heart:hover { background: #fff; }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(10, 46, 47, .78); display: grid; place-items: center; }
.play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.rank { position: absolute; left: 10px; top: 10px; background: var(--yellow); color: var(--deep); font-weight: 800; border-radius: 8px; padding: 2px 10px; font-size: 14px; }
.plat { position: absolute; left: 10px; bottom: 10px; background: rgba(10, 46, 47, .8); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.embed-box { aspect-ratio: 16 / 10; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 14px; text-align: center; background: var(--deep); color: #fff; font-size: 14px; }
.embed-box a { color: var(--yellow); font-weight: 700; }
.metric { font-weight: 800; color: var(--coral-d); }

.search { margin: 6px 0 4px; }
.notice { background: #FFF3D1; border: 1px solid var(--yellow); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.sorted { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.empty { text-align: center; color: var(--ink-2); padding: 36px 12px; }

/* 지도 */
.mapbox { position: relative; max-width: 520px; aspect-ratio: 1 / 1; margin: 8px auto 16px; background: var(--pale); border-radius: 20px; overflow: hidden; }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; width: 34px; height: 34px; margin: -34px 0 0 -17px; border: 0; background: none; padding: 0; }
.pin span { display: block; width: 28px; height: 28px; margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); border: 3px solid var(--deep); }
.pin.party span { background: var(--yellow); }
.pin:hover span, .pin[aria-pressed="true"] span { background: var(--deep); border-color: var(--coral); }
.pin .lbl { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); width: auto; height: auto; margin: 0; padding: 1px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--deep); font-size: 11px; font-weight: 800; white-space: nowrap; }
.list-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.list-row img { width: 84px; height: 54px; object-fit: cover; border-radius: 10px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .heart { position: static; background: var(--page); flex: none; }

/* 나의 공간 */
.day { margin: 18px 0 8px; font-weight: 800; font-size: 15px; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bk { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bk:last-child { border-bottom: 0; }
.bk b { display: block; }
.bk .memo { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--ink-2); }

/* 다이얼로그 */
.dlg { border: 0; padding: 0; border-radius: 22px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; color: var(--ink); overflow: auto; }
.dlg::backdrop { background: rgba(10, 46, 47, .6); }
.dlg-inner { padding: 0 0 20px; position: relative; }
.dlg-pad { padding: 0 20px; }
.dlg-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.dlg-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 22px; line-height: 1; font-weight: 700; }
.dlg-heart { position: absolute; right: 60px; top: 12px; z-index: 2; }
.dlg-heart.heart { position: absolute; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.spec th { text-align: left; width: 38%; color: var(--ink-2); font-weight: 600; padding: 7px 0; vertical-align: top; }
.spec td { padding: 7px 0; font-weight: 600; }
.taxi { background: var(--deep); color: #fff; border-radius: 16px; padding: 22px; text-align: center; margin: 12px 0; }
.taxi .big { font-size: 34px; font-weight: 800; line-height: 1.2; }
.taxi .addr { font-size: 22px; margin: 10px 0; }
.taxi .say { font-size: 22px; color: var(--yellow); font-weight: 800; margin-top: 12px; }
.taxi .tr { font-size: 14px; color: #BFE3DD; }
.phrase { background: var(--page); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.phrase .ko { font-size: 26px; font-weight: 800; }
.hotline { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hotline a { font-weight: 800; font-size: 20px; text-decoration: none; }
textarea.preview { width: 100%; min-height: 110px; border: 1px solid #A8C4BF; border-radius: 10px; padding: 10px; background: var(--page); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px); background: var(--deep); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- 실제 로그인, 언어 제안, 계정 삭제 ---------- */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-google { background: #fff; border-color: var(--line); color: #1f1f1f; }
.btn-google:hover { background: #f4f7f6; }
.btn-danger { background: #B3261E; border-color: #B3261E; color: #fff; }
.btn-danger:hover { background: #8C1D18; }
.btn[disabled] { opacity: .6; cursor: progress; }
.danger-zone { margin: 28px 0 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
#banner:empty { display: none; }
.lang-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--yellow); color: var(--deep); padding: 8px 12px 8px 16px; font-weight: 700; }
.lang-banner a { color: var(--deep); }
.lang-banner .icon-btn { width: 32px; height: 32px; background: transparent; border-color: rgba(10, 46, 47, .3); font-size: 16px; }
@media (min-width: 900px) { #banner { margin-left: var(--side-w); } }

/* ---------- 항목별 정적 페이지(/travel/..., /ko/food/...) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.page-top nav a { margin-left: 12px; font-weight: 600; font-size: 14px; }
.page-hero { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--pale); display: block; }
.page h1 { margin: 18px 0 6px; font-size: 28px; line-height: 1.25; }
.page .kicker { color: var(--mid); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.page .lead { font-size: 18px; }
.page .related { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.page .related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.page .langs a { margin-right: 14px; }
.seo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.seo-list a { display: block; padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* ---------- Google 지도 ---------- */
.gmap { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--pale); border: 1px solid var(--line); margin-bottom: 14px; }
@media (max-width: 600px) { .gmap { height: 340px; } }
.gmap-canvas { position: absolute; inset: 0; }
.gmap-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.gm-info { font: 14px/1.4 var(--font); color: var(--ink); max-width: 220px; }
.gm-info a { display: inline-block; margin-top: 6px; font-weight: 700; }
.list-row.sel { outline: 2px solid var(--coral); outline-offset: -2px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.linkish:hover { text-decoration: underline; }

/* ---------- 유튜브 ---------- */
.chips-sm .chip { padding: 6px 12px; font-size: 13px; }
.embed-yt { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; background: #000; }
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-out { display: inline-block; margin: 8px 14px 0; font-weight: 700; }
.card[data-yt] .thumb img { object-fit: cover; }
.foot p { margin: 4px 0; }

/* ---------- 로그인(선택) 안내 ---------- */
.sync-panel { border-style: dashed; }
.field input, .field textarea { min-width: 0; max-width: 100%; }
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- 개인정보처리방침 ---------- */
.policy section { margin: 18px 0; }
.policy h2 { font-size: 18px; }
.policy table.spec { font-size: 13px; display: block; overflow-x: auto; }
.policy li { margin: 4px 0; }
.embed-reel { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 75vh; background: #fff; }
.embed-reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 제휴 배너 ---------- */
.go-banner { position: relative; display: grid; gap: 2px; padding: 14px 44px 14px 16px; margin: 0 0 14px; border-radius: 14px; background: var(--deep); color: #fff; text-decoration: none; }
.go-banner b { font-size: 17px; }
.go-banner span { color: #D7EBE7; }
.go-banner small { color: var(--yellow, #F2C14E); font-size: 12px; }
.go-banner i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; color: var(--coral); }
.go-banner:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
