/* www.panple.kr 손님용 홈(OTA 시안 「웹 1 · 홈」, D-082) — 색은 base.css 토큰, 상자는 꼭 필요한 곳만 */
:root { --hm-bg: #F5F6F8; --hm-ph: #DDE1E6; --hm-line2: #D5DAE0; --hm-dark: #111418; --hm-dark2: #1D2127; --hm-dark-line: #2A2E35; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--hm-bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--text); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 2px; }
.hm-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* 머리줄 */
.hm-top { background: var(--white); border-bottom: 1px solid var(--line); }
.hm-top-in { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.hm-top-left { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hm-logo { display: flex; }
.hm-logo img { height: 30px; width: auto; display: block; }
.hm-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.hm-nav a.is-on { color: var(--ink); }
.hm-top-right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.hm-help { color: var(--sub); }
.hm-btn-line { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; }

/* 첫 화면 */
.hm-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hm-hero-in { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.hm-h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -0.8px; font-weight: 700; }
.hm-tabs { display: flex; gap: 4px; padding: 4px; background: var(--hm-bg); border-radius: 12px; align-self: flex-start; }
.hm-tab { border: 0; height: 40px; padding: 0 18px; border-radius: 9px; background: transparent; color: #5F656E; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.hm-tab[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(17, 20, 24, .12); }
.hm-search { display: grid; border: 1px solid var(--hm-line2); border-radius: 14px; background: var(--white); overflow: hidden; }
.hm-search-solo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.hm-search-group { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.hm-cell { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-right: 1px solid var(--line); }
.hm-search > .hm-cell:nth-last-child(2) { border-right: 0; }
.hm-cell-k { font-size: 13px; color: var(--sub); }
.hm-cell-v { font-size: 16px; font-weight: 500; }
.hm-cell input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); }
.hm-go { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; border: 0; background: var(--accent-d); color: var(--white); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.hm-go-dark { background: var(--hm-dark); padding: 0 24px; }
.hm-group-panel { display: flex; flex-direction: column; gap: 16px; }
.hm-group-panel[hidden], .hm-search[hidden] { display: none; }
.hm-note { margin: 0; font-size: 14px; color: var(--sub); }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--hm-bg); font-size: 14px; }

/* 본문 */
.hm-main { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.hm-sec { display: flex; flex-direction: column; gap: 20px; }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-h2 { margin: 0; font-size: 22px; letter-spacing: -0.4px; display: flex; align-items: center; gap: 8px; }
.hm-sec-sub { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.hm-ad { padding: 2px 6px; border-radius: 4px; border: 1px solid #C5CBD3; background: var(--white); font-size: 11px; font-weight: 500; color: var(--text); line-height: 1.4; }
.hm-more { font-size: 14px; }
.hm-more-sm { font-size: 13px; color: var(--sub); }
.hm-themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hm-theme { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; background: var(--white); border-radius: 14px; color: var(--ink); font-size: 15px; font-weight: 500; }
.hm-ico { display: flex; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: #C0301C; align-items: center; justify-content: center; }
.hm-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hm-pick { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--white); border-radius: 16px; overflow: hidden; color: var(--ink); }
.hm-pick-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.hm-ph { min-height: 200px; background: var(--hm-ph); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; position: relative; }
.hm-ph-43 { min-height: 0; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 8px; }
.hm-badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 500; color: var(--ink); }
.hm-area { font-size: 13px; color: var(--sub); }
.hm-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.hm-pick .hm-name { font-size: 19px; }
.hm-copy, .hm-tags { font-size: 14px; color: var(--text); }
.hm-tags { font-size: 13px; color: var(--sub); }
.hm-price { margin-top: auto; padding-top: 4px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.hm-price small { font-size: 13px; font-weight: 400; color: var(--sub); }
.hm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }

/* 단체 안내 띠 */
.hm-groupband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; padding: 40px; background: var(--hm-dark); border-radius: 20px; color: var(--white); }
.hm-gb-text { display: flex; flex-direction: column; gap: 14px; }
.hm-gb-kicker { font-size: 14px; color: #FF8A78; font-weight: 500; }
.hm-gb-title { margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -0.6px; }
.hm-gb-sub { margin: 0; font-size: 15px; color: #C9CDD3; }
.hm-gb-btn { align-self: flex-start; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; margin-top: 6px; border-radius: 12px; background: var(--accent-d); color: var(--white); font-weight: 700; }
.hm-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm-steps li { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--hm-dark2); border: 1px solid var(--hm-dark-line); border-radius: 14px; }
.hm-steps li > span:last-child { font-size: 14px; color: #C9CDD3; }
.hm-step-n { font-size: 13px; color: #9CA2AB; font-variant-numeric: tabular-nums; }

/* 바닥 */
.hm-foot { background: var(--white); border-top: 1px solid var(--line); }
.hm-foot-in { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--sub); }
.hm-foot-in p { margin: 0; }
.hm-foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* 태블릿 · 휴대폰 */
@media (max-width: 960px) {
  .hm-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-picks, .hm-groupband { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hm-wrap { padding-left: 16px; padding-right: 16px; }
  .hm-top-left { gap: 16px; }
  .hm-nav { display: none; }
  .hm-help { display: none; }
  .hm-hero-in { padding-top: 28px; padding-bottom: 28px; gap: 18px; }
  .hm-h1 { font-size: 26px; }
  .hm-tabs { align-self: stretch; }
  .hm-tab { flex: 1; }
  .hm-search-solo, .hm-search-group { grid-template-columns: minmax(0, 1fr); }
  .hm-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .hm-go { min-height: 52px; }
  .hm-main { padding-top: 32px; gap: 40px; }
  .hm-pick { grid-template-columns: minmax(0, 1fr); }
  .hm-ph { min-height: 160px; }
  .hm-ph-43 { min-height: 0; }
  .hm-groupband { padding: 28px 20px; gap: 24px; }
  .hm-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) { .hm-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-cards { gap: 16px 12px; } }

/* 준비 중 안내(다른 화면 단추를 누르면 잠깐 뜬다) */
.hm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: 12px 18px;
  border-radius: 12px; background: var(--hm-dark); color: var(--white); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); }
.hm-toast[hidden] { display: none; }
