/* ==========================================================================
   Booking system styles, page layout version.
   Loaded by functions.php from assets/css/surf-wizard.css.

   Part 1: the booking components (rooms, fields, calendar, popups).
   Part 2, at the end: the look of this site (square corners, #1f1f1f, Hauora)
           and the page layout (service page, service cards, thank-you view).
   ========================================================================== */

/* SCOPED CONTAINER */
.surf-app-container {
  max-width: 100%;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.08);
  padding: 32px;
  color: #1f1f1f;
  box-sizing: border-box;
}

/* FONT: the site's Hauora everywhere in the booking system (buttons and inputs too) */
.surf-app-container {
  font-family: "Hauora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.surf-app-container * { font-family: inherit !important; }

/* Anything with the hidden attribute stays hidden, even if a class sets display. */
.surf-app-container [hidden] { display: none !important; }

/* Visibility control */
.surf-app-container .wizard-step { display: none; }
.surf-app-container .wizard-step.active { display: block; animation: surfFade 0.25s ease; }
@keyframes surfFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Visible keyboard focus */
.surf-app-container button:focus-visible,
.surf-app-container [role="button"]:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }

/* Stops the page scrolling behind an open popup */
html.surf-modal-open,
html.surf-modal-open body { overflow: hidden; }

/* ICONS: inline SVGs from surf_icon() (PHP) and icon() (JS). They use currentColor. */
.surf-icon { display: block; flex-shrink: 0; }
.icon-circle {
  width: 28px; height: 28px; border-radius: 0; border: 1px solid #e0e0e0; background: #ffffff;
  color: #1f1f1f; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-sizing: border-box; transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-circle-dark { background: #1f1f1f; border-color: #1f1f1f; color: #ffffff; }

/* STEP 1: HERO & INCLUSIONS */
.hero-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.service-badge {
  background: #f2f2f2; color: #1f1f1f; font-size: 11px; font-weight: 500;
  text-transform: uppercase; padding: 4px 10px; border-radius: 0; display: inline-block; margin-bottom: 6px; border-color: #e0e0e0
;
}
.package-title { font-size: 24px; font-weight: 600; margin: 0; }
.package-price-tag { text-align: right; white-space: nowrap; }
.from-label { font-size: 12px; color: #666666; display: block; }
.price-val { font-size: 24px; font-weight: 800; color: #1f1f1f; }
.period { font-size: 13px; color: #666666; }
.package-intro-text { color: #4d4d4d; font-size: 14px; line-height: 1.5; margin: 8px 0 20px 0; }

.slider-wrapper { position: relative; overflow: hidden; border-radius: 0; height: 220px; background: #e0e0e0; margin-bottom: 24px; }
.slider-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.slider-track img { width: 100%; height: 100%; flex-shrink: 0; object-fit: cover; }
.slider-nav { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; }
.slider-nav button {
  background: rgba(15, 23, 42, 0.75); color: #fff; border: none; width: 32px; height: 32px;
  border-radius: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; backdrop-filter: blur(4px);
}
.slider-nav button:hover { background: rgba(15, 23, 42, 0.9); }

.inclusions-section { border-top: 1px solid #f2f2f2; padding-top: 20px; }
.inclusions-title { font-size: 18px; font-weight: 600; margin: 0 0 14px 0; color: #1f1f1f; }
.inclusions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13.5px; color: #333333; margin-bottom: 20px; }
.inclusion-item { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.inclusion-check {
  width: 18px; height: 18px; border-radius: 0; background: #ececec; color: #555555;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

.btn-primary-large {
  width: 100%; background: #1f1f1f; color: #ffffff; border: 1px solid #0003; padding: 10px 24px;
  border-radius: 0; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.15s ease;
}
.btn-primary-large:hover:not(:disabled) { background: #1f1f1f; }
.btn-primary-large:disabled { background: #999999; cursor: not-allowed; opacity: 0.7; }

/* ==========================================================================
   STEP 2: ROOM OPTIONS
   ========================================================================== */
.step-nav-header { margin-bottom: 12px; }
.btn-back-link {
  background: none; border: none; font-size: 13px; color: #666666; font-weight: 600; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-back-link:hover { color: #1f1f1f; }
.btn-back-link:hover .icon-circle { background: #f2f2f2; border-color: #c8c8c8; }

.section-title { font-size: 24px; font-weight: 600; color: #1f1f1f; margin: 0 0 16px 2px; }
.rooms-stack { display: flex; flex-direction: column; gap: 12px; }

/* Main card container using wrap layout */
.surf-app-container .room-option-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
  column-gap: 16px;
}
.surf-app-container .room-option-card:hover { border-color: #c8c8c8; }

/* 1. Image in its own isolated div */
.surf-app-container .room-media-col {
  flex: 0 0 92px;
}
.surf-app-container .room-media-col img,
.surf-app-container .room-thumb-img {
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  background: #f2f2f2;
  display: block;
}
.surf-app-container .room-thumb-empty { background: #f2f2f2; }

/* 2. Text in its own isolated div, taking up remaining row space */
.surf-app-container .room-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  column-gap: 4px;
}
.surf-app-container .room-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0;
  line-height: 1.3;
}
.surf-app-container .room-summary {
  font-size: 13.5px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.surf-app-container .room-capacity {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #555555;
}

/* 3. Button completely separated into its own new line div, pushed to the right */
.surf-app-container .room-action-col {
  flex: 0 0 100%;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}
.surf-app-container .btn-room-details {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  color: #333333;
  padding: 5px 14px;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.surf-app-container .btn-room-details:hover {
  background: #f7f7f7;
  border-color: #999999;
  color: #1f1f1f;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 600px) {
  .surf-app-container .room-option-card { column-gap: 12px; padding: 12px; }
  .surf-app-container .room-media-col { flex-basis: 84px; }
  .surf-app-container .room-media-col img,
  .surf-app-container .room-thumb-img { width: 84px; height: 84px; }
  .surf-app-container .room-name { font-size: 15px; }
  .surf-app-container .room-summary { font-size: 12.5px; }
  .surf-app-container .room-capacity { font-size: 12px; }
  .surf-app-container .btn-room-details { padding: 5px 12px; font-size: 12px; }

}

/* STEP 3: FORM */
.room-recap-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff; 
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 12px 12px;
  margin-bottom: 10px;
}
/* Image thumbnail styling */
.recap-media {
  flex-shrink: 0;
}
.recap-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: cover;
  background: #f2f2f2;
  display: block;
}
/* Info area containing label and title/price */
.recap-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.room-recap-btn-chnage {
  display: flex; justify-content: right; align-items: center; 
  margin-bottom: 20px;
}


.recap-title-price-wrap{
  display: flex;
  flex-direction: column;

}
.recap-label { font-size: 12px; text-transform: uppercase; color: #1f1f1f; display: block; }
.recap-price { font-size: 13px; color: #555555; }
.btn-change { background: #ffffff; border: 1px solid #c8c8c8; padding: 6px 14px; border-radius: 0; font-size: 12px; font-weight: 600; cursor: pointer; }

.clean-fields-stack { display: flex; flex-direction: column; gap: 12px; }
.surf-levels-stack { display: flex; flex-direction: column; gap: 12px; }

.clean-input-row {
  display: flex; align-items: center; justify-content: space-between; background: #ffffff;
  border: 1px solid #e0e0e0; border-radius: 0; padding: 14px 18px; box-sizing: border-box; min-height: 52px;
  position: relative; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.clean-input-row:hover { border-color: #c8c8c8; }
.clean-input-row:focus-within { border-color: #1f1f1f; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05); }

.field-label { font-size: 15px; color: #666666; display: flex; align-items: center; gap: 4px; pointer-events: none; }

.field-right-stepper { display: flex; align-items: center; gap: 12px; }
.clean-step-btn {
  background: #f2f2f2; border: none; border-radius: 0; width: 24px; height: 24px;
  font-size: 14px; font-weight: 700; color: #333333; display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0;
}
.clean-step-btn:hover { background: #e0e0e0; }
.clean-step-val { font-size: 15px; color: #333333; font-weight: 500; min-width: 12px; text-align: center; }

/* Surf level: transparent select over the whole row */
.surf-select-wrapper { display: flex; align-items: center; gap: 8px; }
.level-value-display { font-size: 15px; color: #333333; font-weight: 500; pointer-events: none; }
.card-level-overlay-select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
}
.info-dot-btn {
  background: #1f1f1f; color: #ffffff; border: none; border-radius: 0; width: 16px; height: 16px;
  font-size: 10px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; line-height: 1;
  position: relative; z-index: 3; /* above the select so it opens the info popup */
}

.calendar-anchor-wrapper { position: relative; }
.date-left-group { display: flex; align-items: center; gap: 12px; }
.cal-svg-icon { color: #1f1f1f; flex-shrink: 0; pointer-events: none; }
.date-text-display { font-size: 15px; color: #1f1f1f; }
.date-text-display.active-dates { color: #1f1f1f; font-weight: 500; }

.subtotal-clean-val { font-size: 16px; color: #333333; font-weight: 500; }
.cursor-pointer { cursor: pointer; }
.mt-20 { margin-top: 20px; }

/* Extra activities row */
.activities-block { display: flex; flex-direction: column; gap: 8px; }
.activities-trigger-right { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.activities-count { font-size: 13px; color: #555555; font-weight: 600; }
.activities-trigger:hover .icon-circle-dark { background: #1f1f1f; border-color: #1f1f1f; }

.selected-activities { display: flex; flex-direction: column; gap: 8px; }
.selected-activity {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 0; padding: 10px 12px 10px 16px;
}
.selected-activity-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.selected-activity-title { font-size: 14px; font-weight: 600; color: #1f1f1f; }
.icon-btn-remove {
  width: 28px; height: 28px; border-radius: 0; border: 1px solid #e0e0e0; background: #ffffff;
  color: #666666; display: flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 0; flex-shrink: 0; transition: all 0.15s ease;
}
.icon-btn-remove:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

.activity-option-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: #666666; }
.activity-duration { display: inline-flex; align-items: center; gap: 4px; }
.activity-price strong { color: #1f1f1f; font-weight: 700; }

/* Airport pickup and breakfast: one row each under the activities, above the subtotal.
   Check on the left, title and price in the middle, small image on the right. */
.surf-app-container .airport-block { display: flex; flex-direction: column; }
.surf-app-container label.airport-option {
  justify-content: flex-start; gap: 12px; width: 100%; margin: 0;
  padding: 10px 12px 10px 16px; cursor: pointer;
}
.surf-app-container label.airport-option.is-selected { border-color: #1f1f1f; background: #f7f7f7; }
.surf-app-container .airport-option.is-selected .activity-option-check {
  background: #1f1f1f; border-color: #1f1f1f; color: #ffffff;
}
/* Included for this stay: same row, ticked and locked. */
.surf-app-container label.airport-option.is-included { cursor: default; }
.surf-app-container .airport-option.is-included .activity-price strong { color: #047857; }
.surf-app-container .airport-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.surf-app-container .airport-option-title { font-size: 15px; font-weight: 600; line-height: 1.3; color: #1f1f1f; }
.surf-app-container img.airport-option-img {
  display: block; width: 48px; height: 48px; max-width: none; margin: 0;
  border-radius: 0; object-fit: cover; flex-shrink: 0; background: #f2f2f2;
}

/* Calendar popup */
.calendar-popup {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; z-index: 100;
  background: #ffffff; border: 1px solid #e0e0e0; border-radius: 0;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); padding: 20px;
}
.calendar-popup.open { display: block; animation: surfFade 0.2s ease; }
.calendar-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-instruct { font-size: 13px; font-weight: 600; color: #555555; }
.cal-nav-btns { display: flex; gap: 8px; }
.cal-nav-btn {
  background: #f2f2f2; border: 1px solid #e0e0e0; border-radius: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #1f1f1f;
}
.cal-nav-btn:hover { background: #e0e0e0; }
.dual-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 580px) { .dual-calendar { grid-template-columns: 1fr; } }

.month-title { font-size: 14px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.cal-days-header, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.cal-days-header span { font-size: 11px; font-weight: 600; color: #999999; padding-bottom: 6px; }

.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px;
  cursor: pointer; border-radius: 0; user-select: none; position: relative; transition: all 0.15s ease;
}
.cal-cell:hover:not(.disabled):not(.empty):not(.locked-min) { background: #e0e0e0; }
.cal-cell.disabled { color: #c8c8c8; cursor: not-allowed; }
.cal-cell.empty { cursor: default; }
.cal-cell.locked-min { color: #c8c8c8; background: #f7f7f7; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.locked-min::after {
  content: attr(data-min-label); position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%); background: #1f1f1f; color: #ffffff; padding: 4px 8px;
  font-size: 10px; font-weight: 600; text-decoration: none; border-radius: 0; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease; z-index: 10;
}
.cal-cell.locked-min:hover::after { opacity: 1; }
.cal-cell.start-date, .cal-cell.end-date { background: #1f1f1f !important; color: #ffffff !important; font-weight: 700; }
.cal-cell.in-range { background: #ececec; color: #1f1f1f; border-radius: 0; }

/* STEP 4: CHECKOUT FORM */
.checkout-form { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: #1f1f1f; margin-bottom: 6px; }
.req { color: #dc2626; }
.opt { color: #999999; font-weight: 400; font-size: 11px; }

.terms-group { margin: 18px 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #333333; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; accent-color: #1f1f1f; cursor: pointer; }
.checkbox-label a { color: #555555; text-decoration: underline; }

.btn-confirm {
  background: #555555; color: #fff; border: none; padding: 12px 24px;
  border-radius: 0; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s ease;
}
.btn-confirm:hover:not(:disabled) { background: #1f1f1f; }
.btn-confirm:disabled { background: #999999; cursor: not-allowed; opacity: 0.7; }
.btn-secondary { background: #f2f2f2; color: #333333; border: none; padding: 12px 20px; border-radius: 0; font-weight: 600; cursor: pointer; }
.btn-with-icon { display: inline-flex; align-items: center; gap: 10px; padding-left: 12px; }
.btn-with-icon .icon-circle { width: 24px; height: 24px; }
.step-footer { display: flex; justify-content: space-between; margin-top: 28px; }

.summary-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 0; padding: 20px; }
.summary-card h3 { margin: 0 0 14px 0; font-size: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 1px; font-size: 14px; margin-bottom: 8px; }
.summary-row span { color: #1f1f1f; flex-shrink: 0; font-weight: 600; }
.summary-row strong { text-align: right; font-weight: 400; color: #1f1f1f;  }
.summary-row.total { border-top: 1px solid #e0e0e0; padding-top: 10px; margin-top: 10px; font-size: 16px; }
.mt-28 { margin-top: 28px; }

/* MODALS */
.room-modal-backdrop {
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px); 
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999; 
  align-items: center; 
  justify-content: center; 
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
.room-modal-backdrop.active { display: flex; }

.room-modal-card {
  background: #ffffff; 
  max-width: 460px; 
  width: 100%; 
  border-radius: 0; 
  padding: 24px;
  position: relative; 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); 
  box-sizing: border-box;
}

.modal-close-btn {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 0;
  background: #f2f2f2; border: none; color: #4d4d4d; cursor: pointer; padding: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease;
}
.modal-close-btn:hover { background: #e0e0e0; color: #1f1f1f; }

/* Extra activities popup */
.activities-modal-card {
  max-width: 520px; 
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.activities-modal-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #1f1f1f; padding-right: 44px; }
.activities-modal-sub { margin: 0 0 16px; font-size: 13.5px; color: #666666; }
.activity-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.activity-option {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px;
  border: 1px solid #e0e0e0; border-radius: 0; cursor: pointer; background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.activity-option:hover { border-color: #c8c8c8; }
.activity-option.is-selected { border-color: #1f1f1f; background: #f7f7f7; }
.activity-option:focus-within { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); }
.activity-option-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.activity-option-img { width: 64px; height: 64px; border-radius: 0; object-fit: cover; flex-shrink: 0; background: #f2f2f2; }
.activity-option-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.activity-option-title { font-size: 15px; font-weight: 700; color: #1f1f1f; }
.activity-option-desc { font-size: 13px; color: #666666; line-height: 1.4; }
.activity-option-check {
  width: 24px; height: 24px; border-radius: 0; border: 1.5px solid #c8c8c8; color: transparent;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box;
  transition: all 0.15s ease;
}
.activity-option.is-selected .activity-option-check { background: #1f1f1f; border-color: #1f1f1f; color: #ffffff; }

/* ==========================================================================
   ROOM DETAILS POPUP (iOS Safe Fixes Included)
   ========================================================================== */
.surf-app-container .room-modal-card.room-details-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
  box-sizing: border-box;
  -webkit-transform: translateZ(0); /* Fixes iOS Safari card side-clipping */
  transform: translateZ(0);
}
.surf-app-container .room-modal-backdrop.active .room-details-card { animation: surfPop 0.2s ease; }
@keyframes surfPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.surf-app-container .room-details-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 0;
  box-sizing: border-box;
}

/* Header: title left, Close right */
.surf-app-container .surf-rd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.surf-app-container .surf-rd-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f1f1f;
}
.surf-app-container button.surf-rd-close {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid #1f1f1f;
  border-radius: 0;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.surf-app-container button.surf-rd-close:hover { background: #f7f7f7; }

/* Full-width photo slider */
.surf-app-container .surf-rd-gallery {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 0 0 16px;
  border-radius: 0;
  overflow: hidden;
  background: #f2f2f2;
}
.surf-app-container .surf-rd-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
.surf-app-container .surf-rd-track img {
  display: block;
  flex: 0 0 100%;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 0;
}
.surf-app-container button.surf-rd-nav {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
  cursor: pointer;
}
.surf-app-container button.surf-rd-prev { left: 8px; }
.surf-app-container button.surf-rd-next { right: 8px; }

/* Capacity and price, one quiet line */
.surf-app-container .surf-rd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4d4d4d;
}
.surf-app-container .surf-rd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.surf-app-container .surf-rd-meta .is-included { color: #047857; }

/* Description: intro text in grey, lists darker, like the site's pages */
.surf-app-container .surf-rd-desc { font-size: 15px; line-height: 1.6; color: #333333; }
.surf-app-container .surf-rd-desc p { margin: 0 0 10px; color: #666666; }
.surf-app-container .surf-rd-desc h3,
.surf-app-container .surf-rd-desc h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 600; color: #1f1f1f; }
.surf-app-container .surf-rd-desc ol,
.surf-app-container .surf-rd-desc ul { margin: 0 0 10px; padding-left: 22px; }
.surf-app-container .surf-rd-desc ol { list-style: decimal; }
.surf-app-container .surf-rd-desc ul { list-style: disc; }
.surf-app-container .surf-rd-desc li { margin: 0 0 2px; padding: 0; }
.surf-app-container .surf-rd-desc a { color: #555555; text-decoration: underline; }
.surf-app-container .surf-rd-desc > :last-child { margin-bottom: 0; }

/* Button stays visible at the bottom while the text scrolls */
.surf-app-container .surf-rd-footer {
  position: sticky;
  bottom: 0;
  margin: 8px -24px 0;
  padding: 16px 24px 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 30%);
}

/* ==========================================================================
   BRICKS OVERRIDES for inputs (Bricks styles form fields globally)
   ========================================================================== */
.surf-app-container input.styled-input,
.surf-app-container textarea.styled-textarea,
.surf-app-container select.card-level-overlay-select {
  line-height: normal !important;
  box-shadow: none !important;
  outline: none !important;
  color: #1f1f1f !important;
}

.surf-app-container .styled-input {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 0 !important;
  border: 1px solid #e0e0e0 !important;
  font-size: 14px !important;
  background-color: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.surf-app-container .styled-input:focus {
  border-color: #1f1f1f !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.surf-app-container textarea.styled-textarea {
  width: 100% !important;
  min-height: 90px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  border-radius: 0 !important;
  border: 1px solid #e0e0e0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  background-color: #ffffff !important;
  resize: vertical !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.surf-app-container textarea.styled-textarea:focus {
  border-color: #1f1f1f !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.surf-app-container select.card-level-overlay-select {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2 !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Field errors */
.surf-app-container .field-error-msg {
  display: none; font-size: 12px; color: #dc2626 !important; font-weight: 500; margin-top: 5px; line-height: 1.2;
}
.surf-app-container .form-field.has-error input.styled-input {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}
.surf-app-container .form-field.has-error input.styled-input:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}
.surf-app-container .form-field.has-error .field-error-msg,
.surf-app-container .terms-group.has-error .field-error-msg { display: block; }
.surf-app-container .form-field.is-valid input.styled-input { border-color: #10b981 !important; }

.surf-inline-error { font-size: 13px; color: #dc2626; margin: 4px 0 0; line-height: 1.4; }

/* ==========================================================================
   BUTTONS: brand colour + layout (overrides Bricks defaults)
   ========================================================================== */
.btn-primary-large,
.btn-confirm,
.room-option-card .btn-room-details:hover {
  background-color: #1f1f1f !important;
  color: #1f1f1f !important;
  border-color: #1f1f1f !important;
}
.btn-primary-large:hover,
.btn-confirm:hover { filter: brightness(0.95); }

.btn-primary-large:disabled,
.btn-confirm:disabled {
  background-color: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #999999 !important;
  cursor: not-allowed !important;
  filter: none !important;
  opacity: 1 !important;
}

.surf-app-container button.btn-primary-large,
.surf-app-container button.btn-confirm,
.surf-app-container button.btn-secondary,
.surf-app-container button.btn-change,
.surf-app-container button.btn-room-details {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
}
.surf-app-container button.btn-primary-large {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
}
.surf-app-container .step-footer { align-items: center; gap: 12px; }
.surf-app-container button.btn-confirm,
.surf-app-container button.btn-secondary { min-height: 46px; padding: 12px 22px; }

/* AIRBNB-STYLE LENGTH-OF-STAY DISCOUNT BANNER */
.surf-savings-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  background: #f2fbf3;
  border-radius: 0;
}
.savings-icon-wrap {
  width: 24px; height: 24px; min-width: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0; background: #0b6924; color: #fff;
}
.savings-text-wrap { font-size: 14px; line-height: 1.4; font-weight: 500; color: #0b6924; }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 600px) {
  .surf-app-container { padding: 10px; }

  .inclusions-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .activity-option-img { width: 52px; height: 52px; }

  /* Rooms stay one compact row */
  .surf-app-container .room-option-card {
    display: flex;
    flex-wrap: wrap; /* Allows the button row to drop to a new line */
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    column-gap: 12px;
  }

  .surf-app-container .room-option-card img,
  .surf-app-container .room-thumb-img {
    width: 92px;
    height: 92px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    background: #f2f2f2;
  }

  .room-details-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
    gap: 8px; /* space between text and button */
  }
  .surf-app-container .room-thumb-img { width: 84px; height: 84px; }
  .surf-app-container .room-info-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0; /* reset previous right padding */
    min-width: 0;
  }
  .surf-app-container .room-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 4px 0;
    line-height: 1.3;
  }
  .surf-app-container .room-summary {
    font-size: 13.5px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .surf-app-container .room-capacity {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #555555;
  }
  .surf-app-container .btn-room-details {
    align-self: flex-start; /* Keeps it neatly aligned to the left under the text, or use flex-end to push it right */
    background: #ffffff;
    border: 1px solid #c8c8c8;
    color: #333333;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }


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

  /* Room popup slides up from the bottom */
  .surf-app-container .room-details-backdrop { align-items: flex-end; padding: 0; }
  .surf-app-container .room-modal-card.room-details-card {
    max-width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 0 !important;
  }
  .surf-app-container .room-modal-backdrop.active .room-details-card {
    animation: surfSheet 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .surf-app-container .room-details-content { padding: 20px 16px 0; }
  .surf-app-container .surf-rd-gallery { height: 220px; }
  .surf-app-container .surf-rd-desc { font-size: 14px; }
  .surf-app-container .surf-rd-footer {
    margin: 8px -16px 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@keyframes surfSheet { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .surf-app-container .room-modal-backdrop.active .room-details-card { animation: none; }
}


/* ==========================================================================
   STICKY FOOTERS: step 1, step 3 and the activities popup
   ========================================================================== */
.surf-app-container .surf-sticky-footer { margin-top: 24px; }
.surf-app-container .surf-step3-footer { margin-top: 12px; }
.surf-app-container .surf-step3-footer .subtotal-row { margin-bottom: 20px; }

/* Activities popup: Done stays at the bottom while the list scrolls */
.surf-app-container .activities-modal-card { padding-bottom: 0; }
.surf-app-container .activity-options { margin-bottom: 0; }
.surf-app-container .surf-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0 -24px;
  padding: 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #ffffff 24px);
}

@media (max-width: 600px) {
  /* Button (and subtotal) pinned to the bottom of the screen, with a fade above */
  .surf-app-container .surf-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -10px;
    padding: 32px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #ffffff 32px);
    pointer-events: none; /* the fade doesn't block taps on content behind it */
  }
  .surf-app-container .surf-sticky-footer > * { pointer-events: auto; }

  /* Compact subtotal line above the button */
  .surf-app-container .surf-step3-footer .subtotal-row {
    min-height: 0;
    margin-bottom: 10px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Activities popup slides up from the bottom, like the room popup */
  .surf-app-container .activities-backdrop { align-items: flex-end; padding: 0; }
  .surf-app-container .activities-modal-card {
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 20px 16px 0;
    border-radius: 0;
  }
  .surf-app-container .room-modal-backdrop.active .activities-modal-card {
    animation: surfSheet 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .surf-app-container .activities-modal-card .surf-modal-footer {
    margin: 0 -16px;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* Activity cards: image left, text middle, check right */
  .surf-app-container .activity-option { align-items: flex-start; gap: 12px; padding: 10px; }
  .surf-app-container .activity-option-img { width: 56px; height: 56px; }
  .surf-app-container .activity-option-body { gap: 3px; }
  .surf-app-container .activity-option-title { font-size: 14px; line-height: 1.3; }
  .surf-app-container .activity-option-desc {
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .surf-app-container .activity-option-meta { font-size: 12px; }
  .surf-app-container .activity-option-check { width: 22px; height: 22px; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .surf-app-container .room-modal-backdrop.active .activities-modal-card { animation: none; }
}

/* ==========================================================================
   PART 2. THIS SITE'S LOOK
   ========================================================================== */

/* Square corners everywhere. */
.surf-app-container,
.surf-app-container *,
.surf-app-container *::before,
.surf-app-container *::after { border-radius: 0 !important; }

/* Buttons: #1f1f1f with white text. */
.surf-app-container .btn-primary-large,
.surf-app-container .btn-confirm,
.surf-app-container .room-option-card .btn-room-details:hover {
  background-color: #1f1f1f !important;
  border-color: #1f1f1f !important;
  color: #ffffff !important;
}
.surf-app-container .btn-primary-large:hover:not(:disabled),
.surf-app-container .btn-confirm:hover:not(:disabled) { background-color: #000000 !important; filter: none; }
.surf-app-container .btn-primary-large:disabled,
.surf-app-container .btn-confirm:disabled {
  background-color: #e0e0e0 !important;
  border-color: #e0e0e0 !important;
  color: #999999 !important;
}
.surf-app-container .btn-secondary { background: #ffffff; color: #1f1f1f; border: 1px solid #1f1f1f; }
.surf-app-container .btn-secondary:hover { background: #f2f2f2; }
.surf-app-container .btn-change,
.surf-app-container .btn-room-details { border-color: #1f1f1f; color: #1f1f1f; }
.surf-app-container .info-dot-btn { background: #1f1f1f; color: #ffffff; }
.surf-app-container .checkbox-label a { color: #1f1f1f; }
.surf-app-container .wizard-step { scroll-margin-top: var(--surf-sticky-top, 24px); }


/* ==========================================================================
   TOP BAR: Back on the left, logo in the middle. For pages without the site header.
   ========================================================================== */
.surf-app-container .surf-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin: 0 0 32px; padding: 20px 0; border-bottom: 1px solid #1f1f1f;
}
.surf-app-container a.surf-topbar-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border: 1px solid #1f1f1f; background: #ffffff;
  color: #1f1f1f; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none;
}
.surf-app-container a.surf-topbar-back:hover { background: #1f1f1f; color: #ffffff; }
.surf-app-container a.surf-topbar-logo { display: inline-flex; align-items: center; color: #1f1f1f; text-decoration: none; }
.surf-app-container a.surf-topbar-logo img { display: block; width: auto; height: 36px; max-width: 200px; margin: 0; object-fit: contain; }
.surf-app-container .surf-topbar-name { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.surf-app-container a.surf-topbar-back:focus-visible,
.surf-app-container a.surf-topbar-logo:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 3px; }
@media (max-width: 600px) {
  .surf-app-container .surf-topbar { margin-bottom: 20px; padding: 14px 0; }
  .surf-app-container a.surf-topbar-logo img { height: 28px; max-width: 150px; }
  .surf-app-container a.surf-topbar-back { padding: 8px 10px 8px 8px; font-size: 13px; }
}


/* ==========================================================================
   SERVICE PAGE: images left, text in the middle, booking panel on the right
   ========================================================================== */

/* The page itself is the frame: no card, no shadow, no padding of its own. */
.surf-app-container.surf-page {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #1f1f1f;
}

.surf-app-container .surf-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(340px, 400px);
  gap: 40px;
  align-items: start;
}

/* Left and middle stay in view while the booking panel grows.
   Set --surf-sticky-top on the page if the site has a fixed header. */
.surf-app-container .surf-page-media,
.surf-app-container .surf-page-info { position: sticky; top: var(--surf-sticky-top, 24px); min-width: 0; }

/* Left: image slider */
.surf-app-container.surf-page .slider-wrapper {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: #f2f2f2;
}
.surf-app-container.surf-page .slider-track { position: absolute; inset: 0; height: auto; }
.surf-app-container.surf-page .slider-track img {
  display: block; flex: 0 0 100%; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover;
}
.surf-app-container.surf-page .slider-nav button { width: 40px; height: 40px; background: #1f1f1f; color: #ffffff; backdrop-filter: none; }
.surf-app-container.surf-page .slider-nav button:hover { background: #000000; }

/* Small pictures under the main image: click one to show it. */
.surf-app-container .surf-gallery-thumbs {
  display: flex; gap: 8px; margin: 8px 0 0; padding: 0 0 4px; overflow-x: auto;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.surf-app-container button.surf-gallery-thumb {
  -webkit-appearance: none; appearance: none; flex: 0 0 72px; width: 72px; height: 72px; min-height: 0;
  margin: 0; padding: 0; border: 1px solid #e0e0e0; background: #f2f2f2; cursor: pointer; overflow: hidden;
  opacity: 0.6; transition: opacity 0.15s ease, border-color 0.15s ease;
}
.surf-app-container button.surf-gallery-thumb img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.surf-app-container button.surf-gallery-thumb:hover { opacity: 1; }
.surf-app-container button.surf-gallery-thumb.is-active { opacity: 1; border: 2px solid #1f1f1f; }
@media (max-width: 600px) {
  .surf-app-container button.surf-gallery-thumb { flex-basis: 60px; width: 60px; height: 60px; }
}

/* Middle: text */
.surf-app-container.surf-page .package-title {
  margin: 0 0 12px; padding: 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; line-height: 1.1; color: #1f1f1f;
}
.surf-app-container.surf-page .package-price-tag { margin: 0 0 20px; padding: 0; text-align: left; white-space: normal; }
.surf-app-container.surf-page .from-label { display: inline; font-size: 14px; color: #666666; }
.surf-app-container.surf-page .price-val { font-size: 22px; font-weight: 600; color: #1f1f1f; }
.surf-app-container.surf-page .period { font-size: 14px; color: #666666; }
.surf-app-container.surf-page .package-intro-text { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: #4d4d4d; }
.surf-app-container.surf-page .inclusions-section { padding-top: 24px; border-top: 1px solid #1f1f1f; }
.surf-app-container.surf-page .inclusions-title { margin: 0 0 14px; padding: 0; font-size: 16px; font-weight: 600; color: #1f1f1f; }
.surf-app-container.surf-page .inclusions-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: #333333;
}
.surf-app-container.surf-page .inclusion-item { margin: 0; padding: 0; }
.surf-app-container.surf-page .inclusion-check { background: #1f1f1f; color: #ffffff; margin-top: 2px; }

/* Right: the booking panel, with a visible border */
.surf-app-container .surf-page-panel {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #1f1f1f;
}
.surf-app-container .surf-page-panel .section-title { margin: 0 0 16px; padding: 0; font-size: 20px; }
.surf-app-container .surf-page-panel .form-grid { grid-template-columns: 1fr; }
.surf-app-container .surf-page-panel .room-recap-banner { border-color: #1f1f1f; }
.surf-app-container .surf-page-panel .summary-card { border-color: #1f1f1f; }
.surf-app-container .surf-page-panel .step-footer { flex-wrap: wrap; }
.surf-app-container .surf-page-panel .step-footer .btn-confirm { flex: 1 1 auto; }
.surf-app-container .surf-page-panel h3 { color: #1f1f1f; }
/* Room cards in the panel: image left, text right, and the Details button inside
   the card at the bottom right, on the same line as the price. */
.surf-app-container .surf-page-panel .room-option-card {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; column-gap: 16px;
}
.surf-app-container .surf-page-panel .room-media-col { grid-column: 1; grid-row: 1; }
.surf-app-container .surf-page-panel .room-text-col { grid-column: 2; grid-row: 1; min-height: 92px; }
.surf-app-container .surf-page-panel .room-capacity {
  display: flex; align-items: center; min-height: 30px; margin-top: auto; padding: 6px 84px 0 0;
}
.surf-app-container .surf-page-panel .room-action-col {
  grid-column: 2; grid-row: 1; position: static; align-self: end; justify-self: end;
}
@media (max-width: 600px) {
  .surf-app-container .surf-page-panel .room-option-card { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
  .surf-app-container .surf-page-panel .room-text-col { min-height: 84px; }
}

/* Calendar: opens in place under the dates row, one month at a time (the panel is narrow). */
.surf-app-container .surf-page-panel .calendar-popup {
  position: static; margin-top: 8px; padding: 16px; border: 1px solid #1f1f1f; box-shadow: none;
}
.surf-app-container .surf-page-panel .dual-calendar { grid-template-columns: 1fr; }
.surf-app-container .surf-page-panel .month-col + .month-col { display: none; }
.surf-app-container .surf-page-panel .cal-instruct { color: #1f1f1f; }

/* Narrower screens: images and text share the left column, panel on the right. */
@media (max-width: 1180px) {
  .surf-app-container .surf-page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    grid-template-areas: "media panel" "info panel";
    gap: 32px;
  }
  .surf-app-container .surf-page-media { grid-area: media; position: static; }
  .surf-app-container .surf-page-info { grid-area: info; position: static; }
  .surf-app-container .surf-page-panel { grid-area: panel; position: sticky; top: var(--surf-sticky-top, 24px); }
  .surf-app-container.surf-page .slider-wrapper { aspect-ratio: 4 / 3; }
}

/* Hidden on larger screens: the sheet header and the bottom bar are phone-only. */
.surf-app-container .surf-sheet-head,
.surf-app-container .surf-book-bar { display: none; }

/* Phones and small tablets: one column for images and text. The booking panel
   leaves the page and becomes a sheet that slides up from the bottom when
   "Book now" is tapped. (The JS uses the same 820px width.) */
html.surf-sheet-lock,
html.surf-sheet-lock body { overflow: hidden; }

@media (max-width: 820px) {
  .surf-app-container .surf-page-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info"; gap: 24px; }

  /* Room at the bottom of the page so the bar never covers the last content. */
  .surf-app-container [data-el="booking-view"] { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* The bar pinned to the bottom of the screen */
  .surf-app-container .surf-book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #ffffff; border-top: 1px solid #1f1f1f;
  }
  .surf-app-container .surf-book-bar-price { min-width: 0; font-size: 13px; line-height: 1.2; color: #555555; }
  .surf-app-container .surf-book-bar-price strong { font-size: 20px; font-weight: 600; color: #1f1f1f; }
  .surf-app-container .surf-book-bar button.btn-primary-large { flex: 0 0 auto; width: auto; min-height: 46px; padding: 12px 24px; }

  /* The sheet: the booking panel, full screen, off the bottom until opened */
  .surf-app-container .surf-page-panel {
    position: fixed; top: var(--wp-admin--admin-bar--height, 0px); right: 0; bottom: 0; left: 0; z-index: 9990;
    margin: 0; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); border: 0;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateY(100%); visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.32s;
  }
  .surf-app-container.surf-sheet-open .surf-page-panel {
    transform: none; visibility: visible;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
  }

  /* Sheet header: stays at the top while the sheet scrolls */
  .surf-app-container .surf-sheet-head {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 -16px 16px; padding: 10px 16px; background: #ffffff; border-bottom: 1px solid #1f1f1f;
  }
  .surf-app-container .surf-sheet-title { min-width: 0; font-size: 16px; font-weight: 600; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .surf-app-container button.surf-sheet-close {
    -webkit-appearance: none; appearance: none; flex: 0 0 40px; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; border: 1px solid #1f1f1f; color: #1f1f1f; cursor: pointer;
  }
  .surf-app-container button.surf-sheet-close:hover { background: #1f1f1f; color: #ffffff; }

  /* Subtotal and button pinned to the bottom of the sheet on the dates step */
  .surf-app-container.surf-page .surf-sticky-footer {
    position: sticky; bottom: 0; z-index: 20;
    margin: 0 -16px; padding: 28px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, #ffffff 28px);
    pointer-events: none;
  }
  .surf-app-container.surf-page .surf-sticky-footer > * { pointer-events: auto; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .surf-app-container .surf-page-panel,
  .surf-app-container.surf-sheet-open .surf-page-panel { transition: none; }
}
@media (max-width: 600px) {
  .surf-app-container.surf-page { padding: 0; }
}


/* ==========================================================================
   SERVICE CARDS: the [surf_services] grid and "You may also like"
   ========================================================================== */
.surf-app-container .surf-services-head { margin: 0 0 28px; max-width: 60ch; }
.surf-app-container .surf-services-title { margin: 0 0 8px; padding: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.15; color: #1f1f1f; }
.surf-app-container .surf-services-sub { margin: 0; font-size: 16px; line-height: 1.5; color: #4d4d4d; }

.surf-app-container .surf-grid { display: grid; gap: 24px; margin: 0; padding: 0; }
.surf-app-container .surf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.surf-app-container .surf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.surf-app-container .surf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.surf-app-container a.surf-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #ffffff; border: 1px solid #1f1f1f; color: #1f1f1f; text-decoration: none;
}
.surf-app-container .surf-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f2f2f2; }
.surf-app-container .surf-card-media img.surf-card-img {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform 0.35s ease;
}
.surf-app-container a.surf-card:hover .surf-card-img { transform: scale(1.04); }
.surf-app-container .surf-card-body {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
  padding: 14px 16px; border-top: 1px solid #1f1f1f;
}
.surf-app-container .surf-card-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.surf-app-container .surf-card-price { font-size: 13px; color: #555555; white-space: nowrap; }
.surf-app-container a.surf-card:hover .surf-card-body { background: #1f1f1f; color: #ffffff; }
.surf-app-container a.surf-card:hover .surf-card-price { color: #d6d6d6; }
.surf-app-container a.surf-card:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 3px; }

.surf-app-container .surf-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid #1f1f1f; }
.surf-app-container .surf-related-title { margin: 0 0 24px; padding: 0; font-size: 24px; font-weight: 600; line-height: 1.2; color: #1f1f1f; }

@media (max-width: 900px) {
  .surf-app-container .surf-grid-3,
  .surf-app-container .surf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surf-app-container .surf-grid { gap: 16px; }
}
@media (max-width: 520px) {
  .surf-app-container .surf-grid-2,
  .surf-app-container .surf-grid-3,
  .surf-app-container .surf-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .surf-app-container .surf-card-media { aspect-ratio: 4 / 3; }
  .surf-app-container .surf-related { margin-top: 40px; padding-top: 28px; }
}


/* ==========================================================================
   THANK-YOU VIEW: replaces the whole service page after "Confirm booking"
   ========================================================================== */
.surf-app-container .surf-thanks-view:focus { outline: none; }
.surf-app-container .surf-thanks-view { scroll-margin-top: var(--surf-sticky-top, 24px); animation: surfFade 0.3s ease; }
.surf-app-container .surf-thanks {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 64px; align-items: start; padding: 16px 0 24px;
}
.surf-app-container .surf-thanks-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px 6px 10px;
  background: #1f1f1f; color: #ffffff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.surf-app-container .surf-thanks-title {
  margin: 0 0 16px; padding: 0; font-size: clamp(34px, 5vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: #1f1f1f;
}
.surf-app-container .surf-thanks-lead { margin: 0 0 40px; max-width: 46ch; font-size: 18px; line-height: 1.5; color: #4d4d4d; }
.surf-app-container .surf-thanks-subtitle { margin: 0 0 4px; padding: 0; font-size: 16px; font-weight: 600; color: #1f1f1f; }

.surf-app-container .surf-thanks-steps { margin: 0; padding: 0; list-style: none; }
.surf-app-container .surf-thanks-step { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 18px 0; border-bottom: 1px solid #e0e0e0; }
.surf-app-container .surf-thanks-step-num {
  flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #1f1f1f; font-size: 14px; font-weight: 600; color: #1f1f1f;
}
.surf-app-container .surf-thanks-step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.surf-app-container .surf-thanks-step-body strong { font-size: 16px; font-weight: 600; color: #1f1f1f; }
.surf-app-container .surf-thanks-step-body span { font-size: 14.5px; line-height: 1.5; color: #555555; overflow-wrap: anywhere; }
.surf-app-container button.surf-thanks-btn { display: inline-flex; width: auto; margin-top: 32px; padding: 14px 28px; }

.surf-app-container .surf-thanks-summary { padding: 28px; background: #ffffff; border: 1px solid #1f1f1f; }
.surf-app-container .surf-thanks-summary .surf-thanks-subtitle { margin-bottom: 12px; font-size: 18px; }
.surf-app-container .surf-thanks-rows { margin: 0; padding: 0; }
.surf-app-container .surf-thanks-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 11px 0; border-bottom: 1px solid #e0e0e0;
}
.surf-app-container .surf-thanks-row dt { margin: 0; padding: 0; font-size: 14px; font-weight: 400; color: #666666; }
.surf-app-container .surf-thanks-row dd { margin: 0; padding: 0; font-size: 14.5px; font-weight: 600; color: #1f1f1f; text-align: right; overflow-wrap: anywhere; }
.surf-app-container .surf-thanks-row.is-total { padding: 16px 0; border-bottom: 0; }
.surf-app-container .surf-thanks-row.is-total dt,
.surf-app-container .surf-thanks-row.is-total dd { font-size: 20px; font-weight: 600; color: #1f1f1f; }
.surf-app-container .surf-thanks-row.is-deposit { padding: 12px 14px; border-bottom: 0; background: #1f1f1f; }
.surf-app-container .surf-thanks-row.is-deposit dt,
.surf-app-container .surf-thanks-row.is-deposit dd { color: #ffffff; }
.surf-app-container .surf-thanks-status { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: #555555; }

@media (max-width: 900px) {
  .surf-app-container .surf-thanks { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 0; }
  .surf-app-container .surf-thanks-lead { margin-bottom: 28px; font-size: 16px; }
  .surf-app-container .surf-thanks-summary { padding: 20px 16px; }
  .surf-app-container button.surf-thanks-btn { display: flex; width: 100%; }
}

/* ===================================================================
   Surf lessons page ([data-surf-lessons])
   =================================================================== */
.surf-app-container .surf-lesson-note {
  margin: 14px 0 0; padding: 12px 14px; background: #f7f7f7; border-left: 3px solid #1f1f1f;
  font-size: 13.5px; line-height: 1.5; color: #444444;
}
.surf-app-container .clean-fields-stack .surf-lesson-note { margin: 0; }
.surf-app-container .surf-lesson-date { cursor: pointer; }
.surf-app-container .surf-lesson-date .field-label { pointer-events: none; }
.surf-app-container .surf-date-input {
  border: 0; background: transparent; padding: 0; margin: 0; min-width: 0;
  font: inherit; font-size: 15px; font-weight: 500; color: #1f1f1f; text-align: right; cursor: pointer;
  -webkit-appearance: none; appearance: none; outline: none;
}
.surf-app-container .surf-date-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }
.surf-app-container .surf-lesson-date.has-error { border-color: #dc2626; }
.surf-app-container .surf-lessons-page .subtotal-clean-val { font-weight: 600; color: #1f1f1f; white-space: pre; }
.surf-app-container .surf-lessons-page .room-option-card.selected { border-color: #1f1f1f; }
.surf-app-container .surf-lessons-page .recap-thumb[hidden] { display: none; }

/* Booking policy link in the checkbox line, and its popup */
.surf-app-container button.surf-policy-link {
  display: inline; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; min-height: 0; width: auto;
  font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.surf-app-container button.surf-policy-link:hover { color: #000000; }
.surf-app-container button.surf-policy-link:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.surf-app-container .surf-policy-body h2 { margin: 16px 0 6px; font-size: 16px; font-weight: 600; color: #1f1f1f; }
.surf-app-container .surf-policy-body > :first-child { margin-top: 0; }
.surf-app-container .surf-policy-body strong { color: #1f1f1f; }
