/* ==========================================================================
   Amenities Page Styles - Guestopolis
   Visual source of truth: Reference Screenshots
   ========================================================================== */

/* Global Reset & Body Box Model */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION — AMENITIES & FACILITIES
   -------------------------------------------------------------------------- */
.amenities-hero-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #0b0f14;
  border: none;
}

.amenities-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.44);
  z-index: 1;
}

.amenities-hero-content-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1030px;
  margin: 0 auto;
  padding-top: 195px;
  padding-bottom: 120px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.amenities-hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  font-weight: normal;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 22px 0;
  letter-spacing: -0.5px;
}

.amenities-hero-description {
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  max-width: 540px;
  opacity: 0.95;
}

/* ==========================================================================
   Bottom Layered Animated Waves Shape
   ========================================================================== */
.hero-bottom-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-waves-svg {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: -1px;
  min-height: 80px;
  max-height: 150px;
  display: block;
}

/* Multi-layered Wave Parallax Animation */
.wave-parallax > use {
  animation: moveWave 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  will-change: transform;
}

.wave-parallax > use.wave-1 {
  animation-delay: -2s;
  animation-duration: 7s;
}

.wave-parallax > use.wave-2 {
  animation-delay: -3s;
  animation-duration: 10s;
}

.wave-parallax > use.wave-3 {
  animation-delay: -4s;
  animation-duration: 13s;
}

.wave-parallax > use.wave-4 {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes moveWave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   2. WHITE AMENITIES INTRODUCTION SECTION
   -------------------------------------------------------------------------- */
.amenities-intro-section {
  background-color: #ffffff;
  width: 100%;
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333333;
  box-sizing: border-box;
}

.amenities-intro-container {
  max-width: 1030px;
  margin: 0 auto;
  padding: 110px 20px 65px;
  box-sizing: border-box;
}

.amenities-intro-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.amenities-intro-left {
  flex: 1;
  max-width: 70%;
  min-width: 0;
}

.amenities-intro-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: normal;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.amenities-intro-text {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #555555;
  margin: 0;
  max-width: 600px;
}

.amenities-intro-right {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.btn-get-bookings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 44px;
  background-color: #292929;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  text-decoration: none;
  border: 1px solid #292929;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-get-bookings:hover,
.btn-get-bookings:focus {
  background-color: #404040;
  border-color: #404040;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. AMENITIES IMAGE GRIDS
   -------------------------------------------------------------------------- */
.amenities-grid-section {
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.amenities-grid-container {
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 20px 95px;
  box-sizing: border-box;
}

/* First Grid: 3 Columns x 2 Rows (6 Items) */
.amenities-primary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 75px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.amenity-grid-item {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.amenity-image-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: #f3f4f6;
}

/* Slide in Animations for Amenities & Facilities Images */
.gp-slide-bottom {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.gp-slide-top {
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.gp-slide-bottom.is-visible,
.gp-slide-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.amenity-card-img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: #f3f4f6;
  user-select: none;
  -webkit-user-drag: none;
}

.amenity-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 26px 0 0 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Second Grid: Centered 2 Columns (Final 2 Items) */
.amenities-final-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 75px;
  width: 100%;
  margin: 75px 0 0 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.amenity-card-img-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: #f3f4f6;
  user-select: none;
  -webkit-user-drag: none;
}

/* --------------------------------------------------------------------------
   4. FULL-WIDTH NEARBY ATTRACTIONS 2x2 GRID
   -------------------------------------------------------------------------- */
.amenities-nearby-section {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #ffffff;
}

.nearby-attractions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.nearby-attraction {
  position: relative;
  width: 100%;
  height: 545px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nearby-attraction-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: #e5e5e5;
  user-select: none;
  -webkit-user-drag: none;
}

/* Centered Overlay Labels */
.nearby-attraction-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #111111;
  z-index: 2;
  white-space: nowrap;
  line-height: 1.35;
  pointer-events: none;
  box-sizing: border-box;
}

/* Science City: Near top center */
.science-city-label {
  top: 14px;
}

/* Birla Mandir: Upper middle with subtle light gray background */
.birla-label {
  top: 24%;
  background: rgba(220, 220, 220, 0.75);
  padding: 3px 14px;
}

/* Rabindra Sarovar: Upper middle without background */
.sarovar-label {
  top: 24%;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .amenities-hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .amenities-hero-content-wrapper {
    padding: 160px 25px 95px;
  }

  .hero-bottom-shape,
  .hero-waves-svg {
    height: 90px;
    min-height: 60px;
  }

  .amenities-hero-title {
    font-size: 46px;
  }

  .amenities-intro-container {
    padding: 75px 20px 45px;
  }

  .amenities-intro-heading {
    font-size: 30px;
  }

  .amenities-intro-left {
    max-width: 100%;
  }

  .amenities-grid-container {
    padding: 0 20px 70px;
  }

  .amenities-primary-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 55px;
  }

  .amenity-card-img {
    height: 320px;
  }

  .amenities-final-grid {
    column-gap: 32px;
    margin-top: 55px;
  }

  .nearby-attraction {
    height: 420px;
  }

  .nearby-attraction-label {
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  .amenities-hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .amenities-hero-content-wrapper {
    padding: 135px 16px 75px;
  }

  .hero-bottom-shape,
  .hero-waves-svg {
    height: 65px;
    min-height: 45px;
  }

  .amenities-hero-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .amenities-hero-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .amenities-intro-container {
    padding: 55px 16px 35px;
  }

  .amenities-intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .amenities-intro-heading {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .amenities-intro-text {
    font-size: 14px;
  }

  .btn-get-bookings {
    width: 100%;
    max-width: 180px;
  }

  .amenities-grid-container {
    padding: 0 16px 55px;
  }

  .amenities-primary-grid {
    grid-template-columns: 1fr;
    row-gap: 45px;
  }

  .amenity-card-img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .amenity-card-title {
    font-size: 22px;
    margin-top: 18px;
  }

  .amenities-final-grid {
    grid-template-columns: 1fr;
    row-gap: 45px;
    margin-top: 45px;
  }

  .amenity-card-img-square {
    aspect-ratio: 4 / 3;
  }

  /* Nearby Attractions single column on mobile */
  .nearby-attractions-grid {
    grid-template-columns: 1fr;
  }

  .nearby-attraction {
    height: 320px;
  }

  .nearby-attraction-label {
    font-size: 14.5px;
    white-space: normal;
    width: 90%;
    max-width: 320px;
  }

  .science-city-label {
    top: 12px;
  }

  .birla-label,
  .sarovar-label {
    top: 20%;
  }
}
