/* ============================================
   IBIZADAY — The Spaces Page Styles
   spaces.css — dedicated styles for spaces.html
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */
.spaces-hero {
  padding-top: calc(70px + 5rem);
  padding-bottom: 3rem;
  text-align: center;
  background-color: var(--color-bg);
}

.spaces-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.spaces-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.spaces-hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.4vw, 1rem);
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   SPACES GRID SECTION
   ============================================ */
.spaces-section {
  padding: 4rem 0 8rem;
  background-color: var(--color-bg);
}

.spaces-grid-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
}

/* Loading skeleton */
.spaces-loading {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.75rem;
}

.spaces-skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  aspect-ratio: 3/2;
  border-radius: 4px;
}

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

/* Empty state */
.spaces-empty {
  text-align: center;
  padding: 5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 1rem;
}

/* ============================================
   SPACE CARD
   ============================================ */
.space-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none !important;
  cursor: default;
}

.space-card:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Photo area */
.space-card-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: rgba(0,0,0,0.06);
  cursor: pointer;
  border-radius: 12px;
}

/* Slider strip inside card photo area */
.space-card-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.space-card-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Dot indicators */
.space-card-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.space-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.45);
  transition: background-color 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.space-card-dot.is-active {
  background-color: rgba(255,255,255,0.95);
}

/* Prev/Next arrows on hover */
.space-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.space-card-arrow--prev { left: 10px; }
.space-card-arrow--next { right: 10px; }

.space-card-photo-wrap:hover .space-card-arrow {
  opacity: 1;
}

.space-card-arrow:hover {
  background: rgba(255,255,255,0.35);
}

/* No photo placeholder */
.space-card-no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.06);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* Text area */
.space-card-body {
  padding: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.space-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.space-card-details {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Action buttons */
.space-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.space-card-btn-info {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation; /* remove 300ms tap delay on mobile */
  /* wave fill: #b8aa87 sweeps left→right on hover */
  background: linear-gradient(to right, #b8aa87 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.35s ease, border-color 0.35s ease;
}

.space-card-btn-info:hover {
  background-position: left center;
  border-color: #b8aa87;
  color: var(--color-text);
}

.space-card-btn-reserve {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-text);
  color: var(--color-bg);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* wave fill: #b8aa87 sweeps left→right on hover, starts as solid dark */
  background: linear-gradient(to right, #b8aa87 50%, var(--color-text) 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.space-card-btn-reserve:hover {
  background-position: left center;
  border-color: #b8aa87;
  color: var(--color-text);
}

/* ============================================
   CTA SECTION
   ============================================ */
.spaces-cta {
  padding: 5rem 0;
  background-color: var(--color-bg);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.spaces-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.spaces-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.spaces-cta-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================
   LANDING HEADER — transparent on spaces page
   ============================================ */
.spaces-page .landing-header {
  background-color: color-mix(in srgb, var(--color-bg) 97%, transparent);
  border-bottom-color: var(--color-border);
}

.spaces-page .landing-header.is-scrolled {
  background-color: color-mix(in srgb, var(--color-bg) 97%, transparent);
  border-bottom-color: var(--color-border);
}

/* Revert logo and nav to dark colors (no dark hero background here) */
.spaces-page .landing-header:not(.is-scrolled) .site-logo-img {
  filter: none;
}

.spaces-page .landing-header:not(.is-scrolled) .nav-link,
.spaces-page .landing-header:not(.is-scrolled) .lang-selector a,
.spaces-page .landing-header:not(.is-scrolled) .lang-separator {
  color: var(--color-text);
}

.spaces-page .landing-header:not(.is-scrolled) .nav-link:hover,
.spaces-page .landing-header:not(.is-scrolled) .lang-selector a:hover {
  color: var(--color-text);
  opacity: 0.7;
}

.spaces-page .landing-header:not(.is-scrolled) .menu-toggle span {
  background-color: var(--color-text);
}

/* ============================================
   SPACE DETAIL MODAL
   ============================================ */

/* Overlay backdrop */
.space-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Panel */
.space-modal-panel {
  position: relative;
  background: var(--color-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.space-modal-panel::-webkit-scrollbar {
  width: 5px;
}
.space-modal-panel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 99px;
}

@keyframes modalSlideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.space-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.space-modal-close:hover {
  background: rgba(255, 255, 255, 1);
}

/* Gallery */
.space-modal-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 16px 16px 0 0;
}

/* Slider strip inside modal gallery */
.space-modal-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.space-modal-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.space-modal-no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* Gallery dots */
.space-modal-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.space-modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.space-modal-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}

/* Gallery arrows */
.space-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.space-modal-arrow--prev { left: 12px; }
.space-modal-arrow--next { right: 12px; }

.space-modal-gallery:hover .space-modal-arrow {
  opacity: 1;
}

.space-modal-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Content area */
.space-modal-content {
  padding: 1.75rem 2rem 2.25rem;
}

/* Header row: title + reserve button */
.space-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.space-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: 0.01em;
  margin: 0;
}

.space-modal-reserve-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--color-text);
  color: var(--color-bg);
  background-color: var(--color-text);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.space-modal-reserve-btn:hover {
  background-color: transparent;
  color: var(--color-text);
}

/* Meta / quick details */
.space-modal-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

/* Description */
.space-modal-description {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Sections (amenities, rules) */
.space-modal-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.space-modal-section:last-child {
  border-bottom: none;
}

.space-modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
}

/* Amenities two-column list */
.space-modal-amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
}

.space-modal-amenity-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
  padding-left: 0.75rem;
  position: relative;
}

.space-modal-amenity-item::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-size: 0.55rem;
  top: 0.2em;
}

/* Rules list */
.space-modal-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
}

.space-modal-rules-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.space-modal-additional-rules {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

/* Host presence */
.space-modal-presence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 900px) {
  .spaces-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .spaces-loading {
    grid-template-columns: 1fr;
  }

  .spaces-hero {
    padding-top: calc(70px + 3rem);
    padding-bottom: 2rem;
  }

  /* Modal on tablet */
  .space-modal-overlay {
    padding: 1rem;
    align-items: flex-end;
  }

  .space-modal-panel {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }

  .space-modal-gallery {
    border-radius: 16px 16px 0 0;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .spaces-hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .space-card-photo-wrap {
    aspect-ratio: 4/3;
    border-radius: 10px;
  }

  .space-card-actions {
    flex-direction: column;
  }

  .space-card-btn-info,
  .space-card-btn-reserve {
    text-align: center;
    justify-content: center;
  }

  /* Modal on mobile */
  .space-modal-overlay {
    padding: 0;
  }

  .space-modal-panel {
    border-radius: 14px 14px 0 0;
    max-height: 96vh;
  }

  .space-modal-gallery {
    border-radius: 14px 14px 0 0;
    aspect-ratio: 1/1;
  }

  .space-modal-content {
    padding: 1.25rem 1.25rem 2rem;
  }

  .space-modal-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .space-modal-reserve-btn {
    width: 100%;
    justify-content: center;
  }

  .space-modal-amenities-list {
    grid-template-columns: 1fr;
  }

  .space-modal-arrow {
    opacity: 1;
  }
}

/* ============================================
   BOOKING PANEL — Hyde-style slide-in
   ============================================ */

/* Backdrop overlay */
.booking-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  animation: bookingOverlayIn 0.3s ease-out both;
}

@keyframes bookingOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Panel */
.booking-panel {
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
}

.booking-panel.is-open {
  transform: translateX(0);
}

/* Header */
.booking-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.booking-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
  line-height: 1.1;
}

.booking-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.booking-panel-close:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.booking-panel-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Step containers */
.booking-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.booking-step[hidden] {
  display: none;
}

/* Scrollable body */
.booking-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.booking-panel-body::-webkit-scrollbar {
  width: 4px;
}
.booking-panel-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 99px;
}

/* Footer (sticky at bottom) */
.booking-panel-footer {
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.booking-panel-footer--two {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Fields */
.booking-field {
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--color-border);
}

.booking-field:first-child {
  padding-top: 0;
}

.booking-field:last-of-type {
  border-bottom: none;
}

.booking-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.875rem;
}

.booking-field-max {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* Date trigger */
.booking-date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.625rem 0;
  cursor: pointer;
  transition: border-color var(--transition-base);
  text-align: left;
}

.booking-date-trigger:hover {
  border-bottom-color: var(--color-text);
}

.booking-date-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.booking-date-trigger.is-error {
  border-bottom-color: #c0392b;
  animation: bookingShake 0.35s ease;
}

@keyframes bookingShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.booking-date-display {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  transition: color var(--transition-base);
}

.booking-date-display.has-value {
  color: var(--color-text);
}

.booking-date-arrow {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

/* Inline calendar */
.booking-calendar {
  margin-top: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

.booking-calendar[hidden] {
  display: none;
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.booking-calendar-month-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.booking-calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.booking-calendar-nav-btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.booking-calendar-nav-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.booking-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.625rem 0.75rem 0.25rem;
  gap: 2px;
}

.booking-calendar-weekdays span {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.25rem 0.75rem 0.875rem;
  gap: 2px;
}

.booking-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.booking-calendar-day--empty {
  pointer-events: none;
}

.booking-calendar-day:not([disabled]):not(.booking-calendar-day--empty):hover {
  background-color: color-mix(in srgb, var(--color-text) 12%, transparent);
}

.booking-calendar-day:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.booking-calendar-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.booking-calendar-day.is-selected {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.booking-calendar-day.is-selected.is-today::after {
  background: var(--color-bg);
}

.booking-calendar-day[disabled],
.booking-calendar-day.is-past {
  color: var(--color-border);
  cursor: default;
  pointer-events: none;
}

/* Adults counter */
.booking-counter {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.booking-counter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-size: 1.125rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
  line-height: 1;
}

.booking-counter-btn:hover:not([disabled]) {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.booking-counter-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.booking-counter-btn[disabled] {
  border-color: var(--color-border);
  color: var(--color-border);
  cursor: default;
  opacity: 0.5;
}

.booking-counter-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text);
  min-width: 2rem;
  text-align: center;
}

/* CTA Button */
.booking-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  background-color: var(--color-text);
  color: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.booking-cta-btn:hover:not([disabled]) {
  background-color: transparent;
  color: var(--color-text);
}

.booking-cta-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.booking-cta-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.booking-cta-btn--outline {
  background-color: transparent;
  color: var(--color-text);
}

.booking-cta-btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Back button */
.booking-back-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
}

.booking-back-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.booking-back-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Step 2 summary */
.booking-summary {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.booking-summary-space {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
}

.booking-summary-details {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Contact inputs */
.booking-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.625rem 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-base);
}

.booking-input::placeholder {
  color: var(--color-text-muted);
}

.booking-input:focus {
  border-bottom-color: var(--color-text);
}

/* Privacy note */
.booking-privacy-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.booking-privacy-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-privacy-note a:hover {
  color: var(--color-accent);
}

/* Step 2 error */
.booking-step2-error {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid #c0392b;
  border-radius: 2px;
  animation: bookingErrorIn 0.25s ease-out;
}

.booking-step2-error[hidden] {
  display: none;
}

@keyframes bookingErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step 3 — Success */
.booking-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 1.25rem;
}

.booking-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: bookingSuccessIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bookingSuccessIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.booking-success-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.booking-success-desc {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 320px;
  margin: 0;
}

/* ============================================
   BOOKING PANEL — RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .booking-panel-overlay {
    align-items: flex-end;
    justify-content: center;
  }

  .booking-panel {
    width: 100%;
    height: auto;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  }

  .booking-panel.is-open {
    transform: translateY(0);
  }

  .booking-panel-header {
    padding: 1.25rem 1.5rem 1rem;
  }

  .booking-panel-body {
    padding: 1rem 1.5rem;
  }

  .booking-panel-footer {
    padding: 0.875rem 1.5rem 1.5rem;
  }

  .booking-panel-footer--two {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.625rem;
    align-items: center;
  }

  .booking-back-btn {
    width: auto;
  }

  .booking-field {
    padding: 1rem 0;
  }

  .booking-summary {
    margin-bottom: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-panel {
    transition: none;
  }
  .booking-panel-overlay {
    animation: none;
  }
}
