.listing-preview {
  padding: 0 0 20px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* ── Carousel (inside card) ── */
.listing-preview-carousel {
  margin: -40px -40px 32px -40px;
  overflow: hidden;
  background: #f0f2f4;
  border-radius: 16px 16px 0 0;
  min-width: 0;
  max-width: calc(100% + 80px);
}

.listing-preview-carousel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  width: 100%;
  min-width: 0;
}

.listing-preview-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  min-width: 0;
}

.listing-preview-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.listing-preview-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nav arrows */
.listing-preview-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #00283c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  z-index: 2;
}

.listing-preview-carousel-btn:hover {
  background: #fff;
}

.listing-preview-carousel-btn-prev {
  left: 16px;
}

.listing-preview-carousel-btn-next {
  right: 16px;
}

/* Photo counter */
.listing-preview-carousel-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.listing-preview-carousel-counter svg {
  opacity: 0.85;
}

/* ── Content card ── */
.listing-preview-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 100px #00283c2b;
  padding: 40px;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.listing-preview-title {
  font-size: 26px;
  font-weight: 700;
  color: #00283c;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Address */
.listing-preview-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #00283cb2;
  margin-bottom: 20px;
}

.listing-preview-address svg {
  flex-shrink: 0;
  color: #7cc8d9;
}

/* Price row */
.listing-preview-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e9ec;
  flex-wrap: wrap;
}

.listing-preview-price {
  font-size: 34px;
  font-weight: 700;
  color: #00283c;
}

.listing-preview-price-suffix {
  font-size: 18px;
  font-weight: 400;
  color: #00283c80;
}

.listing-preview-type-badge {
  font-size: 14px;
  color: #00283c99;
  background: #f0f7f9;
  padding: 4px 12px;
  border-radius: 16px;
}

/* ── Sections ── */
.listing-preview-section {
  margin-bottom: 32px;
}

.listing-preview-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #00283c;
  margin-bottom: 16px;
}

/* Description */
.listing-preview-description-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.listing-preview-description-header .listing-preview-section-title {
  margin-bottom: 0;
}

.listing-preview-language-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00283c99;
  font-size: 14px;
  line-height: 1.4;
}

.listing-preview-language-form label {
  white-space: nowrap;
}

.listing-preview-language-form select {
  min-width: 132px;
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid #dce6ea;
  border-radius: 8px;
  color: #00283c;
  font: inherit;
  font-weight: 600;
  background-color: #fff;
  cursor: pointer;
}

.listing-preview-language-form select:focus {
  border-color: #7cc8d9;
  outline: 2px solid #eaf7fa;
}

.listing-preview-description {
  font-size: 15px;
  line-height: 1.7;
  color: #00283cb2;
}

.listing-preview-description-collapsed {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.listing-preview-description-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.listing-preview-readmore {
  background: none;
  border: none;
  color: #7cc8d9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0;
}

.listing-preview-readmore:hover {
  color: #5ab0c2;
  text-decoration: underline;
}

.listing-preview-empty-description {
  color: #00283c80;
  font-size: 15px;
  line-height: 1.6;
}

/* Details */
.listing-preview-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e9ec;
  border-radius: 8px;
  background: #f8fbfc;
}

.listing-preview-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #eaf0f2;
  border-radius: 8px;
  background: #fff;
}

.listing-preview-detail-label {
  min-width: 0;
  color: #00283c99;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.listing-preview-detail-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: #00283c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

/* ── Features grid ── */
.listing-preview-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 40px;
}

.listing-preview-feature-col {
  min-width: 0;
}

.listing-preview-feature-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #00283c;
  margin-bottom: 12px;
}

.listing-preview-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listing-preview-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #00283cb2;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f4;
}

.listing-preview-feature-item svg {
  flex-shrink: 0;
  color: #7cc8d9;
}

.listing-preview-feature-item:last-child {
  border-bottom: none;
}

/* ── Energy ── */
.listing-preview-energy {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.listing-preview-energy-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-preview-energy-label {
  font-size: 14px;
  color: #00283c80;
}

.listing-preview-energy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.listing-preview-energy-a { background: #00a651; }
.listing-preview-energy-b { background: #50b848; }
.listing-preview-energy-c { background: #bdd62e; }
.listing-preview-energy-d { background: #fef200; color: #333; }
.listing-preview-energy-e { background: #f7941d; }
.listing-preview-energy-f { background: #ed1c24; }
.listing-preview-energy-g { background: #be1e2d; }

.listing-preview-energy-value {
  font-size: 14px;
  color: #00283cb2;
}

/* ── Map ── */
.listing-preview-map {
  border-radius: 12px;
  overflow: hidden;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .listing-preview-carousel-viewport {
    aspect-ratio: 4 / 3;
    max-height: 350px;
  }

  .listing-preview-carousel-btn {
    width: 34px;
    height: 34px;
  }

  .listing-preview-carousel-btn-prev {
    left: 10px;
  }

  .listing-preview-carousel-btn-next {
    right: 10px;
  }

  .listing-preview-content {
    padding: 24px;
  }

  .listing-preview-carousel {
    margin: -24px -24px 24px -24px;
  }

  .listing-preview-title {
    font-size: 22px;
  }

  .listing-preview-description-header,
  .listing-preview-language-form {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .listing-preview-language-form label {
    white-space: normal;
  }

  .listing-preview-price {
    font-size: 28px;
  }

  .listing-preview-details {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .listing-preview-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .listing-preview-detail-value {
    justify-content: flex-start;
    text-align: left;
  }

  .listing-preview-quickspecs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .listing-preview-quickspec {
    padding: 0 16px;
  }

  .listing-preview-quickspec-value {
    font-size: 17px;
  }

  .listing-preview-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .listing-preview-energy {
    flex-direction: column;
    gap: 16px;
  }
}
