.rotate-180 {
  transform: rotate(180deg);
}
.splide__arrow:hover img {
  filter: brightness(100) invert(1);
  opacity: 1;
}

/* Star Rating Display */
.villa-average-rating {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin-bottom: 15px;
  gap: 3px;
}
.villa-average-rating .star {
  color: #ccc;
  font-size: 20px;
}
span.star img {
  height: 21px;
  display: block;
}
.villa-average-rating .see-reviews-link {
  margin-left: 8px;
  color: #3600ce;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline !important;
  margin-left: 1em !important;
}

/* Modal Styling */
.villa-reviews-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}
.modal-content {
  background-color: #fff;
  margin: 40vh auto;
  padding: 2em;
  border-radius: 8px;
  width: 90%;
  max-width: unset;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.villa-review-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.villa-review-item:last-child {
  border-bottom: none;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.review-header h4 {
  margin: 0;
  font-size: 18px;
}
.review-stars .star {
  font-size: 16px;
}
.review-content {
  line-height: 1.5;
}
.review-content p {
  display: -webkit-box;
  -webkit-line-clamp: 25; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.modal-open {
  overflow: hidden !important;
  max-height: 100vh !important;
}

#reviews-modal {
  display: flex;
  gap: 0.5em;
}
.reviews-meta {
  flex: 33%;
  max-width: 33%;
}
.reviews-container {
  flex: 67%;
  max-width: 67%;
  padding: 0 2em;
}

.reviews-meta h3 {
  font-family: Poppins;
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  color: #3600ce;
}
.reviews-meta h2 {
  font-family: Poppins;
  font-weight: 600;
  font-size: 25px;
  padding: 0;
}
.reviews-meta .prod_meta_cat {
  color: #23242a !important;
  font-size: 16px !important;
}
.reviews-meta .villa_location-container {
  font-size: 14px;
  line-height: 1;
  color: #000;
  line-height: 1;
}
.reviews-meta .prod_meta_cat {
  line-height: 1.2;
}

span.star.star-filled {
  color: #3600ce;
}

.review-content {
  font-family: Poppins;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #5c778a;
}
.review-meta {
  margin-top: 1em;
  font-family: Poppins;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  color: #5c778a;
}

@media screen and (max-width: 980px) {
  #reviews-modal {
    display: block !important;
  }
  body.modal-open #new-header-mobile {
    background: #fff !important;
  }
  body.modal-open #new-header-logo {
    filter: brightness(0%) invert(0%) !important;
  }
  body.modal-open #mobile-search-icon span,
  body.modal-open .mobile_nav .mobile_menu_bar:before {
    color: #000 !important;
  }
  .villa-reviews-modal {
    background-color: transparent !important;
  }
  .villa-review-item {
    margin-top: -1px;
    border-top: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
  }
  #reviews-modal {
    width: 100vw;
    height: 100vh;
    margin: 70px 0 0 0;
    border-radius: 0;
    flex-wrap: wrap;
    max-height: calc(100vh - 70px);
  }
  .reviews-meta {
    flex: 100%;
    max-width: 100%;
    margin-bottom: 1em;
  }
  .reviews-container {
    flex: 100%;
    max-width: 100%;
    padding: 0;
  }
}
