/* ==========================================================================
   tb-place.css: the place page (/places/<district>/<name>-<id>/), 2026-11-14
   John's mockup "플레이스 페이지 디자인 검토": a photo and the name side by side,
   the why and the description, the photos, Around here, the information, and
   one quiet line about the trip. No gold on this page.

   Loads after tb-baekja.css (the tokens) and tb-story-page.css (the site's
   header and footer, .sp-head / .sp-foot, and the .sp-body base). Every rule
   is under .tbp so nothing here reaches another page.
   ========================================================================== */

.tbp {
  --tbp-max: 1200px;
  --tbp-pad: 32px;
  --tbp-radius: 12px;
  --tbp-body: 760px;
}

/* the site's header, as wide as this page */
.tbp .sp-head { max-width: var(--tbp-max); padding-left: var(--tbp-pad); padding-right: var(--tbp-pad); }
.tbp .tbpp-promise:not([hidden]) { max-width: var(--tbp-max); margin: 10px auto 0; padding: 0 var(--tbp-pad); font-size: 14px; color: var(--color-ink-muted); }
.tbp .tbpp-lang:not([hidden]) { max-width: var(--tbp-max); margin: 10px auto 0; padding-left: var(--tbp-pad); padding-right: var(--tbp-pad); }

.tbp-main { max-width: var(--tbp-max); margin: 0 auto; padding: 28px var(--tbp-pad) 8px; }
.tbp-place { margin: 0; }

/* ---- the hero ---- */
.tbp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: stretch;
}
.tbp-hero--text { grid-template-columns: minmax(0, 1fr); max-width: var(--tbp-body); }
.tbp-hero--text .tbp-map { aspect-ratio: 16 / 9; }
.tbp-hero__photo { display: flex; margin: 0; border-radius: var(--tbp-radius); overflow: hidden; background: var(--color-base-sunk); }
.tbp-hero__photo img { display: block; width: 100%; height: auto; min-height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tbp-hero__info { display: flex; flex-direction: column; min-width: 0; padding-top: 20px; }
.tbp-hero__info h1 {
  margin: 0; font-family: var(--sp-serif); font-weight: 500;
  font-size: 50px; line-height: 1.08; letter-spacing: -0.02em; color: var(--color-ink);
}
.tbp .korean-name { margin: 18px 0 0; font-size: 18px; color: var(--color-ink-muted); }
.tbp-lede {
  margin: 26px 0 0; font-family: var(--sp-serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.4; color: var(--color-celadon);
}
.tbp-kind { margin: 18px 0 0; font-size: 14px; letter-spacing: 0.01em; color: var(--color-ink-muted); }
.tbp-kind .price-level:not(:empty)::before { content: " · "; }
.tbp-where { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--color-ink-muted); }
.tbp-where a { color: var(--color-celadon-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* the small map: a drawing on the page, a Naver map laid over it once it loads (js/tb-place.js) */
.tbp-map {
  position: relative; margin-top: auto; aspect-ratio: 4 / 3; min-height: 220px;
  border: 1px solid var(--color-line); border-radius: var(--tbp-radius); overflow: hidden;
  background: var(--color-base-sunk); cursor: pointer;
}
.tbp-hero__info > .tbp-map { margin-top: 40px; }
@media (min-width: 900px) {
  .tbp-hero:not(.tbp-hero--text) .tbp-hero__info > .tbp-map { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; margin-top: 36px; }
}
.tbp-sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.tbp-sketch__ring { fill: none; stroke: var(--color-celadon); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 4 5; }
.tbp-sketch__pick { fill: var(--color-ink-muted); fill-opacity: .55; }
.tbp-sketch__here { fill: var(--color-celadon-deep); stroke: var(--color-base-2); stroke-width: 3; }
.tbp-map__live { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.tbp-map.is-live .tbp-map__live { opacity: 1; }
.tbp-map.is-live .tbp-sketch { visibility: hidden; }
.tbp-map__pill {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; background: rgba(28, 27, 24, .78); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.tbp-map__pill:hover { background: rgba(28, 27, 24, .9); }
.tbp-pin {
  width: 18px; height: 18px; border-radius: 50%; transform: translate(-9px, -9px);
  background: var(--color-celadon-deep); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(28, 27, 24, .35);
}
.tbp-dot {
  width: 10px; height: 10px; border-radius: 50%; transform: translate(-5px, -5px);
  background: var(--color-ink-muted); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(28, 27, 24, .3);
}

.tbp-doors { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.tbp .tbp-share {
  display: block; width: 100%; margin: 0; padding: 13px 18px; border-radius: var(--tbp-radius);
  border: 1px solid var(--color-celadon); background: transparent; color: var(--color-celadon-deep);
  font: 600 16px/1.2 var(--font-sans); cursor: pointer; text-align: center;
}
.tbp .tbp-share:hover { background: var(--color-celadon-soft); }
.tbp-arrow { align-self: flex-start; color: var(--color-celadon-deep); font-weight: 600; font-size: 16px; text-decoration: none; }
.tbp-arrow::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .15s ease; }
.tbp-arrow:hover::after { transform: translateX(3px); }
.tbp-arrow:hover { color: var(--color-celadon); }

/* ---- the body ---- */
.tbp-body { max-width: var(--tbp-body); margin-top: 64px; }
.tbp-why { list-style: none; margin: 0 0 22px; padding: 0; }
.tbp-why li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: 19px; line-height: 1.5; color: var(--color-ink); }
.tbp-why li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--color-celadon); }
.tbp .description { margin: 0; font-size: 18px; line-height: 1.75; color: var(--color-ink-muted); }
.tbp div.description p { margin: 0 0 1em; }
.tbp div.description p:last-child { margin-bottom: 0; }
.tbp .tbpp-note { margin: 22px 0 0; padding-left: 16px; border-left: 2px solid var(--color-celadon-soft); font-family: var(--sp-serif); font-style: italic; font-size: 19px; line-height: 1.55; color: var(--color-ink); }

.tbp-section { margin-top: 64px; }
.tbp-section h2, .tbp .tbpp-live h2 {
  margin: 0 0 10px; font-family: var(--sp-serif); font-weight: 500;
  font-size: 34px; line-height: 1.15; letter-spacing: -0.012em; color: var(--color-ink);
}
.tbp .tbpp-live { margin-top: 48px; }

/* the photos: two columns on a wide screen, a row to swipe on a phone */
.tbp-gallery { margin-top: 48px; }
.tbp-gallery ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.tbp-gallery li { break-inside: avoid; margin: 0 0 16px; }
.tbp-gallery img { display: block; width: 100%; height: auto; border-radius: var(--tbp-radius); background: var(--color-base-sunk); }

/* Around here */
.tbp-around__lede { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--color-ink-muted); }
.tbp-around__lede a { color: var(--color-celadon-deep); }
.tbp-around__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.tbp-around__list li { border-bottom: 1px solid var(--color-line); }
.tbp-around__list a { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 30px 16px 0; color: inherit; text-decoration: none; }
.tbp-around__list a::after { content: "\203A"; position: absolute; right: 6px; top: 50%; transform: translateY(-52%); font-size: 26px; color: var(--color-celadon); }
.tbp-around__list a:hover .tbp-around__name { color: var(--color-celadon-deep); }
.tbp-around__list img, .tbp-around__noimg { flex: none; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--color-base-sunk); }
.tbp-around__text { display: flex; flex-direction: column; min-width: 0; }
.tbp-around__name { font-family: var(--sp-serif); font-size: 22px; line-height: 1.2; color: var(--color-ink); overflow-wrap: anywhere; }
.tbp-around__meta { margin-top: 6px; font-size: 15px; color: var(--color-ink-muted); }
.tbp-around__all { margin: 24px 0 0; }

/* the information */
.tbp-info { padding-top: 40px; border-top: 1px solid var(--color-line); }
.tbp-facts { margin: 18px 0 0; }
.tbp-facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 10px 0; }
.tbp-facts dt { font-size: 16px; color: var(--color-ink-muted); }
.tbp-facts dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-ink); }
.tbp-now:not([hidden]) { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 600; }
.tbp-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-ink-faint); }
.tbp-now.is-open::before { background: var(--color-celadon-deep); }
.tbp .opening-hours { border-collapse: collapse; margin: 0; }
.tbp .opening-hours th { padding: 2px 22px 2px 0; text-align: left; font-weight: 400; color: var(--color-ink); white-space: nowrap; vertical-align: top; }
.tbp .opening-hours td { padding: 2px 0; color: var(--color-ink); }
.tbp .opening-hours span[id] { scroll-margin-top: 80px; }
.tbp-facts .tbpp-hangul, .tbp-facts .tbpp-hangul-addr { display: block; margin: 2px 0 0; font-size: 15px; font-family: var(--font-sans); color: var(--color-ink-muted); }
.tbp-out { display: inline-block; margin-top: 4px; color: var(--color-celadon-deep); font-weight: 600; text-decoration: none; }
.tbp-facts .tbp-out { display: block; width: fit-content; }
.tbp-out::after { content: "\2197"; margin-left: 6px; font-size: .9em; }
.tbp-out:hover { color: var(--color-celadon); }
.tbp .tbpp-checked, .tbp .tbpp-asof { margin: 8px 0 0; font-size: 13px; color: var(--color-ink-muted); }
.tbp .tbpp-fixes { margin: 14px 0 0; font-size: 13px; }

/* questions people ask (filled on the page; hidden while none) */
.tbp .tbpp-qa ul { margin: 0; padding-left: 18px; }
.tbp .tbpp-qa li { margin: 6px 0; }
.tbp .tbpp-qa a { color: var(--color-celadon-deep); }

/* the one line about the trip */
.tbp-plan {
  margin: 80px auto 0; max-width: 480px; text-align: center;
  font-family: var(--sp-serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--color-ink);
}
.tbp-plan a { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: 17px; color: var(--color-celadon-deep); text-decoration: none; white-space: nowrap; }
.tbp-plan a::after { content: "\2192"; margin-left: 6px; }
.tbp-plan a:hover { color: var(--color-celadon); }
.tbp .sp-foot { margin-top: 48px; }

/* Korean breaks between words; Japanese never */
html[lang="ko"] .tbp { word-break: keep-all; }

/* ---- a phone ---- */
@media (max-width: 899px) {
  .tbp { --tbp-pad: 16px; }
  .tbp .sp-head { padding: 16px 16px 14px; }
  .tbp-main { padding-top: 0; }
  .tbp-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tbp-hero__photo { margin: 0 calc(-1 * var(--tbp-pad)); border-radius: 0; }
  .tbp-hero__photo img { aspect-ratio: 4 / 3; max-height: 58vh; }
  .tbp-hero__info { padding-top: 22px; }
  .tbp-hero__info h1 { font-size: 34px; }
  .tbp .korean-name { margin-top: 10px; font-size: 16px; }
  .tbp-lede { margin-top: 14px; font-size: 21px; }
  .tbp-kind { margin-top: 12px; }
  .tbp-hero__info > .tbp-map { margin-top: 20px; aspect-ratio: 16 / 10; min-height: 0; }
  .tbp-doors { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .tbp .tbp-share { width: auto; flex: 0 0 auto; padding: 11px 26px; }
  .tbp-arrow { align-self: center; }
  .tbp-body { margin-top: 40px; }
  .tbp-why li { font-size: 18px; }
  .tbp .description { font-size: 17px; line-height: 1.7; }
  .tbp-section { margin-top: 48px; }
  .tbp-section h2, .tbp .tbpp-live h2 { font-size: 28px; }
  .tbp-gallery { margin: 36px calc(-1 * var(--tbp-pad)) 0; }
  .tbp-gallery ul {
    columns: auto; display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--tbp-pad);
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--tbp-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tbp-gallery ul::-webkit-scrollbar { display: none; }
  .tbp-gallery li { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
  .tbp-gallery img { height: 240px; object-fit: cover; }
  .tbp-around__list { grid-template-columns: minmax(0, 1fr); }
  .tbp-around__list a { gap: 14px; padding: 12px 26px 12px 0; }
  .tbp-around__list img, .tbp-around__noimg { width: 64px; height: 64px; }
  .tbp-around__name { font-size: 19px; }
  .tbp-around__meta { font-size: 14px; margin-top: 4px; }
  .tbp-info { padding-top: 32px; }
  .tbp-facts > div { grid-template-columns: 104px minmax(0, 1fr); gap: 2px 14px; }
  .tbp-facts dt, .tbp-facts dd { font-size: 15px; }
  .tbp-plan { margin-top: 56px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .tbp-map__live { transition: none; }
  .tbp-arrow::after { transition: none; }
}
@media print {
  .tbp-map, .tbp-doors, .tbp-gallery { display: none; }
}
