.welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  overflow: hidden;
  padding: 60px 18%;
}
.welcome-container {
  z-index: 2;
}
.welcome h1 {
  margin-bottom: 1rem;
}
.welcome p {
  margin-bottom: 1.5rem;
}

/* Palm Leaf Styling in welcome section */
.palm-left,
.palm-right {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.palm-left {
  left: -8%;
  bottom: 0;
  max-width: 520px;
}
.palm-right {
  right: -8%;
  max-width: 620px;
}

/* Feature Video Styling */
.property-video {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70vh;
}
.property-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accommodation section */
.accommodation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  overflow: hidden;
  padding: 60px 14%;
  text-align: center;
  margin-bottom: 2rem;
}
.accommodation-container {
  z-index: 2;
  width: 100%;
}
.accommodation h2 {
  margin-bottom: 1rem;
}
.accommodation p {
  margin-bottom: 1.5rem;
}
.palm-leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transform: scaleY(-1);
  height: 1200px;
}


/* Ammenities Section */
.ammenities {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  overflow: hidden;
  padding: 40px 14%;
}
.ammenities-container {
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.ammenities img {
  object-fit: cover;
  flex-shrink: 0;
}
.kitchen-background {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 20%;
}
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
}

.palm-background-left {
    position: absolute;
    pointer-events: none;
    left: -2%;
    max-width: 820px;
}
.palm-background-right {
    position: absolute;
    pointer-events: none;
    right: 0;
    max-width: 820px;
    transform: scaleX(-1);
}


/* Gallery */
.gallery-section {
  padding: 30px 14%;
}
.gallery {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery img {
  width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1000;
}
.gallery img:hover {
  transform: scale(1.05);
}
/* Lightbox styling */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.gallery-lightbox-image {
  max-width: 90%;
  max-height: 90%;
}
.close-gallery-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


/* Location section */
.location {
  position: relative;
  display: flex;
  height: auto;
  padding: 30px 14%;
}
.location-container {
  z-index: 1000;
  width: 100%;
}
.location-container iframe {
  height: 500px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
}
.location h2 {
  margin-bottom: 1rem;
}
.palm-leaf-location {
  position: absolute;
  pointer-events: none;
  top: -300px;
  left: -100px; 
  width: 1000px; 
  transform: rotate(100deg);
}


/* Plan a Stay */
.plan-stay {
  position: relative;
  display: flex;
  height: 80vh;
  justify-content: center;
  align-items: center;
}
/* Background Image */
.plan-stay img {
  position: absolute;
  width: 100%;
  height: 80vh;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 65%;
  opacity: 60%;
}
/* Centering Container */
.plan-stay-container {
  position: absolute;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
}
/* Container Image */
.plan-stay-container img {
  width: 700px;
  height: auto;
  opacity: 100%;
  filter: invert(1);
}
/* Button */
.plan-stay-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  text-decoration: none;
  color: var(--text-colour-light);
  background-color: black;
  border-radius: 4px;
  width: 300px;
  margin-top: 160px;
}

/* Tablets */
@media (max-width: 1200px) {
  .accommodation {
    padding: 30px 10%;
  }

  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-stay-container img {
    width: 600px;
  }

  .plan-stay-button {
    margin-top: 140px;
  }

  .palm-left,
  .palm-right,
  .palm-leaf-location,
  .palm-leaf,
  .palm-background-right,
  .palm-background-left {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr); /* Reduce columns */
  }
}

/* Small Tablets & Large Phones*/
@media (max-width: 768px) {
  .ammenities img {
    display: none;
  }

  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr; 
  }

  .plan-stay-container img {
    width: 450px;
  }

  .plan-stay-button {
    margin-top: 100px;
  }

}

/* Mobile Phones */
@media (max-width: 480px) {
  .gallery img {
    height: 250px;
  }

  .plan-stay-container img {
    width: 300px;
  }

  .plan-stay-button {
    margin-top: 80px;
  }

}