/* =========================================================================
 * one travel — styles.css (v2 디자인)
 * 모바일 우선 → 태블릿(600px~) → PC(1000px~)
 * 큰 글씨 (본문 17px+, 최소 14px), 터치 48px+, Pretendard 글꼴
 * 색은 모두 :root 변수로 관리
 * ========================================================================= */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5F6B7A;
  --ground: #F4F5F7;
  --card: #FFFFFF;
  --line: #E6E8EC;
  --line-2: #D6DAE0;
  --fill: #F1F3F6;              /* 입력칸 배경 */
  --accent: #1B64F2;            /* 브랜드 파랑 */
  --accent-strong: #1350C9;
  --accent-soft: #EAF1FF;
  --sos: #E0383E;
  --sos-soft: #FDECEC;
  --amber: #F5A524;
  --warn-bg: #FFF4DE;
  --warn-fg: #7A4B00;
  --ok-bg: #E6F6EE;
  --ok-fg: #11663F;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 10px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.04);
  --nav-h: 70px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid rgba(27, 100, 242, 0.45); outline-offset: 2px; }

/* ---------- 앱 틀 ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--ground); }
.view { padding: 0 16px calc(var(--nav-h) + 32px); }
.desktop-only { display: none !important; }

/* 첫 화면 로딩 (index.html) */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.splash-logo { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.splash-logo span { color: var(--accent); }

/* ---------- 아이콘 ---------- */
.svg-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.inline-ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; margin-inline-end: 0.35em; }
.has-ico { display: inline-flex; align-items: center; justify-content: center; }
.tone-blue { --tone: #1B64F2; --tone-bg: #EAF1FF; }
.tone-purple { --tone: #7C4DDB; --tone-bg: #F2ECFF; }
.tone-teal { --tone: #0F8A7E; --tone-bg: #E3F6F3; }
.tone-green { --tone: #16A34A; --tone-bg: #E7F7EC; }
.tone-amber { --tone: #D98A00; --tone-bg: #FFF4DB; }
.tone-orange { --tone: #EA6A12; --tone-bg: #FFEFE3; }
.tone-red { --tone: #E0383E; --tone-bg: #FDECEC; }
.tone-pink { --tone: #DB2777; --tone-bg: #FDEAF3; }
.tone-gray { --tone: #4B5563; --tone-bg: #EEF0F3; }

/* ---------- 상단바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -16px; padding: 10px 16px;
  background: rgba(244, 245, 247, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.logo {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--ink); text-decoration: none;
  font-size: 25px; font-weight: 800; letter-spacing: -0.05em;
}
.logo span { color: var(--accent); }
.top-nav { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
  text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap;
}
.lang-btn .inline-ico { color: var(--muted); }

/* ---------- 제목 ---------- */
.hero { padding: 18px 2px 6px; }
.hero-title, .page-title { font-size: 30px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.035em; }
.page-title { margin: 14px 2px 14px; }
.page-title .inline-ico { color: var(--accent); }
.hero-sub { margin: 0; color: var(--muted); font-size: 17px; }
.section { margin-top: 28px; }
.section-title, .card-title { font-size: 21px; line-height: 1.3; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.03em; }
.section-title { padding: 0 2px; }
.card-title .inline-ico { color: var(--accent); }
.card-title label { cursor: pointer; }
.muted { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.footnote { color: var(--muted); font-size: 14px; text-align: center; margin: 32px 8px 0; }

/* 투어 종류 고르기 · 렌터카 팁 */
.tour-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 24px; }
.tour-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; width: 100%; min-height: 76px;
  padding: 16px 18px; background: var(--card); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: pointer; font-size: 17px; }
.tour-tile:active { transform: scale(0.98); }
.tour-tile-ico { font-size: 22px; }
.tour-tile .muted { font-size: 15px; }
.tip-list { margin: 6px 0 0; padding-inline-start: 22px; }
.tip-list li { margin-bottom: 8px; }
@media (min-width: 600px) { .tour-grid { grid-template-columns: 1fr 1fr; } }

/* 홈 — 도시 가이드 바로가기 */
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm); color: var(--ink-2); font-weight: 600; font-size: 16px; text-decoration: none; }
.guide-chip-all { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- 카드 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px 18px; margin-top: 14px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 탭 (분할 버튼) ---------- */
.search-wrap { margin-top: 14px; }
.tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  background: #E9EBEF; padding: 4px; border-radius: 16px;
}
.tab {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; min-width: 0; padding: 4px 6px;
  border: 0; border-radius: 12px; background: transparent;
  font-size: 16px; font-weight: 700; color: var(--muted);
  cursor: pointer; line-height: 1.2; text-align: center; text-decoration: none;
  overflow-wrap: anywhere;
}
.tab .has-ico { font-size: 18px; }
.tab.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12); }
.tab.active .has-ico { color: var(--accent); }
@media (max-width: 400px) { .tab > .has-ico, .tab > span[aria-hidden] { display: none; } }
.search-card { margin-top: 10px; padding: 18px; box-shadow: var(--shadow-md); }

/* ---------- 폼 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; display: flex; flex-direction: column; }
.span-2 { grid-column: 1 / -1; }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 6px 2px; }
.input, .select {
  width: 100%; min-width: 0; min-height: 54px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--fill); padding: 10px 14px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.input::placeholder { color: #98A1AE; font-weight: 500; }
.select { cursor: pointer; }
.input:hover, .select:hover { background: #ECEFF3; }
.input:focus, .select:focus { border-color: var(--accent); background: var(--card); outline: none; box-shadow: 0 0 0 4px rgba(27, 100, 242, 0.12); }
.form-error { color: var(--sos); font-weight: 700; margin: 10px 0 0; }
.form-error:empty { display: none; }
.err { color: var(--sos); font-size: 16px; font-weight: 600; min-height: 1em; margin: 6px 0 0; }
.err:empty { min-height: 0; margin: 0; }

/* ---------- 버튼 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 20px;
  border-radius: 16px; border: 0;
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .2s, opacity .15s;
}
.btn .inline-ico { margin: 0; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(27, 100, 242, 0.28); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: #000; }
.btn-sos { background: var(--sos); color: #fff; font-size: 20px; box-shadow: 0 6px 16px rgba(224, 56, 62, 0.28); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #DDE8FF; }
.btn-danger { background: var(--sos-soft); color: var(--sos); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.link-btn { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 800; cursor: pointer; }

/* ---------- 타일 ---------- */
.grid { display: grid; gap: 10px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 400px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 100px; min-width: 0; padding: 14px 8px;
  background: var(--card); border: 0; border-radius: 18px;
  color: var(--ink); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  overflow-wrap: break-word; word-break: keep-all;
  transition: transform .18s var(--ease), box-shadow .2s;
}
.tile[disabled] { opacity: 0.5; cursor: default; }
.tile-left { align-items: flex-start; text-align: left; padding: 16px; }
.tile-icon { font-size: 26px; line-height: 1; }
.tile-icon.has-ico { width: 46px; height: 46px; border-radius: 14px; font-size: 24px; color: var(--tone, var(--accent)); background: var(--tone-bg, var(--accent-soft)); }
.tile-label { font-size: 16px; font-weight: 800; line-height: 1.3; }
.tile-sub { font-size: 14px; color: var(--muted); line-height: 1.35; }

.preview-card { position: relative; overflow: hidden; }
.preview-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }

/* ---------- 현지 모드 헤더 ---------- */
.arrive-head {
  margin: 0 -16px; padding: 8px 16px 22px;
  background: var(--ink); color: #fff;
  border-radius: 0 0 28px 28px;
}
.arrive-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.arrive-head .lang-btn { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.arrive-head .lang-btn .inline-ico { color: #fff; }
.back-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.arrive-kicker { display: inline-block; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(245, 165, 36, 0.18); font-size: 14px; font-weight: 800; color: #FFC75A; }
.arrive-title { font-size: 34px; line-height: 1.2; margin: 8px 0 2px; font-weight: 800; letter-spacing: -0.04em; }
.arrive-city { margin: 0; font-size: 18px; opacity: 0.85; }
.arrive-city .inline-ico { color: #FF8A8E; }
.arrive-switch { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.switch-label { font-size: 15px; font-weight: 700; white-space: nowrap; opacity: 0.85; }
.arrive-switch .select { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: transparent; flex: 1; }
.arrive-switch .select option { color: var(--ink); }
.arrive-switch .select:focus { background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.welcome-card { margin-top: 16px; }
.welcome-card .muted { margin: 0; }

/* ---------- 긴급 전화 ---------- */
.em-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 98px; min-width: 0; padding: 10px 6px;
  background: var(--card); border-radius: 18px;
  color: var(--ink); text-decoration: none; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.em-label { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--muted); }
.em-label .has-ico { color: var(--tone, var(--muted)); }
.em-num { font-size: 30px; font-weight: 800; color: var(--sos); line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.em-wide { grid-column: 1 / -1; flex-direction: row; gap: 12px; min-height: 64px; }
.em-wide .em-num { font-size: 26px; }
.em-tile-red { background: var(--sos-soft); }

/* ---------- 정보 타일 ---------- */
.info-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); }
.info-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.info-label .has-ico { width: 28px; height: 28px; border-radius: 9px; font-size: 16px; color: var(--tone, var(--accent)); background: var(--tone-bg, var(--accent-soft)); }
.info-value { font-size: 19px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.info-value .spinner { vertical-align: -0.15em; }
.info-note { font-size: 15px; }
.info-note:empty { display: none; }
.rate-src { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.rate-inverse { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; background: var(--fill); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }

/* ---------- 설정 ---------- */
.lang-list { display: grid; gap: 8px; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--fill); font-size: 17px; font-weight: 700; cursor: pointer; text-align: left; }
.lang-opt.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.check { font-size: 20px; }
.saved-msg { color: var(--ok-fg); font-weight: 700; margin: 12px 4px 0; min-height: 1em; }
.saved-msg:empty { display: none; }
.lang-select { font-size: 18px; min-height: 56px; }
.empty-card { text-align: center; }
.empty-card .select { text-align: left; }
.empty-icon { font-size: 48px; }

/* ---------- 하단 메뉴 (모바일) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  z-index: 20;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; color: #8A94A3; text-decoration: none;
  font-size: 13px; font-weight: 700;
  transition: color .15s;
}
.nav-icon { font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .2s, transform .2s var(--ease); }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { background: var(--accent-soft); }
.nav-item:active .nav-icon { transform: scale(0.9); }

/* ---------- 바텀시트 / 창 ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 24, 39, 0.45); }
.sheet {
  width: 100%; max-width: 480px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--ground); border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 22px 14px 8px 18px; }
.sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
.sheet-title { display: flex; align-items: center; font-size: 21px; margin: 0; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.sheet-title .inline-ico { color: var(--accent); }
.sheet-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #E5E8EC; font-size: 18px; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 4px 18px calc(24px + env(safe-area-inset-bottom, 0)); }
.sheet-sub { font-size: 18px; margin: 20px 0 10px; font-weight: 800; }
.sheet-sos .sheet-title, .sheet-sos .sheet-title .inline-ico { color: var(--sos); }

.partner-list { display: grid; gap: 10px; }

/* 호텔 목록 (사진·별점·1박 가격) */
.hotel-sort { display: flex; gap: 8px; margin: 0 0 14px; }
.hotel-sort .fl-chip { padding: 0 18px; background: var(--fill); box-shadow: none; }
.hotel-sort .fl-chip.on { background: var(--ink); }
.hotel-list { display: grid; gap: 12px; }
.hotel-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--fill); color: var(--ink); text-decoration: none; }
.hotel-card:active { transform: scale(0.99); }
.hotel-img { width: 116px; height: 116px; border-radius: 12px; object-fit: cover; background: var(--line); }
.hotel-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hotel-name { font-size: 18px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.hotel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.hotel-stars { color: #F5A524; letter-spacing: 1px; }
.hotel-score { background: var(--accent); color: #fff; font-weight: 800; border-radius: 8px; padding: 1px 7px; }
.hotel-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: auto; }
.hotel-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hotel-was { color: var(--muted); font-size: 15px; }
.hotel-per { color: var(--muted); font-size: 15px; }
.hotel-go { color: var(--accent); font-size: 16px; font-weight: 700; }
.hotel-note { margin: 14px 0 0; font-size: 15px; }
@media (min-width: 600px) { .hotel-card { grid-template-columns: 150px minmax(0, 1fr); } .hotel-img { width: 150px; height: 130px; } }
.partner-btn {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px;
  min-height: 66px; padding: 14px 18px;
  background: var(--card); border-radius: 16px; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.partner-name { font-size: 17px; font-weight: 800; }
.partner-sub { grid-column: 1; font-size: 14px; color: var(--muted); }
.partner-arrow { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); font-size: 18px; color: var(--accent); }
.partner-btn.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }

/* ---------- 안내 띠 ---------- */
.sample-banner, .real-banner, .translate-tip {
  display: block; margin: 12px 0; padding: 13px 16px; border-radius: 16px;
  font-size: 15px; line-height: 1.55;
}
.sample-banner { background: var(--warn-bg); color: var(--warn-fg); }
.real-banner { background: var(--ok-bg); color: var(--ok-fg); }
.translate-tip { margin: 16px 0 0; background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- 항공편 결과 ---------- */
.fl-head { margin: 4px 0; }
.fl-head .back-btn { color: var(--ink); padding: 0; }
.fl-head .page-title { margin: 4px 0; }
.fl-tools { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.fl-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fl-chip { min-height: 46px; border-radius: 999px; border: 0; background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.fl-chip.on { background: var(--ink); color: #fff; }
.fl-check { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 600; }
.fl-check input { width: 22px; height: 22px; accent-color: var(--accent); }
.fl-count { margin: 4px 0 8px; }
.fl-sec { font-size: 20px; margin: 20px 2px 10px; letter-spacing: -0.03em; }
.fl-sub { font-size: 16px; font-weight: 700; margin: 8px 2px; color: var(--muted); }
.fl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.fl-card {
  display: block; width: 100%; text-align: left; color: inherit;
  background: var(--card); border: 0; border-radius: 20px; padding: 16px 18px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.fl-leg { padding: 6px 0; }
.fl-leg + .fl-leg { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 10px; }
.fl-air { font-size: 16px; margin-bottom: 8px; }
.fl-times { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.fl-t { display: flex; flex-direction: column; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fl-t small { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.fl-t:last-child { text-align: end; }
.fl-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.fl-dur { font-size: 14px; color: var(--muted); }
.fl-line { position: relative; display: block; width: 100%; height: 2px; background: var(--line-2); border-radius: 1px; }
.fl-line::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fl-direct { font-size: 14px; font-weight: 700; color: var(--ok-fg); }
.fl-stop { font-size: 14px; font-weight: 700; color: #B45309; }
.fl-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fl-price { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fl-price-note { font-size: 14px; color: var(--muted); flex: 1; }
.fl-go { font-size: 16px; font-weight: 800; color: var(--accent); }
.fl-summary { background: var(--card); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; }
.fl-summary .fl-price { margin: 8px 0 0; }

/* 숙박·렌터카 결과 */
.st-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.st-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 18px; line-height: 1.35; }
.st-stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; }
.st-score { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 6px 8px; border-radius: 12px; background: var(--accent); color: #fff; }
.st-score b { font-size: 20px; line-height: 1.1; }
.st-score small { font-size: 13px; opacity: .9; }
.st-dist { margin: 6px 0; }
.st-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.car-model { font-size: 15px; font-weight: 400; }
.car-sup { flex-shrink: 0; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.car-specs { margin: 8px 0 6px; font-size: 15px; color: var(--muted); }
.tour-price { font-size: 19px; color: var(--ink); }

/* 파트너 언어 표시 */
.lang-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin: 4px 4px 0 0; }
.lang-badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.lang-badge.no { background: var(--warn-bg); color: var(--warn-fg); }

/* SOS 문구 */
.phrase-list { display: grid; gap: 10px; }
.phrase { background: var(--card); border-radius: 16px; padding: 16px 18px; border-inline-start: 6px solid var(--sos); }
.phrase-local { font-size: 26px; font-weight: 800; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.phrase-meaning { font-size: 16px; color: var(--muted); margin: 4px 0 0; }
.loc-out { margin-top: 10px; }
.loc-out .btn-block { margin-top: 10px; }
.coords { font-size: 19px; font-weight: 800; margin: 8px 0 0; overflow-wrap: anywhere; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* 오른쪽→왼쪽 언어 */
[dir="rtl"] .partner-arrow { transform: scaleX(-1); }
[dir="rtl"] .fl-line::after { right: auto; left: -2px; }
.info-value, .rate-inverse, .badge, .em-num, .fl-t, .fl-price, .fl-price-note, .fl-dur, .grp-code b, .coords { unicode-bidi: plaintext; }

/* ---------- 일행 채팅 ---------- */
.grp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.grp-head .card-title { margin: 0 0 4px; }
.grp-code { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.grp-code small { font-size: 13px; opacity: .8; }
.grp-code b { font-size: 22px; letter-spacing: 2px; }
.share-row, .chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink);
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s var(--ease);
}
.share-btn:hover { background: #E6E9EE; }
.share-btn:active { transform: scale(0.96); }
.share-btn .inline-ico { margin-inline-end: 2px; }
.share-sos { background: var(--sos-soft); color: var(--sos); }
.chat-card { display: flex; flex-direction: column; }
.chat-list { height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--ground); border-radius: 18px; scroll-behavior: smooth; }
.chat-sys { align-self: center; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(17, 24, 39, 0.05); font-size: 14px; color: var(--muted); text-align: center; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.chat-row.mine { align-self: flex-end; align-items: flex-end; }
.chat-from { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 8px 3px; }
.chat-bubble { padding: 10px 15px; border-radius: 20px 20px 20px 6px; background: var(--card); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.chat-row.mine .chat-bubble { background: var(--accent); color: #fff; border-radius: 20px 20px 6px 20px; box-shadow: none; }
.chat-row.mine .chat-bubble .chat-link { color: #fff; }
.chat-bubble.sos { background: var(--sos) !important; color: #fff; }
.chat-meta { display: inline-flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 3px 8px 0; }
.chat-tr { color: var(--accent); font-weight: 700; }
.chat-send { display: flex; gap: 8px; margin-top: 12px; }
.chat-send .chat-input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 18px; }
.chat-send .btn { margin: 0; flex-shrink: 0; border-radius: 999px; min-height: 54px; }
.chat-more { min-width: 40px; min-height: 40px; margin-inline-start: 2px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.chat-more:hover, .chat-more:focus-visible { background: rgba(17, 24, 39, 0.06); }
.chat-row:not(.mine) .chat-bubble { -webkit-touch-callout: none; }
.msg-preview { margin: 0 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; white-space: pre-wrap; }
.char-hint { display: flex; justify-content: space-between; gap: 8px; margin: 6px 4px 0; font-size: 14px; color: var(--muted); }
.char-count { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.char-count.full { color: var(--sos); }

/* 위치 사용 안내 */
.consent-box { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); font-size: 16px; line-height: 1.55; }
.consent-box p { margin: 0 0 10px; }
.consent-title { font-size: 18px; font-weight: 800; }
.consent-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; }

/* 설정: 차단 목록, 약관 */
.blocked-list { list-style: none; margin: 0; padding: 0; }
.blocked-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.blocked-item:last-child { border-bottom: 0; }
.blocked-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.blocked-unblock { min-height: 44px; font-size: 16px; flex-shrink: 0; }
.legal-links { display: flex; flex-direction: column; }
.legal-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; }
.legal-link:last-child { border-bottom: 0; }
.legal-meta { margin: 12px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- 여행톡 ---------- */
.talk-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.talk-me { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 2px 0; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.talk-room { margin-top: 12px; }
.safety-box { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--warn-bg); color: #5C3A00; }
.safety-title { display: flex; align-items: center; margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.safety-list { margin: 0; padding-inline-start: 20px; font-size: 16px; line-height: 1.65; }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.check-row input { width: 24px; height: 24px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--accent); }
.talk-chats:empty { display: none; }
.talk-chat-list { list-style: none; margin: 0; padding: 0; }
.talk-chat-item { display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 12px; transition: background-color .15s; }
.talk-chat-item:hover { background: var(--fill); }
.talk-chat-list li:last-child .talk-chat-item { border-bottom: 0; }
.talk-chat-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.talk-chat-sub { font-size: 14px; color: var(--muted); }
.talk-chat-last { font-size: 15px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-form-sum { display: flex; align-items: center; min-height: 48px; font-size: 19px; font-weight: 800; cursor: pointer; list-style: none; }
.post-form-sum::-webkit-details-marker { display: none; }
.post-form-sum::after { content: "+"; margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 700; transition: transform .2s var(--ease); }
.post-form[open] .post-form-sum::after { transform: rotate(45deg); }
.post-form-sum .inline-ico { color: var(--accent); }
.post-form[open] .post-form-sum { margin-bottom: 12px; }
.post-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-list > .card { margin-top: 0; }
.post-card { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .2s; }
.post-top { display: flex; flex-wrap: wrap; gap: 6px; }
.post-top .inline-ico { margin-inline-end: 4px; }
.post-place { display: flex; align-items: center; margin: 12px 0 4px; font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.post-place .inline-ico { color: var(--sos); }
.post-text { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.post-meta { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.post-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.post-actions .btn { flex: 1; min-height: 52px; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 4px; font-size: 16px; font-weight: 700; text-decoration: none; }
.talk-invite { margin-top: 12px; width: 100%; }

/* ---------- 로딩: 돌아가는 원 + 반짝이는 빈 카드 ---------- */
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(27, 100, 242, 0.2); border-top-color: var(--accent); animation: spin .75s linear infinite; flex-shrink: 0; vertical-align: middle; }
.loading-block { margin: 12px 0; }
.loading-text { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.sk-wrap { display: flex; flex-direction: column; gap: 12px; }
.sk-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.skeleton { background: linear-gradient(90deg, #ECEEF2 0%, #F6F7F9 40%, #ECEEF2 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-line { height: 14px; border-radius: 8px; }
.sk-line.w90 { width: 90%; height: 22px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-bubble { width: 62%; height: 44px; border-radius: 20px 20px 20px 6px; }
.sk-bubble.mine { align-self: flex-end; width: 48%; border-radius: 20px 20px 6px 20px; }
.chat-list .loading-block { margin: auto 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- 움직임 (움직임 줄이기 설정을 켠 사람에겐 끔) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .view-enter > * { animation: rise .45s var(--ease) both; }
  .view-enter > .topbar { animation: none; }
  .view-enter > *:nth-child(2) { animation-delay: .04s; }
  .view-enter > *:nth-child(3) { animation-delay: .08s; }
  .view-enter > *:nth-child(4) { animation-delay: .12s; }
  .view-enter > *:nth-child(5) { animation-delay: .16s; }
  .view-enter > *:nth-child(n+6) { animation-delay: .2s; }
  .view-enter .grid > * { animation: rise .45s var(--ease) both; }
  .view-enter .grid > *:nth-child(2) { animation-delay: .05s; }
  .view-enter .grid > *:nth-child(3) { animation-delay: .1s; }
  .view-enter .grid > *:nth-child(4) { animation-delay: .15s; }
  .view-enter .grid > *:nth-child(n+5) { animation-delay: .2s; }
  .fl-card, .post-card { animation: rise .4s var(--ease) both; }
  .fl-list > :nth-child(2), .post-list > :nth-child(2) { animation-delay: .05s; }
  .fl-list > :nth-child(3), .post-list > :nth-child(3) { animation-delay: .1s; }
  .fl-list > :nth-child(n+4), .post-list > :nth-child(n+4) { animation-delay: .15s; }
  .overlay { animation: fade .2s ease-out; }
  .sheet { animation: sheet-up .34s var(--ease); }
  .chat-row:last-child { animation: pop .28s var(--ease); }
  .loading-block { animation: fade .3s ease-out both; }
  .search-card { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton, .spinner { animation-duration: 2.5s; }
}
/* 마우스가 있는 기기: 올리면 살짝 떠오름 */
@media (hover: hover) {
  .tile:hover, .em-tile:hover, .fl-card:hover, .post-card:hover, .partner-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .tile:active, .em-tile:active, .fl-card:active, .partner-btn:active { transform: scale(0.98); }
}
.tile:active, .em-tile:active, .fl-card:active, .partner-btn:active { transform: scale(0.97); }

/* ---------- 숙소 직접 연락 (Direct Contact) ---------- */
.dc-section-min { display: flex; flex-direction: column; align-items: flex-start; margin: 12px 2px 2px; }
.dc-section-min .loading-text { margin: 4px 0; }
.dc-list { display: grid; gap: 10px; }
.dc-list-page { margin-top: 14px; }
.dc-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 96px; padding: 12px 14px 12px 12px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.dc-card:active { transform: scale(0.98); }
.dc-thumb { display: block; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--fill); }
.dc-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #7C4DDB; background: #F2ECFF; }
.dc-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.dc-type { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.5; }
.dc-card-name { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dc-card-sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dc-card-sub .inline-ico { color: var(--sos); }
.dc-card-price { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.dc-host-link, .dc-more-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 48px; font-size: 16px; font-weight: 700; text-decoration: none; }
.dc-section .dc-more-link { margin-top: 6px; }
.dc-host-link { color: var(--muted); }
.dc-host-link .inline-ico { color: #7C4DDB; }
.dc-host-foot { margin: 18px 2px 0; }

/* 자세히 */
.dc-gallery { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.dc-photo { flex: 0 0 86%; width: 86%; height: 240px; object-fit: cover; border-radius: 18px; background: var(--fill); scroll-snap-align: start; }
.dc-gallery.one .dc-photo { flex-basis: 100%; width: 100%; }
.dc-head { margin-top: 16px; }
.dc-name { margin: 8px 2px 4px; overflow-wrap: anywhere; }
.dc-info { display: flex; flex-direction: column; gap: 16px; }
.dc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.dc-row-ico { font-size: 22px; }
.dc-row-ico.has-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; color: var(--tone, var(--accent)); background: var(--tone-bg, var(--accent-soft)); }
.dc-row-body { display: flex; flex-direction: column; min-width: 0; }
.dc-row-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.dc-row-val { font-size: 17px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.dc-map-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; }
.dc-desc { font-size: 17px; color: var(--ink); }
.dc-safety { margin: 14px 0 0; }
.dc-safety p { margin: 0; }
.dc-safety .dc-safety-en { margin-top: 6px; font-size: 14px; opacity: 0.85; }
.dc-c-sub { overflow-wrap: anywhere; }

/* 사장님·관리자 */
.dc-intro .card-title { color: var(--ink); }
.dc-check-list { list-style: none; margin: 0; padding: 0; }
.dc-check-list li { position: relative; margin: 0 0 10px; padding-inline-start: 32px; font-size: 16px; line-height: 1.55; }
.dc-check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); font-size: 13px; font-weight: 800; }
.dc-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dc-host-card { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.dc-host-top { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.dc-host-card .dc-thumb { width: 72px; height: 72px; }
.dc-host-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dc-host-card .post-text, .dc-host-card .post-meta { margin-top: 10px; }
.dc-st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.dc-st-pending { background: var(--warn-bg); color: var(--warn-fg); }
.dc-st-approved { background: var(--ok-bg); color: var(--ok-fg); }
.dc-st-rejected, .dc-st-hidden { background: var(--sos-soft); color: #A1262B; }
.dc-help { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.dc-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sos-soft); color: #8A1F23; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-actions .btn { flex: 1 1 88px; min-height: 48px; padding: 8px 12px; border-radius: 14px; font-size: 16px; }
.dc-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dc-code { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 15px; overflow-wrap: anywhere; }
.talk-chat-item.is-new { background: #FFFBF0; }

/* 사진 올리기 */
.dc-photo-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-pe-item { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--fill); }
.dc-pe-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-pe-del { position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(17, 24, 39, 0.72); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.dc-pe-cover { position: absolute; inset-inline-start: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.dc-pe-add { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--card); color: var(--accent); font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; }
.dc-pe-add:focus-within { outline: 3px solid rgba(27, 100, 242, 0.45); outline-offset: 2px; }
.dc-pe-plus { font-size: 26px; }
.dc-pe-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dc-pe-status { margin: 8px 0 0; }
.dc-pe-status:empty { display: none; }
@media (hover: hover) { .dc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } }

/* ---------- 태블릿 (600px~) ---------- */
@media (min-width: 600px) {
  .app { max-width: 760px; }
  .view { padding: 0 24px calc(var(--nav-h) + 40px); }
  .topbar { margin: 0 -24px; padding: 12px 24px; }
  .arrive-head { margin: 0 -24px; padding: 8px 24px 26px; }
  .bottom-nav { max-width: 760px; }
  .sheet { max-width: 640px; }
  .hero-title { font-size: 36px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .em-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .em-wide { grid-column: auto; flex-direction: column; gap: 2px; min-height: 98px; }
}

/* ---------- PC (1000px~) ---------- */
@media (min-width: 1000px) {
  :root { --nav-h: 0px; }
  .app { max-width: none; }
  .view { max-width: 1160px; margin: 0 auto; padding: 0 40px 72px; }
  .bottom-nav { display: none; }
  .desktop-only { display: flex !important; }

  /* 상단바: 화면 끝까지 흰 띠 + 가운데 메뉴 */
  .topbar {
    margin: 0 -40px; padding: 12px 40px;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax var(--line);
    clip-path: inset(0 -100vmax -1px);
  }
  .top-nav { display: flex; align-items: center; gap: 4px; }
  .top-nav-item {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: 999px;
    color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 700;
    transition: background-color .15s, color .15s;
  }
  .top-nav-item .nav-icon { width: auto; height: auto; font-size: 18px; background: none !important; color: #8A94A3; }
  .top-nav-item:hover { background: var(--fill); }
  .top-nav-item.active { background: var(--accent-soft); color: var(--accent); }
  .top-nav-item.active .nav-icon { color: var(--accent); }
  .lang-btn { background: var(--fill); box-shadow: none; }

  /* 홈: 큰 제목 + 가로로 긴 검색창 + 아래 두 칸 */
  .view-home .hero { padding: 56px 0 10px; }
  .hero-title { font-size: 48px; letter-spacing: -0.045em; }
  .hero-sub { font-size: 19px; }
  .view-home .search-wrap { margin-top: 26px; }
  .view-home .tabs { display: inline-grid; grid-template-columns: repeat(4, auto); }
  .view-home .tab { padding: 4px 22px; }
  .search-card { padding: 24px; }
  .search-card .form-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .search-card .span-2 { grid-column: auto; }
  .search-card .btn-block { width: auto; min-width: 240px; margin-inline-start: auto; display: flex; }
  .home-lower { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-top: 32px; }
  .home-lower .section { margin-top: 0; }
  .home-lower .preview-card { margin-top: 45px; }
  .home-lower .tile { min-height: 132px; }

  /* 현지 모드: 넓은 어두운 띠 + 여러 칸 */
  .view-arrive .topbar { margin-bottom: 0; }
  .arrive-head { margin: 0 -40px; padding: 18px 40px 34px; border-radius: 0 0 32px 32px; }
  .arrive-head .arrive-top { display: none; }
  .arrive-title { font-size: 44px; }
  .arrive-switch { max-width: 480px; }
  .grid-info { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-info .span-2 { grid-column: span 1; }
  .grid-connect { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-arrive .grid-4 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .view-arrive .btn-sos { width: auto; min-width: 320px; }

  /* 목록 화면은 읽기 편한 폭으로 */
  .view-flights, .view-hotels, .view-cars, .view-tours, .view-settings, .view-group, .view-talk,
  .view-direct, .view-host, .view-admin { max-width: 880px; }
  .dc-photo { height: 380px; flex-basis: 70%; width: 70%; }
  .dc-list-page, .view-admin .dc-list, .view-host .dc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-talk .talk-tabs, .view-group .talk-tabs { display: inline-grid; grid-template-columns: repeat(3, auto); }
  .view-talk .talk-tabs .tab, .view-group .talk-tabs .tab { padding: 4px 22px; }
  .chat-list { height: min(62vh, 620px); }
  .post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list > .card { grid-column: 1 / -1; }

  /* 창: 아래에서 올라오는 대신 가운데 */
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 580px; max-height: 84vh; border-radius: 28px; }
  .sheet-head::before { display: none; }
  .sheet-head { padding-top: 18px; }
  .footnote { margin-top: 48px; }
}
