/* Page-specific styles for src/index.php */
/* Merged styles (previously in src/css/glass.css) needed by the public index page */

:root {
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --accent: #d63384;
  --accent-2: #ff9ccf;
  --text: #2b2b3a;
}

html {
  min-height: 100%;
  background: transparent;
}
body {
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body {
  /* background moved to body::before to reliably cover full content height */
  background: transparent;
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
}

/* Reliable full-page background: placed in a pseudo-element so it stretches
   to the full content height (fixes mobile cases where body background
   didn't cover all content). */
body {
  position: relative;
}
/* Use fixed so background covers viewport during scroll on mobile; keep transparent stacking */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 0 0;
  z-index: -1;
  background:
    radial-gradient(800px 380px at 10% 10%, #ffeaf4 0%, transparent 20%),
    radial-gradient(600px 260px at 90% 80%, #fff2f6 0%, transparent 20%),
    linear-gradient(180deg, rgba(255, 230, 245, 1) 0%, #fff 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.86)
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(30, 18, 28, 0.06);
}

.glass-navbar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px) saturate(115%);
}
.navbar {
  padding: 0.45rem 1rem;
}
.navbar .container-fluid {
  gap: 0.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.navbar-brand svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 6px 18px rgba(214, 51, 132, 0.12));
  border-radius: 6px;
}

.nav-link {
  color: rgba(43, 43, 58, 0.8);
  transition:
    color 0.15s ease,
    transform 0.12s ease;
}
.nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.navbar-toggler {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(214, 51, 132, 0.08);
}

@media (max-width: 767px) {
  .navbar-brand svg {
    width: 22px;
    height: 22px;
  }
}

/* Badge for blocked days in calendar month view */

/* Badge removed: day-blocked styling handles blocked days */

/* Day availability progress bar (public calendar) */
.day-availability{
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  overflow: hidden;
  z-index: 5;
}
.day-availability-bar{
  height: 100%;
  background: linear-gradient(90deg,#d63384,#ff8aa1);
  width: 0%;
  transition: width 360ms ease;
}

/* Hide individual booked events on public calendar (they remain visible in admin) */
#calendar .fc-daygrid-event.public-hidden,
#calendar .fc-timegrid-event.public-hidden,
#calendar .fc-list-item.public-hidden { display: none !important; }

/* Hide blocked-day events emitted as background markers for public view */
#calendar .fc-daygrid-event.public-blocked,
#calendar .fc-timegrid-event.public-blocked,
#calendar .fc-daygrid-event-harness .public-blocked { display: none !important; }
/* Hide empty event anchors and dot-only events in public calendar */
#calendar .fc-daygrid-event.fc-daygrid-dot-event { display: none !important; }
#calendar .fc-daygrid-event .fc-event-main .fc-event-title:empty { display: none !important; }
#calendar .fc-daygrid-event:empty { display: none !important; }

/* Style and disable fully blocked day cells on public calendar */
#calendar .fc-daygrid-day.day-blocked{
  opacity: 0.6;
  pointer-events: none;
}
#calendar .fc-daygrid-day.day-blocked .fc-daygrid-day-number{
  color: rgba(0,0,0,0.35);
}

.card,
.card .card-body {
  background: transparent;
}
.card {
  padding: 0;
}

.form-control {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.08);
  border-color: rgba(214, 51, 132, 0.22);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: none;
  color: #fff;
}
.btn-warning {
  background: linear-gradient(180deg, #ffb37a, #ff8a5c);
  border: none;
}

.table thead th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.table tbody tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

h3 {
  margin-top: 0.25rem;
  color: var(--text);
}

/* utility to apply glass style quickly */
.glass-panel {
  padding: 18px;
  margin-bottom: 16px;
}
/* Liquid overlay for subtle interactive 'glass' movement */
.glass-panel {
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: -30% -30% -30% -30%;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 200, 230, 0.26),
    transparent 28%
  );
  opacity: 0.9;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  transform: translateZ(0) scale(1);
  mix-blend-mode: overlay;
}
.glass-panel:hover::before {
  opacity: 1;
}

/* small helpers */
.text-muted {
  color: rgba(43, 43, 58, 0.6);
}

/* FullCalendar - Liquid glass light overrides */
/* FullCalendar - Minimal liquid-glass overrides */
.fc {
  --fc-bg: transparent;
}

/* Toolbar title and buttons: minimal, not link-like */
.fc .fc-toolbar-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  text-decoration: none;
}
.fc .fc-toolbar {
  padding: 10px 6px;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fc .fc-button {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  height: auto;
  min-width: unset;
  box-shadow: none;
  font-weight: 600;
}
.fc .fc-button:focus {
  box-shadow: 0 6px 18px rgba(30, 18, 28, 0.04);
}
.fc .fc-button-primary {
  background: linear-gradient(
    180deg,
    rgba(255, 156, 204, 0.9),
    rgba(214, 51, 132, 0.9)
  );
  color: #fff;
  border: none;
}
.fc .fc-button:hover {
  transform: translateY(-2px);
}

/* Panel glass shell */
.fc .fc-scrollgrid,
.fc .fc-daygrid,
.fc .fc-view {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 14px 32px rgba(30, 18, 28, 0.04);
}

.fc .fc-daygrid-day-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px;
}
.fc .fc-daygrid-day-number {
  color: rgba(43, 43, 58, 0.78);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.fc .fc-daygrid-day-frame {
  padding: 6px;
  min-height: 76px;
}

/* Highlight today's cell with a soft pink glass tone (applies to public and admin calendars) */
.fc .fc-daygrid-day.fc-day-today {
  background: linear-gradient(
    180deg,
    rgba(255, 220, 235, 0.18),
    rgba(255, 240, 245, 0.06)
  ) !important;
  border: 1px solid rgba(214, 51, 132, 0.1) !important;
  border-radius: 10px;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 250, 252, 0.8)
  );
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(214, 51, 132, 0.06);
}

/* Also style timeGrid's current day header (week/day views) */
.fc .fc-timegrid-col.fc-col-header-cell.fc-day.fc-day-today,
.fc .fc-col-header-cell.fc-day.fc-day-today {
  background: linear-gradient(
    180deg,
    rgba(255, 220, 235, 0.12),
    rgba(255, 240, 245, 0.04)
  ) !important;
  border-bottom: 2px solid rgba(214, 51, 132, 0.06) !important;
}

/* Subtle accent for the today badge in toolbar (if present) */
.fc .fc-button.fc-button-primary[aria-pressed="true"],
.fc .fc-button.fc-button-primary:active {
  box-shadow: 0 12px 30px rgba(214, 51, 132, 0.12) !important;
}

/* Minimal event styling: translucent with subtle accent, avoid bold link look */
.fc .fc-daygrid-event {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
}
.fc .fc-daygrid-event-dot {
  display: none;
}

/* Timed events */
.fc .fc-timegrid-event {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

/* Past days subtle */
.fc .fc-daygrid-day.fc-past {
  opacity: 0.66;
}

/* Popover styling */
.fc-theme-standard .fc-popover {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 28px rgba(30, 18, 28, 0.06);
}
.fc-popover .fc-popover-header {
  font-weight: 700;
  color: var(--text);
}

/* Remove link appearance across calendar */
.fc a {
  color: inherit !important;
  text-decoration: none !important;
}
.fc .fc-daygrid-day-number a,
.fc .fc-daygrid-day-top a {
  color: inherit !important;
  text-decoration: none !important;
}
.fc .fc-event-main a {
  color: inherit !important;
  text-decoration: none !important;
}

/* For public calendar (#calendar) hide event titles (no 'Reservado' text) but keep visual block */
#calendar .fc-daygrid-event .fc-event-title,
#calendar .fc-daygrid-event .fc-event-time,
#calendar .fc-timegrid-event .fc-event-title,
#calendar .fc-timegrid-event .fc-event-time {
  display: none !important;
}

/* Keep event blocks visible on the public calendar so blocked days show.
   (Previously these were hidden which prevented 'Bloqueado' from appearing.) */

@media (max-width: 767px) {
  .fc .fc-toolbar {
    padding: 8px;
  }
  .fc .fc-daygrid-day-frame {
    min-height: 56px;
  }
}

/* Liquid-glass toolbar buttons: public + admin calendars */
.fc .fc-button {
  background: rgba(255, 255, 255, 0.36) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: var(--text) !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 8px 22px rgba(30, 18, 28, 0.05);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
  height: auto !important;
}
.fc .fc-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(30, 18, 28, 0.07);
  background: rgba(255, 255, 255, 0.48) !important;
}
.fc .fc-button:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(30, 18, 28, 0.06) !important;
}
.fc .fc-button:active {
  transform: translateY(-1px);
}

/* Primary (active) button with soft accent but still glass */
.fc .fc-button-primary {
  background: linear-gradient(
    180deg,
    rgba(255, 156, 204, 0.92),
    rgba(214, 51, 132, 0.88)
  ) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 28px rgba(214, 51, 132, 0.12) !important;
}

/* Make toolbar compact and centered-looking */
.fc .fc-toolbar {
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.fc .fc-button-group {
  border-radius: 999px;
  overflow: visible;
}

@media (max-width: 480px) {
  .fc .fc-button {
    padding: 6px 8px !important;
    font-size: 0.9rem;
  }
}

/* Glass modal styling */
.modal-content.glass-modal {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.65)
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(30, 18, 28, 0.08);
  color: var(--text);
}
.modal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.modal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}
.modal-backdrop.show {
  background: rgba(0, 0, 0, 0.38);
}

/* time slot buttons inside glass modal */
.glass-modal .slot-btn {
  border-radius: 10px;
  min-width: 84px;
}
.glass-modal .slot-btn.disabled {
  opacity: 0.6;
}

/* Public page specific */
.booking-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
}
.booking-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}
.booking-hero .public-logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(214, 51, 132, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 100%;
  height: auto;
}

/* Brand title inside hero */
.brand-title {
  font-size: 1.25rem;
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.6px;
}
.booking-hero .lead {
  margin: 8px 0 4px;
  color: rgba(43, 43, 58, 0.8);
}

/* Cancel card styling */
.cancel-card {
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}
.cancel-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}
.cancel-card p {
  margin: 0 0 12px;
  color: rgba(43, 43, 58, 0.78);
  font-weight: 600;
}
.whatsapp-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #25d366, #21c650);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    opacity 0.12s ease;
  will-change: transform, opacity;
  position: relative;
  white-space: nowrap;
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, #21c650, #1da851);
}
.whatsapp-btn:active {
  transform: translateY(-1px) scale(0.995);
}
.whatsapp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px rgba(33, 198, 80, 0.1);
}
.whatsapp-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  vertical-align: middle;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.whatsapp-btn:hover .whatsapp-icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.03);
}
.whatsapp-btn svg path {
  fill: #fff;
  transition: fill 0.18s ease;
}
.wa-text {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.wa-phone {
  display: inline-block;
}

/* subtle decorative glow (very low opacity) */
.whatsapp-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%) scale(0.94);
  background: radial-gradient(
    circle,
    rgba(37, 211, 102, 0.04) 0%,
    rgba(37, 211, 102, 0.01) 45%,
    transparent 65%
  );
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.9;
}
.whatsapp-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-btn,
  .whatsapp-icon {
    transition: none !important;
  }
  .whatsapp-btn::before {
    transition: none !important;
  }
}

/* On very small screens button becomes full-width for easier tapping */
@media (max-width: 480px) {
  .whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* visually-hidden helper for accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .brand-title {
    font-size: 1.15rem;
  }
  .booking-hero .public-logo {
    width: 140px;
    height: 140px;
  }
}
.calendar-panel {
  padding: 14px;
}
.calendar-panel #calendar {
  background: transparent;
}

/* improve slot button look on public page */
.slot-btn {
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.slot-btn.btn-primary {
  box-shadow: 0 10px 28px rgba(214, 51, 132, 0.14);
}
.slot-btn.btn-outline-primary {
  border: 1px solid rgba(214, 51, 132, 0.12);
}

/* Force pink theme for slot buttons inside the booking modal */
.glass-modal .slot-btn.btn-outline-primary {
  color: var(--accent) !important;
  border: 1px solid rgba(214, 51, 132, 0.18) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.glass-modal .slot-btn.btn-outline-primary:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 156, 204, 0.06),
    rgba(214, 51, 132, 0.04)
  ) !important;
}
.glass-modal .slot-btn.btn-primary {
  background: linear-gradient(
    180deg,
    var(--accent-2),
    var(--accent)
  ) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 12px 30px rgba(214, 51, 132, 0.18) !important;
}

@media (max-width: 991px) {
  .booking-hero {
    margin-bottom: 12px;
    padding: 16px;
  }
  .public-logo {
    width: 130px;
    height: 130px;
  }
}

@media (min-width: 992px) {
  /* On large screens reduce left panel visual weight */
  .booking-hero {
    padding: 14px;
    gap: 6px;
  }
  .booking-hero h3 {
    font-size: 1.05rem;
    margin-top: 6px;
  }
  .booking-hero p {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
}

/* Cancellation note styling */
.cancel-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8b0f2a; /* deep red */
  background: linear-gradient(
    180deg,
    rgba(255, 230, 235, 0.55),
    rgba(255, 245, 247, 0.32)
  );
  border: 1px solid rgba(139, 15, 42, 0.08);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.cancel-note small {
  display: block;
  font-weight: 600;
  color: rgba(139, 15, 42, 0.85);
  margin-top: 4px;
  font-size: 0.86rem;
}

/* WhatsApp link styling */
.whatsapp-link {
  display: inline-block;
  color: #075e54;
  background: linear-gradient(
    180deg,
    rgba(7, 94, 84, 0.06),
    rgba(7, 94, 84, 0.03)
  );
  padding: 2px 8px;
  border-radius: 8px;
  text-decoration: none;
}
.whatsapp-link:hover {
  background: linear-gradient(
    180deg,
    rgba(7, 94, 84, 0.1),
    rgba(7, 94, 84, 0.04)
  );
  color: #043d34;
  text-decoration: none;
  transform: translateY(-1px);
}
.whatsapp-link:active {
  transform: translateY(0);
}

/* Custom toast-style alert (no Bootstrap) */
#customAlert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 280px;
  max-width: 92%;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.45)
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 20px 50px rgba(30, 18, 28, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--text);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.26s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.26s ease;
  z-index: 2200;
}
#customAlert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#customAlert.success {
  border-left: 6px solid var(--accent-2);
}
#customAlert.error {
  border-left: 6px solid #ff6161;
}
#customAlert .msg {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 8px 48px 8px 16px;
  line-height: 1.2;
}
#customAlert .close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: 0;
  font-size: 20px;
  color: rgba(43, 43, 58, 0.36);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

/* When centered over a container we remove translate and use explicit top/left */
#customAlert.centered {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  #customAlert {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
  }
}

/* Modal adjustments for small screens to feel native */
@media (max-width: 767px) {
  .modal-dialog {
    max-width: 100% !important;
    margin: 0 8px;
  }
  .modal-content.glass-modal {
    border-radius: 12px;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }
  .modal .modal-body {
    padding-bottom: 18px;
  }
  /* slot buttons full width on small screens */
  .glass-modal .slot-btn {
    min-width: 120px;
    flex: 1 1 48%;
  }
  .glass-modal .slot-btn + .slot-btn {
    margin-left: 6px;
  }
}

@media (max-width: 420px) {
  .glass-modal .slot-btn {
    min-width: 100%;
    flex-basis: 100%;
    margin-bottom: 8px;
  }
}

/* Index-specific helpers appended below */

/* Ensure calendar uses full available width */
#calendar {
  max-width: 100%;
}

/* Main container should fill viewport and center content when possible */
main.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
  box-sizing: border-box;
}

/* Prevent global vertical scroll; avoid per-item internal scrollbars on desktop */
.calendar-panel,
.booking-hero {
  /* let panels size naturally on desktop to avoid nested scrollbars */
  max-height: none;
  overflow: visible;
}

/* If a bounded panel is desired on very large screens, enable it explicitly */
@media (min-width: 1200px) {
  .calendar-panel {
    max-height: calc(100vh - 160px);
    overflow: auto;
  }
}

/* Ensure calendar container can shrink inside panel */
#calendar {
  height: auto;
}

/* Mobile-specific layout improvements: stack content and allow natural page scroll */
@media (max-width: 767px) {
  main.container {
    min-height: auto;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 12px;
    padding-bottom: 24px;
  }
  /* Let panels grow naturally and scroll the whole page instead of constraining with max-height */
  .calendar-panel,
  .booking-hero {
    max-height: none;
    overflow: visible;
  }
  /* Ensure calendar uses full width and reasonable height on small screens */
  #calendar {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: auto;
  }
  /* Make booking hero and cancel card compact for easier reading */
  .booking-hero {
    padding: 12px;
  }
  .cancel-card {
    padding: 12px;
  }
}

/* Custom alert default hidden */
#customAlert {
  display: none;
}

/* modal fullscreen helper class used by JS */
.modal-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  z-index: 1300 !important;
}

/* slot button spacing for the booking modal */
.slot-btn {
  margin: 4px;
}
