/* =====================================================
   ONEXPO 2026 - CSS MAPA INTERACTIVO (PREMIUM)
   ===================================================== */

/* --- Contenedor Principal del Mapa --- */
.tables-container {
  position: relative;
  width: 100%;
  height: 700px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  border: 2px solid #d1d9e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Escenario --- */
.stage-indicator {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 80px;
  height: 85%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
}

.stage-indicator::before {
  content: "🎭";
  margin-right: 10px;
  font-size: 24px;
}

/* --- Mesa (Vista Previa en Mapa) --- */
.table-item {
  position: absolute;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.table-item:hover {
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 100;
  filter: brightness(1.1);
}

.table-item.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(80%);
}

.table-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
  border: 2px solid #0f4c81;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0f4c81;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

/* --- Modal de Selección de Asientos (PREMIUM) --- */

/* Fondo con efecto Alfombrado */
.seats-view-premium { 
    position: relative; 
    width: 350px; 
    height: 350px; 
    margin: 20px auto; 
    background: radial-gradient(circle, #2d3748 0%, #1a202c 100%); 
    border-radius: 50%; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 50px rgba(0,0,0,0.5);
    border: 8px solid #2d3748;
} 

/* Mesa Central Realista */
.modal-table-circle { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100px; 
    height: 100px; 
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e2e8f0 100%); 
    color: #1a202c; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    font-weight: 900; 
    z-index: 10; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.3), inset 0 -4px 8px rgba(0,0,0,0.1);
    border: 4px solid #cbd5e1;
} 

/* Asiento en Modal */
.modal-seat { 
    position: absolute; 
    width: 45px; 
    height: 45px; 
    margin: 0; 
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: white;
    border-radius: 10px;
    border: 2px solid #0f172a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.modal-seat::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: inherit;
  border-radius: 8px 8px 0 0;
  border: 2px solid #0f172a;
  border-bottom: none;
  z-index: -1;
}

.modal-seat:hover:not(.reservado) {
  z-index: 30;
  filter: brightness(1.1);
}

/* Estados de Asiento */
.modal-seat.disponible {
  background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%);
  border-color: #1c5236;
}

.modal-seat.reservado, .modal-seat.bloqueado {
  background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
  border-color: #742a2a;
  cursor: not-allowed;
  opacity: 0.8;
}

.modal-seat.selected {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-color: #92400e;
  color: #451a03;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.7), 0 12px 24px rgba(0, 0, 0, 0.5);
  z-index: 25;
}

/* Indicadores de Leyenda */
.legend-indicator {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-indicator.available { background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%); }
.legend-indicator.reserved { background: linear-gradient(135deg, #f56565 0%, #c53030 100%); }
.legend-indicator.selected { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }

/* Sillas Pequeñas en Vista Previa */
.mini-chair {
  position: absolute;
  width: 8px !important; /* Force visibility */
  height: 8px !important;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--chair-rotation, 0deg));
  z-index: 20 !important; /* Ensure on top of table */
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mini-chair.free { background: #48bb78 !important; border: 1px solid #1c5236 !important; }
.mini-chair.taken { background: #f56565 !important; border: 1px solid #742a2a !important; }
.mini-chair.selected { background: #fbbf24 !important; border: 1px solid #92400e !important; }

/* Slots de Selección */
.selection-slots {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.selection-slot {
    width: 100px;
    padding: 8px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.selection-slot.active {
    border-color: #fbbf24;
    background: #fffbeb;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.selection-slot.filled {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}
