/* ============================================
   EXHIBIT HALL STYLES
   Matching React Preview Layout Exactly
   ============================================ */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Exhibit Hall Wrapper */
.exhibit-hall-wrapper {
  width: 100%;
  background-color: #f3f4f6;
  padding: 5rem 1rem;
  overflow-x: hidden;
}

.exhibit-hall-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.exhibit-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.exhibit-instructions {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.legend-color {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

.legend-diamond { background-color: #22A699; }
.legend-platinum { background-color: #DC2626; }
.legend-gold { background-color: #F4D03F; }
.legend-silver { background-color: #E67E22; }
.legend-bronze { background-color: #E91E8C; }

.legend-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* ============================================
   DESKTOP LAYOUT - Hidden on mobile
   ============================================ */
.exhibit-hall-container {
  display: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

@media (min-width: 1024px) {
  .exhibit-hall-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}

/* Registration row - above the grid, aligned right */
.registration-row {
  display: flex;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

/* Relative container */
.exhibit-hall-relative {
  position: relative;
  width: 100%;
}

/* White Container with border */
.exhibit-hall-grid-wrapper {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid #d1d5db;
}

.exhibit-hall-inner {
  width: 100%;
}

/* Prefunction Header */
.prefunction-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prefunction-line {
  flex: 1;
  border-top: 2px dashed #9ca3af;
}

.prefunction-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

/* Registration Label - ABOVE the grid, horizontal text, right aligned */
.registration-label {
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

/* ============================================
   MAIN GRID - 3 column flexbox layout
   ============================================ */
.main-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}

/* Left and Right Columns */
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 140px;
  flex-shrink: 0;
}

/* ============================================
   LARGE SPONSOR BOOTHS (1A, 2A, 3A, 4A, 5A)
   ============================================ */
.booth-large {
  width: 100%;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
}

.booth-large:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.booth-large .booth-id {
  font-size: 1.5rem;
  font-weight: 700;
}

.booth-large .booth-tier-label {
  font-size: 0.875rem;
}

/* ============================================
   VERTICAL BOOTH PAIRS (1-7 left, 11-15 right)
   Colored booth + white companion side by side
   ============================================ */
.vertical-booth-pair {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: stretch;
}

/* Right column pairs are reversed: white on left, colored on right */
.vertical-booth-pair.reversed {
  flex-direction: row-reverse;
}

.booth-vertical {
  width: 48px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.booth-vertical:hover {
  opacity: 0.85;
}

.booth-vertical .booth-number {
  font-size: 0.875rem;
  font-weight: 700;
}

.booth-vertical .booth-tier-small {
  font-size: 8px;
}

.white-companion {
  width: 42px;
  height: 80px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

/* ============================================
   CENTER SECTION
   F&B bar | Left column | Right column | F&B bar
   ============================================ */
.center-section {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex: 1;
  justify-content: center;
}

/* Food & Beverage Vertical Bars */
.food-beverage-vertical {
  width: 32px;
  height: 220px;
  background-color: white;
  border: 1px solid #9ca3af;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  align-self: center;
}

.food-beverage-vertical.left {
  margin-right: 104px;
}

.food-beverage-vertical.right {
  margin-left: 104px;
}

/* Center Columns Container - holds left and right center columns */
.center-columns-container {
  display: flex;
  gap: 8px;
}

/* Individual center columns */
.center-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================
   CENTER BOOTH PAIRS (16-23, 24-31)
   Each pair: colored booth + white companion
   ============================================ */
.center-booth-pair {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: stretch;
  cursor: pointer;
}

/* Left pairs: white on LEFT, colored on RIGHT */
.center-booth-pair.left-pair {
  flex-direction: row;
}

/* Right pairs: colored on LEFT, white on RIGHT */
.center-booth-pair.right-pair {
  flex-direction: row;
}

.booth-center {
  width: 48px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.booth-center:hover {
  opacity: 0.85;
}

.booth-center .booth-number {
  font-size: 0.875rem;
  font-weight: 700;
}

.booth-center .booth-tier-small {
  font-size: 8px;
}

.white-companion-center {
  width: 42px;
  height: 70px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 8px;
  font-weight: 500;
  flex-shrink: 0;
}

/* Empty Squares between top section and main center columns */
.empty-square-wrapper {
  display: flex;
  padding: 4px 0;
}

.empty-square-wrapper.left {
  justify-content: flex-end;
}

.empty-square-wrapper.right {
  justify-content: flex-start;
}

.empty-square {
  width: 32px;
  height: 32px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

/* ============================================
   BOTTOM SECTION
   Abstract Viewing (left) | Booths 8, 9, 10 (right)
   ============================================ */
.bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding: 0 2rem;
}

.abstract-viewing {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: white;
  border: 1px solid #9ca3af;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

.bottom-booths {
  display: flex;
  gap: 0.75rem;
  margin-right: 1rem;
}

.bottom-booth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bottom-booth-label {
  width: 100px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #9ca3af;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  padding: 0 4px;
}

.booth-bottom {
  width: 100px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.booth-bottom:hover {
  opacity: 0.85;
}

.booth-bottom .booth-number {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ============================================
   BOOTH COLORS BY TIER
   ============================================ */
.booth-diamond {
  background-color: #22A699;
  color: white;
}

.booth-platinum {
  background-color: #DC2626;
  color: white;
}

.booth-gold {
  background-color: #F4D03F;
  color: #111;
}

.booth-silver {
  background-color: #E67E22;
  color: white;
}

.booth-bronze {
  background-color: #E91E8C;
  color: white;
}

.booth-standard {
  background-color: #5DADE2;
  color: #111;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1rem 0 1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.modal-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.modal-logo {
  max-height: 80px;
  width: auto;
}

.modal-info {
  margin-bottom: 1.5rem;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.modal-company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.modal-tier {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1e40af;
  display: none;
}

.modal-tier.show {
  display: inline-block;
}

.modal-booth-id {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.modal-description {
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.modal-close-btn {
  background-color: #111827;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
}

.modal-close-btn:hover {
  background-color: #1f2937;
}

/* ============================================
   MOBILE LAYOUT - Card Grid by Tier
   ============================================ */
.mobile-exhibit-hall {
  display: none;
  width: 100%;
  padding: 2rem 1rem;
  background-color: #f3f4f6;
}

@media (max-width: 1023px) {
  .legend {
    margin-bottom: 0;
  }

  .exhibit-hall-container {
    display: none !important;
  }

  .exhibit-hall-wrapper {
    padding-bottom: 0;
  }

  .mobile-exhibit-hall {
    display: block;
  }
}

/* Mobile Accordion Container */
.mobile-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tier sections */
.tier-section {
  background-color: transparent;
}

.tier-section.hidden {
  display: none;
}

/* Section headers */
.tier-section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.tier-diamond { background-color: #22A699; color: white; }
.tier-platinum { background-color: #8B4C4C; color: white; }
.tier-gold { background-color: #C9A227; color: #111; }
.tier-silver { background-color: #E67E22; color: white; }
.tier-bronze { background-color: #E91E8C; color: white; }
.tier-standard { background-color: #5DADE2; color: #111; }

.tier-title {
  font-size: 1rem;
}

/* Content area grid layout */
.tier-section-content {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* 2 columns on tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .tier-section-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Booth cards */
.booth-card-wrapper {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.booth-card-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #5dade2;
}

.booth-card-wrapper.hidden {
  display: none;
}

.booth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.booth-card-logo-container {
  width: 96px;
  height: 96px;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.booth-card-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.booth-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-align: center;
}

.booth-card-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.booth-card-tier-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
