.hap-booking {
  --hap-orange: #f4510b;
  --hap-orange-dark: #cf3d00;
  --hap-text: #202020;
  --hap-muted: #6b6b6b;
  --hap-border: #e7e2dd;
  --hap-surface: #fffdfa;
  --hap-soft: #fff3ea;
  --hap-error: #b42318;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px);
  color: var(--hap-text);
  background: var(--hap-surface);
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(55, 35, 20, .12);
  font-family: inherit;
  line-height: 1.45;
}

/* The new draft page uses the full content width so the tour cards are the
 * first useful thing visitors see and are not squeezed by the theme sidebar. */
body.page-id-1487 #main-content > .container {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

body.page-id-1487 #content-area {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

body.page-id-1487 #left-area {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-id-1487 #main-content .container::before {
  display: none !important;
}

body.page-id-1487 #sidebar {
  display: none;
}

body.page-id-1487 .entry-title.main_title {
  display: none;
}

body.page-id-1487 .hap-booking {
  width: calc(100% - 48px) !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px 0 38px;
  border-radius: 0;
  box-shadow: none;
}

/* Divi's desktop right-column gutter remains in place so the reservation
 * panel never overflows the page. Compensate for half of that gutter so the
 * panel itself is visually centered in the viewport. */
@media (min-width: 981px) {
  body.page-id-1487 .hap-booking {
    position: relative;
    left: 4vw;
  }
}

@media (max-width: 980px) {
  body.page-id-1487 .hap-booking {
    left: 0;
  }
}

body.page-id-1487 .hap-booking__intro,
body.page-id-1487 .hap-progress,
body.page-id-1487 .hap-step {
  margin-left: 0;
  margin-right: 0;
}

body.page-id-1487 .hap-booking__intro {
  max-width: none;
  margin-bottom: 16px;
}

body.page-id-1487 .hap-booking__eyebrow {
  display: none;
}

body.page-id-1487 .hap-booking__intro h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

body.page-id-1487 .hap-booking__intro p:last-child {
  font-size: .98rem;
}

body.page-id-1487 .hap-progress {
  margin-bottom: 20px;
  padding-bottom: 12px;
  justify-content: center;
}

body.page-id-1487 .hap-step__heading {
  margin-bottom: 14px;
}

body.page-id-1487 .hap-step__number {
  display: none;
}

body.page-id-1487 .hap-bookings {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

body.page-id-1487 .hap-bookings[data-bookings] {
  display: none;
}

body.page-id-1487 .hap-booking-row__topline {
  margin-bottom: 2px;
}

body.page-id-1487 .hap-booking-row:not([data-booking-template]) {
  margin-bottom: 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--hap-border);
  border-left: 4px solid var(--hap-orange);
  border-radius: 12px;
  background: #fff;
}

body.page-id-1487 .hap-booking-row__tour-name {
  margin: -2px 0 8px;
}

body.page-id-1487 .hap-grid--tour-meta {
  gap: 12px;
  margin-top: 8px;
}

.hap-booking *,
.hap-booking *::before,
.hap-booking *::after { box-sizing: border-box; }

.hap-booking__intro { max-width: 760px; margin-bottom: 30px; }
.hap-booking__eyebrow { margin: 0 0 8px; color: var(--hap-orange); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hap-booking h2, .hap-booking h3, .hap-booking h4 { margin: 0 0 10px; line-height: 1.15; }
.hap-booking__intro h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.hap-booking__intro p:last-child { margin: 0; color: var(--hap-muted); font-size: 1.08rem; }

.hap-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 36px; padding: 0 0 20px; border-bottom: 0; }
.hap-progress__item { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; color: var(--hap-muted); background: transparent; cursor: pointer; font: inherit; font-weight: 700; }
.hap-progress__item:disabled { cursor: default; opacity: .72; }
.hap-progress__item span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #cfc8c1; border-radius: 50%; color: var(--hap-muted); }
.hap-progress__item.is-active { color: var(--hap-text); }
.hap-progress__item.is-active span { border-color: var(--hap-orange); color: #fff; background: var(--hap-orange); }
.hap-progress__item:not(:last-child)::after { width: clamp(20px, 10vw, 130px); height: 1px; margin-left: 5px; background: var(--hap-border); content: ""; }

.hap-step__heading { margin-bottom: 24px; }
.hap-step__heading p:last-child { margin: 0; color: var(--hap-muted); }
.hap-step__number { margin: 0 0 6px; color: var(--hap-orange); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hap-booking-row { margin-bottom: 18px; padding: 22px; border: 1px solid var(--hap-border); border-radius: 16px; background: #fff; }
.hap-booking-row__topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hap-booking-row__topline h4 { margin: 0; }
.hap-booking-row__tour-name { margin: -7px 0 16px; color: var(--hap-orange-dark); font-size: 1.05rem; font-weight: 800; }
.hap-link-button { border: 0; color: var(--hap-orange-dark); background: transparent; cursor: pointer; font: inherit; font-size: .88rem; text-decoration: underline; }

.hap-grid { display: grid; gap: 18px; }
.hap-grid--tour-meta { grid-template-columns: 1.25fr .9fr .65fr; margin-top: 18px; }
.hap-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hap-tour-choices { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.hap-tour-choices legend { display: block; margin-bottom: 12px; font-weight: 800; }
.hap-tour-choices legend b { color: var(--hap-orange); }
.hap-selected-tours { margin: 16px 0 0; padding: 10px 12px 12px; border: 1px solid #f3c7b1; border-radius: 12px; background: #fff8f4; }
.hap-selected-tours[hidden] { display: none; }
.hap-selected-tours__heading { margin: 0 0 8px; color: var(--hap-orange-dark); font-size: .82rem; font-weight: 800; }
.hap-selected-tours__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hap-selected-tour { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #f0d7ca; border-radius: 9px; color: var(--hap-text); background: #fff; }
.hap-selected-tour__check { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--hap-orange); font-size: .75rem; font-weight: 900; line-height: 1; }
.hap-selected-tour__copy { min-width: 0; flex: 1 1 auto; font-size: .78rem; line-height: 1.25; }
.hap-selected-tour__copy > span { color: var(--hap-muted); }
.hap-selected-tour__copy strong { display: block; overflow-wrap: anywhere; font-size: .8rem; }
.hap-selected-tour__copy small { display: block; margin-top: 2px; color: var(--hap-orange-dark); font-size: .74rem; font-weight: 750; }
.hap-selected-tour__remove { flex: 0 0 auto; padding: 4px 6px; border: 1px solid #f0b79e; border-radius: 6px; color: var(--hap-orange-dark); background: #fff8f4; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 750; }
.hap-selected-tour__remove:hover { color: #fff; background: var(--hap-orange); border-color: var(--hap-orange); }
.hap-selected-tour__remove:focus-visible { outline: 3px solid rgba(244, 81, 11, .25); outline-offset: 2px; }
.hap-tour-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hap-tour-card { position: relative; min-width: 0; cursor: pointer; }
.hap-tour-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hap-tour-card__content { position: relative; display: flex; height: 100%; min-height: 330px; flex-direction: column; gap: 9px; padding: 10px; border: 1px solid var(--hap-border); border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.hap-tour-card:hover .hap-tour-card__content { border-color: #f7a17c; box-shadow: 0 9px 22px rgba(89, 45, 20, .1); transform: translateY(-2px); }
.hap-tour-card > input:focus-visible + .hap-tour-card__content { outline: 3px solid rgba(244, 81, 11, .28); outline-offset: 3px; }
.hap-tour-card > input:checked + .hap-tour-card__content { border: 2px solid var(--hap-orange); box-shadow: 0 10px 26px rgba(244, 81, 11, .16); }
.hap-tour-card > input:checked + .hap-tour-card__content::after { position: absolute; top: 20px; right: 20px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--hap-orange); content: "✓"; font-weight: 900; }
.hap-tour-card__visual { display: contents; }
.hap-tour-card__media { display: block; height: 132px; overflow: hidden; border-radius: 8px; background: #ece6e0; }
.hap-tour-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hap-tour-card__times { display: flex; flex-wrap: wrap; gap: 5px; }
.hap-tour-card__times > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; color: #fff; background: #4d4b49; font-size: .79rem; font-weight: 800; }
.hap-time-value { display: inline; }
.hap-time-icon { display: none; width: 1.1em; height: 1.1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hap-tour-card__times small { color: #f6ddd1; font-size: .67rem; font-weight: 600; }
.hap-tour-card strong { display: block; min-height: 2.36em; font-size: 1rem; line-height: 1.18; }
.hap-tour-card__description { min-height: 3.6em; color: #514b47; font-size: .84rem; }
.hap-tour-card__meta { display: flex; align-items: flex-start; gap: 6px; color: #5a514b; font-size: .75rem; line-height: 1.25; }
.hap-card-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; color: var(--hap-orange); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.hap-tour-card__action { align-self: center; display: inline-flex; min-height: 34px; align-items: center; justify-content: center; margin-top: auto; padding: 6px 12px; border: 1px solid var(--hap-orange); border-radius: 999px; color: var(--hap-orange-dark); background: #fff; font-size: .78rem; font-weight: 800; text-align: center; }
.hap-tour-card:hover .hap-tour-card__action { color: #fff; background: var(--hap-orange); }
.hap-tour-card > input:checked + .hap-tour-card__content .hap-tour-card__action { color: #fff; background: var(--hap-orange); }

/* Card design 2: the reference's compact white cards with orange time pills,
 * a divider before the metadata, and a full-width action at the bottom. */
.hap-card-style--accent .hap-tour-card__content {
  min-height: 0;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
}
.hap-card-style--accent .hap-tour-card__visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hap-card-style--accent .hap-tour-card__media {
  height: auto;
  min-height: 0;
  aspect-ratio: 1.65 / 1;
  border-radius: 12px;
}
.hap-card-style--accent .hap-tour-card__times { gap: 8px; }
.hap-card-style--accent .hap-tour-card__times > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--hap-orange);
  font-size: .8rem;
}
.hap-card-style--accent .hap-tour-card__times small { color: #fff3ea; font-size: .7rem; }
.hap-card-style--accent .hap-tour-card strong {
  min-height: 2.36em;
  font-size: 1.05rem;
  line-height: 1.18;
}
.hap-card-style--accent .hap-tour-card__description {
  min-height: 3.45em;
  color: #514b47;
  font-size: .86rem;
  line-height: 1.45;
}
.hap-card-style--accent .hap-tour-card__description + .hap-tour-card__meta {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--hap-border);
}
.hap-card-style--accent .hap-tour-card__meta {
  gap: 8px;
  color: #5a514b;
  font-size: .8rem;
  line-height: 1.35;
}
.hap-card-style--accent .hap-tour-card__action {
  align-self: stretch;
  min-height: 48px;
  padding: 10px 14px;
  border-width: 1px;
  border-radius: 10px;
  font-size: .9rem;
}

.hap-tour-popover[hidden] { display: none; }
.hap-tour-popover { position: absolute; top: 16px; right: 16px; left: 16px; z-index: 5; display: flex; max-height: calc(100% - 32px); flex-direction: column; gap: 12px; overflow: auto; padding: 14px; border: 1px solid var(--hap-orange); border-radius: 14px; background: rgba(255, 253, 250, .98); box-shadow: 0 14px 32px rgba(69, 36, 18, .22); }
.hap-tour-popover__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hap-tour-popover__eyebrow { margin: 0 0 3px; color: var(--hap-orange); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hap-tour-popover__header h4 { margin: 0; color: var(--hap-text); font-size: .95rem; line-height: 1.18; }
.hap-tour-popover__close { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--hap-border); border-radius: 50%; color: var(--hap-muted); background: #fff; cursor: pointer; font: inherit; font-size: 1.2rem; line-height: 1; }
.hap-tour-popover__close:hover { color: var(--hap-orange-dark); border-color: var(--hap-orange); }
body.page-id-1487 .hap-tour-popover .hap-booking-row { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.hap-tour-popover .hap-booking-row__topline,
.hap-tour-popover .hap-booking-row__tour-name { display: none; }
.hap-tour-popover .hap-grid--tour-meta { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
.hap-tour-popover .hap-field { gap: 5px; font-size: .8rem; }
.hap-tour-popover .hap-field input,
.hap-tour-popover .hap-field select { min-height: 42px; padding: 8px 10px; font-size: .84rem; }
.hap-tour-popover .hap-help,
.hap-tour-popover .hap-error { font-size: .72rem; }
.hap-tour-popover__actions { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px; margin-top: auto; }
.hap-tour-popover__actions .hap-button { min-height: 40px; padding: 8px 10px; font-size: .78rem; }
.hap-tour-popover__actions .hap-link-button { padding: 4px; font-size: .72rem; }

.hap-overlap-dialog[hidden] { display: none; }
.hap-overlap-dialog { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 20px; }
.hap-overlap-dialog__backdrop { position: absolute; inset: 0; background: rgba(32, 32, 32, .5); }
.hap-overlap-dialog__panel { position: relative; z-index: 1; width: min(100%, 480px); padding: 24px; border: 1px solid #f0c2ad; border-radius: 16px; color: var(--hap-text); background: var(--hap-surface); box-shadow: 0 22px 70px rgba(32, 20, 12, .28); }
.hap-overlap-dialog__panel:focus { outline: 3px solid rgba(244, 81, 11, .28); outline-offset: 3px; }
.hap-overlap-dialog__eyebrow { margin: 0 0 6px; color: var(--hap-orange); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hap-overlap-dialog__panel h3 { margin-bottom: 10px; color: var(--hap-orange-dark); font-size: 1.35rem; }
.hap-overlap-dialog__panel > p:not(.hap-overlap-dialog__eyebrow) { margin: 0; color: var(--hap-muted); font-size: .98rem; line-height: 1.5; }
.hap-overlap-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.hap-overlap-dialog__actions .hap-button { min-width: 132px; }
body.hap-overlap-dialog-open { overflow: hidden; }

.hap-selection-help { margin: 12px 0 0; color: var(--hap-muted); font-size: .88rem; }
.hap-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.hap-field--full { grid-column: 1 / -1; }
.hap-field > span { font-weight: 800; }
.hap-field b, .hap-checkbox b { color: var(--hap-orange); }
.hap-field input, .hap-field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d8d0c8; border-radius: 9px; color: var(--hap-text); background: #fff; font: inherit; }
.hap-field input:focus, .hap-field select:focus, .hap-button:focus-visible, .hap-progress__item:focus-visible, .hap-link-button:focus-visible { outline: 3px solid rgba(244, 81, 11, .25); outline-offset: 2px; border-color: var(--hap-orange); }
.hap-field input:disabled, .hap-field select:disabled { color: #8b857f; background: #f3f0ed; cursor: not-allowed; }
.hap-help { color: var(--hap-muted); font-size: .82rem; }
.hap-error { min-height: 1.2em; color: var(--hap-error); font-size: .82rem; }
.hap-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.hap-checkbox input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--hap-orange); }
.hap-step__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.hap-step__actions--split { justify-content: space-between; }
.hap-button { min-height: 48px; padding: 11px 22px; border: 1px solid var(--hap-orange); border-radius: 9px; color: #fff; background: var(--hap-orange); cursor: pointer; font: inherit; font-weight: 800; }
.hap-button:hover { background: var(--hap-orange-dark); border-color: var(--hap-orange-dark); }
.hap-button:disabled { opacity: .55; cursor: wait; }
.hap-button--secondary { color: var(--hap-orange-dark); background: #fff; }
.hap-button--secondary:hover { color: #fff; background: var(--hap-orange); }
.hap-summary { display: grid; gap: 14px; }
.hap-summary__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 16px; padding: 18px; border: 1px solid var(--hap-border); border-radius: 14px; background: var(--hap-soft); }
.hap-summary__image { display: block; width: 96px; height: 76px; object-fit: cover; border-radius: 9px; }
.hap-summary__content { min-width: 0; }
.hap-summary__item h4 { color: var(--hap-orange-dark); }
.hap-summary__item p { margin: 7px 0 0; }
.hap-summary__payment { color: #513725; font-size: .92rem; }
.hap-status { margin-top: 18px; padding: 13px 15px; border-radius: 9px; color: #145a3b; background: #e9f6ef; }
.hap-status:empty { display: none; }
.hap-success { max-width: 720px; margin: 12px auto 0; padding: clamp(28px, 5vw, 56px); border: 1px solid #f6b08f; border-radius: 18px; color: var(--hap-text); background: var(--hap-soft); text-align: center; }
.hap-success:focus { outline: 3px solid rgba(244, 81, 11, .25); outline-offset: 3px; }
.hap-success__eyebrow { margin: 0 0 8px; color: var(--hap-orange); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hap-success h3 { margin-bottom: 12px; color: var(--hap-orange-dark); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hap-success__reference { margin: 18px 0 24px; font-weight: 700; }
.hap-success .hap-button { min-width: 190px; }
.hap-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 760px) {
  .hap-tour-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hap-selected-tours__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hap-grid--tour-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hap-summary__item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .hap-summary__image { width: 72px; height: 60px; }
}

@media (max-width: 640px) {
  .hap-booking { padding: 24px 16px; border-radius: 18px; }
  body.page-id-1487 .hap-booking { padding: 20px 0 28px; }
  body.page-id-1487 .hap-booking__intro,
  body.page-id-1487 .hap-progress,
  body.page-id-1487 .hap-step { margin-left: 0; margin-right: 0; }
  .hap-selected-tours__list { grid-template-columns: 1fr; }
  .hap-progress { align-items: flex-start; justify-content: space-between; }
  .hap-progress__item { flex-direction: column; gap: 5px; text-align: center; font-size: .78rem; }
  .hap-progress__item:not(:last-child)::after { display: none; }
  .hap-tour-card-grid, .hap-grid--tour-meta, .hap-grid--contact { grid-template-columns: 1fr; }
  .hap-tour-popover { top: 12px; right: 12px; left: 12px; max-height: calc(100% - 24px); padding: 12px; }
  .hap-tour-popover__actions { grid-template-columns: 1fr 1fr; }
  .hap-overlap-dialog { padding: 16px; }
  .hap-overlap-dialog__panel { padding: 20px; }
  .hap-overlap-dialog__actions { flex-direction: column-reverse; }
  .hap-overlap-dialog__actions .hap-button { width: 100%; }
  .hap-summary__item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .hap-summary__image { width: 72px; height: 60px; }
  .hap-field--full { grid-column: auto; }
  .hap-step__actions, .hap-step__actions--split { flex-direction: column-reverse; align-items: stretch; }
  .hap-button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hap-booking .hap-step.is-active { animation: hap-fade-in .18s ease-out; }
}

@keyframes hap-fade-in {
  from { opacity: .3; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
