/* ------------------------------------------------------------
   chiango · page sections
   ------------------------------------------------------------ */

/* ---------- 추천 상품 (deals) ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; position: relative; }
.tab {
  height: 38px; padding-inline: 14px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--ink); }
.on-dark .tab[aria-selected="true"], :root[data-theme="dark"] .tab[aria-selected="true"] { color: var(--bg); }
.deal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 22px); }
.deal { display: grid; gap: 12px; opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.deal.hide { display: none; }
.deal.enter { opacity: 0; transform: translateY(12px); }
.deal .frame { aspect-ratio: 4 / 3; }
.deal .frame img { transition: transform 0.9s var(--ease-out); }
.deal:hover .frame img { transform: scale(1.045); }
.deal .wish {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--ink); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.deal .wish:hover { transform: scale(1.08); }
.deal .wish.on { color: var(--accent); }
.deal .wish.on .ico { fill: currentColor; }
.deal-body { display: grid; gap: 5px; }
.deal-body .place { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.deal-body .meta { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.deal-body .meta .ico { width: 14px; height: 14px; color: var(--accent); }
.deal-body .price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.deal-body .price .num { font-size: 1.15rem; font-weight: 700; }
.deal-body .price .num small { font-family: var(--font-ko); font-size: 0.78em; font-weight: 600; }
.deal-body .price s { color: var(--muted); font-size: 0.85rem; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.deal-body .price .off { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.deal-empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-card); display: none; }
.deal-empty.show { display: block; }

/* ---------- 여행자의 순간 (masonry + 스크롤 패럴랙스) ---------- */
.moments { position: relative; }
.moments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: start; }
.moments-col { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.moments-col:nth-child(2) { padding-top: clamp(40px, 6vw, 96px); }
.moments-col:nth-child(3) { padding-top: clamp(16px, 3vw, 48px); }
.moment { display: grid; gap: 8px; }
.moment .frame img { transition: transform 0.9s var(--ease-out); }
.moment:hover .frame img { transform: scale(1.03); }
.moment .cap { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.moment .cap strong { color: var(--ink); font-weight: 640; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .moments-col:nth-child(1) { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; --drift: -40px; }
    .moments-col:nth-child(2) { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; --drift: -110px; }
    .moments-col:nth-child(3) { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; --drift: -70px; }
  }
}
@keyframes drift-up { from { transform: translateY(calc(var(--drift) * -1)); } to { transform: translateY(var(--drift)); } }

/* ---------- 커뮤니티 ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 0.9rem; font-weight: 560; color: var(--ink-2); white-space: nowrap; border-right: 1px solid var(--line); }
.marquee-track > span .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.marquee-track > span b { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

.community-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.community-copy { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 22px; }
.community-copy .facts { display: grid; gap: 10px; margin-top: 8px; }
.community-copy .facts li { display: flex; gap: 12px; align-items: start; color: var(--ink-2); word-break: keep-all; }
.community-copy .facts .ico { color: var(--accent); margin-top: 3px; }
.board { display: grid; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(18px, 2.2vw, 26px); box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { font-size: 1.02rem; font-weight: 700; }
.panel-head a { font-size: 0.86rem; color: var(--muted); }
.panel-head a:hover { color: var(--ink); }
.post { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post:last-of-type { padding-bottom: 0; }
.post-body { display: grid; gap: 4px; min-width: 0; }
.post-body .title { font-weight: 640; letter-spacing: -0.015em; word-break: keep-all; line-height: 1.4; }
.post-body .meta { font-size: 0.83rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.post-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.post-body .tags .chip { height: 24px; padding-inline: 9px; font-size: 0.74rem; }
.post .btn-sm { height: 36px; padding-inline: 14px; font-size: 0.85rem; }
.qa { display: grid; gap: 0; }
.qa li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); }
.qa li:first-child { border-top: 0; padding-top: 0; }
.qa li:last-child { padding-bottom: 0; }
.qa .q { font-weight: 580; word-break: keep-all; line-height: 1.45; }
.qa .q::before { content: "Q"; font-family: var(--font-display); font-weight: 800; color: var(--accent); margin-right: 8px; }
.qa .a { font-size: 0.83rem; color: var(--muted); white-space: nowrap; }
.meetup { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.meetup .date { font-family: var(--font-display); text-align: center; background: var(--accent-soft); color: var(--accent); border-radius: 16px; padding: 10px 14px; line-height: 1; }
.meetup .date b { display: block; font-size: 1.6rem; font-weight: 800; }
.meetup .date span { display: block; font-size: 0.72rem; font-weight: 700; margin-top: 4px; letter-spacing: 0.08em; }
.meetup .title { font-weight: 640; word-break: keep-all; }
.meetup .meta { font-size: 0.85rem; color: var(--muted); }
.meetup .faces { display: flex; align-items: center; margin-top: 8px; }
.meetup .faces .avatar.sm { margin-left: -8px; }
.meetup .faces .avatar.sm:first-child { margin-left: 0; }
.meetup .faces span { margin-left: 10px; font-size: 0.82rem; color: var(--muted); }

/* ---------- 신뢰 벤토 ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(14px, 1.8vw, 22px); }
.cell { position: relative; border-radius: var(--radius-card); overflow: hidden; min-height: 260px; display: grid; align-content: end; padding: clamp(22px, 2.6vw, 34px); isolation: isolate; }
.cell.big { grid-row: 1 / 3; min-height: 520px; }
.cell .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cell:hover .bg { transform: scale(1.04); }
.cell.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 14, 16, 0.86) 0%, rgba(12, 14, 16, 0.35) 45%, rgba(12, 14, 16, 0.05) 75%); }
.cell.photo { color: #f1f0eb; }
.cell.photo .lead { color: rgba(241, 240, 235, 0.82); }
.cell.tint { background: var(--accent); color: var(--accent-ink); }
.cell.tint .lead { color: color-mix(in srgb, var(--accent-ink) 88%, transparent); }
.cell.plain { background: var(--surface); border: 1px solid var(--line); }
.cell h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.22; word-break: keep-all; margin-bottom: 8px; }
.cell .lead { font-size: 0.98rem; max-width: 28em; }
.cell .kicker { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: auto; padding-bottom: 60px; opacity: 0.9; }
.cell.tint .ico-big { width: 44px; height: 44px; margin-bottom: auto; padding-bottom: 0; stroke-width: 1.5; }

/* ---------- 인기 여행지 (가로 스크롤) ---------- */
.scroller-wrap { position: relative; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 19vw, 250px); gap: clamp(14px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.dest { display: grid; gap: 10px; }
.dest .frame { aspect-ratio: 3 / 4; }
.dest .frame img { transition: transform 0.9s var(--ease-out); }
.dest:hover .frame img { transform: scale(1.05); }
.dest .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: baseline; }
.dest .name span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.scroller-nav { display: flex; gap: 8px; }
.scroller-nav .btn-icon { border: 1px solid var(--line-strong); }
.scroller-nav .btn-icon:disabled { opacity: 0.35; cursor: default; }

/* ---------- 여행자 유형 쇼케이스 ---------- */
.types { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.type-list { display: grid; }
.type-btn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; text-align: left; padding: 18px 4px; border-top: 1px solid var(--line); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -0.03em; color: var(--muted); transition: color var(--dur-fast), padding-left var(--dur) var(--ease-out); }
.type-btn:last-child { border-bottom: 1px solid var(--line); }
.type-btn:hover { color: var(--ink); }
.type-btn[aria-selected="true"] { color: var(--ink); padding-left: 12px; }
.type-btn .ico { width: 22px; height: 22px; opacity: 0; transform: translateX(-6px); transition: opacity var(--dur-fast), transform var(--dur) var(--ease-out); color: var(--accent); }
.type-btn[aria-selected="true"] .ico { opacity: 1; transform: none; }
.type-stage { display: grid; gap: 18px; }
.type-stage .frame { aspect-ratio: 16 / 10; display: grid; }
.type-stage .frame img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.7s var(--ease-out), transform 1.2s var(--ease-out); transform: scale(1.04); }
.type-stage .frame img.on { opacity: 1; transform: none; }
.type-desc { display: grid; gap: 8px; }
.type-desc p { color: var(--ink-2); word-break: keep-all; max-width: 40em; }
.type-desc .link-arrow { justify-self: start; }

/* ---------- 여행 스타일 (대형 타이포 리스트 + 호버 프리뷰) ---------- */
.styles { position: relative; }
.style-list { display: grid; position: relative; }
.style-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: clamp(14px, 1.8vw, 22px) 0; border-top: 1px solid var(--line); color: var(--ink); transition: color var(--dur-fast); }
.style-row:last-child { border-bottom: 1px solid var(--line); }
.style-row .idx { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--muted); width: 2ch; }
.style-row .name { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1.1; transition: transform var(--dur) var(--ease-out); }
.style-row .desc { font-size: 0.92rem; color: var(--muted); max-width: 22em; text-align: right; word-break: keep-all; }
.style-row .thumb { display: none; }
.style-row:hover { color: var(--accent); }
.style-row:hover .name { transform: translateX(10px); }
.style-preview {
  position: absolute; z-index: 5; width: clamp(180px, 16vw, 240px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.85) rotate(-4deg); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  box-shadow: var(--shadow-float); top: 0; left: 0; will-change: transform;
}
.style-preview.on { opacity: 1; transform: scale(1) rotate(-3deg); }
.style-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease-out); }
.style-preview img.on { opacity: 1; }

/* ---------- 현지 매니저 밴드 (풀블리드) ---------- */
.band { position: relative; min-height: clamp(420px, 56vw, 620px); display: grid; align-items: center; isolation: isolate; color: #f1f0eb; overflow: hidden; }
.band img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .band img.bg { animation: band-parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; height: 120%; top: -10%; }
  }
}
@keyframes band-parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 12, 14, 0.82) 0%, rgba(10, 12, 14, 0.55) 45%, rgba(10, 12, 14, 0.18) 100%); }
.band-inner { padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 22px; max-width: 620px; }
.band .eyebrow { color: #ffb197; }
.band .h-section { color: #fff; }
.band .lead { color: rgba(241, 240, 235, 0.86); }
.band .btn-primary { --accent: #e4572e; --accent-hover: #cf4a24; --accent-ink: #fff; justify-self: start; }
.band .note { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(241, 240, 235, 0.72); }
.band .note span { display: inline-flex; gap: 6px; align-items: center; }
.band .note .ico { width: 16px; height: 16px; }

/* ---------- 매거진 ---------- */
.mag { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.mag-feature { display: grid; gap: 14px; }
.mag-feature .frame { aspect-ratio: 3 / 2; }
.mag-feature .frame img { transition: transform 1s var(--ease-out); }
.mag-feature:hover .frame img { transform: scale(1.03); }
.mag-feature h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.25; word-break: keep-all; }
.mag-feature p { color: var(--ink-2); word-break: keep-all; max-width: 36em; }
.mag-feature .small, .mag-item .small { color: var(--muted); }
.mag-list { display: grid; align-content: start; }
.mag-item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); }
.mag-item:first-child { border-top: 0; padding-top: 0; }
.mag-item .frame { aspect-ratio: 4 / 3; border-radius: 14px; }
.mag-item h3 { font-size: 1.08rem; font-weight: 660; letter-spacing: -0.02em; line-height: 1.35; word-break: keep-all; margin-bottom: 4px; }
.mag-item:hover h3 { color: var(--accent); }

/* ---------- 토스트 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 560; box-shadow: var(--shadow-float); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); pointer-events: none; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: start; }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moments-grid { display: block; columns: 2; column-gap: 12px; }
  .moments-col { display: contents; }
  .moment { break-inside: avoid; margin-bottom: 14px; }
  .moment .cap { font-size: 0.78rem; gap: 6px; }
  .moment .cap strong { white-space: nowrap; }
  .moment .cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .community-grid { grid-template-columns: 1fr; }
  .community-copy { position: static; }
  .bento { grid-template-columns: 1fr; }
  .cell.big { grid-row: auto; min-height: 380px; }
  .types { grid-template-columns: 1fr; }
  .type-stage { order: -1; }
  .style-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .style-row .idx { display: none; }
  .style-row .desc { grid-column: 2; text-align: left; max-width: none; }
  .style-row .thumb { display: block; grid-row: 1 / 3; width: 64px; height: 80px; border-radius: 12px; object-fit: cover; }
  .style-row:hover .name { transform: none; }
  .style-preview { display: none; }
  .mag { grid-template-columns: 1fr; }
  .mag-item { grid-template-columns: 110px 1fr; }
}
@media (max-width: 600px) {
  .deal-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .deal-body .price .num { font-size: 1.05rem; }
  .post { grid-template-columns: auto 1fr; }
  .post .btn-sm { grid-column: 2; justify-self: start; }
  .qa li { grid-template-columns: 1fr; gap: 4px; }
  .scroller { grid-auto-columns: 62vw; }
  .type-btn { font-size: 1.2rem; padding: 14px 4px; }
}
