/* Tailwind utilities loaded via CDN in index.html */

@layer base {
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@layer base {
  :root {
    --color-cream: #fdf8f3;
    --color-beige: #f5ede0;
    --color-blush: #f2d9c8;
    --color-rose: #e8a89c;
    --color-orange: #d4732a;
    --color-orange-light: #e8894a;
    --color-brown: #8b5e3c;
    --color-charcoal: #1a1a1a;
    --color-gold: #c9a96e;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: #fdf8f3;
    overflow-x: hidden;
  }

  h1, h2, h3 {
    font-family: 'Tajawal', sans-serif;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdf8f3;
}
::-webkit-scrollbar-thumb {
  background: #d4732a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c06020;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.dark ::-webkit-scrollbar-thumb {
  background: #c9a96e;
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes petals {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.petal {
  position: absolute;
  animation: petals linear infinite;
  pointer-events: none;
}

/* Dark mode */
.dark body {
  background-color: #111111;
  color: #f0e8d8;
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #d4732a, #e8894a, #c9a96e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Line decoration */
.ornament-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4732a, transparent);
}

/* Service cards — equal height, footer at bottom */
#services-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.service-card-desc {
  flex: 1 1 auto;
}

.service-card-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.service-card:hover {
  transform: translateY(-8px);
}

.contact-map-wrap {
  position: relative;
  background: #fff7ed;
}
.dark .contact-map-wrap {
  background: rgba(30, 25, 20, 0.5);
}
.contact-map-iframe {
  display: block;
}

/* Button glow */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4732a, #e8894a);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 115, 42, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(212, 115, 42, 0.55);
  transform: translateY(-2px);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 1;
}

/* Before/After slider */
.before-after-container {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}

/* FAQ accordion */
.faq-item {
  transition: all 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Calendar styles */
.calendar-day {
  transition: all 0.2s ease;
  cursor: pointer;
}
.calendar-day:hover {
  background: rgba(212, 115, 42, 0.1);
}
.calendar-day.available {
  background: rgba(212, 115, 42, 0.08);
}
.calendar-day.selected {
  background: #d4732a;
  color: white;
}
.calendar-day.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Input floating label */
.floating-label-group {
  position: relative;
}
.floating-label-group input,
.floating-label-group textarea {
  padding-top: 20px;
  padding-bottom: 8px;
}
.floating-label-group label {
  position: absolute;
  top: 14px;
  right: 16px;
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 14px;
  color: #8b7355;
}
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
  top: 4px;
  font-size: 11px;
  color: #d4732a;
}

/* Cart animation */
.cart-pulse {
  animation: pulse-soft 1.5s ease-in-out infinite;
}

/* Masonry layout support */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Nav underline effect */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: #d4732a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Star rating */
.star {
  color: #d4732a;
  fill: #d4732a;
}

/* Testimonial card */
.testimonial-card {
  background: linear-gradient(135deg, rgba(253, 248, 243, 0.8), rgba(245, 237, 224, 0.6));
  border: 1px solid rgba(212, 115, 42, 0.12);
}
.dark .testimonial-card {
  background: linear-gradient(135deg, rgba(30, 25, 20, 0.8), rgba(40, 30, 20, 0.6));
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* Progress bar for booking steps */
.step-connector {
  flex: 1;
  height: 2px;
  background: #e8d5c0;
  position: relative;
  transition: background 0.5s ease;
}
.step-connector.active {
  background: #d4732a;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0e8d8 25%, #fdf8f3 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Map pin animation */
@keyframes map-ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.map-ping {
  animation: map-ping 1.5s ease-out infinite;
}

/* Notification toast */
.toast-enter {
  animation: slide-in-right 0.4s ease forwards;
}
.toast-exit {
  animation: slide-out-right 0.4s ease forwards;
}

/* ——— Splash loading progress ——— */
.splash-progress {
  margin-top: 2rem;
  width: 11rem;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  direction: ltr; /* fill always grows left → right */
}

.splash-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0%,
    #fff 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  animation:
    splash-progress-grow 2.1s cubic-bezier(0.33, 1, 0.68, 1) forwards,
    splash-progress-shine 2.1s ease-in-out forwards;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

@keyframes splash-progress-grow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes splash-progress-shine {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* ——— Static page UI states ——— */
#splash {
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash.splash-hide .splash-progress-fill {
  animation: none;
}

.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-anim.hero-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --announcement-h: 44px;
  --nav-h: 5rem;
  --header-h: calc(var(--announcement-h) + var(--nav-h));
}

.site-header {
  isolation: isolate;
}

#announcement.hidden {
  display: none;
}

main.site-main {
  padding-top: 0;
}

/* Full viewport hero; fixed header floats on top */
.site-main #hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-h);
  box-sizing: border-box;
}

#navbar {
  position: relative;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    backdrop-filter 0.45s ease;
}

/* Glass effect — scroll only */
#navbar.scrolled {
  background: rgba(253, 248, 243, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(212, 115, 42, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dark #navbar.scrolled {
  background: rgba(17, 17, 17, 0.82) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

#navbar.scrolled #mobile-menu-btn {
  color: #374151;
}

.dark #navbar.scrolled #mobile-menu-btn {
  color: #fcd34d;
}

#cart-overlay,
#booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#cart-overlay.open,
#booking-overlay.open {
  opacity: 1;
  visibility: visible;
}

#cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: min(100%, 24rem);
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#cart-sidebar.open {
  transform: translateX(0);
}

#booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#booking-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#booking-modal .booking-panel {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 720px);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#booking-modal.open .booking-panel {
  transform: scale(1) translateY(0);
}

#booking-modal #booking-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#booking-modal #booking-body.booking-body--datetime {
  overflow-y: auto;
}

/* Step 2: date & time — readable panels */
.booking-step-datetime {
  padding: 0.25rem 0;
}

.booking-datetime-intro {
  margin-bottom: 0.75rem;
}

.booking-datetime-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.dark .booking-datetime-title {
  color: #fff;
}

.booking-datetime-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
}
.dark .booking-datetime-subtitle {
  color: #9ca3af;
}

.booking-datetime-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(212, 115, 42, 0.12), rgba(232, 137, 74, 0.08));
  border: 1px solid rgba(212, 115, 42, 0.28);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9a3412;
}
.dark .booking-datetime-summary {
  background: rgba(120, 53, 15, 0.25);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}
.booking-datetime-summary.hidden {
  display: none;
}
.booking-datetime-summary i {
  color: #d4732a;
}

.booking-datetime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 560px) {
  .booking-datetime-grid {
    grid-template-columns: minmax(0, 1fr) 1fr;
    gap: 0.85rem;
  }
}

.booking-datetime-card {
  background: #fff;
  border: 1px solid rgba(212, 115, 42, 0.2);
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 4px 18px rgba(212, 115, 42, 0.06);
}
.dark .booking-datetime-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.booking-datetime-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 115, 42, 0.12);
}
.dark .booking-datetime-card-head {
  color: #f3f4f6;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.booking-cal-month {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  flex: 1;
}
.dark .booking-cal-month {
  color: #fff;
}

.booking-cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 115, 42, 0.25);
  background: #fff7ed;
  color: #c2410c;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.booking-cal-nav-btn:hover {
  background: #ffedd5;
  border-color: rgba(212, 115, 42, 0.45);
}
.dark .booking-cal-nav-btn {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.booking-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}
.dark .booking-cal-weekdays {
  color: #9ca3af;
}
.booking-cal-weekdays .is-friday {
  color: #dc2626;
}

.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.booking-cal-grid .calendar-day--compact {
  height: 2rem;
  min-height: 2rem;
  max-height: 2rem;
  aspect-ratio: unset;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0;
  border: 1px solid transparent;
  color: #374151;
  background: #fff7ed;
}
.dark .booking-cal-grid .calendar-day--compact {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
}
.booking-cal-grid .calendar-day--compact:not(:disabled):hover {
  border-color: rgba(212, 115, 42, 0.45);
  background: #ffedd5;
}
.booking-cal-grid .calendar-day--compact.selected {
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
.booking-cal-grid .calendar-day--compact:disabled {
  opacity: 0.35;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.dark .booking-cal-grid .calendar-day--compact:disabled {
  background: rgba(255, 255, 255, 0.03);
  color: #6b7280;
}

.booking-date-bounds strong {
  color: #d4732a;
  font-weight: 600;
}

.booking-cal-grid .calendar-day--out-of-range:disabled {
  opacity: 0.28;
  text-decoration: line-through;
}

.booking-cal-legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: #6b7280;
}
.dark .booking-cal-legend {
  color: #9ca3af;
}
.booking-legend-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.booking-legend-dot--closed {
  background: #fca5a5;
}

.booking-times-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 8.5rem;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(212, 115, 42, 0.35);
  background: rgba(255, 247, 237, 0.5);
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.dark .booking-times-hint {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}
.booking-times-hint.hidden {
  display: none;
}

.booking-times-block {
  min-width: 0;
}
.booking-times-block.hidden {
  display: none;
}

.booking-time-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (min-width: 400px) {
  .booking-time-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .booking-time-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.booking-time-slot {
  white-space: nowrap;
  min-height: 2.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(212, 115, 42, 0.2);
  background: #fff;
  color: #374151;
}
.dark .booking-time-slot {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}
.booking-time-slot:not(:disabled):hover {
  border-color: #d4732a;
  background: #fff7ed;
}
.dark .booking-time-slot:not(:disabled):hover {
  background: rgba(120, 53, 15, 0.35);
}
.booking-time-slot.bg-gradient-to-br,
.booking-time-slot.selected {
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox.open {
  opacity: 1;
  visibility: visible;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 120;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    visibility 0.35s ease;
}
#toast.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#toast:not(.show) #toast-msg:empty {
  display: none;
}

#floating-cart {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#floating-cart.hidden-fc {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

#scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
#hero-scroll {
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.dark .divider-fill {
  fill: #111111;
}

#navbar.scrolled .logo-title {
  color: #c2410c;
}
.dark #navbar.scrolled .logo-title {
  color: #fcd34d;
}
#navbar.scrolled .logo-sub {
  color: #fb923c;
}
.dark #navbar.scrolled .logo-sub {
  color: rgba(252, 211, 77, 0.6);
}
#navbar.scrolled .nav-link {
  color: #374151;
}
.dark #navbar.scrolled .nav-link {
  color: #d1d5db;
}
#navbar.scrolled .nav-action {
  background: #fff7ed;
  color: #ea580c;
}
.dark #navbar.scrolled .nav-action {
  background: rgba(120, 53, 15, 0.3);
  color: #fcd34d;
}

/* ——— Auth login modal (bookings page) ——— */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#auth-overlay.open {
  opacity: 1;
  visibility: visible;
}

#auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#auth-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#auth-modal .auth-panel {
  width: 100%;
  max-width: 26rem;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#auth-modal.open .auth-panel {
  transform: scale(1) translateY(0);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tab.active {
  background: #fff;
  color: #d4732a;
  box-shadow: 0 2px 8px rgba(212, 115, 42, 0.12);
}
.dark .auth-tab.active {
  background: #1a1a1a;
  color: #fbbf24;
}

.bookings-nav-user {
  position: relative;
}
.bookings-nav-user.is-logged-in {
  background: rgba(212, 115, 42, 0.15);
  color: #d4732a;
}
.dark .bookings-nav-user.is-logged-in {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.bookings-welcome {
  background: linear-gradient(135deg, rgba(212, 115, 42, 0.08), rgba(201, 169, 110, 0.12));
  border: 1px solid rgba(212, 115, 42, 0.2);
}

/* ——— Bookings follow-up page ——— */
.bookings-page .bookings-main {
  min-height: 100vh;
}

.booking-lookup-form {
  box-shadow: 0 20px 50px rgba(212, 115, 42, 0.12);
}
.booking-lookup-form.bookings-lookup--logged-in {
  margin-top: 1rem !important;
}

.booking-card {
  background: #fff;
  border: 1px solid rgba(212, 115, 42, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.dark .booking-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
}
.booking-card:hover {
  box-shadow: 0 12px 40px rgba(212, 115, 42, 0.12);
}

.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.booking-status--confirmed {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.dark .booking-status--confirmed {
  color: #86efac;
}
.booking-status--completed {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}
.dark .booking-status--completed {
  color: #93c5fd;
}
.booking-status--cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.dark .booking-status--cancelled {
  color: #fca5a5;
}

.booking-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .booking-card-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.booking-card-meta p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.booking-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 115, 42, 0.12);
}
.dark .booking-card-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.booking-btn--outline {
  border: 1px solid #e8d5c0;
  color: #8b5e3c;
  background: transparent;
}
.dark .booking-btn--outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fcd34d;
}
.booking-btn--outline:hover {
  background: #fff7ed;
}
.booking-btn--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.booking-btn--danger:hover {
  background: rgba(239, 68, 68, 0.18);
}
.booking-btn--whatsapp {
  background: #22c55e;
  color: #fff;
}
.booking-btn--whatsapp:hover {
  background: #16a34a;
}
.booking-btn--primary {
  background: linear-gradient(to right, #d4732a, #e8894a);
  color: #fff;
}
.booking-btn--primary:hover {
  filter: brightness(1.05);
}

.booking-empty.hidden {
  display: none;
}
#bookings-results-head.hidden {
  display: none;
}

/* ——— Booking status timeline ——— */
.booking-card--track {
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.bookings-page .booking-card {
  opacity: 1;
  transform: none;
}

.booking-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}

.booking-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.booking-track {
  margin: 0 1.5rem 1.25rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(212, 115, 42, 0.06), rgba(201, 169, 110, 0.08));
  border: 1px solid rgba(212, 115, 42, 0.12);
}
.dark .booking-track {
  background: linear-gradient(135deg, rgba(212, 115, 42, 0.1), rgba(0, 0, 0, 0.2));
  border-color: rgba(255, 255, 255, 0.06);
}

.booking-track-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8b5e3c;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dark .booking-track-title {
  color: #fcd34d;
}

.booking-track-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-track-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 0.85rem;
  padding-bottom: 1.35rem;
}
.booking-track-step:last-child {
  padding-bottom: 0;
}

.booking-track-step::before {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 2.35rem;
  bottom: 0;
  width: 2px;
  background: rgba(212, 115, 42, 0.2);
  transform: translateX(50%);
}
.booking-track-step:last-child::before {
  display: none;
}
.dark .booking-track-step::before {
  background: rgba(255, 255, 255, 0.1);
}

.booking-track-step.is-done::before {
  background: linear-gradient(to bottom, #22c55e, rgba(212, 115, 42, 0.25));
}

.booking-track-marker {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #fff;
  border: 2px solid rgba(212, 115, 42, 0.25);
  color: #a8a29e;
  transition: all 0.25s ease;
}
.dark .booking-track-marker {
  background: #111;
  border-color: rgba(255, 255, 255, 0.12);
  color: #6b7280;
}

.booking-track-step.is-done .booking-track-marker {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.booking-track-step.is-active .booking-track-marker {
  background: linear-gradient(135deg, #d4732a, #e8894a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(212, 115, 42, 0.45);
  animation: booking-track-pulse 2s ease-in-out infinite;
}

.booking-track-step.is-cancelled .booking-track-marker {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.booking-track-step.is-pending .booking-track-marker {
  background: #f5f5f4;
  border-color: #e7e5e4;
  color: #d6d3d1;
}
.dark .booking-track-step.is-pending .booking-track-marker {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
  color: #4b5563;
}

@keyframes booking-track-pulse {
  0%,
  100% {
    box-shadow: 0 4px 18px rgba(212, 115, 42, 0.45);
  }
  50% {
    box-shadow: 0 4px 24px rgba(212, 115, 42, 0.65);
  }
}

.booking-track-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0.15rem 0 0.2rem;
  color: #1c1917;
}
.dark .booking-track-content h4 {
  color: #fafaf9;
}

.booking-track-step.is-pending .booking-track-content h4 {
  color: #a8a29e;
}
.dark .booking-track-step.is-pending .booking-track-content h4 {
  color: #6b7280;
}

.booking-track-content p {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
  color: #78716c;
}
.dark .booking-track-content p {
  color: #9ca3af;
}

.booking-track-step.is-active .booking-track-content h4 {
  color: #c2410c;
}
.dark .booking-track-step.is-active .booking-track-content h4 {
  color: #fdba74;
}

.booking-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .booking-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.booking-detail-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #fdf8f3;
  border: 1px solid rgba(212, 115, 42, 0.1);
}
.dark .booking-detail-tile {
  background: #111;
  border-color: rgba(255, 255, 255, 0.06);
}

.booking-detail-tile i {
  color: #d4732a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.booking-detail-tile span {
  display: block;
  font-size: 0.6875rem;
  color: #a8a29e;
  margin-bottom: 0.15rem;
}
.dark .booking-detail-tile span {
  color: #9ca3af;
}

.booking-detail-tile strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: #292524;
}
.dark .booking-detail-tile strong {
  color: #f5f5f4;
}

.booking-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(212, 115, 42, 0.05);
  border: 1px dashed rgba(212, 115, 42, 0.2);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.dark .booking-summary-row {
  background: rgba(212, 115, 42, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.booking-summary-row dt {
  font-size: 0.6875rem;
  color: #a8a29e;
  margin-bottom: 0.1rem;
}
.dark .booking-summary-row dt {
  color: #9ca3af;
}

.booking-summary-row dd {
  font-weight: 700;
  margin: 0;
  color: #292524;
}
.dark .booking-summary-row dd {
  color: #fafaf9;
}

.booking-summary-row .booking-summary-total dd {
  color: #c2410c;
}
.dark .booking-summary-row .booking-summary-total dd {
  color: #fdba74;
}

.booking-services-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #57534e;
  margin-bottom: 0.65rem;
}
.dark .booking-services-title {
  color: #d6d3d1;
}

/* Moyasar payment form (booking step 4) */
.moyasar-form-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.moyasar-form-wrap .mysr-form {
  width: 100%;
}

/* Apple Pay Web — https://docs.moyasar.com/guides/apple-pay/apple-pay-web */
.apple-pay-web-wrap apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 48px;
  --apple-pay-button-border-radius: 12px;
  --apple-pay-button-padding: 0;
  --apple-pay-button-box-sizing: border-box;
  display: block;
  max-width: 320px;
  margin: 0 auto;
}
