/* ══ Property detail page styles ══ */

/* ── Breadcrumb ── */
.hs-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  padding: 12px 0 8px;
  transition: color .15s;
}
.hs-breadcrumb:hover { color: var(--ink); }

/* ── Image gallery ── */
.hs-prop-gallery { margin-bottom: 36px; }
.hs-prop-gallery-main { border-radius: 12px; overflow: hidden; }
.hs-prop-gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hs-prop-gallery-placeholder {
  width: 100%;
  height: 420px;
  background: var(--paper);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 52px;
}
@media (max-width: 767px) {
  .hs-prop-gallery-main img,
  .hs-prop-gallery-placeholder { height: 260px; }
}

/* ── Overview panel ── */
.hs-overview-panel { padding-top: 4px; }

.hs-prop-area {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--slate);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.hs-prop-title {
  font-size: clamp(20px, 2.8vw, 26px);
  margin-bottom: 0;
}

/* ── 3-col stat grid ── */
.hs-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 0;
}
.hs-stat-cell {
  background: var(--surface);
  padding: 14px 10px;
  text-align: center;
}
.hs-stat-cell-val {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.hs-stat-cell-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}

/* ── Detail rows ── */
.hs-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hs-detail-row:last-child { border-bottom: none; }
.hs-detail-lbl { color: var(--slate); }
.hs-detail-val { color: var(--ink); font-weight: 500; text-align: right; }

/* ── Content sections ── */
.hs-prop-section { padding: 28px 0; border-top: 1px solid var(--line); }

.hs-desc p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 14px;
}
.hs-desc p:last-child { margin-bottom: 0; }

/* ── Price history timeline ── */
.hs-timeline { position: relative; padding-left: 28px; }
.hs-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}
.hs-timeline-row {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
}
.hs-timeline-row:last-child { padding-bottom: 0; }
.hs-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
}
.hs-timeline-dot.current {
  background: var(--under);
  box-shadow: 0 0 0 2px rgba(31,122,77,.25);
}
.hs-timeline-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
  min-width: 72px;
  padding-top: 2px;
}
.hs-timeline-content { flex: 1; }
.hs-timeline-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hs-timeline-event { font-size: 13px; color: var(--slate); margin-top: 3px; }
.hs-timeline-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Sold comparables table ── */
.hs-comps-table { width: 100%; border-collapse: collapse; }
.hs-comps-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 12px 10px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.hs-comps-table tbody td {
  font-size: 13px;
  color: var(--ink);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.hs-comps-table tbody tr:last-child td { border-bottom: none; }
.hs-comps-table tbody tr:hover td { background: var(--paper); }
.hs-comps-table .td-price { font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.hs-comps-table .td-muted { color: var(--slate); font-size: 12px; }

.hs-comps-cite {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--slate);
}
.hs-comps-cite i { color: var(--under); font-size: 15px; flex-shrink: 0; }

/* ── Location map ── */
.hs-prop-map-wrap {
  border-radius: 12px;
  overflow: hidden;
}
.hs-prop-map {
  height: 340px;
  border-radius: 12px;
  border: 1px solid var(--line);
  z-index: 0;
}

/* ── Sidebar ── */
.hs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: flex-start;
}
@media (max-width: 991px) { .hs-sidebar { position: static; } }

/* ── Fair Price Card ── */
.hs-fair-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.hs-fair-card-banner { padding: 18px 20px 16px; border-bottom: 1px solid rgba(0,0,0,.06); }
.hs-fair-card-banner.banner-under { background: var(--under-bg); border-bottom-color: rgba(31,122,77,.18); }
.hs-fair-card-banner.banner-over  { background: var(--over-bg);  border-bottom-color: rgba(178,58,46,.18); }
.hs-fair-card-banner.banner-fair  { background: var(--fair-bg);  border-bottom-color: rgba(92,88,83,.18); }
.hs-fair-card-banner.banner-unvalued { background: var(--unvalued-bg); border-bottom-color: rgba(138,133,124,.18); }

.hs-fair-verdict {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.hs-fair-verdict.verdict-under   { color: var(--under); }
.hs-fair-verdict.verdict-over    { color: var(--over); }
.hs-fair-verdict.verdict-fair    { color: var(--fair); }
.hs-fair-verdict.verdict-unvalued{ color: var(--unvalued); }

.hs-fair-verdict-sub { font-size: 12px; opacity: .75; }
.banner-under   .hs-fair-verdict-sub { color: var(--under); }
.banner-over    .hs-fair-verdict-sub { color: var(--over); }
.banner-fair    .hs-fair-verdict-sub { color: var(--fair); }
.banner-unvalued .hs-fair-verdict-sub { color: var(--unvalued); }

.hs-fair-card-body { padding: 20px; }
.hs-fair-est-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
}
.hs-fair-est-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 5px;
}
.hs-fair-est-basis {
  font-size: 11px;
  color: var(--unvalued);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.5;
}
.hs-fair-est-basis i { font-size: 13px; margin-top: 1px; flex-shrink: 0; }
.hs-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hs-fair-row:last-child { border-bottom: none; padding-bottom: 0; }
.hs-fair-row-lbl { color: var(--slate); }
.hs-fair-row-val { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; color: var(--ink); }
.hs-fair-row-val.good { color: var(--under); }
.hs-fair-row-val.bad  { color: var(--over); }

/* ── Save / Share actions ── */
.hs-prop-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.hs-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hs-action-btn:hover { border-color: var(--slate); background: var(--paper); }
.hs-action-btn .heart-filled { display: none; color: #E53935; }
.hs-action-btn.active .heart-empty { display: none; }
.hs-action-btn.active .heart-filled { display: inline; }
.hs-action-btn.active { border-color: rgba(229,57,53,.35); }

/* ── About valuation ── */
.hs-about-val {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.hs-about-val-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.hs-about-val p { font-size: 12px; color: var(--slate); line-height: 1.65; margin: 0; }
.hs-about-val strong { color: var(--ink); }

@media (max-width: 767px) {
  .hs-comps-table thead th:last-child,
  .hs-comps-table tbody td:last-child { display: none; }
}
