/* 출조임박 — 디자인 시안(디자인/01~03, M1~M3) 값을 그대로 옮긴 스타일 */
:root {
  --bg: #F6F1E6; --ink: #0F2A2E; --mute: #4F5D58; --line: #C9C2B2; --line2: #E6DFCF; --line3: #D9D1BF;
  --cta: #C4420F; --hot: #B93C0C; --link: #0B6B72; --deep2: #17383D; --soft: #C9D3CF;
  --green: #1F5B45; --red: #A32A22; --field: #FBF8F1; --tile: #E9E3D3;
  --font: 'Outfit', 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: var(--link); }
a:hover { color: var(--ink); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #E8622A; outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.kicker { font-size: 14px; letter-spacing: 4px; color: var(--mute); }
.note { font-size: 13px; line-height: 1.6; color: var(--mute); }
.m-only { display: none; }

/* ---------- 머리말 ---------- */
.demo-bar { background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; text-align: center; padding: 6px 12px; }
.site-head { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.main-nav a:hover { color: var(--link); }
.main-nav a[aria-current] { font-weight: 700; }
.head-right { display: flex; align-items: center; gap: 6px; }
.pill-cta { background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 24px; border-radius: 999px; white-space: nowrap; }
.pill-cta:hover { color: #fff; background: var(--deep2); }
.pill-line { font-size: 15px; font-weight: 500; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: none; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; padding: 0; }
.m-action { display: none; font-size: 13px; font-weight: 700; padding: 13px 4px; color: var(--ink); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--deep2); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--hot); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: rgba(15, 42, 46, .07); color: var(--ink); }
.btn-lg { min-height: 56px; border-radius: 14px; font-size: 18px; }
.btn-block { width: 100%; }
.btn:disabled { background: #B9B5A8; color: #fff; cursor: not-allowed; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pill-btn:hover { background: var(--ink); color: var(--bg); }
.pill-btn.danger { border-color: var(--red); color: var(--red); }
.pill-btn.danger:hover { background: var(--red); color: #fff; }
.btn-round { display: inline-block; background: var(--cta); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; padding: 16px 32px; border-radius: 999px; }
.btn-round:hover { background: var(--hot); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font-size: 14px; }

/* ---------- 홈: 대표 이미지 ---------- */
.hero { position: relative; width: 100%; max-width: 1080px; margin: 0 auto min(12%, 130px); aspect-ratio: 2.4 / 1; container-type: inline-size; overflow-x: clip; }
.hero > div { position: absolute; top: 0; height: 100%; }
.hero > div img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.hs1 { left: 0; width: 47.3%; background: #0E6E78; clip-path: polygon(0% 0%, 42.3% 0%, 100% 100%, 95.6% 100%, 0% 46%); }
.hs1 img { transform: scaleX(-1); }
.hs2 { left: 21%; width: 28.8%; background: #1F4B3F; clip-path: polygon(0% 0%, 98.6% 0%, 100% 100%, 92.4% 100%); }
.hs2 img { object-position: 60% 0%; }
.hs3 { left: 50.2%; width: 28.8%; background: #123F5E; clip-path: polygon(1.4% 0%, 100% 0%, 7.6% 100%, 0% 100%); }
.hs3 img { object-position: 0% 50%; transform: rotate(180deg); }
.hs4 { left: 52.7%; width: 47.3%; background: #2E8C97; clip-path: polygon(57.7% 0%, 100% 0%, 100% 46%, 4.4% 100%, 0% 100%); }
.hs4 img { object-position: 0% 50%; }
.hero p { position: absolute; top: 57%; font-size: clamp(11px, 2.1vw, 23px); font-size: clamp(11px, 2.1cqw, 30px); letter-spacing: -0.5px; white-space: nowrap; }
.hero-l { left: 4%; transform: rotate(26.4deg); transform-origin: left top; font-weight: 500; }
.hero-r { right: 4%; transform: rotate(-26.4deg); transform-origin: right top; font-weight: 700; }
.hero-hands { position: absolute; left: 39.9%; bottom: -26%; width: 22%; height: auto; }

/* ---------- 홈: 검색 ---------- */
.search-sec { max-width: 1080px; margin: 0 auto; padding: 24px 24px 72px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.search-sec h1 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.18; }
.search-sec .lead { font-size: 18px; color: var(--mute); max-width: 620px; line-height: 1.6; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; flex-shrink: 0; }
.pill.on { background: var(--ink); color: var(--bg); }
.search-form { width: 100%; background: #fff; border-radius: 20px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; text-align: left; box-shadow: 0 10px 30px rgba(15, 42, 46, .08); }
.search-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); min-width: 0; }
.search-form select { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; color: var(--ink); background: #fff; width: 100%; }
.search-form button { align-self: end; height: 48px; border: 0; border-radius: 12px; background: var(--cta); color: #fff; font-size: 17px; font-weight: 700; }
.search-form button:hover { background: var(--hot); }

/* ---------- 홈: 목록 ---------- */
.list-sec { padding-bottom: 96px; }
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.list-head h2 { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.list-head p { margin-top: 8px; font-size: 15px; color: var(--mute); }
.sorts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.sort { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: inherit; flex-shrink: 0; }
.sort.on { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 42, 46, .1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--ink); white-space: nowrap; }
.tier.t6 { background: var(--red); }
.tier.t24 { background: var(--cta); }
.tier.t48 { background: var(--link); }
.tier.t72 { background: var(--ink); }
.tier.off { background: #8A8F86; }
.card-top .status { font-size: 13px; color: var(--mute); text-align: right; }
.sample-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: #F2C46B; border-radius: 6px; padding: 2px 8px; margin-right: 8px; vertical-align: 1px; letter-spacing: 0; }
.card.is-sample { background: #FDFBF5; outline: 1.5px dashed var(--line); outline-offset: -1.5px; }
.dbadge.sample { background: #F2C46B; color: var(--ink); }
.card .port { font-size: 14px; color: var(--mute); }
.card h3 { margin-top: 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.8px; line-height: 1.25; }
.card .when { margin-top: 6px; font-size: 16px; font-weight: 500; }
.card-bot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line2); padding-top: 14px; margin-top: auto; }
.card-bot .seats { font-size: 30px; font-weight: 900; color: var(--hot); letter-spacing: -1px; white-space: nowrap; }
.card-bot .price { font-size: 19px; font-weight: 700; white-space: nowrap; text-align: right; }
.card-bot s { font-size: 14px; font-weight: 400; color: var(--mute); margin-right: 6px; }
.card-foot { font-size: 13px; color: var(--mute); }
.more-btn { margin-top: 20px; width: 100%; height: 52px; border: 1.5px solid var(--ink); border-radius: 14px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; }
.list-note { margin-top: 20px; }
.empty { grid-column: 1 / -1; background: #fff; border-radius: 20px; padding: 48px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty b { font-size: 22px; font-weight: 900; }
.empty p { color: var(--mute); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -12px 0 20px; font-size: 14px; }
.filter-tags span { padding: 6px 12px; border-radius: 999px; background: var(--tile); font-weight: 500; }

/* ---------- 홈: 시간 단계 · 선사 안내 ---------- */
.tiers-sec { background: var(--ink); color: var(--bg); }
.tiers-in { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.tiers-in > div:first-child { flex: 1 1 340px; }
.tiers-in .kicker { color: #F0A27C; }
.tiers-in h2 { margin-top: 12px; font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.tiers-in .txt { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--soft); }
.tier-grid { flex: 2 1 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier-box { background: var(--deep2); border-radius: 18px; padding: 24px; }
.tier-box .num { font-size: 44px; font-weight: 700; color: #fff; line-height: 1.2; }
.tier-box .num span { font-size: 18px; }
.tier-box .tt { margin-top: 8px; font-size: 17px; font-weight: 700; }
.tier-box .ds { margin-top: 6px; font-size: 14px; color: var(--soft); }
.tier-box:nth-child(2) .num { color: #8FD3C7; }
.tier-box:nth-child(3) .num { color: #F0A27C; }
.tier-box:nth-child(4) { background: var(--cta); }
.tier-box:nth-child(4) .ds { color: #fff; }
.owner-sec { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.owner-sec > div:first-child { flex: 1 1 380px; }
.owner-sec h2 { margin-top: 12px; font-size: 44px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.22; }
.owner-sec .txt { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--mute); }
.steps { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.steps li { display: flex; gap: 14px; align-items: center; }
.steps li i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-style: normal; flex-shrink: 0; }
.owner-sec .btn-round { margin-top: 32px; }
.minis { flex: 1 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.mini { aspect-ratio: 1 / 1; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #fff; }
.mini span { font-size: 13px; }
.mini b { font-size: 20px; font-weight: 700; }
.mini strong { font-size: 32px; font-weight: 900; line-height: 1.2; }
.mini em { font-style: normal; font-size: 15px; font-weight: 700; }
.mini .ph { width: 100%; flex: 1; background: #A9BFC4; color: var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mini.photo b { font-size: 17px; }
.mini.photo strong { font-size: 24px; }

/* ---------- 꼬리말 ---------- */
.site-foot { border-top: 1px solid var(--line3); }
.foot-in { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--mute); }
.foot-in > div { max-width: 560px; }
.foot-in .brand { font-size: 20px; font-weight: 900; color: var(--ink); }
.foot-in .brand + p { margin-top: 10px; line-height: 1.7; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: start; }
.foot-in nav a { padding: 12px 0; }

/* ---------- 상세 ---------- */
.page { padding-top: 16px; padding-bottom: 88px; }
.crumb { margin-bottom: 20px; font-size: 14px; color: var(--mute); }
.d-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: start; }
.d-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.d-photo { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.d-photo > div { position: absolute; inset: 0; background: #123F5E; border-radius: 24px; clip-path: polygon(0% 0%, 100% 0%, 100% 62%, 78% 100%, 0% 100%); overflow: hidden; }
.d-photo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.d-photo p { position: absolute; right: 1%; bottom: 3%; font-size: clamp(11px, 1.3vw, 17px); font-weight: 700; transform: rotate(-42deg); transform-origin: right bottom; white-space: nowrap; }
.d-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.dbadge { font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; color: #fff; background: var(--ink); }
.dbadge.t6 { background: var(--red); }
.dbadge.t24 { background: var(--cta); }
.dbadge.t48 { background: var(--link); }
.dbadge.ok { background: var(--green); }
.dbadge.off { background: #8A8F86; }
.dbadge.line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 5.5px 14px; }
.d-port { margin-top: 20px; font-size: 17px; color: var(--mute); }
.d-main h1 { margin-top: 6px; font-size: clamp(36px, 4.4vw, 60px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.15; }
.d-alert { background: #FBE9DF; color: #7A2A08; border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: 20px; padding: 24px; }
.stat span { display: block; font-size: 14px; color: var(--mute); }
.stat b { display: block; margin-top: 6px; font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.stat b.hot { color: var(--hot); }
.stat s { font-size: 15px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.d-list { background: #fff; border-radius: 20px; padding: 8px 28px; font-size: 17px; }
.d-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line2); }
.d-list > div:last-child { border-bottom: 0; }
.d-list dt { color: var(--mute); flex-shrink: 0; }
.d-list dd { font-weight: 700; text-align: right; }
.d-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.book { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.book .sm { font-size: 14px; color: var(--soft); }
.book .big { font-size: 30px; font-weight: 900; letter-spacing: -0.8px; }
.book .big span { font-size: 16px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.book a, .book button { display: block; width: 100%; border: 0; text-align: center; text-decoration: none; font-weight: 700; font-size: 18px; padding: 17px 10px; border-radius: 14px; }
.book .call { background: var(--cta); color: #fff; }
.book .call:hover { background: var(--hot); }
.book .site { background: var(--bg); color: var(--ink); }
.book .site:hover { background: #fff; }
.book button:disabled { background: var(--deep2); color: #8FA29F; cursor: not-allowed; }
.book .fine { font-size: 13px; line-height: 1.6; color: var(--soft); }
.share { background: #fff; border-radius: 24px; padding: 24px; display: flex; gap: 20px; align-items: center; }
.share .ico { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; background: var(--tile); display: flex; align-items: center; justify-content: center; color: var(--mute); }
.share .tt { font-size: 17px; font-weight: 700; }
.share .url { margin-top: 6px; font-size: 14px; color: var(--mute); word-break: break-all; }
.share .pill-btn { margin-top: 10px; }
.report-link { font-size: 14px; padding: 12px 4px; align-self: start; background: none; border: 0; color: var(--link); text-decoration: underline; }
.panel { background: #fff; border-radius: 20px; padding: 24px; }
.report-form { display: grid; gap: 10px; }
.report-form select, .report-form input { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; background: var(--field); width: 100%; }
.mine-bar { background: var(--tile); border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.others { margin-top: 72px; }
.others h2 { margin-bottom: 24px; font-size: 30px; font-weight: 900; letter-spacing: -0.8px; }
.ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ocard { background: #fff; border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.ocard .p { font-size: 14px; color: var(--mute); }
.ocard .t { font-size: 22px; font-weight: 900; }
.ocard .w { font-size: 15px; }
.ocard .r { display: flex; justify-content: space-between; align-items: baseline; }
.ocard .r b { font-size: 24px; font-weight: 900; color: var(--hot); }
.ocard .r span { font-size: 17px; font-weight: 700; }

/* ---------- 등록 ---------- */
.page-r { padding-top: 24px; }
.page-r h1, .page-h1 { margin-top: 10px; font-size: clamp(32px, 4vw, 52px); font-weight: 900; letter-spacing: -1.3px; line-height: 1.2; }
.lead2 { margin: 14px 0 40px; font-size: 17px; color: var(--mute); max-width: 680px; line-height: 1.6; }
.r-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: start; }
.r-form { flex: 999 1 520px; min-width: 0; background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.r-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.rf { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mute); min-width: 0; }
.rf i { font-style: normal; color: var(--hot); font-size: 12px; margin-left: 4px; }
.rf input, .rf select, .field-in { height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 17px; color: var(--ink); background: var(--field); width: 100%; }
.r-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.r-form legend { padding: 0; font-size: 14px; color: var(--mute); margin-bottom: 8px; }
.seat-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seat-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 26px; line-height: 1; color: var(--ink); flex-shrink: 0; }
.seat-btn.plus { border: 0; background: var(--ink); color: var(--bg); }
.seat-val { min-width: 96px; text-align: center; font-size: 36px; font-weight: 900; color: var(--hot); line-height: 1.2; }
.seat-row .hint { font-size: 14px; color: var(--mute); }
.tpl-pills, .sp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-pill { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tpl-pill i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); }
.tpl-pill.on, .sp-pills .pill.on { background: var(--ink); color: var(--bg); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line2); padding-top: 24px; }
.r-actions .btn:first-child { flex: 2 1 220px; }
.r-actions .btn:last-child { flex: 1 1 160px; }
.err { background: #FBE9DF; color: #7A2A08; border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 500; }
.r-side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.r-side h2 { font-size: 22px; font-weight: 900; }
#poster { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 20px; border: 1px solid var(--line3); display: block; background: var(--tile); }
.photo-in { font-size: 14px; color: var(--mute); display: grid; gap: 6px; }
.photo-in.hl { background: #FBE9DF; border-radius: 12px; padding: 10px 12px; color: #7A2A08; }

/* ---------- 나의 광고 ---------- */
.m-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.h-sec { font-size: 26px; font-weight: 900; letter-spacing: -0.6px; margin: 40px 0 16px; }
.mlist { display: grid; gap: 16px; }
.mrow { background: #fff; border-radius: 20px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; }
.mrow.off { opacity: .78; }
.mrow h3 { margin-top: 10px; font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.mrow h3 a { color: inherit; text-decoration: none; }
.mrow h3 a:hover { text-decoration: underline; }
.mrow .w { margin-top: 4px; font-size: 16px; font-weight: 500; }
.mrow .s { margin-top: 4px; font-size: 13px; color: var(--mute); }
.m-seats { display: grid; gap: 6px; justify-items: center; }
.m-acts { display: grid; gap: 8px; }

/* ---------- 안내 ---------- */
.prose { max-width: 880px; }
.prose .lead2 { margin-bottom: 0; }
.prose section { margin-top: 56px; }
.prose h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 20px; }
.prose p { font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.g-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.g-steps li { background: #fff; border-radius: 20px; padding: 20px 24px 20px 72px; position: relative; counter-increment: s; font-size: 17px; line-height: 1.6; }
.g-steps li::before { content: counter(s); position: absolute; left: 24px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.g-steps b { margin-right: 8px; }
.g-list { background: #fff; border-radius: 20px; padding: 8px 28px; list-style: none; }
.g-list li { padding: 18px 0; border-bottom: 1px solid var(--line2); font-size: 17px; line-height: 1.6; }
.g-list li:last-child { border-bottom: 0; }
.table { overflow-x: auto; background: #fff; border-radius: 20px; padding: 8px 28px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line2); vertical-align: top; line-height: 1.6; }
th { font-size: 14px; font-weight: 400; color: var(--mute); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- 알림 ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(15, 42, 46, .25); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--mute); }

/* ---------- 광고 자리 (이전 사이트와 같은 구조) ---------- */
.ad-zone[hidden], .ad-disclosure[hidden] { display: none; }
.ad-unit { position: relative; display: block; aspect-ratio: 1 / 1; min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line3); background: #fff; line-height: 0; transition: border-color .2s, transform .2s; }
.ad-unit img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-unit:hover { border-color: var(--ink); transform: translateY(-2px); }
.ad-zone::before { content: '광고'; display: block; height: var(--cap, 18px); line-height: var(--cap, 18px); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mute); opacity: .8; text-align: center; }
.ad-disclosure { margin: 0; padding: 8px 16px; background: var(--tile); border-bottom: 1px solid var(--line3); font-size: 13px; line-height: 1.5; color: var(--mute); text-align: center; }
.ad-fixed { max-width: 620px; margin: 0 auto; padding: 0 24px 72px; }
.ad-fixed:has(.ad-zone[hidden]) { display: none; }
.ad-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-grid3::before { grid-column: 1 / -1; margin-bottom: -6px; }
.ad-rail { display: none; }
.ad-col { display: flex; flex-direction: column; gap: var(--g); align-items: center; }
.ad-sticky {
  --n: 5; --g: 10px; --cap: 18px;
  --u: min(100px, calc((100vh - 48px - var(--cap) - var(--n) * var(--g)) / var(--n)));
  --colh: calc(var(--cap) + var(--n) * var(--u) + var(--n) * var(--g));
  position: fixed; top: max(24px, calc((100vh - var(--colh)) / 2)); width: 100px;
}
.ad-sticky .ad-unit { width: var(--u); }
@media (min-width: 1024px) {
  .ad-rail { display: block; position: absolute; top: 120px; width: 100px; z-index: 3; }
  .ad-rail.l { left: max(8px, calc(50% - 540px - 100px - 24px)); }
  .ad-rail.r { right: max(8px, calc(50% - 540px - 100px - 24px)); }
  /* 좌우 광고가 실제로 보일 때만 본문 폭을 줄여 자리를 비워 준다. 양쪽 132px(광고 100 + 바깥 8 + 틈 24)씩 */
  .ads-side .wrap, .ads-side .search-sec { max-width: min(1080px, calc(100% - 216px)); }
  .ads-side .hero { max-width: min(1080px, calc(100% - 264px)); }
}
.ads-nofollow .ad-sticky { position: static; --u: 100px; }
.ad-mobile { max-width: 1080px; margin: 0 auto; padding: 0 0 56px; }
.ad-mobile:has(.ad-zone[hidden]) { display: none; }
.ad-row::before { content: none; }
.ad-mobile::before { content: '광고'; display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mute); opacity: .8; text-align: center; }
.ad-row { --g: 10px; display: flex; justify-content: safe center; gap: var(--g); padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ad-row::-webkit-scrollbar { display: none; }
.ad-row .ad-unit { flex: 0 0 min(170px, calc((100% - 2 * var(--g)) / 3)); scroll-snap-align: start; }
.ad-row .ad-unit:hover { transform: none; }
@media (min-width: 1024px) { .ad-mobile { display: none; } }

/* 좌우 광고가 들어와 본문이 좁아지는 폭: 머리말 메뉴 간격을 줄여 한 줄에 담는다 */
@media (min-width: 761px) and (max-width: 1240px) {
  .site-head { gap: 12px 16px; }
  .main-nav { gap: 4px 18px; font-size: 15px; }
  .logo span { font-size: 23px; }
  .pill-cta { padding: 12px 18px; font-size: 15px; }
}

/* ---------- 좁은 화면 (모바일 시안 M1~M3) ---------- */
@media (max-width: 900px) {
  .r-side { position: static; }
  .mrow { grid-template-columns: 1fr; gap: 16px; }
  .m-seats { justify-items: start; }
  .m-acts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .m-only { display: revert; }
  .d-only { display: none !important; }
  .kicker { font-size: 12px; letter-spacing: 3px; }
  .note { font-size: 12px; }

  .site-head { padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; gap: 8px; }
  .logo { gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .logo span { font-size: 21px; }
  .pill-cta { font-size: 14px; padding: 13px 16px; }
  .pill-line { display: none; }
  .icon-btn.m-menu { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px; box-shadow: 0 14px 30px rgba(15, 42, 46, .14); border-radius: 0 0 20px 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line2); }
  .main-nav a:last-child { border-bottom: 0; }
  .site-head.sub .logo svg, .site-head.sub .pill-cta, .site-head.sub .m-menu { display: none; }
  .site-head.sub .logo span { font-size: 20px; }
  .site-head.sub .icon-btn.m-back, .site-head.sub .icon-btn.m-share { display: flex; }
  .site-head.sub .m-action { display: block; }

  .hero { aspect-ratio: auto; height: 300px; margin-bottom: 84px; }
  .hs2 img { object-position: 70% 0%; }
  .hero p { top: 168px; font-size: 13px; letter-spacing: 0; }
  .hero-l { left: 10px; transform: rotate(42.6deg); transform: rotate(atan2(162px, 45.2vw)); }
  .hero-r { right: 10px; transform: rotate(-42.6deg); transform: rotate(calc(-1 * atan2(162px, 45.2vw))); }
  .hero-hands { left: 50%; margin-left: -71px; bottom: -70px; width: 142px; }

  .search-sec { padding: 0 16px 48px; gap: 14px; }
  .search-sec h1 { font-size: 31px; letter-spacing: -1px; line-height: 1.22; }
  .search-sec .lead { font-size: 15px; }
  .pills.scroll, .sorts, .tpl-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; align-self: stretch; }
  .pills.scroll::-webkit-scrollbar, .sorts::-webkit-scrollbar, .tpl-pills::-webkit-scrollbar { display: none; }
  .pills { margin-top: 8px; }
  .pill { padding: 0 16px; font-size: 14px; }
  .search-form { border-radius: 18px; padding: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; box-shadow: 0 8px 24px rgba(15, 42, 46, .08); }
  .search-form label { font-size: 12px; gap: 5px; }
  .search-form select { padding: 0 10px; font-size: 15px; }
  .search-form button { grid-column: 1 / -1; height: 52px; }

  .list-sec { padding-bottom: 56px; }
  .list-head { margin-bottom: 16px; display: block; }
  .list-head h2 { font-size: 26px; letter-spacing: -0.8px; }
  .list-head p { margin: 6px 0 14px; font-size: 13px; }
  .sorts { font-size: 13px; }
  .sort { padding: 9px 14px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { gap: 12px; border-radius: 18px; padding: 18px; }
  .tier { font-size: 12px; padding: 6px 11px; }
  .card-top .status, .card-foot { font-size: 12px; }
  .card .port { font-size: 13px; }
  .card h3 { margin-top: 4px; font-size: 22px; letter-spacing: -0.6px; }
  .card .when { margin-top: 4px; font-size: 15px; }
  .card-bot { padding-top: 12px; }
  .card-bot .seats { font-size: 26px; letter-spacing: -0.8px; }
  .card-bot .price { font-size: 17px; }
  .more-btn { margin-top: 16px; }
  .list-note { margin-top: 14px; }
  .filter-tags { margin: 0 0 14px; }

  .tiers-in { padding-top: 48px; padding-bottom: 48px; display: block; }
  .tiers-in h2 { margin-top: 10px; font-size: 28px; letter-spacing: -0.8px; }
  .tiers-in h2 br { display: none; }
  .tiers-in .txt { margin: 12px 0 20px; font-size: 14px; }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tier-box { border-radius: 16px; padding: 16px; }
  .tier-box .num { font-size: 34px; }
  .tier-box .num span { font-size: 13px; }
  .tier-box .tt { margin-top: 4px; font-size: 15px; }
  .tier-box .ds { display: none; }
  .owner-sec { padding-top: 56px; padding-bottom: 56px; display: block; }
  .owner-sec h2 { margin-top: 10px; font-size: 30px; letter-spacing: -1px; }
  .owner-sec .txt { margin-top: 12px; font-size: 15px; }
  .steps { display: none; }
  .owner-sec { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .owner-sec > div:first-child { display: contents; }
  .owner-sec .btn-round { order: 3; margin-top: 24px; text-align: center; border-radius: 14px; padding: 16px; font-size: 17px; }
  .minis { order: 2; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 24px -16px 0; padding: 0 16px; flex: none; min-width: 0; max-width: calc(100% + 32px); }
  .minis::-webkit-scrollbar { display: none; }
  .mini { flex-shrink: 0; width: 150px; height: 150px; border-radius: 12px; gap: 3px; padding: 10px; }
  .mini span { font-size: 12px; }
  .mini b { font-size: 17px; }
  .mini strong { font-size: 27px; }
  .mini em { font-size: 13px; }
  .mini.photo, .mini .d { display: none; }
  .foot-in { padding-top: 28px; padding-bottom: 40px; font-size: 13px; display: block; }
  .foot-in .brand { font-size: 18px; }
  .foot-in .brand + p { margin-top: 8px; }
  .foot-in nav { margin-top: 8px; gap: 0 20px; }
  .foot-in nav a { padding: 13px 0; }

  .page { padding-top: 4px; padding-bottom: 40px; }
  .crumb { display: none; }
  .d-cols { gap: 18px; }
  .d-main { gap: 18px; flex-basis: 100%; }
  .d-photo { aspect-ratio: auto; height: 214px; }
  .d-photo > div { border-radius: 18px; }
  .d-photo img { object-position: 20% 50%; }
  .d-photo p { right: 2px; bottom: 6px; font-size: 11px; transform: rotate(-47deg); }
  .d-badges { gap: 6px; padding-right: 72px; }
  .dbadge { font-size: 12px; padding: 6px 11px; }
  .dbadge.line { padding: 4.5px 11px; }
  .d-port { margin-top: 14px; font-size: 14px; }
  .d-main h1 { margin-top: 4px; font-size: 34px; letter-spacing: -1px; }
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { border-radius: 16px; padding: 16px; }
  .stat span { font-size: 13px; }
  .stat b { margin-top: 4px; font-size: 26px; letter-spacing: -0.8px; }
  .d-list { border-radius: 16px; padding: 4px 18px; font-size: 15px; }
  .d-list > div { gap: 12px; padding: 15px 0; }
  .d-list > div.m-only { display: flex; }
  .d-side { gap: 18px; flex-basis: 100%; }
  .book { border-radius: 18px; padding: 20px; gap: 12px; }
  .book .sm { font-size: 13px; }
  .book .big { font-size: 24px; }
  .book .big span { font-size: 13px; }
  .book a, .book button { font-size: 17px; padding: 16px; }
  .book .fine { font-size: 12px; }
  .share { border-radius: 16px; padding: 16px; gap: 14px; }
  .share .ico { width: 76px; height: 76px; border-radius: 10px; }
  .share .tt { font-size: 15px; }
  .share .url { margin-top: 2px; font-size: 13px; }
  .share .pill-btn { padding: 0 14px; font-size: 13px; }
  .report-link { font-size: 13px; padding: 13px 0; }
  .panel { border-radius: 16px; padding: 18px; }
  .others { margin-top: 26px; }
  .others h2 { margin-bottom: 14px; font-size: 22px; letter-spacing: -0.6px; }
  .ocards { grid-template-columns: 1fr; gap: 10px; }
  .ocard { border-radius: 16px; padding: 16px; gap: 3px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .ocard .p { font-size: 12px; grid-column: 1; }
  .ocard .t { font-size: 18px; grid-column: 1; }
  .ocard .w { font-size: 12px; color: var(--mute); grid-column: 1; }
  .ocard .r { grid-column: 2; grid-row: 1 / span 3; }
  .ocard .r b { font-size: 19px; white-space: nowrap; }
  .ocard .r span { display: none; }

  .page-r { padding-top: 12px; }
  .page-r h1, .page-h1 { margin-top: 8px; font-size: 29px; letter-spacing: -1px; }
  .lead2 { margin: 10px 0 20px; font-size: 14px; }
  .r-cols { gap: 20px; }
  .r-form { border-radius: 18px; padding: 18px; gap: 14px; flex-basis: 100%; }
  .r-grid { grid-template-columns: 1fr; gap: 14px; }
  .rf, .r-form legend { font-size: 13px; gap: 5px; }
  .rf input, .rf select { font-size: 16px; }
  .seat-row { justify-content: space-between; }
  .seat-row .hint { display: none; }
  .seat-btn { width: 56px; height: 56px; font-size: 28px; }
  .seat-val { font-size: 40px; }
  .tpl-pill { min-height: 44px; padding: 0 14px; font-size: 14px; gap: 7px; }
  .tpl-pill i { width: 14px; height: 14px; }
  .r-actions { flex-direction: column; padding-top: 14px; }
  .r-actions .btn { flex: none; }
  .r-side { gap: 12px; flex-basis: 100%; }
  .r-side h2 { font-size: 20px; }
  #poster { border-radius: 18px; }

  .m-head { margin-bottom: 20px; }
  .m-stats { gap: 10px; margin-bottom: 24px; }
  .h-sec { font-size: 22px; margin: 28px 0 12px; }
  .mrow { border-radius: 18px; padding: 18px; }
  .mrow h3 { font-size: 22px; }
  .mrow .w { font-size: 15px; }
  .prose section { margin-top: 36px; }
  .prose h2 { font-size: 22px; margin-bottom: 14px; }
  .prose p, .g-steps li, .g-list li { font-size: 15px; }
  .g-steps li { border-radius: 16px; padding: 16px 16px 16px 60px; }
  .g-steps li::before { left: 16px; top: 16px; width: 30px; height: 30px; }
  .g-list, .table { border-radius: 16px; padding: 4px 18px; }
  .g-list li { padding: 15px 0; }
  table { font-size: 14px; }
  th, td { padding: 13px 12px 13px 0; }
  td:first-child { white-space: normal; min-width: 84px; }
  .ad-fixed { padding: 0 16px 48px; }
  .ad-grid3 { gap: 8px; }
  .ad-unit { border-radius: 12px; }
  .ad-disclosure { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
