/* 포토 스팟북 — 어두운 암실 톤 + 골든아워 금색 포인트 */
:root {
  --bg: #0F1210;
  --panel: #161A17;
  --panel-2: #1C211D;
  --panel-3: #232923;
  --line: #2A312B;
  --line-2: #364038;
  --fg: #EDEAE2;
  --muted: #9AA096;
  --dim: #6F766C;
  --gold: #E6C07B;
  --gold-2: #F2D295;
  --gold-ink: #1C1608;
  --gold-soft: rgba(230, 192, 123, .12);
  --route: #8DB8E8;
  --dest: #EDA06A;
  --danger: #EE8A80;
  --ok: #8CCB9B;
  --font: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --side-w: 236px;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.eyebrow { font-size: 11px; letter-spacing: .22em; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.eyebrow.line { display: flex; align-items: center; gap: 10px; }
.eyebrow.line::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ── 뼈대 ── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: #0C0F0D; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(230,192,123,.45); color: var(--gold); display: grid; place-items: center; background: var(--gold-soft); }
.brand b { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.side-label { margin-top: 30px; font-size: 11.5px; color: var(--dim); padding-left: 8px; }
.side-nav { display: grid; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--muted); text-align: left; }
.side-item:hover { background: var(--panel); color: var(--fg); }
.side-item.on { background: var(--panel-2); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.side-count { margin-left: auto; font-size: 12px; color: var(--gold); font-weight: 700; }
.side-arrow { margin-left: auto; }
.side-promo { margin-top: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; display: grid; gap: 6px; color: var(--gold); }
.side-promo b { color: var(--fg); font-size: 14px; }
.side-promo p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.side-version { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 40px; border-bottom: 1px solid var(--line); background: rgba(15,18,16,.88); backdrop-filter: blur(10px); }
.crumb { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.crumb span { margin: 0 10px; color: var(--dim); }
.brand-mobile { display: none; }
.top-actions { display: flex; gap: 8px; }
.top-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 12.5px; color: var(--fg); }
.top-btn:hover { border-color: var(--gold); }
.top-btn em { font-style: normal; font-size: 11px; background: var(--panel-3); border-radius: 5px; padding: 0 6px; color: var(--gold); }
.page { padding: 34px 40px 60px; display: grid; gap: 22px; max-width: 1240px; width: 100%; }

/* ── 첫 화면 ── */
.hero { position: relative; display: grid; gap: 16px; padding-top: 18px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; letter-spacing: -.03em; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero-frame { position: absolute; right: 30px; top: 30px; width: 76px; height: 76px; display: grid; place-items: center; color: var(--gold); opacity: .7;
  background: linear-gradient(var(--gold),var(--gold)) 0 0/16px 1.5px no-repeat, linear-gradient(var(--gold),var(--gold)) 0 0/1.5px 16px no-repeat,
              linear-gradient(var(--gold),var(--gold)) 100% 0/16px 1.5px no-repeat, linear-gradient(var(--gold),var(--gold)) 100% 0/1.5px 16px no-repeat,
              linear-gradient(var(--gold),var(--gold)) 0 100%/16px 1.5px no-repeat, linear-gradient(var(--gold),var(--gold)) 0 100%/1.5px 16px no-repeat,
              linear-gradient(var(--gold),var(--gold)) 100% 100%/16px 1.5px no-repeat, linear-gradient(var(--gold),var(--gold)) 100% 100%/1.5px 16px no-repeat; }

.search-panel { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #1A1F1B, #151915); overflow: hidden; }
.search-fields { display: grid; grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr) auto; gap: 12px; align-items: end; padding: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); font-weight: 600; }
.field input, .settings input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: #0F1310; padding: 0 14px; font-size: 14.5px; outline: none; }
.field input:focus, .settings input:focus { border-color: var(--gold); }
.field input::placeholder, .settings input::placeholder { color: var(--dim); }
.swap-btn { height: 46px; display: grid; place-items: center; color: var(--gold); border-radius: 10px; }
.swap-btn:hover { background: var(--panel-3); }
.search-go { height: 46px; padding: 0 18px; white-space: nowrap; }
.search-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); font-size: 12.5px; color: var(--muted); }
.search-scope { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search-scope em { font-style: normal; color: var(--dim); margin: 0 6px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 12px; padding: 3px 8px; border-radius: 7px; }
.ai-badge:hover { background: var(--gold-soft); }
.search-progress, .search-error { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.search-progress { color: var(--gold-2); background: var(--gold-soft); }
.search-error { color: var(--danger); background: rgba(238,138,128,.08); }
.search-note { margin-top: -10px; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 버튼 · 칩 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover:not(:disabled) { background: var(--gold-2); }
.btn-line { border: 1px solid var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--fg); }
.icon-btn:hover { background: var(--panel-3); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.link-btn:hover { color: var(--fg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.chip:hover { color: var(--fg); border-color: var(--dim); }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.count { font-size: .7em; font-weight: 700; color: var(--muted); margin-left: 4px; }
.count.gold { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(15,18,16,.66); color: var(--fg); backdrop-filter: blur(4px); }
.badge-sun { color: var(--gold-2); }
.badge-ai { color: var(--route); }
.badge-line { background: transparent; border: 1px solid var(--line-2); color: var(--gold); padding: 1px 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-curated { background: var(--gold); }
.dot-route { background: var(--route); }
.dot-saved { background: #C9A2E8; }

/* ── 추천 여행지 카드 ── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; letter-spacing: -.02em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.spot-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--panel); border: 1px solid var(--line); isolation: isolate; }
.spot-card-photo { position: absolute; inset: 0; }
.photo { position: relative; overflow: hidden; background: var(--panel-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-empty { display: grid; place-items: center; color: var(--dim); background: radial-gradient(circle at 30% 20%, #2a3129, #151915 70%); }
.spot-card:hover .photo img { transform: scale(1.04); }
.spot-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 26%, transparent 42%, rgba(8,10,9,.92) 100%); }
.spot-card-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; }
.save-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,18,16,.6); color: var(--fg); backdrop-filter: blur(4px); flex: none; }
.save-btn:hover { color: var(--gold); }
.save-btn.on { color: var(--gold); background: rgba(28,22,8,.8); }
.save-btn.small { width: 30px; height: 30px; background: var(--panel-3); }
.spot-card-body { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; }
.spot-region { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(237,234,226,.82); }
.spot-card h3 { font-size: 23px; letter-spacing: -.02em; line-height: 1.25; }
.spot-tagline { font-size: 13px; color: rgba(237,234,226,.78); }
.spot-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(237,234,226,.75); }
.round-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }

/* ── 검색 결과 ── */
.results { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 22px; display: grid; gap: 20px; scroll-margin-top: 80px; }
.results-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.results-head h2 { font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.results-head h2 .ic { color: var(--gold); }
.route-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.route-line .ic { color: var(--route); }
.route-line .muted { font-size: 12.5px; }
.results-actions { display: flex; gap: 8px; }
.results-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.results-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.results-col h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.results-col:first-child h3 .ic { color: var(--route); }
.results-col:last-child h3 .ic { color: var(--dest); }
.result-card { position: relative; display: grid; grid-template-columns: 22px 96px minmax(0,1fr) 30px; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.result-card:hover { border-color: var(--line-2); background: var(--panel-3); }
.result-num { font-size: 12px; font-weight: 800; color: var(--route); padding-top: 3px; text-align: center; }
.results-col:last-child .result-num { color: var(--dest); }
.result-photo { width: 96px; height: 96px; border-radius: 9px; }
.result-body { display: grid; gap: 3px; min-width: 0; }
.result-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.result-region { font-size: 12px; color: var(--muted); }
.result-card h4 { font-size: 15.5px; letter-spacing: -.01em; }
.result-why { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-move { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fg); font-variant-numeric: tabular-nums; }
.result-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.result-meta span { display: inline-flex; align-items: center; gap: 4px; }
.empty-group { padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; }
.results-foot { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.source-chips a { color: var(--gold); margin-left: 8px; text-decoration: none; }
.source-chips a:hover { text-decoration: underline; }

/* ── 맺음 ── */
.closing { margin-top: 30px; padding: 40px 0 10px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.closing-quote { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.closing-big { margin-top: 26px; font-size: clamp(40px, 8vw, 92px); font-weight: 900; line-height: .98; letter-spacing: -.04em; color: var(--panel-3); }
.closing-big span { color: rgba(230,192,123,.28); }
.site-foot { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.site-foot b { color: var(--gold); letter-spacing: .14em; font-size: 12px; margin-right: 6px; }

/* ── 모달 공통 ── */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4,6,5,.68); backdrop-filter: blur(3px); display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(-24px); opacity: 0; } }

/* 상세 */
.detail { position: relative; width: min(600px, 100%); height: 100%; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); animation: slide .22s ease; }
.detail-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(15,18,16,.7); }
.detail-photo { aspect-ratio: 16 / 10; width: 100%; }
.photo-credit { position: absolute; left: 12px; bottom: 12px; font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(10,12,11,.72); color: rgba(237,234,226,.9); text-decoration: none; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-credit:hover { color: var(--gold); }
.detail-body { padding: 22px 26px 34px; display: grid; gap: 14px; }
.detail-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-title h2 { font-size: 30px; letter-spacing: -.03em; }
.detail-title .save-btn { background: var(--panel-3); border: 1px solid var(--line-2); width: 40px; height: 40px; }
.info-tiles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-tiles.three { grid-template-columns: repeat(3, 1fr); }
.info-tiles > div { display: flex; gap: 10px; align-items: center; padding: 13px 14px; color: var(--gold); }
.info-tiles > div + div { border-left: 1px solid var(--line); }
.info-tiles small { display: block; font-size: 11px; color: var(--muted); }
.info-tiles b { color: var(--fg); font-size: 14px; }
.detail-block { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-block h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.detail-block h4 .ic { color: var(--gold); }
.tip-box { border: 1px solid rgba(230,192,123,.3); border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; }
.tip-box span { display: block; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .1em; margin-bottom: 3px; }
.notice-box { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--dest); background: rgba(237,160,106,.08); border-radius: 8px; padding: 10px 12px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nearby-item { display: grid; gap: 4px; text-decoration: none; min-width: 0; }
.nearby-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.nearby-item span { font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.source-list a { color: var(--gold); }
.detail-note { padding-top: 6px; }

/* 설정 */
.settings { margin: auto 0 auto 0; width: min(520px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 0 16px 16px 0; padding: 24px 26px; display: grid; gap: 12px; align-content: start; animation: slide .22s ease; }
.settings-head { display: flex; justify-content: space-between; gap: 10px; }
.settings-head h2 { display: flex; align-items: center; gap: 9px; font-size: 19px; }
.settings-head h2 .ic { color: var(--gold); }
.field-label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; text-align: left; display: grid; gap: 3px; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); }
.choice b { font-size: 14.5px; }
.choice small { color: var(--muted); font-size: 12px; }
.choice .ic { color: var(--gold); margin-bottom: 4px; }
.choice.on { border-color: var(--gold); background: var(--gold-soft); }
.choice.on b { color: var(--gold); }
.choice-check { position: absolute; top: 14px; right: 14px; }
.settings-panel { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #121612; }
.pw-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pw-row .btn { height: 46px; }
.auth-ok { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ok); }
.auth-ok span { display: inline-flex; align-items: center; gap: 6px; }
.model-box { display: grid; gap: 3px; border: 1px solid rgba(230,192,123,.28); border-radius: 10px; padding: 12px 14px; background: rgba(230,192,123,.05); }
.model-box b { font-size: 12.5px; color: var(--gold); }
.model-box .mono { font-size: 13px; }
.model-box small { color: var(--muted); font-size: 11.5px; }
.settings-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── 지도 ── */
.map-view { position: relative; flex: 1; min-height: calc(100vh - 64px); display: flex; isolation: isolate; }
.map-canvas { flex: 1; min-height: 100%; background: #1a1f1b; }
.map-toggles { position: absolute; top: 14px; left: 56px; right: 14px; z-index: 500; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.map-toggles .chip { pointer-events: auto; background: rgba(15,18,16,.88); backdrop-filter: blur(4px); }
.map-toggles .chip.on { background: rgba(15,18,16,.92); color: var(--fg); border-color: var(--gold); font-weight: 600; }
.map-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 500; width: min(520px, calc(100% - 32px)); text-align: center; font-size: 13px; padding: 10px 14px; border-radius: 10px; background: rgba(15,18,16,.9); border: 1px solid var(--line-2); }
.pin-wrap { background: none; border: 0; }
.pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45); font-family: var(--font); }
.pin-curated { background: var(--gold); color: var(--gold-ink); font-size: 9px; }
.pin-saved { background: #C9A2E8; color: #241433; }
.pin-route { background: var(--route); color: #0E2033; }
.pin-dest { background: var(--dest); color: #341A08; }
.pin-end { background: #EDEAE2; color: #111; font-size: 11px; }
.leaflet-container { font-family: var(--font); }
.leaflet-tooltip { font-family: var(--font); font-weight: 600; }

/* ── 출사 비서 ── */
.chat-view { flex: 1; display: flex; flex-direction: column; max-width: 920px; width: 100%; padding: 30px 40px 0; min-height: calc(100vh - 64px); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 4px; }
.chat-head p.muted { max-width: 34em; }
.chat-head-actions { display: flex; gap: 6px; align-items: center; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 0 18px; }
.chat-empty { display: grid; justify-items: center; gap: 14px; padding: 30px 0; text-align: center; }
.chat-empty > p { font-size: 18px; font-weight: 700; }
.chat-empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(230,192,123,.35); }
.chat-examples { display: grid; gap: 8px; width: min(560px, 100%); }
.chat-examples button { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; }
.chat-examples button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.bubble { border-radius: 16px; padding: 12px 15px; font-size: 14.5px; max-width: 100%; }
.bubble-me { align-self: flex-end; max-width: min(80%, 560px); background: var(--gold); color: var(--gold-ink); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.bubble-ai { align-self: stretch; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 5px; display: grid; gap: 12px; }
.bubble-text { white-space: pre-wrap; }
.bubble-wait { display: flex; align-items: center; gap: 10px; color: var(--gold-2); align-self: flex-start; }
.bubble-error { align-self: flex-start; display: flex; align-items: flex-start; gap: 8px; color: var(--danger); background: rgba(238,138,128,.08); border: 1px solid rgba(238,138,128,.25); }
.chat-plan { margin: 0; padding: 0; list-style: none; display: grid; border-left: 2px solid var(--line-2); margin-left: 6px; }
.chat-plan li { position: relative; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; padding: 6px 0 6px 16px; }
.chat-plan li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--panel); }
.chat-plan .when { font-size: 12.5px; color: var(--gold); font-weight: 600; padding-top: 1px; }
.chat-plan b { font-size: 14px; }
.chat-plan p { font-size: 13px; color: var(--muted); }
.sun-card { border: 1px solid rgba(230,192,123,.3); border-radius: 12px; background: linear-gradient(135deg, rgba(42,56,96,.35), rgba(230,192,123,.08)); padding: 12px 14px; display: grid; gap: 10px; }
.sun-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.sun-title .ic { color: var(--gold); }
.sun-title .muted { font-weight: 400; font-size: 11.5px; }
.sun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sun-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.sun-grid .ic { color: var(--gold); grid-row: span 2; }
.sun-grid small { font-size: 11px; color: var(--muted); }
.sun-grid b { font-size: 20px; font-variant-numeric: tabular-nums; grid-column: 2; line-height: 1.2; }
.sun-grid em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.chat-places { display: grid; gap: 8px; }
.chat-places .result-num { color: var(--gold); }
.bubble-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bubble-actions:empty { display: none; }
.bubble-actions .btn { white-space: normal; height: auto; min-height: 40px; padding: 8px 14px; text-align: left; }
.followups { display: flex; gap: 6px; flex-wrap: wrap; }
.followups .chip { height: auto; min-height: 32px; padding: 6px 12px; text-align: left; }
.chat-input { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0,1fr) 46px; gap: 8px; padding: 12px 0 22px; background: linear-gradient(transparent, var(--bg) 22%); }
.chat-input textarea { resize: none; min-height: 48px; max-height: 140px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); padding: 13px 15px; font: inherit; font-size: 14.5px; color: var(--fg); outline: none; field-sizing: content; }
.chat-input textarea:focus { border-color: var(--gold); }
.send-btn { width: 46px; height: 48px; border-radius: 14px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; align-self: end; }
/* 길안내 · 예상 경비 · 읽어 주기 · 음성 입력 */
.tiny { font-size: 10.5px; color: var(--dim); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; justify-self: start; }
.card-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.card-title .muted { font-weight: 400; font-size: 11.5px; }
.route-card, .budget-card { border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.route-card { border: 1px solid rgba(126,170,230,.3); background: linear-gradient(135deg, rgba(42,56,96,.4), rgba(42,56,96,.12)); }
.route-card .card-title .ic, .route-time .ic { color: #8DB4EE; }
.route-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 700; word-break: keep-all; }
.route-line .ic { color: #8DB4EE; }
.route-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.route-time em { font-style: normal; color: var(--gold); }
.route-card .btn, .budget-card .btn-sm { height: 36px; font-size: 13px; }
.budget-card { border: 1px solid rgba(120,200,150,.28); background: rgba(70,140,100,.1); }
.budget-card .card-title .ic { color: #8ED1A6; }
.budget-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.budget-card li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.budget-card li small { display: block; font-size: 11px; color: var(--muted); }
.budget-card .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px solid rgba(120,200,150,.25); padding-top: 8px; font-size: 13px; color: var(--muted); }
.budget-sum b { color: var(--fg); }
.budget-sum .per { text-align: right; display: grid; }
.budget-sum .per small { font-size: 10.5px; }
.budget-sum .per b { font-size: 19px; color: #8ED1A6; }
.speak-btn { justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(230,192,123,.35); background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 600; }
.speak-btn.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.bubble-ai .reading { box-shadow: 0 0 0 2px var(--gold); border-radius: 10px; background-color: rgba(230,192,123,.08); }
.bubble-ai p.reading { padding: 4px 8px; margin: 0 -8px; }
.chat-input.has-mic { grid-template-columns: 46px minmax(0,1fr) 46px; }
.mic-btn { width: 46px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--gold); display: grid; place-items: center; align-self: end; }
.mic-btn.on { background: var(--danger); border-color: var(--danger); color: #2a0e0b; animation: pulse 1.2s ease-in-out infinite; }
.mic-btn:disabled { opacity: .4; }
@keyframes pulse { 50% { opacity: .6; } }
.voice-toggle { position: absolute; left: 0; top: -20px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.voice-toggle em { font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 999px; background: rgba(255,255,255,.08); }
.voice-toggle.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.voice-toggle.on em { background: rgba(0,0,0,.15); }
.mic-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); color: var(--muted); }
.mic-status.on { color: var(--danger); background: rgba(238,138,128,.08); }
.chat-overlay { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; }
.chat-overlay > div { display: grid; justify-items: center; gap: 6px; max-width: 300px; padding: 16px 22px; border-radius: 16px; text-align: center; background: rgba(12,15,13,.88); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(6px); color: var(--fg); }
.chat-overlay .spinner { width: 24px; height: 24px; color: var(--gold); }
.chat-overlay b { font-size: 14px; }
.chat-overlay small { font-size: 11.5px; color: var(--muted); }

/* ── 비어 있음 · 알림 ── */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 70px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--gold); }
.empty-state p:first-of-type { color: var(--fg); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fade .2s ease; }
.toast-error { color: var(--danger); }
.app-tabbar { display: none; }

/* ── 좁은 화면 ── */
@media (max-width: 1100px) {
  .search-fields { grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr); }
  .search-go { grid-column: 1 / -1; }
  .results-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .crumb { display: none; }
  .brand-mobile { display: flex; gap: 8px; }
  .brand-mobile .brand-icon { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mobile b { font-size: 15px; }
  .top-btn span { display: none; }
  .page { padding: 20px 16px calc(92px + env(safe-area-inset-bottom)); gap: 18px; }
  .hero-frame { display: none; }
  .search-fields { grid-template-columns: 1fr; padding: 14px; }
  .swap-btn { height: 28px; transform: rotate(90deg); justify-self: center; }
  .search-go { grid-column: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  .results { padding: 16px; }
  .result-card { grid-template-columns: 18px 76px minmax(0,1fr) 30px; gap: 10px; padding: 10px; }
  .result-photo { width: 76px; height: 76px; }
  .map-view { min-height: calc(100vh - 56px - 64px); }
  .map-toggles { left: 52px; top: 10px; }
  .map-hint { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .detail { width: 100%; }
  .settings { border-radius: 0; height: 100%; max-height: none; margin: 0; }
  .info-tiles.three { grid-template-columns: 1fr 1fr; }
  .info-tiles.three > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-view { padding: 18px 16px 0; min-height: calc(100vh - 56px); }
  .chat-head h2 { font-size: 22px; }
  .chat-input { bottom: calc(57px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  .chat-log { padding-bottom: 8px; }
  .chat-view { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .chat-plan li { grid-template-columns: 1fr; gap: 0; }
  .sun-grid { grid-template-columns: 1fr; }
  .app-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(12,15,13,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .app-tabbar button { display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; color: var(--muted); }
  .app-tabbar button.on { color: var(--gold); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
