@media (min-width: 900px) {
  .section-heading {
    text-align: center;
  }
}

.hero {
  background-image: url(./../img/hero/hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--on-color);
  padding: 8rem 2rem;
  text-align: center;
}

.hero div {
  display: flex;
  flex-direction: column-reverse;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.hero p {
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  font-family: var(--ff-heading);
}

.hero-btn {
  width: 250px;
  display: block;
  margin: 0 auto 12rem;
}

@media screen and (min-width: 900px) {
  .hero p {
    font-size: 1.5rem;
  }
}

/* popular destinations */

#destination-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 0;
  scrollbar-width: auto;
}

#destination-carousel::-webkit-scrollbar {
  height: 8px;
}

#destination-carousel::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 4px;
}

#destination-carousel::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

.destination-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.destination-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.destination-card:hover::after {
  width: 100%;
}

.destination-card img {
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
  width: 100%;
}

.destinations button {
  margin-top: 2rem;
}

@media screen and (min-width: 900px) {
  #destination-carousel {
    overflow: visible;
    gap: 0;
    justify-content: space-between;
  }

  .destination-card {
    flex: 1 1 32%;
    max-width: 32%;
    justify-content: space-between;
  }

  .destinations button {
    justify-self: center;
  }
}

/* activities */

.activities {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.activities .section-heading {
  padding: 3.125rem 2rem 0;
}

.activity-btns {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  margin: 0 2rem;
}

.activity-btns button {
  border: none;
  background: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  color: var(--secondary);
}

.activity-btns span {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  padding: 1rem;
}

.activity-btns::-webkit-scrollbar {
  height: 8px;
}

.activity-btns::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 4px;
}

.activity-btns::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.active-filter span {
  background-color: var(--secondary);
  color: var(--on-color);
}

.filter-btn:hover {
  cursor: pointer;
}

#activity-container {
  padding: 10rem 2rem;
  color: var(--on-color);
  position: relative;
  background-size: cover;
  background-position: center;
  margin-bottom: 3.125rem;
}

#activity-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.activity-content {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.activity-name {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 3rem;
  text-transform: uppercase;
}

@media screen and (min-width: 600px) {
  .activity-btns {
    overflow-x: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
    gap: 2rem;
    justify-content: left;
  }

  .activity-btns::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width: 900px) {
  .activity-btns {
    justify-content: center;
  }
}

/* testimonials */

.testimonial-wrapper {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
  padding: 6rem 1rem;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  color: white;
  overflow: hidden;
  justify-content: space-between;
}

.testimonial-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.testimonial-card,
.left-icon,
.right-icon {
  position: relative;
  z-index: 2;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.left-icon,
.right-icon {
  font-size: 2rem;
  cursor: pointer;
}

.left-icon {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.testimonial-card h3 {
  font-size: 1.875rem;
  font-weight: bold;
}

.testimonial-stars {
  color: var(--primary);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.star {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.testimonial-content {
  max-width: 540px;
  line-height: 30px;
}

@media screen and (min-width: 900px) {
  .testimonial-wrapper {
    padding: 6rem 4rem;
  }

  .left-icon,
  .right-icon {
    font-size: 3rem;
  }
}

/* customer gallery */

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      'img1 img2'
      'img1 img2'
      'img1 img4'
      'img3 img4'
      'img3 img4'
      'img3 img6'
      'img5 img6'
      'img5 img6';
    gap: 1rem;
  }

  .gallery-grid img:nth-child(1) {
    grid-area: img1;
  }
  .gallery-grid img:nth-child(2) {
    grid-area: img2;
  }
  .gallery-grid img:nth-child(3) {
    grid-area: img3;
  }
  .gallery-grid img:nth-child(4) {
    grid-area: img4;
  }
  .gallery-grid img:nth-child(5) {
    grid-area: img5;
  }
  .gallery-grid img:nth-child(6) {
    grid-area: img6;
  }
}

@media screen and (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      'img1 img2 img3'
      'img1 img2 img3'
      'img4 img2 img6'
      'img4 img2 img6'
      'img4 img5 img6'
      'img4 img5 img6';
    gap: 1rem;
  }
}
