/* Rental page: the homepage hero and a progressively enhanced service selector. */
.rental-hero.home-hero {
  position: relative;
  min-height: min(780px, 94svh);
  height: auto;
  align-items: center;
  padding: 9rem 1.5rem 6rem;
}
.rental-hero .home-hero__content {
  align-self: center;
  height: auto;
}
.rental-hero h1 {
  position: static;
  width: 100%;
  max-width: 76rem;
  transform: none;
  line-height: 1.1;
  text-align: center;
}
.rental-hero .home-hero__title-accent,
.rental-hero .home-hero__title-for {
  display: block;
}
.rental-hero .home-hero__dynamic {
  display: grid;
  justify-items: center;
  align-items: center;
  width: 100%;
  min-height: 1.25em;
  height: auto;
  text-align: center;
}
.rental-selector {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.rental-prompt {
  margin: 0 0 2.5rem;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.045em;
}
.rental-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.rental-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  background: var(--color-panel);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.rental-card.is-selected {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}
.rental-card__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1 / 1;
  padding: 1.4rem;
  isolation: isolate;
}
.rental-card__visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rental-card__visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgb(0 0 0 / 20%);
}
.rental-card__visual h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 850;
  line-height: 1.1;
  text-shadow:
    0 2px 12px #000,
    0 1px 3px #000;
}
.rental-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.5rem;
  padding: 1.4rem;
}
.rental-card__body p {
  margin: 0;
  color: var(--color-muted-strong);
  line-height: 1.7;
  font-size: 0.9rem;
}
.rental-card__button {
  width: 100%;
  margin-top: auto;
  font-size: 0.85rem;
}
.rental-card__button:focus-visible {
  outline: 3px solid var(--color-brand-soft);
  outline-offset: 3px;
}
.rental-card__button[aria-expanded="true"] {
  background: var(--color-brand);
  color: #fff;
}
.rental-details {
  border-top: 1px solid var(--border-soft);
}
.rental-details [data-service-panel] {
  scroll-margin-top: 6rem;
}
.rental-details h2:focus {
  outline: none;
}
.rental-details [data-service-common] .section-kicker {
  display: none;
}
.rental-detail-photo {
  width: min(100%, 38rem);
  margin: 2.5rem auto 0;
}
@media (max-width: 1023px) {
  .rental-cards {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    margin-inline: -1rem;
    padding: 0.2rem 1rem 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-brand) var(--color-panel);
  }
  .rental-card {
    flex: 0 0 min(80vw, 22rem);
    scroll-snap-align: start;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 639px) {
  .rental-hero.home-hero {
    min-height: 85svh;
    padding: 7rem 1rem 4rem;
  }
  .rental-hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .rental-hero .home-hero__title-for {
    margin-block: 0.2em;
  }
  .rental-hero .home-hero__dynamic {
    min-height: 2.2em;
  }
  .rental-card__visual h2 {
    font-size: 1.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rental-hero .home-hero__dynamic-phrase {
    animation: none !important;
    opacity: 0;
    transform: none;
  }
  .rental-hero .home-hero__dynamic-phrase:first-child {
    opacity: 1;
  }
  .rental-card {
    transition: none;
  }
  .rental-cards {
    scroll-behavior: auto;
  }
}
