/* EXPO · STORIES 페이지 */
.xp-hero { position: relative; height: clamp(300px, 42vw, 520px); overflow: hidden; background: var(--sky-mid); color: #fff; display: flex; align-items: flex-end; }
.xp-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xp-hero::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(rgba(11,70,120,0), rgba(11,70,120,.55)); }
.xp-hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: 36px; }
.xp-eyebrow { font-weight: 900; letter-spacing: .16em; font-size: 13px; opacity: .95; }
.xp-hero h1 { margin: 6px 0 6px; font-family: var(--font-body); font-weight: 900; font-size: clamp(36px, 5.6vw, 72px); line-height: 1; text-shadow: 0 2px 14px rgba(8,34,60,.3); }
.xp-hero p { margin: 0; font-size: 16px; text-shadow: 0 1px 8px rgba(8,34,60,.35); }
.xp-body { padding-top: 40px; padding-bottom: 80px; }

/* 시계 */
.xp-clocks { display: flex; justify-content: center; gap: clamp(14px, 6vw, 80px); margin-bottom: 30px; }
.xp-clock { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .55; transition: opacity .3s; }
.xp-clock.on { opacity: 1; }
.xp-face { width: clamp(92px, 13vw, 150px); height: auto; }
@media (max-width: 480px) { .xp-clock strong { font-size: 12px; letter-spacing: .08em; } .xp-date { font-size: 11px; text-align: center; } }
.xp-face .ring { fill: #fff; stroke: var(--sky); stroke-width: 3; }
.xp-face .dog { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .2; }
.xp-face .dog circle { fill: var(--sky); }
.xp-face .ticks line { stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.xp-face .h { stroke: var(--navy); stroke-width: 4; stroke-linecap: round; }
.xp-face .m { stroke: var(--sky-deep); stroke-width: 2.6; stroke-linecap: round; }
.xp-face .pin { fill: var(--sun); stroke: var(--navy); stroke-width: 1.2; }
.xp-clock strong { margin-top: 6px; font-weight: 900; letter-spacing: .12em; font-size: 14px; color: var(--navy); }
.xp-date { font-size: 13px; color: var(--ink-2); }

/* 탭 · 종류 */
.xp-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.xp-tabs button { padding: 9px 18px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; }
.xp-tabs button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.xp-kinds { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.xp-kinds button { padding: 6px 12px; border-radius: 6px; border: 1px solid transparent; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.xp-kinds button.on { background: var(--sky-mist); border-color: var(--line); color: var(--sky-deep); }

/* 포스터 */
.xp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1023px) { .xp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.xp-poster { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: var(--sky-mid); box-shadow: 0 8px 22px rgba(21,50,76,.14); }
.xp-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.xp-poster:hover img { transform: scale(1.03); }
.xp-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,40,70,.08) 35%, rgba(11,40,70,.78)); }
.xp-poster .top { position: absolute; z-index: 1; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.xp-poster .date { background: #fff; color: var(--navy); border-radius: 6px; padding: 6px 9px; text-align: center; line-height: 1; }
.xp-poster .date b { display: block; font-size: 10px; letter-spacing: .12em; color: var(--sky-deep); }
.xp-poster .date strong { display: block; font-size: 20px; font-weight: 900; margin-top: 3px; }
.xp-poster .badge { font-size: 10px; font-weight: 900; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy); }
.xp-poster .bot { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px; }
.xp-poster h3 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.xp-poster p { margin: 5px 0 0; font-size: 13px; opacity: .95; }
.xp-poster .band { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 5px; }
.k-fair .band { background: var(--sky); } .k-show .band { background: var(--sun); } .k-fest .band { background: #F08A7A; } .k-cat .band { background: #A99BF0; }
.xp-poster.sample .date strong { font-size: 16px; }
@media (max-width: 719px) { .xp-poster h3 { font-size: 15px; } .xp-poster .date strong { font-size: 16px; } .xp-poster .badge { font-size: 9px; } }
.xp-note { text-align: center; font-size: 12px; color: var(--ink-2); margin-top: 22px; }

/* STORIES */
.st-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 0; background: #F6F8FA; }
.st-hero img { width: 100%; height: clamp(280px, 36vw, 480px); object-fit: cover; display: block; }
.st-hero-text { padding: 32px clamp(20px, 4vw, 56px); }
.st-hero-text h1 { margin: 6px 0 8px; font-weight: 900; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; color: var(--navy); }
.st-hero-text p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.st-hero-text .xp-eyebrow { color: var(--sky-deep); }
@media (max-width: 719px) { .st-hero { grid-template-columns: 1fr; } .st-hero img { height: 300px; } .st-hero-text { padding: 22px 16px 26px; } }
.st-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 6px 0 26px; }
.st-tags span { padding: 7px 12px; border-radius: 6px; background: var(--sky-mist); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--navy); }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 44px; }
@media (max-width: 719px) { .st-two { grid-template-columns: 1fr; } }
.st-card { text-decoration: none; color: inherit; }
.st-card .ph { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--sky-soft); }
.st-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card strong { display: block; margin-top: 12px; font-size: 18px; font-weight: 900; color: var(--navy); }
.st-card span { font-size: 14px; color: var(--ink-2); }
.st-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 899px) { .st-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.st-post { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.st-post .ph { aspect-ratio: 1; background: var(--sky-soft); }
.st-post .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-post .meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; }
.st-post .who { font-weight: 800; color: var(--navy); }
.st-post .tag { font-size: 11px; color: var(--sky-deep); font-weight: 800; }
.st-post .heart { color: #E86C7E; font-weight: 800; }
.st-soon { text-align: center; margin: 0 0 18px; }
.st-soon span { display: inline-block; padding: 6px 12px; border-radius: 6px; background: #FFF6D6; color: #7A5A00; font-size: 13px; font-weight: 800; }
@media (max-width: 719px) { .xp-kinds { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .xp-kinds button { flex: 0 0 auto; } }

/* 종류 하나만 골랐는데 행사가 없을 때: 예시 1장 + 안내 */
.xp-grid.one { grid-template-columns: minmax(0, 300px); justify-content: center; }
.xp-empty { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }

/* 해 탭 */
.xp-years { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.xp-years button { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.xp-years button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* 지난 행사 · 예상 일정 · 다음 행사 */
.xp-flag { position: absolute; z-index: 2; left: 12px; top: 64px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.xp-flag.past { background: rgba(14,26,38,.72); color: #fff; }
.xp-flag.est { background: #FFF1C9; color: #7A5A00; }
.xp-poster.is-past { filter: grayscale(.85); opacity: .72; }
.xp-poster.is-past:hover { filter: grayscale(.3); opacity: 1; }
.xp-poster.is-next { outline: 3px solid var(--sun, #FFC83D); outline-offset: 3px; }

/* 위 사진 높이 통일 (Places 기준 — common.css --hero-h) */
.xp-hero { height: var(--hero-h, clamp(260px, 38vw, 560px)); }
.st-hero img { height: var(--hero-h, clamp(260px, 38vw, 560px)); }

/* ── (3차) EXPO: 시계 · 막대 · 사진 카드 + 지도 · 기념일 ── */
.xp-clock, .xp-clock.on { opacity: 1; }
.xp-face .dog { opacity: .32; }
.xp-face .s { stroke: #F08A7A; stroke-width: 1.4; stroke-linecap: round; }
.xp-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.xp-bar .xp-years { margin: 0; }
.xp-bar .xp-kinds { margin: 0; }
.xp-kinds button.on { background: var(--sky); border-color: var(--sky); color: #fff; }
.xp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.xp-layout .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xp-layout .xp-poster { aspect-ratio: 16 / 10; }
.xp-layout .xp-grid.one { grid-template-columns: minmax(0, 420px); }
.xp-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.xp-side .map-box { height: 230px; }
.xp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.xp-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.xp-legend i.k-fair { background: #2EA3E6; } .xp-legend i.k-show { background: #F2B705; } .xp-legend i.k-fest { background: #F08A7A; } .xp-legend i.k-cat { background: #A99BF0; }
.xp-links { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; }
.xp-links strong { display: block; font-size: 13px; letter-spacing: .08em; color: var(--navy); margin-bottom: 8px; text-align: center; }
.xp-links button { display: flex; justify-content: space-between; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.xp-links button:last-child { border-bottom: 0; }
.xp-links button b { color: var(--ink-2); font-weight: 700; }
.xp-links button[aria-pressed="true"] { color: var(--sky-deep); font-weight: 800; }
.xp-layout.full { grid-template-columns: 380px minmax(0, 1fr); width: 100vw; margin-left: calc(50% - 50vw); padding: 0 16px; }
.xp-layout.full .xp-grid { grid-template-columns: 1fr; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; }
.xp-layout.full .xp-side { top: 72px; }
.xp-layout.full .xp-side .map-box { height: calc(100vh - 170px); min-height: 420px; }
.xp-layout.full .pl-mapbtn, .xp-layout.full .xp-links { display: none; }
.xp-layout.full .pl-side-head { display: block; }
.xp-video { margin: 40px auto 0; max-width: 960px; }
.xp-video video { width: 100%; border-radius: 6px; background: #000; display: block; }
.xp-days { margin-top: 56px; }
.xp-days-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin-top: 18px; }
.xp-day { display: grid; grid-template-columns: 92px 26px 1fr; align-items: center; gap: 6px; padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.xp-day .d { font-weight: 800; color: var(--sky-deep); font-size: 13px; }
.xp-day .e { font-size: 18px; text-align: center; }
.xp-day small { color: var(--ink-2); font-size: 11.5px; }
.xp-day.is-past { opacity: .5; }
@media (max-width: 1023px) { .xp-layout { grid-template-columns: minmax(0, 1fr) 280px; } .xp-days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .xp-layout { grid-template-columns: 1fr; }
  .xp-layout .xp-grid { grid-template-columns: 1fr; }
  .xp-side { display: none; }
  .xp-layout.full { width: auto; margin-left: 0; padding: 0; }
  .xp-layout.full .xp-side { display: flex; position: fixed; z-index: 70; inset: 60px 0 0 0; background: #fff; padding: 10px; }
  .xp-layout.full .xp-map-wrap { flex: 1; display: flex; flex-direction: column; }
  .xp-layout.full .xp-side .map-box { flex: 1; height: auto; min-height: 0; }
  .xp-layout.full .xp-grid { max-height: none; overflow: visible; }
  .xp-days-grid { grid-template-columns: 1fr; }
}

.xp-side, .xp-layout.full .xp-side { top: calc(var(--bar-h, 92px) + 14px); }
.xp-layout.full .xp-grid { max-height: calc(100vh - var(--bar-h, 92px) - 36px); }
.xp-layout.full .xp-side .map-box { height: calc(100vh - var(--bar-h, 92px) - 110px); }
@media (max-width: 719px) { .xp-layout.full .xp-side { inset: var(--bar-h, 68px) 0 0 0; } }
/* Expo · Stories: 위 사진 아래 여백 넉넉히, 아래 제목들 위아래 여백 */
.xp-body { padding-top: 64px; }
.xp-days { margin-top: 88px; }
.xp-days .section-title { margin-bottom: 6px; }
.xp-days .section-sub { margin-bottom: 26px; }
.xp-video { margin-top: 64px; }
.st-tags { margin-bottom: 40px; }
@media (max-width: 719px) { .xp-body { padding-top: 40px; } .xp-days { margin-top: 64px; } }
