:root {
  --seat-size: clamp(6px, 2.8vw, 16px);
  --seat-gap: clamp(1px, 0.5vw, 3px);
}

/* === Seat Map Container === */
#seat-map {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 1rem 0;
}

/* === Stage === */
.stage {
  display: block;
  margin: 0 auto 1rem auto;
  padding: 1rem;
  background-color: #222;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  font-size: 0.9rem;
  max-width: 100%;
  box-sizing: border-box;

  /* Add this to shift the stage right exactly half a seat + half gap */
  position: relative;
  left: calc((var(--seat-size) + var(--seat-gap)) / 2);
}

/* === Seat Grid Layout === */
div.seatCharts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.seatCharts-row {
  display: flex;
  justify-content: center;
  gap: var(--seat-gap);
  margin: 0.2rem 0;
}

/* === Seat Cells === */
div.seatCharts-cell {
  aspect-ratio: 1 / 1;
  width: var(--seat-size);
  max-width: none;
  min-width: none;
  /* margin-right: var(--seat-gap); */
  text-align: center;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 3px;
  box-sizing: border-box;
}

/* === Seats === */
div.seatCharts-seat {
  background-color: #333;
  color: white;
  cursor: default;
  position: relative;
}

div.seatCharts-seat.selected {
  background-color: var(--jaxplays-red);
}

div.seatCharts-seat.focused {
  background-color: var(--jaxplays-gold);
}

div.seatCharts-seat.unavailable {
  background-color: red;
  cursor: not-allowed;
}

/* === ADA Seats === */
div.seatCharts-seat.ada-seat {
  background-color: #005ca9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM120.5 247.2c12.4-4.7 18.7-18.5 14-30.9s-18.5-18.7-30.9-14C43.1 225.1 0 283.5 0 352c0 88.4 71.6 160 160 160c61.2 0 114.3-34.3 141.2-84.7c6.2-11.7 1.8-26.2-9.9-32.5s-26.2-1.8-32.5 9.9C240 440 202.8 464 160 464C98.1 464 48 413.9 48 352c0-47.9 30.1-88.8 72.5-104.8zM259.8 176l-1.9-9.7c-4.5-22.3-24-38.3-46.8-38.3c-30.1 0-52.7 27.5-46.8 57l23.1 115.5c6 29.9 32.2 51.4 62.8 51.4l5.1 0c.4 0 .8 0 1.3 0l94.1 0c6.7 0 12.6 4.1 15 10.4L402 459.2c6 16.1 23.8 24.6 40.1 19.1l48-16c16.8-5.6 25.8-23.7 20.2-40.5s-23.7-25.8-40.5-20.2l-18.7 6.2-25.5-68c-11.7-31.2-41.6-51.9-74.9-51.9l-68.5 0-9.6-48 63.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-76.2 0z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

div.seatCharts-seat.ada-seat.focused {
  background-color: var(--jaxplays-gold);
}

div.seatCharts-seat.ada-seat.selected {
  background-color: var(--jaxplays-red);
}

/* === Legend === */
ul.seatCharts-legendList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

li.seatCharts-legendItem {
  display: flex;
  align-items: center;
  margin: 0.5rem 1rem;
  font-size: 0.9rem;
}

.seatCharts-legendDescription {
  margin-left: 0.5rem;
}

/* === Disclaimer === */
#disclaimer {
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

/* === Responsive Adjustments === */
@media (max-width: 600px) {
  :root {
    --seat-size: 2.5vw;
  }

  div.seatCharts-cell {
    font-size: 0.6rem;
  }

  .stage {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

