/* ============================================================
   Tri-Cities Homefinder — Listing Detail
   Zillow + HouseSigma hybrid. .hfl-* namespace.
   ============================================================ */

/* ── Layout shell ─────────────────────────────────────────── */
.hfl-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.55;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.hfl-crumbs {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.hfl-crumbs a {
  color: #6b7280;
  text-decoration: none;
}
.hfl-crumbs a:hover { color: var(--hf-brand, #232b2b); text-decoration: underline; }
.hfl-crumb-sep { color: #d1d5db; }
.hfl-crumb-current { color: #1f2937; font-weight: 600; }

/* ── Photo Grid (Zillow 1+2x2) ────────────────────────────── */
.hfl-photo-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  height: 520px;
  background: #f3f4f6;
}
.hfl-photo-hero {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.hfl-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.hfl-photo-hero:hover img { transform: scale(1.02); }
.hfl-status-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hf-brand, #232b2b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.hfl-photo-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.hfl-photo-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #f3f4f6;
}
.hfl-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.hfl-photo-thumb:hover img { transform: scale(1.05); }
.hfl-see-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: background .15s, color .15s;
}
.hfl-see-all:hover { background: #1f2937; color: #fff; }
.hfl-see-all svg { stroke: currentColor; }

/* ── Body grid: main + sticky sidebar ─────────────────────── */
.hfl-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.hfl-main { min-width: 0; }

/* ── Header (price + address + stats + Contact CTA) ───────── */
.hfl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hfl-header-left { flex: 1 1 360px; min-width: 0; }
.hfl-price {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hfl-address {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.hfl-address-city {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 14px;
}
.hfl-stats-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #374151;
}
.hfl-stat strong {
  color: #111827;
  font-weight: 700;
  margin-right: 2px;
}
.hfl-header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.hfl-cta-contact { width: 100%; }
.hfl-cta-secondary {
  text-align: center;
  font-size: 13px;
  color: var(--hf-brand, #232b2b);
  text-decoration: none;
  padding: 8px;
  font-weight: 600;
}
.hfl-cta-secondary:hover { text-decoration: underline; }

/* ── Buttons ──────────────────────────────────────────────── */
.hfl-btn-primary {
  background: var(--hf-brand, #232b2b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity .15s, transform .05s;
}
.hfl-btn-primary:hover { opacity: .9; }
.hfl-btn-primary:active { transform: translateY(1px); }
.hfl-btn-secondary {
  background: #fff;
  color: var(--hf-brand, #232b2b);
  border: 1.5px solid var(--hf-brand, #232b2b);
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  transition: background .15s, color .15s;
}
.hfl-btn-secondary:hover { background: var(--hf-brand, #232b2b); color: #fff; }

/* ── Fact pill row ────────────────────────────────────────── */
.hfl-fact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hfl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.hfl-pill-icon { font-size: 15px; opacity: .9; }

/* ── Sections ─────────────────────────────────────────────── */
.hfl-section { margin-bottom: 32px; }
.hfl-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ── What's special chips ─────────────────────────────────── */
.hfl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hfl-chip {
  background: #f3f4f6;
  color: #1f2937;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border-radius: 4px;
}

/* ── Description ──────────────────────────────────────────── */
.hfl-description-wrap { position: relative; }
.hfl-description {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  max-height: 7.5em; /* ~5 lines */
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}
.hfl-description.is-expanded { max-height: none; }
.hfl-description:not(.is-expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.hfl-show-more {
  background: none;
  border: none;
  color: var(--hf-brand, #232b2b);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 4px;
}
.hfl-show-more:hover { text-decoration: underline; }

/* ── Listing meta strip ───────────────────────────────────── */
.hfl-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 14px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 32px;
}
.hfl-meta-strip strong { color: #1f2937; font-weight: 600; }
.hfl-dim { color: #9ca3af; font-weight: 400; }

/* ── BC Assessment block ──────────────────────────────────── */
.hfl-assessment {
  background: #eaf5f3;
  border: 1px solid #b8dbd7;
  border-radius: 10px;
  padding: 20px 24px;
}
.hfl-assessment h2 { color: #1a6b65; }
.hfl-assessment-total {
  font-size: 28px;
  font-weight: 800;
  color: #1a6b65;
  margin-bottom: 12px;
}
.hfl-assessment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 8px;
}
.hfl-assessment-table th,
.hfl-assessment-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #cfe6e2;
}
.hfl-assessment-table th { color: #4e9990; font-weight: 600; }
.hfl-assessment-table td { color: #1a6b65; }
.hfl-assessment-note { font-size: 12px; margin: 6px 0 0; }

/* ── Listing History ──────────────────────────────────────── */
.hfl-history {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 22px 22px;
  background: #fff;
}
.hfl-history-subnav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
  gap: 0;
}
.hfl-history-subtab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.hfl-history-subtab:hover { color: #111827; }
.hfl-history-subtab.active {
  color: var(--hf-brand, #232b2b);
  border-bottom-color: var(--hf-brand, #232b2b);
}
.hfl-history-pane { padding-top: 8px; }
.hfl-history-pane[hidden] { display: none; }
.hfl-history-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
}
.hfl-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hfl-history-table thead th {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.hfl-history-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}
.hfl-history-table tbody tr:last-child td { border-bottom: none; }
.hfl-event {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hfl-event-forsale {
  background: #dbeafe;
  color: #1e40af;
}
.hfl-event-sold {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Home Value ───────────────────────────────────────────── */
.hfl-homevalue {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 22px 22px;
  background: #fff;
}
.hfl-hv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}
.hfl-hv-card {
  text-align: center;
  padding: 14px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
}
.hfl-hv-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: .85;
}
.hfl-hv-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.hfl-hv-value {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}
.hfl-hv-delta-up   { color: #059669; }
.hfl-hv-delta-down { color: #dc2626; }
.hfl-hv-cta {
  text-align: center;
  margin: 12px 0 10px;
}
.hfl-hv-cta .hfl-btn-secondary {
  width: auto;
  display: inline-block;
  padding: 11px 26px;
}
.hfl-hv-note {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 0;
}
@media (max-width: 720px) {
  .hfl-hv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Open Houses ──────────────────────────────────────────── */
.hfl-open-houses {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
}
.hfl-open-houses h2 { color: #92400e; margin-bottom: 10px; }
.hfl-oh-list { list-style: none; padding: 0; margin: 0; }
.hfl-oh-list li {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
}
.hfl-oh-date { font-weight: 600; color: #92400e; min-width: 160px; }
.hfl-oh-time { color: #78350f; }

/* ── Tab Nav ──────────────────────────────────────────────── */
.hfl-tab-nav {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
  overflow-x: auto;
}
.hfl-tab {
  background: none;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.hfl-tab:hover { color: #111827; }
.hfl-tab.active {
  color: var(--hf-brand, #232b2b);
  border-bottom-color: var(--hf-brand, #232b2b);
}

/* ── Panels ───────────────────────────────────────────────── */
.hfl-panel { display: block; padding: 8px 0 32px; }
.hfl-panel[hidden] { display: none; }
.hfl-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 20px 0 10px;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ── Facts Table ──────────────────────────────────────────── */
.hfl-facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.hfl-facts-table th,
.hfl-facts-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.hfl-facts-table th {
  color: #6b7280;
  font-weight: 500;
  width: 38%;
  background: #f9fafb;
}
.hfl-facts-table td { color: #1f2937; }

/* ── Map ──────────────────────────────────────────────────── */
.hfl-map-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hfl-map-toggle {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.hfl-map-toggle.active {
  background: var(--hf-brand, #232b2b);
  color: #fff;
  border-color: var(--hf-brand, #232b2b);
}
.hfl-map-link {
  font-size: 13px;
  color: var(--hf-brand, #232b2b);
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}
.hfl-map-link + .hfl-map-link { margin-left: 16px; }
.hfl-map-link:hover { text-decoration: underline; }
#hfl-map {
  height: 460px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.hfl-empty {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  background: #f9fafb;
  border-radius: 10px;
}

/* ── Mortgage Calculator ──────────────────────────────────── */
.hfl-mortgage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  align-items: center;
}
.hfl-mortgage-inputs { display: flex; flex-direction: column; gap: 12px; }
.hfl-mortgage-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
}
.hfl-mortgage-pct {
  position: absolute;
  right: 12px;
  top: 32px;
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
}
.hfl-mc-slider {
  width: 100%;
  margin-top: 4px;
  accent-color: var(--hf-brand, #232b2b);
}
.hfl-mortgage-output {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.hfl-mortgage-label-out {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.hfl-mortgage-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--hf-brand, #232b2b);
  letter-spacing: -0.02em;
}
.hfl-mortgage-note { font-size: 11px; margin-top: 8px; }
.hfl-mortgage-extras {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hfl-quick-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hf-brand, #232b2b);
  text-decoration: none;
}
.hfl-quick-link:hover { text-decoration: underline; }

/* ── Input base ───────────────────────────────────────────── */
.hfl-input {
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
}
.hfl-input:focus {
  outline: none;
  border-color: var(--hf-brand, #232b2b);
  box-shadow: 0 0 0 3px rgba(35,43,43,.08);
}
.hfl-textarea { resize: vertical; min-height: 80px; font-family: inherit; }

/* ── Market Tempo ─────────────────────────────────────────── */
.hfl-tempo {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 22px 20px;
  background: #fff;
}
.hfl-tempo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.hfl-tempo-head h2 { margin: 0; }
.hfl-tempo-score {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.hfl-tempo-score span {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 2px;
}
.hfl-tempo-bar {
  position: relative;
  height: 12px;
  margin: 24px 0 12px;
}
.hfl-tempo-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 25%, #22c55e 35%, #22c55e 65%, #f97316 75%, #ef4444 100%);
}
.hfl-tempo-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  width: 4px;
  height: 28px;
  background: #111827;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hfl-tempo-badge {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.hfl-tempo-badge::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #111827;
  border-bottom: 0;
}
.hfl-tempo-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
}

/* ── Similar listing deltas ───────────────────────────────── */
.hfl-similar-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #6b7280;
  margin: 6px 0 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hfl-delta { display: inline-flex; align-items: center; gap: 3px; }
.hfl-delta em { font-style: normal; font-weight: 700; }
.hfl-delta--up   em { color: #059669; }
.hfl-delta--down em { color: #dc2626; }
.hfl-delta--eq   em { color: #9ca3af; }
.hfl-delta-up   { color: #059669; font-size: 10px; }
.hfl-delta-down { color: #dc2626; font-size: 10px; }
.hfl-delta-eq   { color: #9ca3af; font-size: 11px; font-weight: 700; }

/* ── Comparables (bottom section, sub-tabbed) ─────────────── */
.hfl-comparables {
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 1px solid #e5e7eb;
}
.hfl-comp-head { margin-bottom: 14px; }
.hfl-comp-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.hfl-comp-subnav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
  gap: 0;
}
.hfl-comp-subtab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.hfl-comp-subtab:hover { color: #111827; }
.hfl-comp-subtab.active {
  color: var(--hf-brand, #232b2b);
  border-bottom-color: var(--hf-brand, #232b2b);
}
.hfl-comp-pane[hidden] { display: none; }
.hfl-comp-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
}
.hfl-comp-foot {
  text-align: center;
  margin-top: 24px;
}
.hfl-comp-foot .hfl-btn-secondary,
.hfl-comp-foot .hfl-btn-primary {
  width: auto;
  display: inline-block;
  padding: 11px 26px;
}

/* Sold comparable card — gated for guests */
.hfl-comp-card-sold { cursor: default; }
.hfl-comp-card-sold.is-gated { cursor: pointer; }
.hfl-pill-sold {
  background: #dc2626 !important;
}
.hfl-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.hfl-comp-card-sold.is-gated:hover .hfl-gate-overlay { background: rgba(255,255,255,.55); }
.hfl-gate-btn {
  display: inline-block;
  background: var(--hf-brand, #232b2b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.hfl-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.hfl-board-notice {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 20px 0 0;
}
.hfl-board-notice a {
  color: var(--hf-brand, #232b2b);
  text-decoration: underline;
  font-weight: 600;
}
.hfl-board-notice a:hover { text-decoration: none; }
.hfl-board-lock { margin-right: 4px; opacity: .7; }

/* ── Similar Listings (legacy aliases kept) ───────────────── */
.hfl-similar-section {
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 1px solid #e5e7eb;
}
.hfl-similar-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--hf-brand, #232b2b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 99px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.hfl-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hfl-similar-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hfl-similar-photo { position: relative; }
.hfl-similar-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.hfl-similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.hfl-similar-photo {
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}
.hfl-similar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hfl-similar-info { padding: 12px 14px 14px; }
.hfl-similar-price {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}
.hfl-similar-stats {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}
.hfl-similar-address {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.hfl-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}
.hfl-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 16px;
}
.hfl-sidebar-card.hfl-sidebar-actions { padding: 16px 20px; }
.hfl-sidebar-actions .hfl-btn-secondary + .hfl-btn-secondary { margin-top: 10px; }

.hfl-sidebar-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.hfl-sidebar-agent-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hfl-sidebar-agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.hfl-sidebar-agent-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.hfl-sidebar-agent-brokerage {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hfl-sidebar-agent-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--hf-brand, #232b2b);
  text-decoration: none;
  margin-top: 2px;
}
.hfl-sidebar-agent-phone:hover { text-decoration: underline; }

.hfl-sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.hfl-sidebar-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
}

.hfl-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hfl-sidebar-submit { margin-top: 4px; }
.hfl-form-note {
  font-size: 11px;
  color: #9ca3af;
  margin: 4px 0 0;
  text-align: center;
}
.hfl-form-success {
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 16px 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  margin: 0;
}

/* ── Mobile sticky bar ────────────────────────────────────── */
#hfl-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.hfl-mobile-bar-agent { display: flex; flex-direction: column; min-width: 0; }
.hfl-mobile-bar-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hfl-mobile-bar-phone {
  font-size: 12px;
  color: var(--hf-brand, #232b2b);
  text-decoration: none;
  font-weight: 600;
}
.hfl-mobile-bar-btn {
  background: var(--hf-brand, #232b2b);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.hfl-mobile-bar-btn:hover { opacity: .9; }

/* ── Lightbox carousel ────────────────────────────────────── */
.hfl-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hfl-lightbox[hidden] { display: none; }
.hfl-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.hfl-lb-close,
.hfl-lb-prev,
.hfl-lb-next {
  position: absolute;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.hfl-lb-close:hover,
.hfl-lb-prev:hover,
.hfl-lb-next:hover { background: rgba(0,0,0,.85); }
.hfl-lb-close { top: 20px; right: 20px; font-size: 28px; }
.hfl-lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); font-size: 32px; }
.hfl-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.hfl-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.6);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hfl-body { grid-template-columns: 1fr; gap: 24px; }
  .hfl-sidebar { position: static; }
  .hfl-photo-grid { height: 380px; }
  .hfl-mortgage { grid-template-columns: 1fr; }
  .hfl-similar-grid,
  .hfl-similar-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hfl-wrap { padding: 12px 12px 80px; }
  .hfl-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 280px;
  }
  .hfl-photo-thumbs { display: none; }
  .hfl-photo-hero .hfl-see-all-mobile {
    position: absolute;
    bottom: 14px;
    right: 14px;
  }
  .hfl-header { flex-direction: column; gap: 16px; }
  .hfl-header-right { width: 100%; }
  .hfl-price { font-size: 28px; }
  .hfl-tab { padding: 12px 16px; font-size: 13px; }
  .hfl-similar-grid,
  .hfl-similar-grid--4 { grid-template-columns: 1fr; }
  #hfl-mobile-bar { display: flex; }
  .hfl-lb-close,
  .hfl-lb-prev,
  .hfl-lb-next { width: 40px; height: 40px; }
  .hfl-lb-prev { left: 8px; }
  .hfl-lb-next { right: 8px; }
}
