/* Homepage outer spacing follows admin order; panel padding stays inside. */
.wt-viewer .home-sections {
  --home-section-gap: 56px;
  --home-panel-padding: 32px;
  display: block;
  min-width: 0;
  padding-bottom: var(--home-section-gap);
}
.wt-viewer .home-sections > [data-home-section] {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
}
/* Keep the original desktop spacing around search, trust links, and My Trips. */
.wt-viewer .home-sections > [data-home-section]:not(.trust-strip, .return-band),
.wt-viewer .home-sections > #private {
  margin: var(--home-section-gap) 0 0;
}
.wt-viewer
  .home-sections
  > :is(
    .destinations-section,
    #explore,
    .stories-section,
    .private-section,
    .editorial-products
  ) {
  padding: 0;
}
.wt-viewer .home-sections > :is(.final-call, .continue-section) {
  padding: var(--home-panel-padding);
}
@media (max-width: 760px) {
  .wt-viewer .home-sections {
    --home-section-gap: 32px;
    --home-panel-padding: 18px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 28px);
  }
  .wt-viewer.mobile-landing-page .site-header {
    padding-inline: 14px;
  }
  .wt-viewer .home-sections #destinations #destination-rail {
    padding-inline: 0;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }
  .wt-viewer .home-sections > :is(.trust-strip, .return-band) {
    margin: var(--home-section-gap) 0 0;
  }
  /* The shared card rule uses a negative margin; homepage panels keep equal gutters. */
  .wt-viewer .home-sections > #final-call {
    margin-inline: 0;
  }
  .wt-viewer .home-sections > .trust-strip {
    padding-inline: 0;
  }
  .wt-viewer .home-sections > .app-shortcuts {
    margin: 18px 0 0;
  }
  .wt-viewer
    .home-sections
    > [data-home-section][data-home-first]:not(.trust-strip, .return-band),
  .wt-viewer .home-sections > #private[data-home-first] {
    margin-top: 18px;
  }
}
