.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.detail-header .detail-name {
  font-size: 28px;
  font-weight: bold;
  line-height: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-header .detail-name .detail-star {
  font-size: 14px;
  line-height: 14px;
  color: #F0A541;
}
.detail-header .detail-location {
  font-weight: 600;
  color: #1e2b46;
}

#galleria {
  margin-bottom: 15px;
}
#galleria .galleria-grid .img-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Rapporto quadrato 1:1 */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
}
#galleria .galleria-grid .img-rect {
  position: relative;
  width: 100%;
  padding-bottom: 48%; /* Rapporto rettangolare */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
}
#galleria .galleria-grid .img-rect .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  gap: 6px;
  border-radius: 8px;
}
#galleria .galleria-mobile {
  display: none;
  height: 100%;
  width: 100%;
  border-radius: 12px;
}
#galleria .galleria-mobile .carousel-inner {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 275px;
  justify-items: center;
  border-radius: 12px;
  z-index: 1;
}
#galleria .galleria-mobile .carousel-inner .carousel-item {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 12px;
  height: 100%;
  width: 100%;
  cursor: pointer;
}
#galleria .galleria-mobile .carousel-control-prev, #galleria .galleria-mobile .carousel-control-next {
  font-size: 0.7em;
  z-index: 2;
}
#galleria .galleria-mobile .carousel-control-prev i, #galleria .galleria-mobile .carousel-control-next i {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 43, 70, 0.8);
}
@media (max-width: 768px) {
  #galleria .galleria-grid {
    display: none;
  }
  #galleria .galleria-mobile {
    display: block;
  }
}

/* Lightbox */
.detail_lightbox {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 43, 70, 0.8);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.detail_lightbox.show {
  opacity: 1;
  visibility: visible;
}
.detail_lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1051;
}
.detail_lightbox .lightbox-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
}
.detail_lightbox .lightbox-content .lightbox-image {
  max-height: 80vh;
  max-width: 90%;
  object-fit: contain;
}
.detail_lightbox .lightbox-content .lightbox-navigation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail_lightbox .lightbox-content .lightbox-navigation .lightbox-nav-btn {
  color: white;
  font-size: 30px;
  padding: 10px;
  background-color: rgba(30, 43, 70, 0.5);
  border: none;
  cursor: pointer;
  z-index: 1051;
}

/* Description */
.description {
  margin-bottom: 20px;
}
.description .main-title {
  text-transform: uppercase;
  font-weight: 600;
  color: #1e2b46;
  margin: 16px 0 0;
  font-size: 18px;
}
.description .text-container {
  font-size: 15px;
  line-height: 24px;
}
.description .text-container .text-content {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all, 0.25s;
}
.description .text-container .text-content.expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.description .expand-button {
  background-color: rgb(184, 212, 235);
  color: #1e2b46;
  font-size: 14px;
  border: none;
  border-radius: 28px;
  padding: 6px 24px;
  line-height: 14px;
  margin-top: 12px;
}
.description .expand-button:hover {
  background-color: rgb(156, 180, 198);
}

.detail-amenities .accordion .accordion-item .accordion-header .accordion-button {
  background-color: #1e2b46;
  color: #FFFFFF;
  border-radius: 0.375rem;
}
.detail-amenities .accordion .accordion-item .accordion-header .accordion-button:after {
  width: 20px;
  height: 20px;
  mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var%28--bs-body-color%29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  mask-size: 20px 26px;
  mask-repeat: no-repeat;
  transition: background-color 250ms;
  background-color: #ffffff;
}
.detail-amenities .accordion .accordion-item .accordion-header .accordion-button:focus {
  border: none;
  box-shadow: none;
}
.detail-amenities .accordion .accordion-item .accordion-collapse .accordion-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 16px;
  padding: 12px 14px;
}
.detail-amenities .accordion .accordion-item .accordion-collapse .accordion-body .amenity-group {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 18px;
}
.detail-amenities .accordion .accordion-item .accordion-collapse .accordion-body .amenity-group .amenity-title {
  font-weight: bold;
  border-bottom: 1px solid #adb5bd;
  padding: 6px 4px;
  margin-bottom: 12px;
}
.detail-amenities .accordion .accordion-item .accordion-collapse .accordion-body .amenity-group .amenity-content {
  display: flex;
  align-items: center;
  gap: 36px;
}
.detail-amenities .accordion .accordion-item .accordion-collapse .accordion-body .amenity-group .amenity-content .amenity {
  display: flex;
  align-items: center;
  gap: 6px;
}