/* ==========================================================================
   Kotori — single event + checkout
   Phone-first: the booking panel is a sticky bottom bar on small screens,
   a side rail on desktop.
   ========================================================================== */

/* Title spans the full width above both columns, so the contained photo (left)
   and the reserve panel (right) share the same top edge — everything lines up.
   (No full-bleed hero — that upscaled small images and looked blurry.) */
.ed-head { grid-column: 1 / -1; margin: 0; }
.ed-title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.1;
  color: var(--washi,#f4ece0); margin: 6px 0 0;
}
.ed-photo {
  position: relative;               /* framed via JS from hero_focus */
  width: 100%; aspect-ratio: 3 / 2;
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(184,153,104,.26);
  background: #1a1613 no-repeat center / cover;
  margin-bottom: 32px;
  box-shadow: 0 22px 50px -24px rgba(0,0,0,.6);
}

.ed-wrap {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(34px,5vw,56px) clamp(20px,5vw,40px) 140px;
  display: grid;
  column-gap: clamp(30px,4vw,56px);
  row-gap: clamp(26px,3vw,38px);    /* space under the full-width title */
  grid-template-columns: minmax(0,1fr) 360px;
  align-items: start;
}

.ed-body p {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.02rem; line-height: 1.78;
  color: rgba(244,236,224,.8); margin: 0 0 20px;
}

.ed-facts {
  display: grid; gap: 1px; margin: 0 0 34px;
  background: rgba(184,153,104,.2);
  border: 1px solid rgba(184,153,104,.2);
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
}
.ed-fact { background: #12100e; padding: 18px 20px; }
.ed-fact dt {
  font-family: Manrope, system-ui, sans-serif;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold,#b89968); margin-bottom: 7px;
}
.ed-fact dd {
  font-family: "Shippori Mincho B1", serif; font-size: 1.06rem;
  color: var(--washi,#f4ece0); margin: 0;
}

/* ── Booking panel ─────────────────────────────────────────────────────── */
.ed-panel {
  position: sticky; top: 24px;
  border: 1px solid rgba(184,153,104,.3);
  background: rgba(255,255,255,.03);
  padding: 26px 24px 28px;
}
.ed-panel h2 {
  font-family: "Shippori Mincho B1", serif; font-size: 1.2rem;
  color: var(--washi,#f4ece0); margin: 0 0 4px;
}
.ed-panel .ed-sub {
  font-family: Manrope, system-ui, sans-serif; font-size: .8rem;
  color: rgba(244,236,224,.55); margin: 0 0 20px;
}

.ed-seatpick { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ed-step {
  width: 42px; height: 42px; flex: none;
  border: 1px solid rgba(184,153,104,.4); background: transparent;
  color: var(--washi,#f4ece0); font-size: 1.2rem; cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.ed-step:hover:not(:disabled) { border-color: var(--gold,#b89968); background: rgba(184,153,104,.1); }
.ed-step:disabled { opacity: .3; cursor: not-allowed; }
.ed-step:focus-visible { outline: 2px solid var(--gold,#b89968); outline-offset: 2px; }
.ed-count {
  flex: 1; text-align: center; font-family: "Shippori Mincho B1", serif;
  font-size: 1.5rem; color: var(--washi,#f4ece0);
}
.ed-count small {
  display: block; font-family: Manrope, system-ui, sans-serif;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,236,224,.5); margin-top: 2px;
}

.ed-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-top: 1px solid rgba(184,153,104,.18);
  border-bottom: 1px solid rgba(184,153,104,.18); margin-bottom: 20px;
}
.ed-total .lbl {
  font-family: Manrope, system-ui, sans-serif; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(244,236,224,.6);
}
.ed-total .amt {
  font-family: "Shippori Mincho B1", serif; font-size: 1.9rem;
  color: var(--washi,#f4ece0);
}

.ed-remaining {
  font-family: Manrope, system-ui, sans-serif; font-size: .78rem;
  text-align: center; margin-top: 14px; color: rgba(244,236,224,.55);
}
.ed-remaining.low { color: var(--vermillion,#c14a2a); font-weight: 600; }

.btn-block { display: block; width: 100%; text-align: center; }

.ed-soldout {
  text-align: center; padding: 20px 0;
  font-family: Manrope, system-ui, sans-serif;
}
.ed-soldout strong {
  display: block; font-family: "Shippori Mincho B1", serif;
  font-size: 1.3rem; color: var(--washi,#f4ece0); margin-bottom: 8px;
}

/* ── Demo marker ───────────────────────────────────────────────────────── */
.ed-demo {
  border: 1px dashed rgba(184,153,104,.45);
  background: rgba(184,153,104,.07);
  padding: 13px 16px; margin-bottom: 22px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: .76rem; line-height: 1.55; color: rgba(244,236,224,.72);
}
.ed-demo b { color: var(--gold,#b89968); letter-spacing: .1em; text-transform: uppercase;
  font-size: .68rem; display: block; margin-bottom: 4px; }

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ed-wrap { grid-template-columns: 1fr; padding-bottom: 190px; }

  /* booking panel becomes a fixed bar — thumb-reachable */
  .ed-panel {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 40;
    border: 0; border-top: 1px solid rgba(184,153,104,.4);
    background: rgba(18,16,14,.97);
    backdrop-filter: blur(14px);
    padding: 16px clamp(16px,5vw,24px) calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 38px rgba(0,0,0,.55);
  }
  .ed-panel h2, .ed-panel .ed-sub, .ed-demo { display: none; }
  .ed-seatpick { margin-bottom: 12px; }
  .ed-total { padding: 12px 0; margin-bottom: 14px; }
  .ed-total .amt { font-size: 1.55rem; }
  .ed-step { width: 46px; height: 46px; }   /* >=44px touch target */
}

@media (prefers-reduced-motion: reduce) {
  .ed-step { transition: none; }
}
