/* Booth Floor Plan Container */
.bbm-booth-floor-plan {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bbm-floor-plan-header {
  margin-bottom: 25px;
}

.bbm-floor-plan-header h3 {
  margin: 0 0 10px 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
}

/* Legend */
.bbm-booth-legend {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.legend-dot.available {
  background: #d1fae5;
  border: 2px solid #10b981;
}

.legend-dot.locked,
.legend-dot.selected {
  background: #0e7490;
  border: 2px solid #0e7490;
}

.legend-dot.booked {
  background: #fee2e2;
  border: 2px solid #ef4444;
}

/* Booth Grid */
.bbm-booth-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bbm-booth-row {
  display: flex;
  align-items: stretch;
  gap: 15px;
}

.bbm-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  font-weight: 700;
  color: #666;
  font-size: 16px;
}

.bbm-row-booths {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  flex: 1;
}

/* Booth Item */
.bbm-booth-item {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.bbm-booth-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Available Booth */
.bbm-booth-item.available {
  background: #f0fdf4;
  border-color: #10b981;
}

.bbm-booth-item.available:hover {
  border-color: #059669;
}

/* Selected/Locked Booth */
.bbm-booth-item.selected,
.bbm-booth-item.locked {
  background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
  border-color: #0e7490;
  color: #ffffff;
}

.bbm-booth-item.selected .booth-price,
.bbm-booth-item.locked .booth-price {
  color: #ffffff;
}

/* Booked Booth */
.bbm-booth-item.booked {
  background: #fef2f2;
  border-color: #ef4444;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Others locked (when one is selected) */
.bbm-booth-item.others-locked {
  opacity: 0.5;
  pointer-events: none;
}

/* Booth Content */
.booth-number {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.bbm-booth-item.selected .booth-number,
.bbm-booth-item.locked .booth-number {
  color: #ffffff;
}

.booth-size {
  font-size: 13px;
  color: #6b7280;
}

.bbm-booth-item.selected .booth-size,
.bbm-booth-item.locked .booth-size {
  color: rgba(255, 255, 255, 0.9);
}

.booth-price {
  font-size: 16px;
  font-weight: 700;
  color: #059669;
  margin-top: 4px;
}

/* Status Badge */
.booth-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bbm-booth-item.selected .booth-status-badge,
.bbm-booth-item.locked .booth-status-badge {
  background: rgba(255, 255, 255, 0.25);
}

/* Countdown */
/* .bbm-countdown {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  color: #c2410c;
  font-size: 15px;
} */

/* Loading */
.bbm-loading {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

.bbm-loading::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .bbm-booth-floor-plan {
    padding: 20px 15px;
  }

  .bbm-row-booths {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .bbm-booth-item {
    padding: 12px 8px;
    min-height: 100px;
  }

  .booth-number {
    font-size: 16px;
  }

  .booth-price {
    font-size: 14px;
  }

  .bbm-booth-legend {
    gap: 15px;
  }

  .legend-item {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .bbm-row-booths {
    grid-template-columns: repeat(2, 1fr);
  }

  .bbm-row-label {
    width: 30px;
    font-size: 14px;
  }
}

/* Gravity Forms Integration */
.gfield_booth_selection {
  margin: 20px 0;
}

.gfield_booth_selection .gfield_label {
  margin-bottom: 15px;
}
