/* [EDIT-STYLE] 색·간격·레이아웃은 이 파일에서 조정 */
:root { --bg: #f8f8fa; --paper: #fff; --ink: #20232a; --muted: #777d88; --line: #e3e4e9; --accent: #b3343b; --accent-hover: #94282e; --header-h: 68px; --right-w: 390px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 15px; line-height: 1.6; }
button,input,select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4488d5; outline-offset: 2px; }
.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 35; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { max-width: 1440px; margin: auto; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; }
.site-logo { text-decoration: none; font-size: 23px; letter-spacing: -.9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.site-logo span { font-size: 13px; letter-spacing: -.15px; font-weight: 500; color: #6d737c; }
.header-lookup { border: none; background: transparent; font-weight: 600; color: #515864; padding: 8px 4px; font-size: 13px; }
.header-lookup:hover { color: var(--accent); }
.page-shell { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) var(--right-w); align-items: start; }
.content-column { min-width: 0; border-right: 1px solid var(--line); }
.event-hero { background: var(--paper); padding: 36px clamp(24px,5vw,72px) 44px; }
.poster-area { display: flex; justify-content: center; align-items: center; }
.concert-poster { display: block; width: 100%; max-width: 520px; height: auto; min-height: 150px; object-fit: contain; background: #edeef1; color: #666; }
.event-heading { margin: 30px 0 25px; }
.event-eyebrow { font-size: 11px; letter-spacing: .23em; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.event-heading h1 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.065em; line-height: 1.18; font-weight: 800; }
.concert-subtitle { margin: 7px 0 0; font-size: 17px; font-weight: 500; color: #6a6e77; }
.event-facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.event-facts > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.event-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.event-facts dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hero-note { font-size: 12px; color: #737780; margin: 14px 0 0; }
.concert-content { background: var(--paper); }
.section-nav { position: sticky; top: var(--header-h); z-index: 15; background: #fff; border-block: 1px solid var(--line); }
.section-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.section-tab { padding: 17px 5px 14px; text-align: center; color: #737982; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.section-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.section-tab:hover { color: var(--accent); }
.content-container { padding: 0 clamp(24px,5vw,72px); }
.content-section { padding: 40px 0 48px; scroll-margin-top: 130px; border-bottom: 1px solid var(--line); }
.section-heading { font-size: 24px; line-height: 1.4; margin: 0 0 28px; letter-spacing: -.04em; }
.content-body { font-size: 15px; color: #444954; }
.content-body h3 { font-size: 17px; color: var(--ink); margin: 28px 0 10px; }
.content-body h3:first-child { margin-top: 0; }
.content-body p { margin: 10px 0; }

/* [MAP_STYLE] 공연장 지도 디자인 */
.map-container {
  width: 100%;
  height: 340px;
  margin: 20px 0 10px;

  border: 1px solid #e3e4e9;
  border-radius: 10px;

  overflow: hidden;
  background: #f6f7f9;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* 모바일 지도 높이 */
@media (max-width: 900px) {
  .map-container {
    height: 280px;
  }
}

.map-link { display: inline-block; margin: 10px 0 8px; font-weight: 600; color: #3e668e; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px clamp(24px,5vw,72px); font-size: 12px; color: #80848c; }
.site-footer strong { color: #535b67; }
/* Desktop sticky booking sidebar */
.booking-panel { position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); min-height: 550px; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.booking-panel-head { padding: 23px 27px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; }
.panel-kicker { font-size: 10px; color: var(--accent); letter-spacing: .17em; font-weight: 800; margin: 0 0 5px; }
.booking-panel-head h2 { font-size: 23px; margin: 0; letter-spacing: -.04em; }
.panel-close,.sheet-handle { display: none; }
.booking-panel-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 16px 27px 24px; }
.booking-status { font-size: 12px; line-height: 1.5; margin: 0 0 17px; color: #676f7c; background: #f3f5f7; border-radius: 7px; padding: 10px 12px; }
.booking-status[data-kind="open"] { background: #edf6ef; color: #29683c; }
.booking-status[data-kind="closed"] { background: #fff0f0; color: #934145; }
#bookingForm { display: flex; flex-direction: column; gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { color: #353a43; font-size: 13px; font-weight: 700; }
.required { color: var(--accent); }
.form-field input,.form-field select { width: 100%; background: #fff; border: 1px solid #ccd0d8; border-radius: 7px; padding: 12px 12px; color: #20242b; min-height: 46px; font-size: 14px; }
.form-field input:focus,.form-field select:focus { border-color: #668bc2; outline: 2px solid #c9d9f0; }
.field-hint { font-size: 11px; line-height: 1.5; color: #7d8189; margin: 0; }
.form-divider { border-top: 1px solid var(--line); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.55; cursor: pointer; }
.consent-row input { margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }
.consent-row em { font-style: normal; color: var(--muted); }
.form-error { border: 1px solid #f2c7c7; border-radius: 7px; padding: 10px; background: #fff0f0; color: #ab3333; font-size: 12px; }
.booking-panel-footer { padding-top: 17px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-row > span { color: #6e737b; font-size: 13px; }
.price-row strong { font-size: 26px; letter-spacing: -.04em; }
.submit-booking { width: 100%; color: #fff; background: var(--accent); border: none; border-radius: 8px; padding: 13px 14px; min-height: 51px; font-weight: 750; }
.submit-booking:not(:disabled):hover { background: var(--accent-hover); }
.pay-note { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }

/* [MOBILE_BAR_STYLE] 모바일 하단 버튼 */
.mobile-booking-bar {
  display: flex;
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 0;
  right: 0;

  align-items: center;
  gap: 8px;

  height: calc(77px + env(safe-area-inset-bottom));
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));

  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -7px 20px #0000000a;
}

/* 왼쪽 공유 버튼: 정사각형 */
.mobile-share-button {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d8dbe0;
  border-radius: 8px;
  background: #fff;
  color: #333;
}

/* 오른쪽 예매 버튼: 남는 공간 전부 차지 */
.mobile-booking-bar #openBooking {
  flex: 1;
  min-width: 0;
  max-width: none;
  height: 52px;

  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 16px;
}

.sheet-backdrop { display: none; }
/* Success state */
.booking-success { text-align: center; padding: 12px 0 24px; }
.success-mark { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: #e8f5ec; color: #257e49; font-size: 28px; margin: 0 auto 12px; }
.booking-success h3 { font-size: 19px; margin: 4px 0 8px; }
.booking-success > p { font-size: 12px; color: #5c6270; }
.success-card { display: grid; gap: 4px; text-align: left; background: #f4f5f7; padding: 18px; border-radius: 8px; margin: 18px 0; }
.success-card span { font-size: 11px; color: var(--muted); margin-top: 8px; }
.success-card strong { font-size: 16px; overflow-wrap: anywhere; }
.success-card .secret-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .05em; }
.secondary-button { width: 100%; padding: 11px; border: 1px solid #b5bac3; border-radius: 7px; background: #fff; font-weight: 600; }
.success-warning { font-size: 12px; color: #9a3737 !important; }
.bank-placeholder { padding: 14px; background: #f3f4f5; border-radius: 8px; }
.text-button { background: none; border: none; color: #56769a; font-weight: 600; padding: 10px; }
/* Lookup modal */
.lookup-dialog { width: min(92vw,430px); border: none; padding: 25px; border-radius: 12px; box-shadow: 0 20px 65px #0003; color: var(--ink); }
.lookup-dialog::backdrop { background: #13151c9e; }
.lookup-head { display:flex; align-items:center; justify-content:space-between; }
.lookup-head h2 { margin: 0; font-size: 22px; }
.lookup-head button { background: none; border: none; font-size: 28px; color: #777; }
.lookup-dialog > p { color: var(--muted); font-size: 13px; }
#lookupForm { display: grid; gap: 17px; margin-top: 20px; }
.lookup-message { font-size: 13px; }
.lookup-result { padding: 13px; border-radius: 8px; background: #f2f4f7; font-size: 13px; }
/* Mobile bottom-sheet layout */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  body { padding-bottom: calc(77px + env(safe-area-inset-bottom)); }
  body.sheet-open { overflow: hidden; }
  .header-inner { padding-inline: 20px; }
  .site-logo { font-size: 21px; }
  .site-logo span { font-size: 11px; }
  .page-shell { display: block; }
  .content-column { border-right: none; }
  .event-hero { padding: 20px 20px 36px; }
  .concert-poster { max-width: 480px; }
  .event-heading { margin-top: 25px; }
  .event-heading h1 { font-size: clamp(36px,9vw,45px); }
  .concert-subtitle { font-size: 15px; }
  .content-container { padding: 0 20px; }
  .content-section { padding: 32px 0 38px; }
  .section-heading { font-size: 23px; }
  .site-footer { padding: 30px 20px; }
  .sheet-backdrop:not([hidden]) { display: block; position: fixed; z-index: 60; inset: 0; background: #0c101a9c; }
  .booking-panel { position: fixed; z-index: 61; bottom: 0; left: 0; right: 0; top: auto; height: min(88dvh, 820px); min-height: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 40px #0002; transform: translateY(105%); transition: transform .28s ease; visibility: hidden; padding-bottom: env(safe-area-inset-bottom); }
  .booking-panel.is-open { transform: translateY(0); visibility: visible; }
  .sheet-handle { display: block; width: 40px; height: 5px; background: #cfd2d8; border-radius: 99px; margin: 10px auto 0; flex-shrink: 0; }
  .panel-close { display: block; background: transparent; border: none; color: #4a4e57; font-size: 29px; line-height: 1; padding: 2px 6px; }
  .booking-panel-head { padding: 9px 22px 15px; }
  .booking-panel-head h2 { font-size: 21px; }
  .booking-panel-body { padding: 16px 22px 30px; }
 }
@media (max-width: 420px) {
  .event-facts > div { grid-template-columns: 92px minmax(0,1fr); gap: 8px; }
  .header-lookup { font-size: 12px; }
  .section-tab { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; } }

/* ===================================
   [MOBILE BOOKING BAR FIX]
   PC: 하단바 숨김
   모바일: 공유 버튼 + 예매 버튼 표시
=================================== */

/* PC에서는 하단 예매바 숨기기 */
@media (min-width: 901px) {
  .mobile-booking-bar {
    display: none !important;
  }
}

/* 모바일에서만 하단 예매바 표시 */
@media (max-width: 900px) {

  .mobile-booking-bar {
    display: flex;
    position: fixed;
    z-index: 40;
    bottom: 0;
    left: 0;
    right: 0;

    align-items: center;
    gap: 8px;

    height: calc(77px + env(safe-area-inset-bottom));
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));

    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -7px 20px #0000000a;
  }

  /* 공유 버튼 */
  .mobile-share-button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 52px;
    width: 52px;
    height: 52px;

    border: 1px solid #d8dbe0;
    border-radius: 8px;
    background: #fff;
    color: #333;
  }

  /* 예매 버튼 */
  .mobile-booking-bar #openBooking {
    flex: 1;
    min-width: 0;
    max-width: none;
    height: 52px;

    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;

    font-size: 16px;
    font-weight: 750;
  }
}


/* 예매 조회 결과 */

.lookup-result {
  margin-top: 16px;
  padding: 18px;
}

.lookup-status {
  display: block;
  color: #b3343b;
  font-size: 20px;
  font-weight: 800;
}

.lookup-result[data-status="confirmed"] .lookup-status {
  color: #24754e;
}

.lookup-result[data-status="cancelled"] .lookup-status,
.lookup-result[data-status="expired"] .lookup-status {
  color: #6b7280;
}

.lookup-help {
  margin: 6px 0 16px;
  font-size: 13px;
  color: #636976;
  line-height: 1.6;
}

.lookup-details {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #dce0e6;
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 9px 12px;
  font-size: 13px;
}

.lookup-details dt {
  color: #777d88;
}

.lookup-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}


/* [TWO_LOOKUP_MODES] 조회 방법 선택 */

.lookup-method {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dce0e6;
  border-radius: 8px;
}

.lookup-method legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 5px;
}

.lookup-method label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

.lookup-method input {
  accent-color: #b3343b;
}

.lookup-fields {
  display: grid;
  gap: 17px;
}

/* 복수 예매 조회 결과 */

.lookup-result {
  padding: 0;
  background: transparent;
}

.lookup-card {
  padding: 16px;
  margin-top: 12px;
  background: #f2f4f7;
  border: 1px solid #e1e4e9;
  border-radius: 9px;
}

.lookup-card .lookup-status {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: #b3343b;
}

.lookup-card[data-status="confirmed"] .lookup-status {
  color: #24754e;
}

.lookup-card[data-status="cancelled"] .lookup-status,
.lookup-card[data-status="expired"] .lookup-status {
  color: #6b7280;
}

.lookup-card .lookup-help {
  margin: 7px 0 14px;
  font-size: 12px;
  color: #636976;
}

.lookup-card .lookup-details {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 9px 10px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #dce0e6;
  font-size: 13px;
}

.lookup-card .lookup-details dt {
  color: #777d88;
}

.lookup-card .lookup-details dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
