@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap");

.table-layout-page {
  position: relative;
  z-index: 2;
  padding: 90px 0 100px;
}

.tl-eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 6px;
}

.tl-eyebrow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd166);
}

.tl-eyebrow-line.right {
  background: linear-gradient(90deg, #ffd166, transparent);
}

.tl-eyebrow-diamond {
  width: 8px;
  height: 8px;
  background: #ffd166;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.7);
}

.table-layout-page .head-title-1,
.table-layout-page .head-title-2 {
  font-family: "Cinzel", "Poppins", serif;
}

.tl-floor-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0 4px;
}

.tl-floor-tab {
  background: #14110c;
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: #ccc;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-floor-tab:hover {
  border-color: #ffd166;
  color: #fff;
}

.tl-floor-tab.active {
  background: linear-gradient(135deg, #ffd166, #ff2c55);
  border-color: transparent;
  color: #0a0a0a;
  font-weight: 700;
}

.tl-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px auto 18px;
}

.tl-controls label {
  color: #ccc;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.tl-controls input[type="date"] {
  background: #171310;
  border: 1px solid rgba(255, 209, 102, 0.4);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.tl-controls input[type="date"]:focus {
  border-color: #ff2c55;
}

.tl-loading {
  font-size: 13px;
  color: #ff2c55;
  min-width: 80px;
}

.tl-legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #bbb;
}

.tl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tl-dot-available {
  background: radial-gradient(circle at 35% 30%, #ffe4a8, #ffb020 45%, #a85d00);
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.8);
}

.tl-dot-booked {
  background: #3a1414;
}

.tl-dot-reserved {
  background: #333;
}

/* ---- Floor plan canvas ---- */
.tl-canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 10px 70px;
  perspective: 1800px;
}

.tl-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 22px;
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 4px;
}

.tl-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.tl-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0.85;
}

.tl-corner svg {
  width: 100%;
  height: 100%;
}

.tl-corner-tl {
  top: -1px;
  left: -1px;
}

.tl-corner-tr {
  top: -1px;
  right: -1px;
  transform: scaleX(-1);
}

.tl-corner-bl {
  bottom: -1px;
  left: -1px;
  transform: scaleY(-1);
}

.tl-corner-br {
  bottom: -1px;
  right: -1px;
  transform: scale(-1, -1);
}

.tl-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 0.58;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(ellipse 70% 30% at 50% 6%, rgba(255, 176, 32, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 25% at 50% 68%, rgba(255, 44, 85, 0.14), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(255, 176, 32, 0.08), transparent 65%),
    linear-gradient(180deg, #0b0a08, #050505 55%, #0a0805);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 90px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  transition: transform 0.4s ease;
  animation: tl-canvas-in 1s ease;
}

/* subtle marble floor lines */
.tl-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 209, 102, 0.035) 0px,
    rgba(255, 209, 102, 0.035) 1px,
    transparent 1px,
    transparent 26px
  );
  pointer-events: none;
}

/* light beams from above */
.tl-canvas::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 20%;
  width: 60%;
  height: 55%;
  background: conic-gradient(
    from 200deg at 50% 0%,
    transparent 0deg,
    rgba(255, 209, 102, 0.09) 8deg,
    transparent 16deg,
    transparent 40deg,
    rgba(255, 209, 102, 0.06) 48deg,
    transparent 56deg
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes tl-canvas-in {
  from {
    opacity: 0;
    transform: rotateX(16deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: rotateX(6deg) translateY(0);
  }
}

.tl-canvas-wrap:hover .tl-canvas {
  transform: rotateX(3deg);
}

/* ---- Zone watermarks ---- */
.tl-watermark {
  position: absolute;
  color: rgba(255, 209, 102, 0.1);
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  font-size: clamp(10px, 2vw, 15px);
}

/* ---- Staircase ---- */
.tl-stairs {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

/* ---- Signage plates (DJ console / stage / entry) ---- */
.tl-signage {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #ffd166;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
  pointer-events: none;
  text-transform: uppercase;
}

.tl-signage-plate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 209, 102, 0.55);
  background: linear-gradient(180deg, #14110c, #060504);
  padding: 6px 16px;
  border-radius: 3px;
  font-size: clamp(8px, 1.5vw, 11px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tl-signage-plate svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Premium treatment for DJ plates specifically */
.tl-signage.tl-plate-dj .tl-signage-plate {
  border: 1.5px solid #ffd166;
  background: linear-gradient(145deg, #3a2f14, #16110a 60%, #060504);
  padding: 8px 20px;
  font-size: clamp(9px, 1.7vw, 12.5px);
  letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 209, 102, 0.35),
    inset 0 1px 0 rgba(255, 224, 158, 0.25);
  animation: tl-dj-glow 2.4s ease-in-out infinite;
}

.tl-signage.tl-plate-dj .tl-signage-plate svg {
  width: 14px;
  height: 14px;
  color: #ffd166;
}

@keyframes tl-dj-glow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 209, 102, 0.3),
      inset 0 1px 0 rgba(255, 224, 158, 0.25);
  }
  50% {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 209, 102, 0.65),
      inset 0 1px 0 rgba(255, 224, 158, 0.4);
  }
}

.tl-signage-entry {
  color: #fff;
  gap: 6px;
}

.tl-signage-entry-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.25), transparent 70%);
  border: 1px solid rgba(255, 209, 102, 0.5);
  animation: tl-entry-pulse 1.8s ease-in-out infinite;
}

.tl-signage-entry svg {
  width: 20px;
  height: 20px;
  color: #ffd166;
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.6));
}

@keyframes tl-entry-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 209, 102, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.5);
  }
}

/* ---- Table nodes ---- */
.tl-table {
  --tl-rot: 0deg;
  position: absolute;
  transform: translate(-50%, -50%) translateZ(0) rotate(var(--tl-rot));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: linear-gradient(155deg, #221c10 0%, #100d08 55%, #0a0806 100%);
  color: #ffd166;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 224, 158, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  padding: 4px 6px;
  line-height: 1.2;
  opacity: 0;
  animation: tl-table-in 0.5s ease forwards;
}

@keyframes tl-table-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateZ(-40px) scale(0.6) rotate(var(--tl-rot));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateZ(0) scale(1) rotate(var(--tl-rot));
  }
}

.tl-table.tl-rect {
  width: 12.5%;
  min-width: 46px;
  aspect-ratio: 1.5;
  border-radius: 6px;
}

.tl-table.tl-round {
  width: 9%;
  min-width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.tl-table .tl-table-id {
  font-family: "Cinzel", serif;
  font-size: clamp(7px, 1.6vw, 11px);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tl-table.tl-id-long {
  z-index: 6;
}

.tl-table.tl-id-long .tl-table-id {
  font-size: clamp(5.5px, 1.15vw, 8.5px);
  letter-spacing: 0;
}

.tl-table.tl-id-long .tl-table-price {
  font-size: clamp(5.5px, 1vw, 8px);
}

.tl-table .tl-table-price {
  font-family: "Poppins", sans-serif;
  font-size: clamp(7px, 1.3vw, 9px);
  color: #f3d9a8;
  opacity: 0.9;
  margin-top: 1px;
}

.tl-table:hover,
.tl-table:focus-visible {
  transform: translate(-50%, -50%) translateZ(26px) scale(1.14) rotate(var(--tl-rot));
  box-shadow: 0 18px 30px rgba(255, 44, 85, 0.4), 0 0 22px rgba(255, 209, 102, 0.55);
  background: linear-gradient(155deg, #332912, #150f09 55%, #0a0806);
  z-index: 20;
}

.tl-table.tl-selected {
  transform: translate(-50%, -50%) translateZ(26px) scale(1.16) rotate(var(--tl-rot));
  box-shadow: 0 0 0 3px #ff2c55, 0 0 26px rgba(255, 44, 85, 0.7);
  z-index: 21;
}

.tl-table.tl-booked {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, #2a1010, #0a0a0a);
  color: #ff8a8a;
  opacity: 0.55;
}

.tl-table.tl-booked:hover {
  transform: translate(-50%, -50%) translateZ(0) scale(1) rotate(var(--tl-rot));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.tl-table.tl-reserved {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, #1a1a1a, #0a0a0a);
  color: #888;
  opacity: 0.5;
}

.tl-table.tl-reserved:hover {
  transform: translate(-50%, -50%) translateZ(0) scale(1) rotate(var(--tl-rot));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

/* ---- Event context banner (shown when arriving via a specific event) ---- */
.tl-event-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 209, 102, 0.06);
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 10px;
  padding: 10px 20px;
  margin: 0 0 22px;
  text-align: center;
}

.tl-event-banner.hidden {
  display: none;
}

.tl-event-banner-label {
  color: #9a9282;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tl-event-banner-name {
  color: #ffd166;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.tl-event-banner-meta {
  color: #cfc7b6;
  font-size: 13px;
}

/* ---- Modal ---- */
.tl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tl-modal-overlay.hidden {
  display: none;
}

.tl-modal {
  background: #101010;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  animation: tl-modal-in 0.25s ease;
}

@keyframes tl-modal-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tl-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  z-index: 5;
  transition: all 0.15s ease;
}

.tl-modal-close:hover,
.tl-modal-close:focus-visible {
  color: #fff;
  background: #ff2c55;
  border-color: #ff2c55;
  outline: none;
}

.tl-modal-body {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.tl-modal-image-wrap {
  flex: 1 1 220px;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(155deg, #1a1610, #100d08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
}

.tl-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-modal-image-placeholder {
  color: #6b6357;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.tl-modal-info {
  flex: 1 1 280px;
  min-width: 0;
}

.tl-modal-info h3 {
  font-family: "Cinzel", serif;
  color: #ffd166;
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: 1px;
}

.tl-modal-meta {
  color: #ccc;
  font-size: 14px;
  margin: 0 0 14px;
}

/* ---- Booking summary card (date + price, shown above the form) ---- */
.tl-booking-summary {
  background: rgba(255, 209, 102, 0.05);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.tl-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

.tl-summary-row + .tl-summary-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tl-summary-label {
  color: #9a9282;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tl-summary-value {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.tl-summary-price {
  color: #ffd166;
  font-size: 16px;
}

.tl-ref {
  font-family: "Poppins", monospace;
  letter-spacing: 1px;
  color: #ffd166;
}

/* ---- Premium form fields ---- */
.bf-field {
  width: 100%;
  margin-bottom: 16px;
}

.bf-field label {
  display: block;
  color: #a89c82;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.bf-field input,
.bf-field textarea {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bf-field textarea {
  resize: vertical;
  min-height: 64px;
}

.bf-field input:hover,
.bf-field textarea:hover {
  border-color: rgba(255, 209, 102, 0.4);
}

.bf-field input:focus,
.bf-field textarea:focus {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.booking-form-row {
  display: flex;
  gap: 14px;
}

.booking-form-row .bf-field {
  flex: 1;
  min-width: 0;
}

/* ---- Submit button with spinner ---- */
.tl-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  background-color: rgba(255, 44, 85, 0);
}

.tl-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.tl-btn-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: tl-spin 0.7s linear infinite;
}

@keyframes tl-spin {
  to {
    transform: rotate(360deg);
  }
}

.tl-secure-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: #7d7566;
  letter-spacing: 0.3px;
}

/* ---- Modal view switching (form / paying / success / failed) ---- */
.tl-modal-view.hidden {
  display: none;
}

.tl-status-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 8px;
}

.tl-status-view h3 {
  font-family: "Cinzel", serif;
  color: #ffd166;
  font-size: 21px;
  margin: 18px 0 8px;
  letter-spacing: 0.5px;
}

.tl-status-view > p {
  color: #b8b0a0;
  font-size: 13.5px;
  max-width: 380px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.tl-spinner-lg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 209, 102, 0.2);
  border-top-color: #ffd166;
  animation: tl-spin 0.8s linear infinite;
}

.tl-success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.12);
  border: 1.5px solid rgba(61, 220, 132, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-success-check svg {
  width: 28px;
  height: 28px;
}

.tl-success-summary {
  width: 100%;
  max-width: 340px;
  text-align: left;
  margin-bottom: 20px;
}

.tl-fail-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 44, 85, 0.12);
  border: 1.5px solid rgba(255, 44, 85, 0.45);
  color: #ff2c55;
  font-family: "Cinzel", serif;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-fail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tl-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  padding: 10px 26px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tl-btn-secondary:hover {
  border-color: #ff2c55;
  color: #ff2c55;
}

@media (max-width: 600px) {
  .table-layout-page {
    padding: 70px 0 60px;
  }

  .tl-modal {
    padding: 18px;
    max-height: 94vh;
  }

  .tl-modal-close {
    top: 8px;
    right: 8px;
  }

  .tl-modal-info h3 {
    font-size: 20px;
  }

  .booking-form-row {
    flex-direction: column;
    gap: 0;
  }

  .tl-status-view h3 {
    font-size: 18px;
  }

  .tl-watermark-left,
  .tl-watermark-right {
    display: none;
  }
}
