/* LIBRA · seats.css — P02 座位地图与预约 / P03 我的座位 */

/* ------------------------------------------------------------------ P02 三栏 */
.seat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 264px;
  gap: 18px;
  align-items: stretch;
}

.seat-filter {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}
.seat-filter .card-head { margin-bottom: 14px; }
.filter-label {
  margin: 18px 0 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.seat-filter .card-head + .filter-label { margin-top: 0; }

.filter-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.filter-chips .chip {
  width: 100%;
  height: 40px;
  padding: 0 6px;
  justify-content: center;
  font-size: 12px;
}
.filter-chips .chip.active {
  background: linear-gradient(180deg, #6788ff, #4a6cf4);
  border-color: #6788ff;
  color: #fff;
  box-shadow: 0 6px 16px rgba(74, 108, 244, 0.28);
}

.attr-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 2px;
  background: none;
  border: 0;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 12.5px;
  text-align: left;
}
.attr-row:hover { color: var(--text); }
.attr-row .check { margin-top: 1px; }

.seat-filter .select { height: 42px; margin-top: 2px; margin-bottom: 18px; }
.seat-filter .btn-block { height: 42px; margin-top: auto; }

/* ------------------------------------------------------------------ 地图卡 */
.seat-map-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.seat-map-card .card-head h3 { font-size: 15px; }
.seat-map-card.is-loading { opacity: 0.55; pointer-events: none; }
.seatmap {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 22px 18px 18px;
}
.seatmap .seat-grid {
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 6px;
}
.seat-grid .seat {
  height: 27px;
  padding: 0;
  font-family: inherit;
  font-size: 9.5px;
}
.seatmap .zone-row { margin-bottom: 30px; }
.seatmap .zone-block { height: 64px; }
.seatmap .legend { flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------------ 详情卡 */
.seat-detail { padding: 22px 22px 20px; }
.seat-detail .card-head { margin-bottom: 10px; }
.seat-code {
  margin: 4px 0 6px;
  font-size: 38px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.seat-meta { color: var(--muted); font-size: 12px; line-height: 1.7; }
.seat-meta + .seat-meta { margin-top: 1px; }
.seat-release {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--chip-bg);
}
.seat-release span { display: block; color: var(--muted); font-size: 11.5px; }
.seat-release b { display: block; margin-top: 6px; font-size: 22px; font-weight: 600; }
.seat-divider { height: 1px; margin: 20px 0; background: var(--track); }
.seat-rule { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.seat-actions { display: grid; gap: 10px; margin-top: 20px; }
.seat-actions .btn { height: 46px; font-size: 13px; }
.seat-rules {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 12px;
  text-align: left;
}
.seat-rules:hover { color: #8fb0ff; text-decoration: underline; }
.note.seat-seal {
  margin-top: 16px;
  padding: 11px;
  border-color: #4a3a1e;
  background: #312817;
  color: #e4bd72;
  text-align: center;
  font-size: 11px;
}

/* ------------------------------------------------------------------ P03 我的座位 */
.myseat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: stretch;
}
.myseat-left {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
}
.seat-title {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.myseat-ring { margin: 20px 0 8px; }
.myseat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.myseat-actions .btn { height: 52px; font-size: 13px; }
.myseat-hint { min-height: 0; margin-top: auto; padding-top: 20px; line-height: 1.8; }

.myseat-side { display: flex; flex-direction: column; gap: 20px; }
.qr-card { text-align: center; }
.qr-card .qrcode { width: 176px; height: 176px; }
.qr-caption { color: var(--text); font-size: 12.5px; }
.qr-tip { max-width: 300px; margin: 8px auto 14px; line-height: 1.8; }
.myseat-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.myseat-ops .btn { height: 46px; padding: 0 10px; font-size: 12.5px; }
.myseat-ops .btn svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1240px) {
  .seat-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .seat-detail { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .myseat-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .seat-layout { grid-template-columns: 1fr; }
  .myseat-actions,
  .myseat-ops { grid-template-columns: 1fr; }
  /* 20 列的座位平面图在窄屏放不下：保持座位可点击尺寸，允许地图横向滑动 */
  .seatmap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px;
  }
  .seatmap .seat-grid {
    gap: 4px;
    grid-template-columns: repeat(20, minmax(26px, 1fr));
    justify-content: start;
  }
  /* 20 列 × 26px + 间距 ≈ 596px，与平面图同宽，保证区域块和座位对齐 */
  .seatmap .zone-row { min-width: 596px; margin-bottom: 18px; }
  .seatmap .legend { flex-wrap: wrap; gap: 10px 14px; min-width: 0; }
  .seat-title { font-size: 24px; }
  .seat-code { font-size: 32px; }
}

/* ------------------------------------------------------------------ 宽屏：三栏等比放宽，座位更大 */
@media (min-width: 1600px) {
  .seat-layout { grid-template-columns: 252px minmax(0, 1fr) 288px; gap: 20px; }
  .seatmap .seat-grid { gap: 8px; }
  .seatmap .zone-row { margin-bottom: 34px; }
}
@media (min-width: 1920px) {
  .seat-layout { grid-template-columns: 264px minmax(0, 1fr) 304px; gap: 22px; }
  .seat-grid .seat { height: 30px; font-size: 10px; }
  .seatmap { padding: 26px 24px 22px; }
}

