body {
  background: #111;
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

.mapa-couch {
  display: grid;
  grid-template-columns: repeat(6, 75px);
  grid-template-rows: repeat(9, 75px);
  gap: 10px;

  margin: 0 auto;
  max-width: 620px;
  position: relative;
  justify-content: center;
  align-content: center;
  min-height: 80vh;
}

.seat {
  background: #181825;
  border: 2px solid #34ffb8;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.seat .price { font-size: 12px; color: #34ffb8; }
.seat .pax { font-size: 11px; color: #e4e4e4bb; }
.dj.box, .bar.box {
  background: #23233a;
  color: #fff;
  border-radius: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dj.box { grid-row: 1 / span 2; grid-column: 6 / span 1; }
.bar.box { grid-row: 8 / span 2; grid-column: 1 / span 1; }

.label {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: none;
  border: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr { writing-mode: vertical-lr; transform: rotate(270deg);}
.entrance { font-size: 13px;}
.exit { font-size: 13px;}
.empty {}

/* ---------- FORMULARIO FLOTANTE ---------- */
.center-panel {
  position: absolute;
  top: 600px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 19px;
  padding: 18px 6px 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  min-width: 220px;
  max-width: 300px;
  min-height: 330px;
  max-height: 600px;
  overflow-y: auto;
}


.select-date {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 7px;
}
.select-date .calendar-icon { font-size: 20px; }
.date-select {
  width: 100%;
  background: #181825;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  padding: 8px 10px;
}
.sofa-card {
  width: 87%;
  background: linear-gradient(120deg, #1d1b2b 60%, #1e2e43 100%);
  border-radius: 15px;
  box-shadow: 0 1px 13px #191e22c2;
  padding: 13px 15px;
  margin-bottom: 11px;
}
.sofa-title { font-size: 19px; font-weight: 700; margin-bottom: 4px;}
.sofa-price { font-size: 15px; margin-bottom: 3px;}
.sofa-price b { color: #34ffb8; font-size: 19px;}
.sofa-capacity { font-size: 14px; margin-bottom: 3px;}
.sofa-capacity b { color: #22e0c0; font-size: 15px;}
.sofa-includes { font-size: 13px; margin-top: 3px; color: #e2e2e2;}
.sofa-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-row {
  display: flex;
  gap: 7px;
}
.sofa-form input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px; /* ¡Este valor lo podés ajustar aún más si querés! */
  background: #141624;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 1px;
  outline: none;
  box-sizing: border-box;
}
.sofa-form input:focus { box-shadow: 0 0 4px #34ffb888;}
.sofa-form button {
  width: 100%;
  padding: 10px 0;
  margin-top: 2px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #a465ff, #1ac7ff 90%);
  box-shadow: 0 2px 8px #23e0c180;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.sofa-form button:hover {
  background: linear-gradient(90deg, #8461ff, #2ae8ff 80%);
  box-shadow: 0 5px 14px #1ac7ff90;
}

.sofa-notes {
  width: 100%;
  min-height: 54px;
  max-height: 120px;
  background: #141624;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 1px;
  box-sizing: border-box;
}
.sofa-notes:focus {
  box-shadow: 0 0 4px #34ffb888;
  outline: none;
}

/* ---------- RESPONSIVE: FORM Y SILLONES MÁS ANGOSTOS/APILADOS ---------- */
@media (max-width: 600px) {
  .center-panel {
    min-width: 20vw;
    max-width: 80vw;
    padding: 6vw 2vw 6vw 2vw;
  }

  @media (max-width: 420px) {
  .center-panel {
    min-width: 62vw;
    max-width: 80vw;
    padding: 4vw 1vw 4vw 1vw;
  }




  .form-row {
    flex-direction: column;
    gap: 5px;
  }
  .sofa-form input {
    max-width: 100%;
  }
  /* ACHICAR sillones/plano */
  .mapa-couch {
    grid-template-columns: repeat(6, 60px);
    grid-template-rows: repeat(9, 60px);
    max-width: 450px;
    gap: 5px;
  }
  .seat, .dj.box, .bar.box {
    font-size: 12px;
    border-radius: 8px;
    padding: 0 1px;
  }
  .seat .price { font-size: 12px; }
  .seat .pax { font-size: 12px; }
  .dj.box, .bar.box { font-size: 13px; }
}

  .form-row {
    flex-direction: column;
    gap: 5px;
  }
  .sofa-form input {
    max-width: 100%;
  }
  /* ACHICAR sillones/plano más todavía */
  .mapa-couch {
    grid-template-columns: repeat(6, 65px);
    grid-template-rows: repeat(9, 65px);
    max-width: 350px;
    gap: 2px;

  }
  .seat, .dj.box, .bar.box {
    font-size: 12px;
    border-radius: 6px;
    padding: 0 1px;
  }
  .seat .price { font-size: 12px; }
  .seat .pax { font-size: 11px; }
  .dj.box, .bar.box { font-size: 12px; }
}

/* --------- OCUPADO (RESERVED/GRAY) --------- */
.occupied {
  filter: grayscale(1) brightness(0.6) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.seat.selected {
  background: #17443d !important;   /* Verde oscuro */
  border-color: #1c946e !important;
  color: #baffea !important;
  filter: none !important;
}


button,
.sofa-form button,
#showForm {
  width: 100%;
  padding: 12px 0;
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.1em;
  background: linear-gradient(90deg, #6f87ff, #60e4ff 80%);
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px #23e0c180;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, box-shadow 0.15s;
  outline: none;
  display: block;
}

button:hover,
.sofa-form button:hover,
#showForm:hover {
  background: linear-gradient(90deg, #8461ff, #2ae8ff 80%);
  box-shadow: 0 5px 14px #1ac7ff90;
  filter: brightness(1.07);
}


#centerMessage {
  transition: opacity .13s;
}
.center-panel[style*="display: flex"] ~ #centerMessage,
.center-panel[style*="display: block"] ~ #centerMessage {
  opacity: 0 !important;
  pointer-events: none;
  top: 70vh; 
}



@media (max-width: 600px) {
  .mapa-couch {
    min-height: unset !important;
    height: auto !important;
    margin-top: 4vw !important;
    margin-bottom: 3vw !important;
  }
}



