/* ============================================================
   Me2You - Property detail page styles
   Extracted from app/listings/property-view.php inline <style> block.
   ============================================================ */

.pv-wrap {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0 32px;
  align-items: start;
}
@media (max-width: 767.98px) {
  .pv-wrap { grid-template-columns: 1fr; gap: 0; }
}

/* Gallery */
.pv-gallery { position: sticky; top: 80px; }
@media (max-width: 767.98px) { .pv-gallery { position: static; } }
.pv-main-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-100);
  border: 1px solid var(--ink-300);
}
.pv-main-img-wrap.has-photos { cursor: zoom-in; }
.pv-main-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.pv-main-img-wrap.has-photos:hover .pv-main-img { transform: scale(1.03); }
.pv-main-img.is-placeholder { object-fit: contain; padding: 20%; opacity: 0.4; }

.pv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pv-thumb {
  width: 68px; height: 68px; border-radius: 10px;
  border: 2px solid transparent; background-size: cover;
  background-position: center; cursor: pointer; padding: 0; outline: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
  /* --img arrives via data-style-vars (per-thumb image url). */
  background-image: var(--img, none);
}
.pv-thumb:hover { transform: scale(1.06); }
.pv-thumb.is-active { border-color: var(--brand-orange); }

/* Info column */
.pv-info { padding-top: 4px; }
@media (max-width: 767.98px) { .pv-info { padding-top: 20px; } }

.pv-type-badge {
  display: inline-flex; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 10px;
  background: var(--ink-100); color: var(--ink-700);
}
.pv-type-badge--rent,
.prop-card__type-badge--rent  { background: #E3F2FD; color: #1565C0; }
.pv-type-badge--sell,
.prop-card__type-badge--sell  { background: #E8F5E9; color: #2E7D32; }
.pv-type-badge--share,
.prop-card__type-badge--share { background: #FFF3E0; color: #E65100; }
.pv-title {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 24px; line-height: 1.25; color: var(--ink-900); margin: 0 0 8px;
}
@media (min-width: 768px) { .pv-title { font-size: 28px; } }

.pv-price {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 32px; line-height: 1.15; color: var(--ink-900); margin-bottom: 4px;
}
.pv-price .suffix { font-size: 0.5em; color: var(--ink-500); font-weight: 500; }
@media (min-width: 768px) { .pv-price { font-size: 36px; } }

/* Deposit line under price */
.pv-deposit {
  font-size: 14px; color: var(--ink-500); margin-bottom: 8px;
}

.pv-location {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--ink-500); margin-bottom: 16px;
}

/* Specs grid */
.pv-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 16px;
}
.pv-spec {
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--ink-100);
}
.pv-spec:nth-child(odd) { border-right: 1px solid var(--ink-100); }
.pv-spec:nth-last-child(-n+2) { border-bottom: none; }
.pv-spec.is-hidden { visibility: hidden; }
.pv-spec__icon { color: var(--ink-500); flex-shrink: 0; }
.pv-spec__label { font-size: 12px; color: var(--ink-500); }
.pv-spec__value { font-size: 14px; font-weight: 700; color: var(--ink-900); }

/* Features */
.pv-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.pv-feature {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--ink-50); border: 1px solid var(--ink-100);
  font-size: 13px; font-weight: 600; color: var(--ink-700);
}
.pv-feature svg { color: var(--brand-orange); }

/* Sold / unavailable banner */
.pv-sold-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-100); border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-weight: 700; font-size: 16px; color: var(--ink-700);
  margin-bottom: 16px; width: 100%; justify-content: center;
}

/* WhatsApp share button */
.pv-whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: none;
  background: #25D366; color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; margin-bottom: 8px;
}

/* Seller card */
.pv-seller-card {
  background: var(--ink-50); border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); padding: 16px; margin: 20px 0;
}
.pv-seller-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.pv-seller-head-text { min-width: 0; }
.pv-seller-name {
  font-weight: 700; color: var(--ink-900); font-size: 15px;
}
.pv-seller-meta {
  font-size: 13px; color: var(--ink-500); margin-top: 2px; line-height: 1.5;
}
.pv-seller-stars {
  color: var(--brand-orange); font-size: 14px; letter-spacing: 1px;
}
.pv-seller-stars .empty { color: var(--ink-300); }
.pv-seller-since {
  font-size: 12px; color: var(--ink-500); margin-top: 2px;
}
.pv-seller-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-orange-100); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand-orange-700);
  font-size: 20px; flex-shrink: 0;
}

/* Escrow banner */
.pv-escrow {
  background: var(--success-100); border-left: 4px solid var(--success);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 20px;
}
.pv-escrow-icon { flex-shrink: 0; margin-top: 1px; }
.pv-escrow .lbl { font-weight: 700; color: var(--ink-900); font-size: 14px; line-height: 1.35; }
.pv-escrow .sub { font-size: 13px; color: var(--ink-500); margin-top: 3px; line-height: 1.45; }

/* Breadcrumb */
.pv-crumbs { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; }
.pv-crumbs a { color: var(--ink-500); text-decoration: none; }
.pv-crumbs a:hover { color: var(--brand-orange-700); text-decoration: underline; }
.pv-crumbs .sep { margin: 0 6px; color: var(--ink-300); }

/* Section heading */
.pv-section-heading {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--ink-900); margin: 0 0 16px;
}

/* Below-the-fold section wrappers (capped width) */
.pv-section { max-width: 780px; }

/* Verified badge */
.pv-verified { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; }
.pv-verified svg { display: block; }

/* Description */
.pv-desc { white-space: pre-wrap; line-height: 1.7; color: var(--ink-700); font-size: 15px; }

/* Deep facts grid (Property facts, Costs, Estate panel) */
.pv-facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); overflow: hidden;
}
@media (max-width: 575.98px) { .pv-facts { grid-template-columns: 1fr; } }
.pv-fact {
  padding: 12px 16px; border-bottom: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 2px;
}
.pv-fact:nth-child(odd) { border-right: 1px solid var(--ink-100); }
@media (max-width: 575.98px) { .pv-fact:nth-child(odd) { border-right: none; } }
.pv-fact:last-child { border-bottom: none; }
.pv-fact.is-full { grid-column: 1 / -1; }
.pv-fact__label { font-size: 12px; color: var(--ink-500); }
.pv-fact__value { font-size: 14px; font-weight: 700; color: var(--ink-900); }

/* Estate features block */
.pv-estate-features { margin-top: 14px; }
.pv-estate-features__heading {
  font-size: 13px; font-weight: 700; color: var(--ink-700); margin-bottom: 6px;
}

/* Availability line */
.pv-availability {
  font-size: 14px; font-weight: 700; color: var(--ink-700);
}

/* Floor plan image + link */
.pv-floor-plan-img {
  max-width: 100%; max-height: 320px;
  border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
}
.pv-floor-plan-link {
  font-size: 13px; font-weight: 600; color: var(--brand-orange-700);
}

/* Location map placeholder */
.pv-map-placeholder {
  background: var(--ink-50); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); padding: 40px 20px; text-align: center;
}
.pv-map-place {
  font-size: 15px; font-weight: 600; color: var(--ink-700); margin-top: 8px;
}
.pv-map-hint {
  font-size: 13px; color: var(--ink-500); margin-top: 4px;
}

/* Similar property cards */
.pv-similar-img { aspect-ratio: 3 / 2; }
.pv-similar-meta { font-size: 12px; color: var(--ink-500); }

/* Text-only chips */
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-text-chip {
  font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--ink-50); color: var(--ink-700);
  border: 1px solid var(--ink-100);
}
.pv-text-chip--good   { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; }
.pv-text-chip--estate { background: #F3E5F5; color: #6A1B9A; border-color: #E1BEE7; }
