/* Zauber Zuber booking modal + mobile portrait hardening.
   Kept separate so the existing site stylesheet can stay untouched. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

button.button {
  cursor: pointer;
  font-family: inherit;
}

.booking-modal {
  width: min(1080px, calc(100vw - 28px));
  max-width: 1080px;
  //height: min(820px, calc(100dvh - 28px));
  //max-height: calc(100dvh - 28px);
  height: 100vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.booking-modal::backdrop {
  background: rgba(10, 14, 13, .82);
  backdrop-filter: blur(10px);
}

.booking-modal-shell {
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-top: 7px solid var(--turquoise);
}

.booking-modal-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 34px clamp(28px, 5vw, 58px) 26px;
  border-bottom: 1px solid var(--line);
}

.booking-modal-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
}

.booking-modal-header .eyebrow {
  margin-bottom: 12px;
}

.booking-step-indicator {
  padding-right: 58px;
  color: #756f66;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.booking-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.booking-close:hover,
.booking-close:focus-visible {
  background: var(--turquoise-wash);
  border-color: var(--turquoise);
}

.booking-modal-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.booking-step {
  display: none;
  min-height: 100%;
}

.booking-step.is-active {
  display: block;
}

.booking-step-inner {
  padding: clamp(28px, 5vw, 56px);
}

.booking-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.booking-calendar-toolbar p {
  margin: 0;
  max-width: 520px;
  color: #625c54;
}

.booking-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.booking-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.booking-nav button:hover:not(:disabled),
.booking-nav button:focus-visible:not(:disabled) {
  border-color: var(--turquoise);
  background: var(--turquoise-wash);
}

.booking-nav button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.booking-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.booking-calendar {
  min-width: 0;
}

.booking-calendar-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
}

.booking-weekdays,
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.booking-weekdays {
  margin-bottom: 6px;
}

.booking-weekdays span {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: #8a8379;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.booking-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  font-size: 13px;
  transition: background .15s, border-color .15s, color .15s;
}

.booking-day:hover:not(:disabled),
.booking-day:focus-visible:not(:disabled) {
  border-color: var(--turquoise);
  outline: none;
}

.booking-day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--turquoise-deep);
  transform: translateX(-50%);
}

.booking-day.is-range {
  background: var(--turquoise-wash);
  border-radius: 0;
}

.booking-day.is-start,
.booking-day.is-end {
  background: var(--turquoise);
  color: var(--ink);
  border-color: var(--turquoise);
  border-radius: 50%;
  font-weight: 700;
}

.booking-day.is-blocked,
.booking-day.is-past {
  color: #b5aea4;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.booking-day.is-outside {
  visibility: hidden;
  pointer-events: none;
}

.booking-calendar-loading {
  padding: 44px 0;
  color: #756f66;
  text-align: center;
}

.booking-selection {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.booking-selection-copy {
  min-width: 0;
}

.booking-selection-label {
  display: block;
  margin-bottom: 5px;
  color: #7d766d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.booking-selection-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.booking-selection .button {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--ink);
}

.booking-selection .button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.booking-message {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--turquoise);
  background: var(--turquoise-wash);
  font-size: 13px;
}

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

.booking-message.is-error {
  border-left-color: #a64a3c;
  background: rgba(166, 74, 60, .08);
}


.booking-price-card {
  margin: 0 0 30px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(35, 142, 145, .28);
  background: linear-gradient(135deg, rgba(79, 190, 188, .11), rgba(255, 255, 255, .22));
}

.booking-price-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.booking-price-kicker {
  display: block;
  margin-bottom: 5px;
  color: #777068;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.booking-price-total {
  display: block;
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.booking-price-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(35, 142, 145, .35);
  color: var(--turquoise-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.booking-price-lines {
  display: grid;
  gap: 8px;
  padding: 17px 0 14px;
}

.booking-price-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.booking-price-lines strong {
  white-space: nowrap;
}

.booking-price-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #777068;
  font-size: 10px;
  line-height: 1.45;
}

.booking-price-meta > :first-child {
  max-width: 560px;
}

.booking-price-card.is-loading .booking-price-total,
.booking-price-card.is-loading [data-price-delivery] {
  opacity: .55;
}

.booking-price-card.is-error {
  border-color: rgba(166, 74, 60, .32);
  background: rgba(166, 74, 60, .05);
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.booking-field {
  min-width: 0;
}

.booking-field.is-wide {
  grid-column: 1 / -1;
}

.booking-field label,
.booking-field legend {
  display: block;
  margin: 0 0 7px;
  color: #625c54;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .45);
  color: var(--ink);
  outline: none;
}

.booking-field textarea {
  min-height: 92px;
  resize: vertical;
}

.booking-field input:focus,
.booking-field textarea:focus {
  border-color: var(--turquoise-deep);
  box-shadow: 0 0 0 3px var(--turquoise-wash);
}

.booking-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-choice {
  position: relative;
}

.booking-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-choice span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}

.booking-choice input:checked + span {
  border-color: var(--turquoise-deep);
  background: var(--turquoise-wash);
}

.booking-choice input:focus-visible + span {
  outline: 2px solid var(--turquoise-deep);
  outline-offset: 2px;
}

.booking-autocomplete {
  position: relative;
}

.booking-suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  max-height: 220px;
  overflow-y: auto;
}

.booking-suggestions li {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.booking-suggestions li:hover,
.booking-suggestions li:focus-visible {
  background: var(--turquoise-wash);
}

.booking-address {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: 1.4fr .55fr 1fr;
  gap: 20px 22px;
}

.booking-address.is-visible {
  display: grid;
}

.booking-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #514c45;
  font-size: 13px;
  line-height: 1.45;
}

.booking-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--turquoise-deep);
}

.booking-check a,
.booking-check button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.booking-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.booking-back {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #625c54;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.booking-form-actions .button {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--ink);
}

.booking-form-actions .button[aria-busy="true"] {
  opacity: .65;
  cursor: wait;
}

.booking-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.booking-summary > div {
  padding: 15px;
  background: var(--paper-2);
}

.booking-summary small {
  display: block;
  margin-bottom: 5px;
  color: #777068;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.booking-summary strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}

.booking-success {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: clamp(32px, 7vw, 80px);
  text-align: center;
}

.booking-success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--turquoise);
  font-size: 28px;
}

.booking-success h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 400;
  line-height: .98;
}

.booking-success p {
  max-width: 560px;
  margin: 20px auto 0;
  color: #625c54;
}

.booking-success-reference {
  margin-top: 20px !important;
  font-size: 12px;
}

.booking-success .button {
  margin-top: 28px;
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--ink);
}

.booking-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.modal-open {
  overflow: hidden;
}

/* Portrait-phone hardening for the existing site as well as the booking flow. */
@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 28px);
    --shell-wide: calc(100% - 10px);
  }

  .site-header {
    width: 100%;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding-inline: 14px;
  }

  .site-header > .button {
    max-width: 100%;
    min-width: 0;
    padding-inline: 11px;
    white-space: nowrap;
  }

  .hero,
  .hero-content,
  .hero-facts,
  .location-card,
  .rental-box,
  .site-footer,
  .footer-grid {
    min-width: 0;
  }

  .hero {
    min-height: 100svh;
    height: auto;
  }

  .hero h1,
  .intro h2,
  .section-heading h2,
  .pricing h2,
  .split-copy h2,
  .location h2,
  .faq h2,
  .rental h2,
  .final-cta h2 {
    overflow-wrap: anywhere;
  }

  .price-row,
  .pricing-meta p,
  .final-actions,
  .footer-meta {
    min-width: 0;
  }

  .price-row > div {
    min-width: 0;
  }

  .price-label,
  .price-row small {
    overflow-wrap: anywhere;
  }

  .legal-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .legal-modal-inner {
    padding: 30px 20px 36px;
  }

  .legal-modal h2 {
    margin-right: 48px;
    font-size: clamp(42px, 14vw, 62px);
    overflow-wrap: anywhere;
  }

  .modal-close {
    top: 18px;
    right: 16px;
  }

  .booking-modal {
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
  }

  .booking-modal-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px 64px 19px 20px;
  }

  .booking-modal-header h2 {
    font-size: clamp(38px, 12.5vw, 55px);
    overflow-wrap: anywhere;
  }

  .booking-modal-header .eyebrow {
    margin-bottom: 7px;
  }

  .booking-step-indicator {
    padding-right: 0;
  }

  .booking-close {
    top: 17px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .booking-step-inner {
    padding: 24px 18px 30px;
  }

  .booking-calendar-toolbar {
    align-items: flex-start;
  }

  .booking-calendar-toolbar p {
    font-size: 14px;
  }

  .booking-calendars {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-calendar:nth-child(2) {
    display: none;
  }

  .booking-day {
    min-height: 39px;
  }

  .booking-selection {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .booking-selection .button {
    width: 100%;
  }

  .booking-price-head,
  .booking-price-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-price-meta {
    gap: 6px;
  }

  .booking-price-lines > div {
    gap: 12px;
  }

  .booking-form-grid,
  .booking-address,
  .booking-address.is-visible {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-field,
  .booking-field.is-wide,
  .booking-address,
  .booking-address .booking-field {
    grid-column: 1 / -1;
  }

  .booking-summary {
    grid-template-columns: 1fr;
  }

  .booking-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .booking-form-actions .button {
    width: 100%;
  }

  .booking-back {
    align-self: flex-start;
  }
}

@media (max-width: 380px) {
  .site-header .button-small {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .booking-weekdays,
  .booking-days {
    gap: 2px;
  }

  .booking-day {
    min-height: 36px;
    font-size: 12px;
  }
}

.site-header button.button {
  appearance: none;
  background: transparent;
}
.site-header button.button:hover {
  background: white;
}
button.button {
  -webkit-appearance: none;
  appearance: none;
}
