.nearby-amenities {
  display: block;
  width: 100%;
}

.nearby-amenities__inner {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .nearby-amenities__inner {
    padding: 5rem 3rem;
  }
}

@media (min-width: 64rem) {
  .nearby-amenities__inner {
    padding: 5rem 4rem;
  }
}

/* Section title */
.nearby-amenities__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #12284b;
  margin: 0 0 3rem;
  line-height: 1.1;
}

/* Slider wrapper */
.nearby-amenities__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Prevent global height rules on the container/wrapper */
.nearby-amenities__slider.swiper,
.nearby-amenities__slider .swiper-wrapper {
  height: auto !important;
}

/* Beat the global .swiper .swiper-slide rule (0,2,0) with 3-class specificity (0,3,0).
   No !important — Swiper's inline-style equalization can still override this
   and make all slides the same height as the tallest card. */
.nearby-amenities__slider.swiper .swiper-slide {
  height: auto;
}

/* Fill the height Swiper assigns so the flex column can push the link to the bottom */
.nearby-amenities__slide {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nearby-amenities__slide-img {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #e8e8e8;
  flex-shrink: 0;
}

@media (min-width: 48rem) {
  .nearby-amenities__slide-img {
    height: 220px;
  }
}

@media (min-width: 64rem) {
  .nearby-amenities__slide-img {
    height: 260px;
  }
}

.nearby-amenities__slide-body {
  padding: 1.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-self: flex-start;
}

.nearby-amenities__slide-title {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #12284b;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.nearby-amenities__slide-desc {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.nearby-amenities__slide-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #12284b;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.nearby-amenities__slide-link:hover {
  opacity: 0.7;
}

/* Swiper navigation */
.nearby-amenities__slider .swiper-button-prev,
.nearby-amenities__slider .swiper-button-next {
  color: #12284b;
  --swiper-navigation-size: 28px;
}

.nearby-amenities__slider .swiper-button-prev {
  left: auto;
  right: 55px;
  bottom: 0%;
  top: auto;
}

.nearby-amenities__slider .swiper-button-next {
  right: 10px;
  bottom: 0%;
  top: auto;
}

.nearby-amenities__slider .swiper-pagination {
  position: relative;
  bottom: auto;
  background: none !important;
}

.swiper-pagination {
  background: none !important;
}

.nearby-amenities__slider .swiper-pagination-bullet {
  background: #12284b;
  opacity: 0.3;
}

.nearby-amenities__slider .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 600px) {
  .nearby-amenities {
    margin: 0 !important;
  }

  .nearby-amenities__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
