/* Booking module styles */
:root {
  --booking-bg: #0b0716;
  --booking-surface: rgba(24, 19, 39, 0.88);
  --booking-card: rgba(33, 25, 59, 0.9);
  --booking-primary: #9d4edd;
  --booking-primary-soft: rgba(157, 78, 221, 0.16);
  --booking-text: #f7f3ff;
  --booking-muted: #cfc2ef;
  --booking-border: rgba(157, 78, 221, 0.25);
  --booking-success: #3ec3a0;
  --booking-danger: #f86b6b;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--booking-bg);
  color: var(--booking-text);
}

a.hidden,
.hidden {
  display: none !important;
}

a {
  color: inherit;
}

.back-link {
  color: var(--booking-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--booking-text);
}

.muted {
  color: var(--booking-muted);
}

.booking-page {
  min-height: 100vh;
  padding: 40px 20px 80px;
}

.booking-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.booking-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.booking-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.booking-header p {
  margin: 0;
  color: var(--booking-muted);
  max-width: 740px;
}

.booking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.booking-controls input,
.booking-controls select {
  background: var(--booking-surface);
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--booking-text);
  min-width: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-controls input:focus,
.booking-controls select:focus {
  outline: none;
  border-color: var(--booking-primary);
  box-shadow: 0 0 0 3px var(--booking-primary-soft);
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.booking-card {
  background: var(--booking-card);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 20px 45px rgba(9, 6, 20, 0.45);
}

.booking-card:hover {
  transform: translateY(-6px);
  border-color: var(--booking-primary-soft);
  box-shadow: 0 25px 60px rgba(14, 10, 26, 0.55);
}

.booking-card .featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--booking-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-card-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.booking-card-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.booking-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.booking-card-header span {
  color: var(--booking-muted);
  font-size: 0.94rem;
}

.booking-card p {
  margin: 0;
  color: var(--booking-muted);
  line-height: 1.5;
}

.booking-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-tag {
  background: var(--booking-primary-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.booking-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-chip {
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--booking-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--booking-border);
  color: var(--booking-muted);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(157, 78, 221, 0.25);
}

.btn.secondary:hover {
  color: var(--booking-text);
  border-color: var(--booking-primary);
  box-shadow: none;
}

.booking-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--booking-surface);
  border-radius: 16px;
  border: 1px dashed var(--booking-border);
}

/* Detail panel */
.booking-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(18, 11, 30, 0.98);
  border-left: 1px solid var(--booking-border);
  box-shadow: -30px 0 60px rgba(5, 4, 15, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 4000;
}

.booking-detail-panel.open {
  transform: translateX(0);
}

.detail-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--booking-border);
}

.detail-header h2 {
  margin: 0;
}

.detail-header button {
  background: none;
  border: none;
  color: var(--booking-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.detail-header button:hover {
  color: var(--booking-text);
}

.detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.detail-section p {
  margin: 0;
  color: var(--booking-muted);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item {
  background: rgba(25, 20, 39, 0.7);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.review-item span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.review-item p {
  margin: 0;
  color: var(--booking-muted);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-form input,
.review-form textarea,
.booking-modal input,
.booking-modal textarea {
  background: rgba(34, 28, 53, 0.9);
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--booking-text);
  resize: vertical;
}

.review-form textarea,
.booking-modal textarea {
  min-height: 90px;
}

.review-form button,
.booking-modal button {
  align-self: flex-start;
}

/* Modal */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.booking-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: rgba(26, 21, 42, 0.98);
  border-radius: 18px;
  padding: 28px;
  width: min(520px, 100%);
  border: 1px solid var(--booking-border);
  box-shadow: 0 35px 80px rgba(6, 4, 16, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-card header h2 {
  margin: 0;
}

.modal-card header button {
  background: none;
  border: none;
  color: var(--booking-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-card .status-box {
  background: rgba(54, 45, 78, 0.95);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-success {
  color: var(--booking-success);
}

.status-error {
  color: var(--booking-danger);
}

.qr-preview {
  display: flex;
  justify-content: center;
}

.qr-preview img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: #fff;
}

/* Order lookup */
.order-checker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  background: rgba(22, 17, 35, 0.85);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.order-checker input {
  flex: 1 1 220px;
}

.order-checker button {
  flex: 0 0 auto;
}

.order-status-result {
  margin-top: 10px;
  color: var(--booking-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 19, 39, 0.95);
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid var(--booking-border);
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(10, 7, 19, 0.45);
  z-index: 6000;
}

.toast.show {
  display: flex;
}

.toast .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--booking-primary);
}

.toast[data-variant="success"] .dot {
  background: var(--booking-success);
}

.toast[data-variant="error"] .dot {
  background: var(--booking-danger);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .booking-page {
    padding: 24px 16px 60px;
  }
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .booking-detail-panel {
    width: 100%;
  }
  .booking-header h1 {
    font-size: 1.8rem;
  }
}
