/* TPR Move landing. Shared site chrome, form and paper surfaces are inherited. */
body.preview-page--booking {
  --move-gutter: max(clamp(20px, 5.29vw, 80px), calc((100% - 1352px) / 2));
  --move-gap: clamp(48px, 10.58vw, 160px);
  --move-card-gap: clamp(16px, 5.29vw, 80px);
  --move-ink: #25672b;
}

body.preview-page--booking .preview-header .preview-booking-actions {
  display: none;
}

body.preview-page--booking .preview-header[data-header-floating] {
  background: var(--green);
}

body.preview-page--booking .preview-menu-hours {
  color: white;
}

.move-hero {
  position: relative;
  width: min(100%, 1920px);
  aspect-ratio: 1512 / 952;
  margin-inline: auto;
  overflow: clip;
}

.move-hero-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.move-hero-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.move-hero-brand {
  position: absolute;
  right: 5.3%;
  bottom: 9.24%;
  width: 37.29%;
  display: grid;
  grid-template-columns: 42.4% 1fr;
  align-items: end;
  gap: 1.15%;
}

.move-hero-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.move-content {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  gap: var(--move-gap);
  padding-block: clamp(40px, 5.29vw, 80px) var(--move-gap);
}

.move-decoration {
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(100%, 1512px);
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
}

.move-decoration img {
  display: block;
  position: absolute;
  width: 155.74%;
  max-width: none;
  left: -102.9%;
  top: min(14vw, 212px);
  rotate: 169.73deg;
}

.move-section {
  min-width: 0;
  margin-inline: var(--move-gutter);
  display: grid;
  gap: clamp(34px, 7.94vw, 120px);
  scroll-margin-top: 82px;
}

.move-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--move-card-gap);
  align-items: start;
}

.move-section h1,
.move-section h2 {
  font: 700 clamp(2.25rem, 5.29vw, 5rem)/1 var(--preview-display);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.move-columns p {
  font-size: clamp(1.125rem, 2.65vw, 2.5rem);
  line-height: 1.04;
}

.move-columns p + p {
  margin-top: .3em;
}

.move-schedule .move-columns p {
  font-size: clamp(1.125rem, 2.12vw, 2rem);
}

.move-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(12px, 2.12vw, 32px);
  margin-top: clamp(18px, 2.12vw, 32px);
}

.move-intro-actions .move-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px clamp(20px, 4.23vw, 64px);
  background: var(--yellow);
  color: var(--move-ink);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  mask: url("assets/wavy-frame.svg") center / 100% 100%;
}

.move-carousel {
  position: relative;
  min-width: 0;
  margin-inline: calc(-1 * var(--move-gutter));
}

.move-track {
  display: flex;
  gap: var(--move-card-gap);
  overflow-x: auto;
  padding: 6px var(--move-gutter);
  scroll-padding-inline: var(--move-gutter);
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  align-items: stretch;
}

.move-track.is-carousel-dragging { cursor: grabbing; user-select: none; }

.move-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px var(--move-gutter) 0;
}

.move-carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 1.7rem;
}

.move-carousel-controls button:disabled { opacity: .45; }
.move-carousel-controls[hidden] { display: none; }

.move-story,
.move-offer {
  position: relative;
  flex: 0 0 min(560px, 83%);
  min-width: 0;
  background: white;
  color: var(--green);
  scroll-snap-align: start;
  overflow: hidden;
}

.move-story-photo,
.move-offer-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 560 / 338;
  margin: 7px 7px 0;
  mask: url("assets/wavy-frame.svg") center / 100% 100% no-repeat;
}

.move-story-photo img,
.move-offer-photo img {
  display: block;
  position: absolute;
  width: var(--photo-width, 100%);
  max-width: none;
  height: auto;
  left: var(--photo-left, 0%);
  top: var(--photo-top, 0%);
}

.move-story--chi { --photo-width: 140%; --photo-left: -6%; --photo-top: -112%; }
.move-story--dove { --photo-width: 113%; --photo-left: -6.5%; --photo-top: -12%; }
.move-story--quando { --photo-width: 116%; --photo-left: -8%; --photo-top: -72%; }

.move-story-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px 26px;
  color: var(--green);
}

.move-story-heading h3 {
  font: 700 clamp(1.9rem, 3.18vw, 3rem)/1 var(--preview-display);
  text-transform: uppercase;
}

.move-story-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.move-story-button img {
  max-width: 48px;
  height: auto;
}

.move-story.is-open {
  display: flex;
  flex-direction: column;
}

.move-story-close { display: none; }
.move-story.is-open .move-story-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 45% 48% 44% 49%;
  font: 400 1.8rem/1 var(--preview-body);
}

.move-story.is-open .move-story-button img,
.move-story.is-open .move-story-photo { display: none; }

.move-story-detail:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5em;
  padding: 0 26px 22px;
  font-size: clamp(1rem, 1.59vw, 1.5rem);
  line-height: 1.08;
}

.move-story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.move-story-links a {
  flex: 1 0 max-content;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 5px 8px;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.move-story-links a:is(:hover, :focus-visible) { text-decoration: underline; }

.move-offer {
  flex-basis: min(480px, 83%);
  display: flex;
  flex-direction: column;
}

.move-offer-photo { aspect-ratio: 480 / 320; }
.move-offer-discount {
  position: absolute;
  inset-block-start: clamp(10px, 4%, 16px);
  inset-inline-start: clamp(10px, 4%, 16px);
  inline-size: clamp(68px, 5vw, 102px);
  aspect-ratio: 104 / 58;
  background: url("assets/tpr-move/discount-badge-20.png") center / contain no-repeat;
  pointer-events: none;
}
.move-offer--intro-offer { --photo-width: 147%; --photo-left: -25%; --photo-top: -109%; background: var(--yellow); }
.move-offer--drop-in { --photo-width: 109%; --photo-left: -7%; --photo-top: -70%; }
.move-offer--starter { --photo-width: 121%; --photo-left: -2%; --photo-top: -139%; }
.move-offer--regular { --photo-width: 161%; --photo-left: -30%; --photo-top: -93%; }
.move-offer--committed { --photo-width: 166%; --photo-left: -44%; --photo-top: -113%; }

body.preview-page--booking .move-offer--intro-offer::after { border-color: var(--yellow); }

.move-offer-copy {
  flex: 1;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(16px, 1.85vw, 28px);
  font-size: clamp(1.125rem, 1.59vw, 1.5rem);
  line-height: 1.12;
}

.move-offer-copy h3,
.move-offer-copy .move-offer-price {
  font-family: var(--preview-display);
  font-weight: 700;
  text-transform: uppercase;
}

.move-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4em;
}

.move-offer-previous-price {
  opacity: .5;
  text-decoration: line-through;
}

.move-offer-copy h3 {
  margin-top: 8px;
  color: var(--green);
  font-size: clamp(1.8rem, 2.65vw, 2.5rem);
  overflow-wrap: anywhere;
}
.move-offer-copy .move-offer-badge {
  margin-top: 16px;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--acid);
  font: 700 .75rem/1.2 var(--preview-display);
  text-transform: uppercase;
}
.move-offer--intro-offer .move-offer-badge { background: white; }
.move-offer--committed .move-offer-badge { background: var(--yellow); }
.move-offer-copy .move-offer-expiry {
  margin-top: auto;
  padding-block: 20px 14px;
  font-size: clamp(1rem, 1.33vw, 1.25rem);
}

.move-offer healcode-widget { display: block; width: 100%; min-height: 40px; }
.move-offer .healcode-pricing-option-text-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 1.1875rem;
  font-weight: 700;
  text-align: center;
  mask: url("assets/wavy-frame.svg") center / 100% 100%;
}
.move-offer .healcode-pricing-option-text-link:is(:hover, :focus-visible) { text-decoration: underline; }

.move-schedule { gap: clamp(28px, 5.29vw, 80px); }

.move-schedule .preview-booking-panel {
  min-height: 568px;
  padding: clamp(14px, 3.18vw, 48px);
  color: #232323;
}

.move-contacts {
  gap: clamp(28px, 5.29vw, 80px);
}

.move-contacts > h2 { text-align: center; }
.move-contacts .preview-contact-row { grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); }
.move-contacts .preview-contact-card { height: auto; min-height: 568px; }
.move-contacts .preview-map-image img { object-position: center 43%; }
.move-contacts .preview-form-heading h3 {
  font: 700 clamp(1.6rem, 2.65vw, 2.5rem)/1 var(--preview-display);
  text-transform: uppercase;
}

.move-contacts [data-move-preview-contact-message] { margin-top: 12px; font-size: 1rem; line-height: 1.25; }
.move-contacts [data-move-preview-contact-message] a { text-decoration: underline; }

.move-section :is(button, a, [tabindex]):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -4px;
}

@media (min-width: 1024px) {
  .move-carousel {
    --move-visible-cards: 3;
    --move-card-gap: clamp(24px, 3vw, 48px);
    margin-inline: 0;
  }
  .move-track {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .move-track > :is(.move-story, .move-offer) {
    flex-basis: calc((100% - (var(--move-visible-cards) - 1) * var(--move-card-gap)) / var(--move-visible-cards));
  }
  .move-carousel-controls { margin-inline: 0; }
}

@media (min-width: 1440px) {
  .move-packages .move-carousel {
    --move-visible-cards: 5;
    --move-card-gap: 24px;
  }
  .move-offer-copy {
    min-height: 255px;
    padding: 18px;
    font-size: 1.125rem;
  }
  .move-offer-copy h3 { font-size: 1.8rem; }
  .move-offer-copy .move-offer-expiry { font-size: 1rem; }
}

@media (max-width: 900px) {
  .move-contacts .preview-contact-row { grid-template-columns: minmax(0, 1fr); }
  .move-contacts .preview-contact-card { min-height: auto; }
}

@media (max-width: 640px) {
  body.preview-page--booking .preview-header:not([data-header-floating]) {
    height: 78px;
    grid-template-rows: 54px;
  }
  body.preview-page--booking .preview-header[data-header-floating] { height: 78px; grid-template-rows: 54px; }
  .move-hero { min-height: 350px; }
  .move-hero-photos {
    position: absolute;
    inset: 0 50% auto auto;
    width: max(100%, 645px);
    translate: 50% 0;
  }
  .move-hero-brand { width: min(65%, 264px); right: 6%; bottom: 3%; }
  .move-columns { grid-template-columns: 1fr; gap: 18px; }
  .move-decoration img { width: 245%; left: -175%; top: 105px; }
  .move-story-heading { min-height: 72px; }
  .move-offer-copy { min-height: 235px; }
}

@media (max-width: 420px) {
  .move-contacts .preview-fields { grid-template-columns: minmax(0, 1fr); }
}
