/*
 * The home page's top (home.php, adc-api#3482): a hero image with the headline and the site's
 * claims, and the search box in its own band across the hero image's lower edge. Wider than a tablet
 * the box is laid out across the band; narrower, it keeps the vertical card it has everywhere else.
 * Everything is under .home-hero, so no other page's search box changes.
 */

.home-hero-photo {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 250px;
  padding: 48px 0 96px;
  overflow: hidden;
  background-color: #0b3d63;
}

/* The hero image, a real image so its srcset gives a phone a smaller copy, covering its block. */
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: center 58%;
}

/* A navy wash over the photo so white text reads on it: light over the whole photo, with a soft darker
   patch behind the text, so the rest of the photo stays bright. The patch is wider on a tablet, and on
   a phone, where the text fills the hero image, the wash is a full-width gradient. Each was measured
   against the hero image for 4.5:1 contrast behind the subtitle.
   The photo, the wash and the text are layered explicitly: the photo comes later in the markup than
   ::before, so without z-index it would paint over the wash. */
.home-hero-photo::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(
      ellipse 42% 45% at 50% 33%,
      rgb(4 30 52 / 52%) 0%,
      rgb(4 30 52 / 47%) 70%,
      rgb(4 30 52 / 22%) 100%,
      rgb(4 30 52 / 0%) 140%
    ),
    linear-gradient(180deg, rgb(4 30 52 / 28%) 0%, rgb(4 30 52 / 10%) 100%);
  content: "";
}

.home-hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgb(0 0 0 / 35%);
}

.home-hero .home-hero-title {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.home-hero .home-hero-proof {
  margin: 8px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.home-hero-break {
  display: none;
}

/* The band: the box rises over the hero image's lower edge, above the page below it. */
.home-band {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}

.home-band #search_box_container {
  max-width: 1040px;
  margin: 0 auto;
}

/* A white edge (search-box.css sets its color with !important), so the box reads as framed over
   the photo, beside its navy tab bar as well as above it. */
.home-band #main_search_box.sbx {
  position: relative;
  top: auto;
  left: auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  border-radius: 12px;
  border-color: #fff !important;
  box-shadow: 0 14px 40px rgb(0 45 90 / 18%);
}

/* The band at the top of a page, above its slider (the Tours and Hotels & Resorts pages), rather
   than pulled up over the home page's photo. */
.home-band.is-page-top {
  margin-top: 8px;
  margin-bottom: 24px;
}

/* Those pages' own stylesheet (master_resortbrand.css) was written for the box laid over the
   slider: it nudges the box down 20px, pins its container in place at 1024px and under, and hides
   the box there until its old "Search Deals" toggle opens it. In the band the box sits in the page
   and always shows, as on the home page. */
.home-band.is-page-top #search_box_container {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
}

.home-band.is-page-top #main_search_box.sbx {
  display: block;
  top: auto !important;
}

/*
 * The navy tab bar sits 4px inside the box, so a light frame runs around it on every side. A 1px edge
 * alone vanished where the photo behind is light. Its corners follow the box's inner curve (12px,
 * less the 1px edge and the 4px frame).
 */
.home-band #main_search_box.sbx .top_btns[role="tablist"] {
  margin: 4px 4px 0;
  border-radius: 7px 7px 0 0;
}

/* Wider than a tablet: the box laid out across the band. */
@media (width > 1024px) {
  /* The tabs: icon and name side by side, as wide as their names, on the navy bar. */
  .home-band #main_search_box.sbx .top_btns[role="tablist"] {
    display: flex;
  }

  .home-band #main_search_box.sbx .top_btns .search_btn {
    flex-direction: row;
    gap: 8px;
    padding: 12px 22px;
  }

  .home-band #main_search_box.sbx .top_btns .search_btn .text {
    font-size: 15px;
  }

  .home-band #main_search_box.sbx .sbx-tab-icon {
    width: 22px;
    height: 22px;
  }

  .home-band #main_search_box.sbx div#land_tab div.surround {
    padding: 16px 20px 18px;
  }

  /*
   * The tour form: the count across the top; the six fields in two rows of three, with More filters
   * under them; Show at the right. More filters opens across the full width.
   */
  .home-band #filters_container_sticky.tsx-card form {
    display: grid;
    grid-template-columns: 1fr 220px;
    column-gap: 16px;
    align-items: start;
  }

  .home-band #filters_container_sticky.tsx-card form > * {
    grid-column: 1 / -1;
  }

  .home-band #filters_container_sticky.tsx-card form > .tsx-rows,
  .home-band #filters_container_sticky.tsx-card form > #tour_advance_search_btn {
    grid-column: 1;
  }

  .home-band #filters_container_sticky.tsx-card form > .text-center {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
  }

  .home-band #main_search_box #filters_container_sticky.tsx-card .total_tour_counts {
    margin: 4px 2px 12px;
  }

  .home-band #filters_container_sticky.tsx-card form > .tsx-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 12px 12px 0 0;
  }

  /* In a grid the lines go between columns and between the two rows, not above every field. */
  .home-band #filters_container_sticky.tsx-card .tsx-rows > .form-inline + .form-inline {
    border-top: 0;
  }

  .home-band #filters_container_sticky.tsx-card .tsx-rows > .form-inline:nth-child(n + 4) {
    border-top: 1px solid #edf2f7;
  }

  .home-band #filters_container_sticky.tsx-card .tsx-rows > .form-inline:not(:nth-child(3n)) {
    border-right: 1px solid #edf2f7;
  }

  /* More filters, opened: its eight fields four across, and Guaranteed under them across the width. */
  .home-band #filters_container_sticky.tsx-card form > #tour_advance_search_content:not(.hide) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content > .form-inline + .form-inline {
    border-top: 0;
  }

  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content > .form-inline:nth-child(n + 5) {
    border-top: 1px solid #edf2f7;
  }

  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content > .form-inline:not(:nth-child(4n), :nth-child(n + 9)) {
    border-right: 1px solid #edf2f7;
  }

  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content > .form-inline:nth-child(n + 9) {
    grid-column: 1 / -1;
  }

  /*
   * When and How long open as a panel over the form, under their field, rather than in place: in
   * place, the open field stretched the whole line of fields and left its neighbors as tall empty
   * boxes. The side box and phones keep them in place, in their single column.
   */
  .home-band #filters_container_sticky.tsx-card #departure-date-filter-dropdown .dropdown-menu,
  .home-band #filters_container_sticky.tsx-card #trip-length-filter-dropdown .dropdown-menu,
  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 12px 32px rgb(0 40 80 / 18%);
  }

  /* The open field's line sits above the others. */
  /* stylelint-disable-next-line no-descending-specificity */
  .home-band #filters_container_sticky.tsx-card .tsx-rows > .form-inline:has(.dropdown.open) {
    position: relative;
    z-index: 40;
  }

  /* deals_search_box_tour.css scrolls the form (overflow: auto), which would scroll a panel rather
     than show it over the page, and stacks every select2 field at 9999, which showed Visits, and
     More filters' Starting and Ending city, through an open panel. Its lists, attached to the page
     body, keep their place. */
  .home-band #filters_container_sticky.tsx-card {
    overflow: visible;
  }

  .home-band #filters_container_sticky.tsx-card .select2-container {
    z-index: auto;
  }

  .home-band #filters_container_sticky.tsx-card #departure-date-filter-dropdown .dropdown-menu {
    width: 440px;
  }

  .home-band #filters_container_sticky.tsx-card #trip-length-filter-dropdown .dropdown-menu {
    width: 360px;
  }

  /* More filters' panels (Tour class, Price range), as wide as their choices need. */
  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content .dropdown-menu {
    width: 320px;
  }

  .home-band #filters_container_sticky.tsx-card #tour_advance_search_content > .form-inline:has(.dropdown.open) {
    position: relative;
    z-index: 40;
  }

  .home-band #main_search_box #filters_container_sticky.tsx-card .btn-search-tours {
    height: 56px;
    margin: 0;
  }

  .home-band #main_search_box.sbx .sbx-land-tab {
    flex: 0 0 auto;
    padding: 6px 14px;
  }
}

/*
 * The other forms in the band, laid out across it rather than in one tall column: Odysseus's cruise
 * and hotel forms three fields across (their fields are already marked one-third width), and the
 * Flight + Hotel card's rows across one line (below).
 */
@media (width > 1024px) {
  .home-band #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-wrapper,
  .home-band #main_search_box.sbx .swiftHotelSearch #OVExploreContainer .od-form-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 14px;
  }

  .home-band #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-wrapper > .od-input-wrapper,
  .home-band #main_search_box.sbx .swiftHotelSearch #OVExploreContainer .od-form-wrapper > .od-input-wrapper {
    width: auto !important;
    margin: 0 !important;
  }

  /* Hotel only's Search Help sits at the right of the line that describes Hotel only, not on a
     row of its own above the fields. */
  .home-band #main_search_box.sbx #land_result .swiftHotelSearch {
    position: relative;
  }

  .home-band #main_search_box.sbx .swiftHotelSearch a#hotelSearchHelpLink {
    position: absolute;
    top: -26px;
    right: 0;
    margin: 0;
  }

  .home-band #main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-main-button-wrapper .od-search-button {
    flex: 0 0 220px !important;
  }

  .home-band #main_search_box.sbx .swiftHotelSearch #OVExploreContainer .od-form-wrapper > .od-main-button-wrapper {
    grid-column: 1 / -1;
  }

  /*
   * Flight + Hotel: two rows of three as the tour card's are, From, To and the dates, then Travelers
   * and Hotel, with Search at the right as the tour card's Show is. Travelers' rooms open under
   * their cell, over the page.
   */
  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card {
    display: grid;
    grid-template-columns: 1fr 220px;
    column-gap: 16px;
    align-items: center;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card > * {
    grid-column: 1 / -1;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card > .fhx-rows {
    display: grid;
    grid-column: 1;
    grid-template-columns: 1fr 1fr 1.3fr;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card > #ti_form_submit_btn.fhx-submit {
    grid-column: 2;
    grid-row: 1;
    height: 56px;
    margin: 0;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row + .fhx-row {
    border-top: 0;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to,
  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates,
  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel {
    border-left: 1px solid #edf2f7;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-travelers,
  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel {
    border-top: 1px solid #edf2f7;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from {
    border-radius: 11px 0 0;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates {
    border-radius: 0 11px 0 0;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-travelers {
    border-radius: 0 0 0 11px;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel {
    grid-column: 2 / -1;
    align-items: center;
    border-radius: 0 0 11px;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel .fhx-field {
    flex-flow: row wrap;
    align-items: center;
    column-gap: 20px;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel .fhx-label {
    flex: 1 0 100%;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel #adc_hotelList {
    flex: 1 1 200px;
    margin-top: 0;
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 340px;
    box-sizing: border-box;
    padding: 14px 16px 16px;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(0 45 90 / 18%);
  }

  .home-band #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpRoom:first-child {
    margin-top: 12px;
  }
}

/*
 * Excursions across the band: the photo at its own size (296px) on the left; beside it, one block,
 * centered on the photo: the question, what a shore excursion is, then the partner's link with the
 * provider's name beside it. The tab is shown and hidden by an inline display, so the grid applies
 * only while it is shown.
 */
@media (width > 1024px) {
  .home-band #main_search_box.sbx #excursions_tab:not([style*="none"]) {
    display: grid !important;
    grid-template-columns: 296px minmax(0, 1fr);
    align-items: center;
    column-gap: 36px;
    padding: 20px 24px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-photo img {
    margin: 0;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-body {
    max-width: 560px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-body .large {
    font-size: 22px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-what {
    margin: 8px 0 18px;
    font-size: 15px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-body #excursionLink {
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 16px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-body a.sbx-btn {
    align-self: center;
    padding: 11px 22px;
  }

  .home-band #main_search_box.sbx #excursions_tab .sbx-exc-body .sbx-exc-text {
    font-size: 13px;
  }
}

/*
 * Flights across the band: the plane in a navy tile, as the search rows' icons, then the offer, Call
 * and Send us a message side by side, and the package line under a divider.
 */
@media (width > 1024px) {
  .home-band #main_search_box.sbx #flights_tab .sbx-fly {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 28px 20px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--sbx-navy);
    color: #fff;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-icon .sbx-svg {
    width: 34px;
    height: 34px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-title {
    font-size: 22px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-text {
    margin: 6px 0 16px;
    font-size: 15px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-actions {
    flex-flow: row wrap;
    gap: 12px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-actions a {
    padding: 11px 22px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-package {
    margin-top: 20px;
    padding-top: 14px;
    font-size: 14px;
  }

  .home-band #main_search_box.sbx #flights_tab .sbx-fly-package-q {
    display: inline;
    margin-right: 4px;
  }
}

@media (width <= 1024px) {
  .home-band {
    margin-top: -40px;
  }

  .home-band #search_box_container {
    max-width: 560px;
  }

  .home-hero-photo::before {
    background:
      radial-gradient(
        ellipse 50% 50% at 50% 40%,
        rgb(4 30 52 / 55%) 0%,
        rgb(4 30 52 / 50%) 70%,
        rgb(4 30 52 / 25%) 100%,
        rgb(4 30 52 / 0%) 140%
      ),
      linear-gradient(180deg, rgb(4 30 52 / 30%) 0%, rgb(4 30 52 / 12%) 100%);
  }

  .home-hero-text {
    padding: 0 16px;
  }
}

/* Once the two claims no longer fit on one line, each takes its own instead of one word wrapping alone. */
@media (width <= 640px) {
  .home-hero-dot {
    display: none;
  }

  .home-hero-break {
    display: inline;
  }
}

@media (width <= 560px) {
  .home-hero-photo {
    min-height: 0;
    padding: 26px 0 52px;
  }

  /* The text fills most of a phone's hero image, so the wash stays dark down to the subtitle's last line. */
  .home-hero-photo::before {
    background: linear-gradient(
      180deg,
      rgb(4 30 52 / 62%) 0%,
      rgb(4 30 52 / 60%) 45%,
      rgb(4 30 52 / 58%) 75%,
      rgb(4 30 52 / 30%) 100%
    );
  }

  .home-hero .home-hero-title {
    font-size: 24px;
  }

  .home-hero .home-hero-proof {
    font-size: 13px;
  }

  .home-band {
    margin-top: -30px;
  }
}

/*
 * deals_search_box.js dims the page behind the box when More filters or the cruise form's advanced
 * search opens, for the side box that overlays the page. In the band the box opens in place and
 * pushes the page down, so there is nothing to dim, and the dimming sat over the box itself.
 */
body:has(.home-band) .advance-search-overlay {
  display: none !important;
}

/*
 * The featured offers (home.php, home-offers.js): one offer at a time under the search band, the
 * band's width. Each slide is the offer's text on a navy-to-blue panel and its image whole beside
 * it, at the 1920 x 1005 (1.91 to 1) the vendors' sale graphics come in, so their own printed text
 * is never covered or cropped (adc-api#3482). The slide is as tall as its image; the text fits
 * itself to that (home-offers.js keeps whole sentences). Below 961px the image sits above the text.
 */
.home-offers {
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.home-offers-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #072a4d 0%, #0d4f8b 100%);
}

.home-offers-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-offers-track::-webkit-scrollbar {
  display: none;
}

.home-offer {
  display: flex;
  flex: 0 0 100%;
  flex-direction: row-reverse;
  margin: 0;
  scroll-snap-align: start;
}

.home-offer-img {
  display: block;
  flex: 0 0 58%;
  width: 58%;
  height: auto;
  aspect-ratio: 1920 / 1005;
  object-fit: cover;
  object-position: center;
}

/* The admin's focal point: which side a crop keeps, for an image not at 1.91 to 1. */
.home-offer-img.is-focus-left {
  object-position: left center;
}

.home-offer-img.is-focus-right {
  object-position: right center;
}

/* The text's own size never sets the slide's height (contain: size), so the image is never cropped;
   the text shrinks to fit, and home-offers.js drops the sentences that don't. Room is kept at the
   bottom for the arrows and dots. */
.home-offer-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 20px 32px 62px 40px;
  color: #fff;
  contain: size;
}

.home-offer-eyebrow {
  margin: 0 0 6px;
  color: #9cc7ef;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-offers .home-offer-title {
  display: -webkit-box;
  flex: none;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-offer-text {
  display: -webkit-box;
  flex: 0 1 auto;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* The slides' info is admin HTML, which often colors words red or navy; on the panel it reads white. */
.home-offer-text *,
.home-offer-text p {
  margin: 0;
  color: inherit !important;
}

.home-offers .home-offer-note {
  flex: none;
  margin: 8px 0 0;
  color: rgb(255 255 255 / 80%);
  font-size: 12px;
}

.home-offer-btn {
  flex: none;
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #e8283f;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}

.home-offer-btn:hover,
.home-offer-btn:focus {
  background: #c81e33;
  color: #fff;
  text-decoration: none;
}

.home-offer-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The arrows either side of the dots, along the bottom of the text panel. */
.home-offers-controls {
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42%;
  box-sizing: border-box;
  padding: 0 24px;
}

.home-offers-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  color: #004a83;
  cursor: pointer;
}

.home-offers-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-offers-dots {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

/* Each dot is a 24px target around an 8px mark (20px wide, so 14 fit beside the arrows). */
.home-offers-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.home-offers-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgb(255 255 255 / 55%);
  content: "";
  transition: width 0.2s;
}

.home-offers-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-offers-dot.is-active::before {
  width: 16px;
  background: #fff;
}

/* A single offer has no arrows or dots, so no room is kept for them. */
.home-offers-frame.is-single .home-offer-body {
  padding-bottom: 20px;
}

/* A tablet or phone: the image above, whole, the text below it, and the arrows beside the dots under that. */
@media (width <= 960px) {
  .home-offers {
    margin-top: 24px;
  }

  .home-offer {
    flex-direction: column;
  }

  .home-offer-img {
    flex: none;
    width: 100%;
  }

  .home-offer-body {
    flex: none;
    padding: 18px 18px 8px;
    contain: none;
  }

  .home-offers .home-offer-title {
    font-size: 22px;
  }

  .home-offers-controls {
    position: static;
    width: auto;
    padding: 8px 18px 16px;
  }

  .home-offers-arrow {
    width: 40px;
    height: 40px;
  }
}

/* A small phone: narrower dots, so 14 still fit on one line between the arrows (the arrows stay full size). */
@media (width <= 480px) {
  .home-offers-controls {
    gap: 4px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-offers-dot {
    width: 14px;
  }

  .home-offers-dot.is-active::before {
    width: 12px;
  }
}
