/**
 * Single Property Page Styles
 *
 * @package Resolve_Importer
 * @since 1.0.0
 */

/* Property Single Layout */
.property-single {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 73fr 27fr;
  width: 100%;
}

.property-single__sidebar .property-single__broker-container {
  height: 100%;
}

.property-single__sidebar .broker-card {
  position: sticky;
}

/* Featured Image */
.property-single__featured-image {
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.property-single__featured-image img {
  aspect-ratio: 3 / 2;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* Property Title */
.property-single__title-wrap {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.property-single__title {
  font-size: 1.75rem;
  margin-bottom: 0;
  margin-top: 0;
}

.property-single__slogan {
  color: var(--global-palette1);
  font-size: 0.875rem;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 0;
}

/* Property Details */
.property-single__details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.property-single__detail {
  align-items: center;
  background-color: var(--global-palette8);
  border-radius: 8px;
  display: flex;
  font-size: 1rem;
  gap: 8px;
  padding: 8px 12px;
}

.property-single__detail svg {
  color: var(--global-palette1);
}

/* Property button */
.property-single__contact-btn {
  display: none !important;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

/* Property Price */
.property-single__price-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.property-single__price {
  background-color: var(--global-palette8);
  border-radius: 16px;
  color: var(--global-palette1);
  display: inline-flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 8px;
  padding: 12px 24px;
}

.property-single__price--bargain {
  background-color: #de0b0b;
  color: var(--global-palette9);
}

.property-single__price--bargain .old-price {
  font-size: 0.875rem;
  font-weight: normal;
  text-align: right;
  text-decoration: line-through;
}

.property-single__price--m2price {
  color: var(--global-palette5);
  font-size: 0.85rem;
  text-align: right;
}

.property-single__info-box {
  background-color: var(--global-palette8);
  border-radius: 16px;
  margin-bottom: 24px;
  padding: 24px;
}

.property-info-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  gap: 16px 8px;
}

.property-info-items__item {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  gap: 4px 8px;
  line-height: 1.2;
}

.property-info-items__item--option {
  flex-direction: row;
}

.property-info-items__item-label {
  color: var(--global-palette1);
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1;
}

.button.button-icon {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.mb-3 {
  margin-bottom: 24px;
}

/* Property Description */
.property-single__description {
  margin-top: 40px;
  margin-bottom: 40px;
}

.related-properties {
  margin-bottom: 64px;
  margin-top: 64px;
}

.related-properties h2 {
  margin-bottom: 40px;
  text-align: center;
}

/* Property slider */
.property-single__gallery {
  margin-bottom: 24px;
  position: relative;
}

.property-images-slider {
  margin-bottom: 8px;
}

.property-images-slider .splide__slide {
  border-radius: 16px;
  overflow: hidden;
}

.property-images-slider .splide__slide img {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.property-images-slider .splide__arrow {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out;

  svg {
    height: 16px;
    width: 16px;
  }
}

.property-images-slider .splide__arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.property-thumbnails-slider .splide__list {
  gap: 8px !important;
}

.property-thumbnails-slider .splide__slide {
  border-radius: 8px;
  border: 2px solid transparent !important;
  cursor: pointer;
  opacity: 0.6;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.property-thumbnails-slider .splide__slide:hover {
  opacity: 0.9;
  border-color: var(--global-palette4) !important;
}

.property-thumbnails-slider .splide__slide:focus {
  outline: none !important;
  border-color: var(--global-palette6) !important;
  opacity: 1;
}

.property-thumbnails-slider .splide__slide.is-active {
  opacity: 1;
  border-color: var(--global-palette1) !important;
}

.property-thumbnails-slider .splide__slide img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .property-single {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 16px !important;
  }

  .property-info-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-single__price-wrap {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

@media screen and (max-width: 767px) {
  .property-single__title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-single__title {
    font-size: 1.375rem;
  }

  .property-single__contact-btn {
    display: flex !important;
  }

  .property-single__info-box {
    padding: 24px 16px;
  }

  .property-single__price--m2price {
    text-align: left;
  }

  .property-single__details {
    gap: 8px;
  }

  .property-single__detail {
    font-size: 0.875rem;
  }

  .property-single__price {
    font-size: 1.25rem;
  }

  .property-images-slider {
    margin-left: calc(-1 * var(--global-content-edge-padding));
    margin-right: calc(-1 * var(--global-content-edge-padding));
  }

  .property-images-slider .splide__slide {
    border-radius: 0;
  }
}
