:root {
  --bg: #f8fbfa;
  --surface: #ffffff;
  --ink: #22313b;
  --brand: #2a7d82;
  --brand-strong: #1f6468;
  --brand-soft: #eaf6f3;
  --line: #e6efec;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 63, 70, 0.06);
}

.topbar .navbar-brand,
.topbar .nav-link {
  color: var(--ink);
}

.topbar .navbar-toggler {
  border: 1px solid #cbdcd8;
  background: #f4fbf9;
}

.topbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(42, 125, 130, 0.18);
}

.topbar .navbar-toggler-icon {
  filter: none;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(120deg, #2a7d82, #51a7ac);
}

.nav-link-pill {
  border-radius: 999px;
  padding-inline: 0.8rem;
}

.nav-link-pill:hover {
  color: var(--brand-strong);
  background: #ecf8f6;
}

.hero {
  background: linear-gradient(145deg, #ffffff, var(--brand-soft));
  border: 1px solid var(--line);
}

.search-shell {
  background: #ffffff;
  border: 1px solid #d7e8e4;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(34, 56, 62, 0.08);
}

.chip {
  text-decoration: none;
  color: #355158;
  background: #f2f9f7;
  border: 1px solid #d8e9e5;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.chip:hover {
  color: #234148;
  background: #e7f4f1;
}

.chip-active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.trust-card {
  border: 1px solid var(--line);
  background: #ffffff;
}

.card,
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 35px rgba(21, 40, 46, 0.06) !important;
}

.kpi-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(12, 66, 70, 0.15) !important;
}

.glass-card {
  background: #f7fcfb;
  border: 1px solid #dceee9;
}

.example-card {
  border: 1px solid var(--line);
  background: #ffffff;
}

.example-visual {
  height: 124px;
  border: 1px solid #dbe8e5;
}

.visual-tour {
  background: linear-gradient(145deg, #dff5ef, #f0fbf8);
}

.visual-spa {
  background: linear-gradient(145deg, #efe8fb, #f8f5fd);
}

.visual-family {
  background: linear-gradient(145deg, #fbeedc, #fff7ea);
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-strong);
  --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-active-bg: var(--brand-strong);
  --bs-btn-active-border-color: var(--brand-strong);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  font-weight: 700;
}

.text-brand {
  color: var(--brand);
}

.text-brand:hover {
  color: var(--brand-strong);
}

.form-control,
.form-select {
  border-color: #c9d8d4;
  border-radius: 0.8rem;
  padding-block: 0.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #89b9b8;
  box-shadow: 0 0 0 0.25rem rgba(20, 107, 113, 0.15);
}

.space-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(17, 64, 69, 0.13) !important;
}

.table-modern thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #597177;
  letter-spacing: 0.04em;
  border-bottom-width: 1px;
}

.table-modern tbody td {
  border-color: #e6efec;
}

.reservation-form-panel {
  position: sticky;
  top: 6.3rem;
}

.reservation-history-list {
  display: grid;
  gap: 0.85rem;
}

.reservation-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 1rem;
  min-width: 0;
}

.reservation-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.reservation-space-cell,
.reservation-note,
.reservation-badge {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.reservation-status-cell,
.reservation-total-cell,
.reservation-date-cell strong {
  white-space: nowrap;
}

.reservation-card-meta {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr) max-content;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.85rem;
}

.reservation-meta-label {
  display: block;
  color: #6e858a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reservation-addons {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.65rem;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 0.85rem;
}

.reservation-actions form {
  min-width: 0;
}

.reservation-actions .btn {
  white-space: nowrap;
  max-width: 100%;
}

#calendar {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e4ecea;
}

.fc .fc-button-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
  background-color: var(--brand-strong);
  border-color: var(--brand-strong);
}

@media (max-width: 991px) {
  .reservation-form-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .app-main {
    padding-top: 1.25rem !important;
  }

  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    margin-bottom: 0.85rem;
    border: 1px solid #e4ecea;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #ffffff;
  }

  .table-stack td {
    border: 0;
    padding: 0.35rem 0;
  }

  .table-stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e858a;
    margin-bottom: 0.05rem;
    font-weight: 700;
  }

  .reservation-card {
    padding: 0.85rem;
  }

  .reservation-card-main,
  .reservation-card-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .reservation-status-cell {
    justify-self: start;
  }

  .reservation-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .reservation-actions form,
  .reservation-actions .btn {
    width: 100%;
  }

  .fc .fc-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .fc .fc-toolbar-title {
    font-size: 1rem;
    text-align: center;
  }
}

/* ========== ENHANCED UI STYLES ========== */

.hover-lift {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(42, 125, 130, 0.15);
}

.kpi-card {
  background: white;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 16px rgba(42, 125, 130, 0.08);
}

.table-modern {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
}

.table-modern tbody tr {
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
  background: var(--brand-soft);
}

.table-modern thead {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}

.badge {
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.form-control-lg,
.form-select-lg {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(42, 125, 130, 0.1);
}

.form-label {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.btn-brand {
  transition: all 0.2s ease;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 125, 130, 0.3);
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--brand-strong);
  --bs-btn-active-border-color: var(--brand-strong);
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
  transition: all 0.2s ease;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--line);
}

/* ========== STICKET VISUAL REFRESH ========== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --ink: #1d2733;
  --muted: #667085;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #dff7f2;
  --accent: #f59e0b;
  --accent-soft: #fff3d6;
  --blue-soft: #e8f1ff;
  --line: #dce4ee;
  --danger-soft: #fee2e2;
  --success-soft: #dcfce7;
}

.app-body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30rem),
    linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
}

.topbar {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark {
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--brand), #2563eb);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.nav-link-pill {
  font-weight: 700;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sticket-hero {
  min-height: 430px;
  border-radius: 1rem;
  overflow: hidden;
  padding: 3.25rem 2rem;
  position: relative;
  background: #091626;
}

.sticket-hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(9, 22, 38, 0.9), rgba(9, 22, 38, 0.58), rgba(9, 22, 38, 0.22)),
    linear-gradient(0deg, rgba(9, 22, 38, 0.42), transparent 54%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  animation: heroFade 24s infinite;
  transform: scale(1.04);
}

.hero-slide-snow {
  background-image: url("https://images.unsplash.com/photo-1551698618-1dfe5d97d256?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide-thermal {
  animation-delay: 6s;
  background-image: url("https://images.unsplash.com/photo-1600334129128-685c5582fd35?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide-sunset {
  animation-delay: 12s;
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1800&q=80");
}

.hero-slide-outdoor {
  animation-delay: 18s;
  background-image: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=80");
}

.hero-carousel-dots {
  position: absolute;
  left: 2rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero-carousel-dots span {
  width: 2.2rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  animation: heroDot 24s infinite;
}

.hero-carousel-dots span:nth-child(2) { animation-delay: 6s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 12s; }
.hero-carousel-dots span:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.04); }
  5% { opacity: 1; }
  25% { opacity: 1; transform: scale(1); }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

@keyframes heroDot {
  0%, 30%, 100% { background: rgba(255, 255, 255, 0.42); }
  5%, 25% { background: #ffffff; }
}

.sticket-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-stat {
  min-height: 5.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 16px 35px rgba(29, 39, 51, 0.07);
}

.space-card {
  border-radius: 0.9rem !important;
  overflow: hidden;
}

.space-visual {
  min-height: 9.5rem;
  background:
    linear-gradient(135deg, rgba(9, 22, 38, 0.58), rgba(15, 118, 110, 0.24)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee7?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.space-visual-snow {
  background:
    linear-gradient(135deg, rgba(7, 20, 36, 0.52), rgba(37, 99, 235, 0.18)),
    url("https://images.unsplash.com/photo-1551698618-1dfe5d97d256?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.space-visual-sunset {
  background:
    linear-gradient(135deg, rgba(82, 33, 11, 0.5), rgba(245, 158, 11, 0.15)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.space-visual-thermal {
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.5), rgba(15, 118, 110, 0.2)),
    url("https://images.unsplash.com/photo-1600334129128-685c5582fd35?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.space-visual-sauna {
  background:
    linear-gradient(135deg, rgba(67, 20, 7, 0.45), rgba(245, 158, 11, 0.18)),
    url("https://images.unsplash.com/photo-1583417267826-aebc4d1542e1?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.space-visual-outdoor {
  background:
    linear-gradient(135deg, rgba(9, 22, 38, 0.52), rgba(15, 118, 110, 0.18)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.space-price {
  background: #102033;
  color: #ffffff;
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

.space-detail-visual {
  min-height: 28rem;
  background-position: center;
  background-size: cover;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #425466;
  background: #ffffff;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.demo-table code {
  color: #0f172a;
  background: #edf2f7 !important;
}

.copy-cell {
  min-width: 13rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  border-radius: 999px;
}

.status-paid { background: #16a34a; }
.status-pending { background: #f59e0b; }
.status-cancelled { background: #64748b; }

.btn,
.form-control,
.form-select,
.alert {
  border-radius: 0.65rem;
}

.btn-brand:hover {
  transform: none;
}

.kpi-card {
  border-radius: 0.9rem !important;
}

.kpi-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: var(--brand);
  background: var(--brand-soft);
}

.calendar-shell .card,
.admin-calendar-card {
  border-radius: 0.9rem !important;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  background: #f8fafc;
}

@media (max-width: 767px) {
  .sticket-hero {
    min-height: 390px;
    padding: 2rem 1.25rem;
  }

  .sticket-hero h1 {
    font-size: 2.35rem;
  }

  .hero-carousel-dots {
    left: 1.25rem;
    bottom: 1rem;
  }

  .hero-carousel-dots span {
    width: 1.6rem;
  }

  .copy-cell {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-carousel-dots span {
    animation: none;
  }

  .hero-slide-snow {
    opacity: 1;
    transform: none;
  }
}
