@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", serif;
}

.destinations_hero {
  height: 60vh;
  background-color: rgba(0, 0, 0, 0.26);
  background-image: url(https://media-cldnry.s-nbcnews.com/image/upload/t_social_share_1200x630_center,f_auto,q_auto:best/newscms/2018_08/1319814/clearwater-beach-today-180221-tease.jpg);
  background-size: cover;
  background-position: bottom;
  background-blend-mode: darken;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: white;
  padding: 1rem;
  text-align: center;
}

.dest_hero_textwrapper {
  margin-left: 6rem;
}

.destinations_hero h1 {
  font-size: 3rem;
}

.dest_filter {
  background-color: #161646;
  padding: 2rem;
}

.destination_search_sort {
  background-color: #f0f8ff;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.search_sort {
  background-color: #ececec;
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search_sort span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.search {
  all: unset;
  width: 100%;
  border-bottom: 1px solid transparent;
}

.search:focus {
  border-bottom: 1px solid black;
}

.drop_down {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

.option {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.option:hover {
  background-color: #f5f5f5;
}

.search_sort:hover .drop_down {
  display: block;
}

.beach_display {
  padding: 3rem 2rem;
}

.beaches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.beachcard {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.img_wrapper {
  height: 12rem;
  overflow: hidden;
}

.img_wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.img_wrapper:hover img {
  scale: 1.2;
}

.detail {
  margin: 0.5rem;
}

.title {
  font-size: 1.2rem;
  font-weight: bold;
}

/* beach review */

.destination {
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.destination h1 {
  color: #0077b6;
  margin-top: 2rem;
}

.destination img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.destination ul {
  list-style-type: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gallery img {
  width: 30%;
  border-radius: 0.8rem;
  transition: 0.5s;
}

.gallery img:hover {
  scale: 1.1;
  border: 0.2rem solid transparent;
  outline: 0.2rem solid #161646;
}

.destination .download {
  background-color: #161646;
  color: #f0f8ff;
  padding: 0.5rem 1rem;
  display: block;
  margin: 1rem auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dest_hero_textwrapper {
    margin-left: 2rem;
  }

  .destinations_hero h1 {
    font-size: 2.5rem;
  }

  .beach_display {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .dest_hero_textwrapper {
    margin-left: 1rem;
    text-align: center;
  }

  .destinations_hero h1 {
    font-size: 2rem;
  }

  .destination_search_sort {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0 1rem;
  }

  .beaches {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .destination {
    padding: 1.5rem;
  }

  .gallery img {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .destinations_hero h1 {
    font-size: 1.8rem;
  }

  .destination_search_sort {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .beaches {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .img_wrapper {
    height: 10rem;
  }

  .destination {
    padding: 1rem;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .gallery img {
    width: 80%;
  }
}
