  :root {
    --bg:          #ffffff;
    --ink:         #0a0a0a;
    --fg1:         #0a0a0a;
    --fg2:         #6b6b6b;
    --fg3:         #9a9a9a;
    --on-ink:      #ffffff;
    --on-ink-soft: #b5b5b5;
    --line:        #e6e6e6;
    --line-strong: #cfcfcf;
    --fill-muted:  #f5f5f5;
    --fill-sunken: #fafafa;
    --price-1:     #a8c878;
    --price-2:     #7aaa48;
    --price-3:     #508820;
    --price-4:     #346010;
    --price-5:     #1a3808;
    --price-none:  #ebebeb;
    --price-1-ink: #2c3a16;
    --serif: 'Playfair Display', 'Nanum Myeongjo', Georgia, serif;
    --sans:  'Inter', 'Apple SD Gothic Neo', system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: var(--sans); background: var(--fill-sunken); color: var(--fg1); -webkit-font-smoothing: antialiased; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  /* ─── 네비 ─── */
  .nav {
    position: sticky; top: 0; z-index: 50; height: 56px;
    background: var(--ink); display: flex; align-items: center;
    justify-content: space-between; padding: 0 40px;
  }
  .brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
  .brand-main { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--on-ink); letter-spacing: -0.3px; }
  .brand-sub { font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--on-ink-soft); letter-spacing: 2px; text-transform: uppercase; }

  /* ─── 도시 선택기 ─── */
  .city-picker { position: relative; }
  .city-picker-btn {
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: var(--sans);
  }
  .cp-pin { font-size: 0.75rem; }
  .cp-city { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.9);
    letter-spacing: 0.2px; }
  .cp-sep { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
  .cp-country { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
  .cp-caret { font-size: 0.55rem; color: rgba(255,255,255,0.5); margin-left: 1px; }
  .city-picker-btn:hover .cp-city { color: #fff; }
  .city-picker-btn:hover .cp-country { color: rgba(255,255,255,0.75); }

  .city-picker-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14); z-index: 300;
    width: 160px; max-height: 380px; overflow-y: auto;
  }
  .city-picker-dropdown.open { display: block; }
  .cp-country-section { border-bottom: 1px solid var(--line); }
  .cp-country-section:last-child { border-bottom: none; }
  .cp-country-header {
    padding: 6px 10px; font-size: 0.72rem; font-weight: 700;
    color: #fff; display: flex; align-items: center; gap: 4px;
    background: #2c2c2c; letter-spacing: 0.3px;
  }
  .cp-city-link {
    display: block; padding: 5px 10px 5px 20px;
    font-size: 0.8rem; color: var(--fg1); text-decoration: none;
    transition: background 0.1s;
  }
  .cp-city-link:hover { background: var(--fill-muted); }
  .cp-city-link.current { font-weight: 700; color: var(--ink); background: var(--fill-sunken); }

  @media (max-width: 900px) {
    .cp-country { display: none; }
    .cp-sep { display: none; }
    .city-picker-dropdown { width: 140px; }
  }

  /* ─── 히어로 ─── */
  .hero {
    position: relative; height: 280px;
    background-size: cover; background-position: center 38%;
    display: flex; align-items: flex-end;
  }
  .hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.20) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.82) 100%);
  }
  .hero-label { position: relative; padding: 0 44px 32px; }
  .hero-eb { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.84); }
  .hero-country-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .hero-country-link:hover { color: #fff; }
  .hero-city-wrap { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
  .hero-city { font-family: var(--serif); font-size: 4rem; font-weight: 700; color: #fff; line-height: 0.96; letter-spacing: -0.01em; }
  .hero-city-sub { display: block; font-family: var(--sans); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.82); margin-top: 10px; }
  .hero-city-en { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,0.9); letter-spacing: 1px; }
  .hero-badge {
    display: inline-block; margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.25); padding: 5px 12px; border-radius: 2px;
    font-size: 0.72rem; color: rgba(255,255,255,0.7);
  }
  .hero-badge b { font-weight: 600; color: rgba(255,255,255,0.92); }

  /* ─── 2단 레이아웃 ─── */
  .layout { display: flex; align-items: flex-start; background: var(--bg); }
  @media (min-width: 901px) {
    .layout.no-calendar .hotel-panel {
      width: 100%; height: auto; position: static;
      border-left: 1px solid var(--line);
      box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    }
    .layout.no-calendar .hotel-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      max-height: none; overflow-y: visible;
    }
    .layout.no-calendar .hotel-item-wrap {
      border-right: 1px solid var(--line);
    }
    .layout.no-calendar .hotel-item-wrap:nth-child(3n) { border-right: none; }
    .layout.no-calendar .hotel-item { align-items: flex-start; }
    .layout.no-calendar .panel-empty { grid-column: 1 / -1; }
    .layout.no-calendar .pagination { grid-column: 1 / -1; justify-content: center; }
  }

  /* ─── 달력 영역 ─── */
  .calendar-wrap { flex: 1; min-width: 0; padding: 30px 40px 70px; background: var(--fill-sunken); }
  .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
  .cal-title { font-family: var(--serif); font-size: 22px; font-weight: 600; white-space: nowrap; }

  .month-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 8px;
  }
  .month-nav-btn {
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
    padding: 7px 16px; font-size: 0.85rem; font-weight: 500; color: var(--fg1);
    cursor: pointer; transition: all .12s; font-family: var(--sans);
  }
  .month-nav-btn:hover { border-color: var(--ink); }
  .month-nav-btn:disabled { opacity: 0.3; cursor: default; border-color: var(--line); }
  .month-nav-label { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; flex: 1; text-align: center; }

  .legend { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-wrap: wrap; }
  .legend-cap { font-size: 12px; color: var(--fg1); font-weight: 500; }
  .legend-grad { display: flex; height: 12px; width: 96px; border-radius: 999px; overflow: hidden; }
  .legend-grad span { flex: 1; }
  .legend-none { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg1); font-weight: 500; margin-left: 4px; }
  .legend-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--price-none); border: 1px solid var(--line-strong); display: inline-block; }

  .tk-cal { width: 100%; }
  .tk-dow {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px;
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 2px solid var(--ink);
  }
  .tk-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--fg2); }
  .tk-dow .sun { color: #b23a2e; } .tk-dow .sat { color: #3a5fb2; }
  .tk-month {
    width: 100%; margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
  }
  .tk-month-label {
    font-family: var(--serif); font-size: 17px; font-weight: 600;
    margin: -20px -20px 14px -20px;
    background: #f5f5f5; color: var(--fg1);
    padding: 12px 20px; border-radius: 7px 7px 0 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.2px;
  }
  .tk-grid { width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
  .tk-cell {
    aspect-ratio: 1 / 0.92; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    position: relative; cursor: pointer;
    transition: box-shadow .12s, transform .09s;
  }
  .tk-cell.empty { background: none; pointer-events: none; cursor: default; }
  .tk-cell .d { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .tk-cell:not(.empty):not(.nodeal):hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85), 0 4px 12px rgba(0,0,0,0.2); z-index: 2; }
  .tk-cell:not(.empty):not(.nodeal):active { transform: scale(0.97); }
  .tk-cell.nodeal { cursor: not-allowed; }
  .tk-cell.sel { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); z-index: 3; }

  /* ─── 호텔 패널 ─── */
  .hotel-panel {
    width: 400px; flex-shrink: 0; position: sticky; top: 56px;
    align-self: flex-start; background: #fff;
    box-shadow: -8px 0 28px rgba(10,10,10,0.06);
    height: calc(100vh - 56px); display: flex; flex-direction: column;
    border-left: 1px solid var(--line);
  }
  /* 27" FHD 이상 */
  @media (min-width: 1401px) {
    .hotel-panel { width: 480px; }
  }
  /* 27" QHD/4K 이상 */
  @media (min-width: 1801px) {
    .hotel-panel { width: 560px; }
    .calendar-wrap { padding: 30px 60px 70px; }
    .tk-cell .d { font-size: 16px; }
  }

  /* 탭 — 맨 위 */
  .mode-tabs { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
  .mode-tab {
    flex: 1; font-size: 14px; font-weight: 600; padding: 15px 0;
    color: var(--fg2); position: relative; transition: color .15s;
  }
  .mode-tab:hover { color: var(--fg1); }
  .mode-tab.active { color: var(--fg1); }
  .mode-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

  /* 패널 헤더 (블랙) */
  .panel-header {
    background: var(--ink); color: var(--on-ink); padding: 20px 22px; flex-shrink: 0;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
  }
  .panel-header h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
  .panel-header p { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 6px; font-weight: 400; }
  #price-disclaimer { font-size: 11px; color: rgba(255,255,255,0.52); margin-top: 6px; font-weight: 400; }
  #panel-avg-badge { display:inline-block; margin-top:8px; padding:3px 10px; border-radius:4px; font-size:12px; font-weight:700; }
  #panel-avg-badge.cheap { background:rgba(168,200,120,0.25); color:#a8c878; }
  #panel-avg-badge.expensive { background:rgba(180,80,80,0.25); color:#e08080; }
  #panel-avg-badge.neutral { background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.7); }

  /* 서브 컨트롤 (월별/연박) */
  .sub-ctrl {
    display: none; flex-direction: column; gap: 0;
    background: var(--fill-muted); border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }
  .sub-ctrl.show { display: flex; }
  .sub-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
  .sub-row + .sub-row { border-top: 1px solid var(--line); }
  .sub-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fg1); white-space: nowrap; }
  .sub-btn {
    padding: 5px 12px; font-size: 0.78rem; font-weight: 500;
    border: 1px solid var(--line-strong); border-radius: 4px;
    background: #fff; color: #3a3a3a; transition: all .12s;
  }
  .sub-btn:hover { border-color: var(--ink); color: var(--ink); }
  .sub-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
  #month-btns { display: flex; gap: 6px; flex-wrap: wrap; }

  /* 정렬바 */
  .sort-bar { display: flex; border-bottom: 1px solid var(--line); flex-shrink: 0; }
  .sort-seg {
    flex: 1; font-size: 12.5px; font-weight: 600; padding: 11px 0;
    color: var(--fg2); display: flex; align-items: center; justify-content: center;
    gap: 3px; border-right: 1px solid var(--line); transition: all .12s;
    position: relative;
  }
  .sort-seg:last-child { border-right: none; }
  .sort-seg:hover { color: var(--fg1); background: var(--fill-muted); }
  .sort-seg.active { background: var(--ink); color: var(--on-ink); }

  /* 드롭다운 */
  .dd-wrap { flex: 1; position: relative; display: flex; }
  .dd-wrap .sort-seg { flex: 1; }
  .dropdown {
    display: none; position: absolute; top: calc(100% + 2px); left: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10); z-index: 100; min-width: 130px; overflow: hidden;
  }
  .dropdown.open { display: block; }
  .dropdown div { padding: 9px 14px; font-size: 0.82rem; cursor: pointer; color: var(--fg1); transition: background .1s; }
  .dropdown div:hover { background: var(--fill-muted); }
  .dropdown div.selected { background: #f0f0f0; font-weight: 600; }

  /* 호텔 목록 */
  .hotel-list { overflow-y: auto; flex: 1; }
  .hotel-list::-webkit-scrollbar { width: 6px; }
  .hotel-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

  .hotel-item-wrap { border-bottom: 1px solid var(--line); }
  .hotel-item-wrap:last-child { border-bottom: none; }
  .hotel-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; text-decoration: none; color: inherit; transition: background .1s;
  }
  .hotel-item:hover { background: var(--fill-muted); }
  .hotel-rank { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--fg3); width: 16px; text-align: center; flex-shrink: 0; padding-top: 1px; }
  .hotel-info { flex: 1; min-width: 0; }
  .hotel-name { font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: var(--fg1); }
  .hotel-meta { font-size: 0.72rem; color: var(--fg2); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .stars { color: var(--ink); letter-spacing: 1px; font-size: 0.62rem; }
  .hotel-price-wrap { text-align: right; flex-shrink: 0; }
  .hotel-price { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--fg1); }
  .hotel-price-lbl { font-size: 0.65rem; color: var(--fg2); margin-top: 2px; }

  /* 패널 빈 상태 */
  .panel-empty { padding: 48px 24px; text-align: center; color: var(--fg2); font-size: 0.9rem; width: 100%; display: block; }

  /* 고급 모드 호텔 카드 내 가격 */
  .adv-price-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 0.8rem; }
  .adv-price-val { font-family: var(--serif); font-weight: 600; color: var(--fg1); }
  .adv-date-val { font-size: 0.7rem; color: var(--fg2); margin-left: 4px; }
  .adv-book-btn {
    font-size: 0.72rem; background: var(--ink); color: #fff; border: none;
    border-radius: 3px; padding: 4px 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: opacity .1s;
  }
  .adv-book-btn:hover { opacity: 0.85; }
  .adv-nights-total { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; }
  .adv-nights-avg { font-size: 0.7rem; color: var(--fg2); }

  /* 최저가 날짜 펼치기 */
  .cheapest-toggle {
    width: 100%; padding: 9px 18px; background: transparent; border: none;
    border-top: 1px solid var(--fill-muted); font-size: 0.72rem; color: var(--fg2);
    cursor: pointer; text-align: left; display: flex; align-items: center; gap: 6px;
    transition: color .12s, background .12s;
  }
  .cheapest-toggle:hover { color: var(--fg1); background: var(--fill-muted); }
  .cheapest-toggle .arrow { margin-left: auto; transition: transform .2s; }
  .cheapest-toggle.open .arrow { transform: rotate(180deg); }

  .cheapest-result { display: none; padding: 10px 18px 12px; background: var(--fill-sunken); border-top: 1px solid var(--line); }
  .cheapest-result.show { display: block; }
  .cheapest-single { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cheapest-date-label { font-size: 0.85rem; font-weight: 600; }
  .cheapest-price-label { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; margin-top: 2px; }
  .cheapest-book-btn {
    background: var(--ink); color: #fff; border: none; border-radius: 3px;
    padding: 7px 12px; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap; transition: opacity .1s;
  }
  .cheapest-book-btn:hover { opacity: 0.85; }
  .cheapest-multi-header { font-size: 0.78rem; color: var(--fg2); margin-bottom: 8px; }
  .cheapest-multi-header strong { color: var(--fg1); }
  .cheapest-date-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); }
  .cheapest-date-row:last-child { border-bottom: none; }
  .cheapest-date-row-label { font-size: 0.83rem; font-weight: 600; }

  /* 페이지네이션 */
  .pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-top: 1px solid var(--line);
    background: var(--fill-muted); flex-shrink: 0; gap: 16px;
  }
  .page-btn {
    padding: 6px 14px; font-size: 0.8rem; font-weight: 500;
    border: 1px solid var(--line-strong); border-radius: 4px;
    background: #fff; color: var(--fg1); cursor: pointer;
    font-family: var(--sans); transition: all .12s;
  }
  .page-btn:hover:not(:disabled) { border-color: var(--ink); }
  .page-btn:disabled { opacity: 0.35; cursor: default; }
  .page-info { font-size: 0.82rem; color: var(--fg2); font-weight: 500; }

  /* FAQ 섹션 */
  .faq-section { background: var(--fill-sunken); border-top: 1px solid var(--line); padding: 32px 0; }
  .faq-inner { width: fit-content; max-width: min(1100px, 100% - 80px); margin: 0 auto; padding: 0 40px; }
  @media (max-width: 900px) { .faq-inner { padding: 0 16px; max-width: min(1100px, 100% - 32px); } }
  .faq-inner h2 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: #1a3a5f; }
  .faq-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .faq-item:last-child { border-bottom: none; }
  .faq-q { font-size: 0.82rem; font-weight: 700; color: var(--fg1); margin-bottom: 4px; }
  .faq-a { font-size: 0.78rem; color: var(--fg2); line-height: 1.6; }
  .faq-a strong { color: var(--fg1); }
  @media (max-width: 900px) { .faq-inner { padding: 0 16px; } .faq-section { padding: 24px 0; } }


  /* 푸터 */
  footer { background: var(--ink); padding: 32px 40px; text-align: center; }
  .foot-brand { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
  .foot-brand-main { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
  .foot-brand-sub { font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--on-ink-soft); letter-spacing: 2px; text-transform: uppercase; }
  .foot-sub { font-size: 0.78rem; font-weight: 300; color: rgba(255,255,255,0.7); margin-top: 8px; }
  .foot-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; margin-top: 16px; }
  .foot-nav a { font-size: 0.8rem; color: rgba(255,255,255,0.85); text-decoration: none; }
  .foot-nav a:hover { color: #fff; text-decoration: underline; }
  .foot-disc { max-width: 560px; margin: 18px auto 0; font-size: 0.72rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
  .foot-meta { margin-top: 16px; font-size: 0.72rem; color: rgba(255,255,255,0.55); }
  .foot-meta a { color: rgba(255,255,255,0.72); text-decoration: none; }
  .foot-meta a:hover { color: #fff; text-decoration: underline; }

  @media (max-width: 900px) {
    /* 레이아웃 — 패널 위, 달력 아래 */
    .layout { flex-direction: column; }
    .hotel-panel { order: 1; width: 100%; position: static; height: auto; border-left: none; border-top: 1px solid var(--line); box-shadow: none; }
    .calendar-wrap { order: 2; }
    .hotel-list { max-height: 70vh; }

    /* 네비 */
    .nav { padding: 0 16px; }

    /* 히어로 */
    .hero { height: 220px; }
    .hero-label { padding: 0 16px 20px; }
    .hero-eb { font-size: 0.62rem; letter-spacing: 2px; }
    .hero-city { font-size: 2.6rem; }

    /* 달력 영역 */
    .calendar-wrap { padding: 16px 16px 32px; width: 100%; }
    .cal-head { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; margin-bottom: 14px; }
    .cal-title { font-size: 18px; }
    .tk-cal { max-width: 100%; }
    .tk-dow { gap: 4px; }
    .tk-grid { gap: 4px; }
    .tk-cell .d { font-size: 12px; }
    .tk-month { padding: 14px; }
    .tk-month-label { font-size: 15px; margin: -14px -14px 12px -14px; padding: 10px 14px; }

    /* 패널 */
    .mode-tab { font-size: 13px; padding: 12px 0; }
    .panel-header { padding: 16px 18px; }
    .panel-header h3 { font-size: 22px; }
    .panel-header p { font-size: 12px; }
    .sub-row { padding: 10px 14px; gap: 6px; }
    .sub-btn { font-size: 0.74rem; padding: 4px 10px; }
    .sort-seg { font-size: 11.5px; padding: 10px 0; }
    .hotel-item { padding: 12px 14px; gap: 10px; }
    .hotel-name { font-size: 0.84rem; }
    .hotel-price { font-size: 0.95rem; }
    .cheapest-toggle { padding: 8px 14px; font-size: 0.7rem; }
  }
