/* Compact desktop rhythm: more useful content in the viewport without shrinking text. */
@media (min-width: 761px) {
  .header__inner {
    min-height: 70px;
  }

  /* Shared home-page sections. */
  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  /* Catalog: bring filters and the first row of cards higher. */
  .catalog-hero {
    padding-top: 49px;
    padding-bottom: 47px;
  }

  .catalog-toolbar__inner {
    min-height: 66px;
  }

  .catalog-toolbar label {
    min-height: 46px;
  }

  .catalog-results {
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .catalog-results__top {
    min-height: 34px;
  }

  /* Object pages: reduce accumulated blank space around details and map. */
  .stay-content {
    gap: 54px;
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .stay-description {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .stay-section-heading {
    margin-bottom: 22px;
  }

  .amenities {
    padding-top: 34px;
  }

  .amenities__grid > div {
    min-height: 94px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .stay-location {
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer__main {
    min-height: 250px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .stay-content,
  .stay-location {
    padding-top: 46px;
    padding-bottom: 46px;
  }
}

@media (max-width: 560px) {
  /* Keep the booking form closer to the first mobile viewport. */
  .hero {
    min-height: 660px;
    padding-top: 42px;
    padding-bottom: 225px;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 0.96;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.48;
  }

  .hero__booking {
    bottom: -170px;
  }

  /* iOS Safari does not display a placeholder for an empty date input. */
  .booking-form input[type="date"] {
    min-height: 28px;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
  }

  .booking-form input[type="date"]::-webkit-date-and-time-value {
    min-height: 22px;
    text-align: left;
  }

  .booking-form input[type="date"]:invalid::before {
    color: rgba(21, 40, 61, 0.5);
    content: attr(placeholder);
  }

  .booking-form input[type="date"]:valid::before {
    content: "";
  }
}

@media (max-width: 720px) {
  .catalog-hero {
    display: none;
  }

  .catalog-hero h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  .catalog-hero__row > p {
    display: none;
  }

  .catalog-hero > .shell > .eyebrow {
    display: none;
  }

  .availability-summary {
    min-height: 0;
  }

  .catalog-results .availability-summary small {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .catalog-map .map-key {
    display: none !important;
  }
}
