/* --- Services Section --- */
.services-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}
.services-left > h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1.5rem;
  color: var(--content-text-color);
  text-align: left;
}

/* --- Card Container --- */
.services-card {
  background: var(--card-color);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  padding: 1.5rem;
  margin: 0 auto;
  width: 100%;
  height: auto;
}
.services-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* --- Left column: Categories & Services --- */
.services-left {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.list-item {
  display: block;
  width: 100%;
  border: 0;
  padding: .9rem 1.2rem;
  background: var(--card-color);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  font-weight: 500;
  text-align: left;
  color: var(--text-color);
  font-family: inherit;
  font-size: inherit;
}

.service-name {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}
.list-item:hover,
.list-item:focus-visible {
  background: var(--accent-color);
  color: var(--light-text);
  transform: translateY(-2px);
  outline: none;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: .75rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: var(--light-text);
  font-family: inherit;
  font-weight: 500;
  font-size: 1.1rem;
  text-align: left;
  justify-content: flex-start;
  cursor: pointer;
  transition: background .2s ease;
}
.back-btn:hover,
.back-btn:focus-visible { background: #5C3E35; color: var(--light-text); }
.back-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* --- Right column: Details (Desktop) --- */
.services-right {
  flex: 1;
  background: var(--card-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: inset 0 4px 4px rgba(0,0,0,.05);
  text-align: left;
  overflow: hidden;
}
.details-placeholder {
  color: var(--content-text-color);
  font-style: italic;
}
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.detail-info h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--content-text-color);
}

.detail-info p {
  margin: 0;
  line-height: 1.6;
  color: var(--content-text-color);
  font-size: 1rem;
}

.service-facts {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: .35rem 1rem;
  margin: .25rem 0;
  font-size: .95rem;
}

.service-facts dt {
  font-weight: 600;
}

.service-facts dd {
  margin: 0;
}

.detail-photo {
  max-height: 520px;
  width: 100%;
  max-width: 345px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-photo img {
  max-height: 520px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* --- Responsive: stack vertically for smaller screens --- */
@media (max-width: 1024px) {
  .detail-card {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .detail-photo img {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* --- Modals (Mobile) --- */
.service-modal {
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--content-text-color);
  overflow: visible;
  align-items: center;
  justify-content: center;
}
.service-modal[open] { display: flex; }
.service-modal::backdrop { background: rgba(0,0,0,.5); }
.service-modal[open] .modal-content { animation: fadeInUp .35s ease; }
.modal-content {
  position: relative;
  background: var(--card-color);
  color: var(--content-text-color);
  width: min(92%, 400px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  text-align: left;
}
.modal-body {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.modal-media {
  position: relative;
  width: 100%;
  margin-bottom: .5rem;
  display: flex;
  justify-content: center;
}

.modal-media img {
  width: 100%;
  max-width: 360px;
  object-fit: contain;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(244, 212, 188, 0.92);
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.modal-close-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}

.modal-close-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--text-color);
  transition: background .2s ease, transform .24s ease;
}

.modal-close-line:first-child {
  transform: translateY(-1px) rotate(45deg);
}

.modal-close-line:last-child {
  transform: translateY(-1px) rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(244, 212, 188, 0.98);
  transform: scale(1.05);
}

.modal-close:hover .modal-close-line,
.modal-close:focus-visible .modal-close-line {
  background: var(--accent-color);
}

.modal-close:focus-visible {
  outline: 0;
}

.modal-body h3 {
  margin: 0;
  font-size: 1.45rem;
}

.modal-body p {
  margin: 0;
  line-height: 1.6;
  text-align: left;
}

.modal-body .service-facts {
  grid-template-columns: 1fr;
  gap: .25rem;
}

.modal-body .service-facts dd {
  margin-bottom: .5rem;
}

.booking-heading {
  font-family: var(--font-display);
  color: var(--content-text-color);
  font-size: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.booking-heading::before {
  content: "";
  display: block;
  width: 500px;
  height: 4px;
  border-radius: 4px;
  background: var(--primary-color);
  margin: 0 auto 1rem;
  opacity: .35;
}

#reservationIframe22512 {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  min-height: 680px;
}

/* --- Legal price notes and booking disclosure --- */
.services-price-note {
  max-width: 900px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  color: var(--content-text-color);
  font-size: 0.95rem;
  text-align: left;
}

.booking-disclosure {
  max-width: 1200px;
  margin: 0.75rem auto 1.25rem;
  padding: 0 1.5rem;
  color: var(--content-text-color);
  font-size: 0.95rem;
  text-align: center;
}
.booking-disclosure a { color: var(--text-color); text-decoration: underline; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .4s ease; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .services-layout { flex-direction: column; }
  .services-left { flex: unset; }
  .services-right { display: none; } /* hide right panel on mobile */

  .services-card {
    margin: 0 auto 2rem;
    padding: 1.25rem;
    max-width: 400px;
    min-height: 600px;
  }

  .booking-heading::before { 
    width: 80px; 
  }
}

/* --- Transitions for view switching --- */
.view-panel {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  position: absolute;
  width: 100%;
  transition: opacity .3s ease, transform .3s ease;
}
.view-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.view-panel[hidden] { display: none; }

html.service-modal-open { overflow: hidden; }

body.service-modal-open {
  position: fixed;
  inset-inline: 0;
  top: var(--service-scroll-top, 0);
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .service-modal[open] .modal-content,
  .fade-in { animation: none; }

  .view-panel { transition: none; }
}

/* Booking section hack */
#booking-section {
  scroll-margin-top: 80px; /* navbar height */
}

/* Fallback for legacy browsers (no scroll-margin-top support) */
@supports not (scroll-margin-top: 1px) {
  #booking-section::after {
    content: "";
    display: block;
    height: 80px;     /* equals .site-header height */
    margin-top: -80px;
    visibility: hidden;
  }
}
