/* ---------------------------------------------------------
   GLOBAL STYLES
--------------------------------------------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
}

.banner {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  padding: 20px;
}

/* ---------------------------------------------------------
   SEAT MAP LAYOUTS
--------------------------------------------------------- */
.seat-map.desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.seat-map.mobile {
  display: block;
}

.section {
  background: white;
  padding: 10px;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.section-detail {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}


/* Section wrapper with max-height and scroll */
.section-wrapper {
  max-height: 220px;
  overflow-y: auto;
}

.section-wrapper {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
  cursor: pointer;
}

.section-wrapper:hover {
  transform: translateY(-2px);
}

/*Section title with margin and color*/
.section-title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}


/* ---------------------------------------------------------
   SEAT STATES
--------------------------------------------------------- */
.seat {
  width: 100%;
  padding-top: 100%;
  border-radius: 4px;
  position: relative;
}


.seat.available {
  background: #4caf50;
}

.seat.reserved {
  background: #d32f2f;
}

.seat.selected {
  background: #2196f3;
}

/* ---------------------------------------------------------
   DETAIL VIEW BUTTONS
--------------------------------------------------------- */
.back-button,
.reserve-button {
  margin-top: 15px;
  padding: 10px 14px;
  border: none;
  background: #333;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.reserve-button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   FLOATING CART BUTTON + BADGE
--------------------------------------------------------- */
.cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: white;
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #000;
  color: white;
  padding: 4px 7px;
  border-radius: 50%;
  font-size: 12px;
}

/* ---------------------------------------------------------
   SLIDE-UP CART PANEL (Optimized Width)
--------------------------------------------------------- */
.cart-panel {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px; /* Keeps it elegant on large screens */
  background: white;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding: 20px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
  transition: bottom 0.35s ease;
}

.cart-panel.open {
  bottom: 0;
}


.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

#cartList {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

#cartList li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.cart-remove-btn {
  float: right;
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
}

.empty-cart-btn {
  width: 100%;
  padding: 10px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer; /* Add this line */
}


.cart-total {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */
@media (max-width: 700px) {
  .seat-map.desktop {
    display: none;
  }
}

