/* PropSlick.com - Extras: components with no Mofi or QDB equivalent
   Brand: blue #047857, emerald #10B981, amber #F59E0B, red #EF4444 */
:root {
  --ps-brand:   #047857;
  --ps-brand-d: #065F46;
  --ps-emerald: #10B981;
  --ps-amber:   #F59E0B;
  --ps-red:     #EF4444;
  --ps-ink:     #111827;
  --ps-muted:   #6B7280;
  --ps-line:    #E5E7EB;
  --ps-bg:      #F9FAFB;
}

/* ---- CSS logo box ---- */
.ps-logo-box {
  width: 36px; height: 36px; border-radius: 8px; background: var(--ps-brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px;
  font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0;
}
.ps-logo-txt {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ps-ink); margin-left: 9px; line-height: 1;
}
.ps-logo-txt .logo-slick { color: var(--ps-brand); }
.ps-hdr-logo { display: inline-flex; align-items: center; text-decoration: none !important; }
@media (max-width: 767px) { .ps-logo-txt { display: none; } }

/* white logo for dark backgrounds (footer, admin) */
.ps-logo-light .ps-logo-txt { color: #fff; }
.ps-logo-light .ps-logo-txt .logo-slick { color: #34d399; }

/* ---- enrichment chips ---- */
.ps-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 50px; line-height: 1.3; white-space: nowrap;
}
.ps-chip-walk-best, .ps-chip-walk-good { background: rgba(16,185,129,.12); color: #047857; }
.ps-chip-walk-ok   { background: rgba(245,158,11,.14); color: #b45309; }
.ps-chip-walk-low  { background: rgba(245,158,11,.18); color: #b45309; }
.ps-chip-walk-min  { background: rgba(239,68,68,.12); color: #b91c1c; }
.ps-chip-fema-minimal { background: rgba(16,185,129,.12); color: #047857; }
.ps-chip-fema-moderate{ background: rgba(245,158,11,.14); color: #b45309; }
.ps-chip-fema-high    { background: rgba(239,68,68,.12); color: #b91c1c; }
.ps-chip-fema-undetermined { background: #f1f3f5; color: #6B7280; }
.ps-chip-hud-below     { background: rgba(16,185,129,.12); color: #047857; }
.ps-chip-hud-above     { background: rgba(245,158,11,.14); color: #b45309; }
.ps-chip-hud-way-above { background: rgba(239,68,68,.12); color: #b91c1c; }

/* compare button on cards */
.ps-compare-btn {
  background: none; border: 1px solid var(--ps-line); color: var(--ps-muted);
  font-size: 0.74rem; font-weight: 600; border-radius: 6px; padding: 3px 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: .15s;
}
.ps-compare-btn:hover, .ps-compare-btn.active { background: rgba(4, 120, 87,.1); color: var(--ps-brand); border-color: var(--ps-brand); }

/* badge color helpers for cards */
.listing-badge-featured { background: var(--ps-amber) !important; color: #fff !important; }
.listing-badge-rent     { background: var(--ps-emerald) !important; color: #fff !important; }
.listing-badge-sale     { background: var(--ps-brand) !important; color: #fff !important; }

/* ---- enrichment grid (listing detail) ---- */
.ps-enrichment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.ps-enrich-card { border: 1px solid var(--ps-line); border-radius: 10px; padding: 16px; text-align: center; background: #fff; }
.ps-enrich-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ps-enrich-icon.green { background: rgba(16,185,129,.12); color: #047857; }
.ps-enrich-icon.blue  { background: rgba(4, 120, 87,.12); color: var(--ps-brand); }
.ps-enrich-icon.amber { background: rgba(245,158,11,.14); color: #b45309; }
.ps-enrich-icon.red   { background: rgba(239,68,68,.12); color: #b91c1c; }
.ps-enrich-icon.gray  { background: #f1f3f5; color: #6B7280; }
.ps-enrich-value { font-size: 1.5rem; font-weight: 800; color: var(--ps-ink); line-height: 1.1; }
.ps-enrich-label { font-size: 0.8rem; color: var(--ps-muted); margin-top: 3px; }
.ps-enrich-sub { font-size: 0.7rem; color: #9CA3AF; margin-top: 4px; }
@media (max-width: 767px) { .ps-enrichment-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- HUD FMR block ---- */
.ps-hud-block { border: 1px solid var(--ps-line); border-left: 4px solid var(--ps-brand); border-radius: 10px; padding: 18px; margin: 18px 0; background: #fff; }
.ps-hud-block.below { border-left-color: var(--ps-emerald); }
.ps-hud-block.above { border-left-color: var(--ps-amber); }
.ps-hud-block.way-above { border-left-color: var(--ps-red); }
.ps-hud-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ps-muted); }
.ps-hud-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ps-hud-figure { font-size: 1.4rem; font-weight: 800; color: var(--ps-ink); }
.ps-hud-figure small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ps-muted); }
.ps-hud-note { font-size: 0.74rem; color: var(--ps-muted); margin-top: 12px; }

/* ---- MarketTimeline research card ---- */
.ps-mt-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px;
  background: linear-gradient(120deg, #0f172a 0%, #047857 100%); color: #fff;
  text-decoration: none !important; margin: 18px 0; transition: transform .2s, box-shadow .2s;
}
.ps-mt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(4, 120, 87,.3); color: #fff; }
.ps-mt-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-mt-body { flex: 1; }
.ps-mt-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.ps-mt-title { font-size: 1.05rem; font-weight: 700; margin: 2px 0; }
.ps-mt-desc { font-size: 0.84rem; opacity: .9; }

/* ---- affiliate cards ---- */
.ps-affiliate-card { border: 1px solid var(--ps-line); border-radius: 10px; padding: 16px; margin-bottom: 14px; background: #fff; }
.ps-aff-icon { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ps-aff-icon.blue { background: rgba(4, 120, 87,.12); color: var(--ps-brand); }
.ps-aff-icon.green { background: rgba(16,185,129,.12); color: #047857; }
.ps-aff-icon.amber { background: rgba(245,158,11,.14); color: #b45309; }
.ps-aff-title { font-weight: 700; font-size: 0.98rem; color: var(--ps-ink); }
.ps-aff-desc { font-size: 0.82rem; color: var(--ps-muted); margin: 4px 0 10px; }
.ps-aff-disclosure { font-size: 0.68rem; color: #9CA3AF; margin-top: 8px; }

/* ---- contact card ---- */
.ps-contact-card { border: 1px solid var(--ps-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ps-contact-card-header { background: var(--ps-brand); color: #fff; padding: 16px 18px; }
.ps-contact-card-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.ps-contact-card-header p { font-size: 0.8rem; opacity: .9; margin: 2px 0 0; }
.ps-contact-card-body { padding: 18px; }
.ps-phone-masked { font-family: var(--ps-font-mono, monospace); font-size: 1.1rem; font-weight: 700; color: var(--ps-ink); }

/* ---- status banner (owner) ---- */
.ps-status-banner { border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ps-status-active { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); }
.ps-status-pending_review { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); }
.ps-status-draft, .ps-status-expired { background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.3); }
.ps-status-banner a { font-weight: 600; }

/* ---- market context bar ---- */
.ps-market-bar { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); background: #fff; }
.ps-market-stat { flex: 1; min-width: 150px; padding: 16px 18px; border-right: 1px solid var(--ps-line); }
.ps-market-stat:last-child { border-right: none; }
.ps-market-value { font-size: 1.2rem; font-weight: 800; color: var(--ps-ink); }
.ps-market-value .up { color: var(--ps-emerald); font-size: 0.8rem; font-weight: 700; }
.ps-market-value .down { color: var(--ps-red); font-size: 0.8rem; font-weight: 700; }
.ps-market-label { font-size: 0.76rem; color: var(--ps-muted); margin-top: 2px; }

/* ---- schools table ---- */
.ps-schools-table { width: 100%; }
.ps-schools-table th { font-size: 0.74rem; text-transform: uppercase; color: var(--ps-muted); padding: 8px; border-bottom: 2px solid var(--ps-line); text-align: left; }
.ps-schools-table td { padding: 10px 8px; border-bottom: 1px solid var(--ps-line); font-size: 0.88rem; }
.ps-school-type-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 50px; background: rgba(4, 120, 87,.1); color: var(--ps-brand); }
.ps-school-rating-above_average { color: #047857; font-weight: 700; }
.ps-school-rating-average { color: #b45309; font-weight: 700; }
.ps-school-rating-below_average { color: #b91c1c; font-weight: 700; }

/* ---- fair housing notice / strip ---- */
.ps-fha-notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ps-bg); border: 1px solid var(--ps-line); border-radius: 10px; font-size: 0.82rem; color: var(--ps-muted); margin: 18px 0; }
.ps-fair-housing-strip { background: #0b1220; color: #9ca3af; padding: 14px 0; font-size: 0.78rem; }
.ps-fair-housing-strip img { width: 36px; height: 36px; }

/* ---- compare tray ---- */
.ps-compare-tray {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; background: #111827; color: #fff;
  display: none; align-items: center; gap: 14px; padding: 10px 18px; max-height: 90px; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.ps-compare-tray.show { display: flex; }
.ps-compare-tray .ps-tray-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.ps-tray-slots { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.ps-tray-slot { width: 160px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 8px; padding: 6px 8px; font-size: 0.78rem; }
.ps-tray-slot img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; }
.ps-tray-slot .ps-tray-price { color: #6ee7b7; font-weight: 700; }
.ps-tray-x { margin-left: auto; cursor: pointer; opacity: .7; }
@media (max-width: 767px) { .ps-tray-slots { display: none; } }

/* ---- compare table ---- */
.ps-compare-table { border-collapse: collapse; width: 100%; }
.ps-compare-table th, .ps-compare-table td { border: 1px solid var(--ps-line); padding: 12px; vertical-align: middle; }
.ps-compare-table .ps-row-label { width: 200px; background: var(--ps-bg); font-weight: 600; font-size: 0.84rem; position: sticky; left: 0; }
.ps-compare-section td { background: #111827; color: #fff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .03em; }
.ps-compare-best { background: rgba(16,185,129,.1) !important; }
.ps-compare-worst { background: rgba(239,68,68,.06) !important; }
.ps-compare-featured-col { background: #EFF6FF; }

/* ---- agent cards ---- */
.ps-agent-card { border: 1px solid var(--ps-line); border-radius: 12px; padding: 18px; background: #fff; height: 100%; }
.ps-agent-card.premium { border-color: var(--ps-amber); box-shadow: 0 0 0 1px var(--ps-amber); }
.ps-agent-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ps-bg); }
.ps-agent-initials { width: 110px; height: 110px; border-radius: 50%; background: var(--ps-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; }
.ps-agent-contact-card .card-header { background: var(--ps-brand); color: #fff; }

/* ---- enrichment grid sample on homepage data section ---- */
.ps-data-section { background: var(--ps-brand); color: #fff; }
.ps-data-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ps-data-row .ps-data-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* listing detail price */
.ps-detail-price { font-size: 1.8rem; font-weight: 900; color: var(--ps-ink); }
.ps-detail-price small { font-size: 1rem; font-weight: 600; color: var(--ps-muted); }

/* key facts */
.ps-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.ps-fact-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--ps-line); font-size: 0.9rem; }
.ps-fact-row .lbl { color: var(--ps-muted); }
.ps-fact-row .val { font-weight: 600; color: var(--ps-ink); }
@media (max-width: 575px) { .ps-facts-grid { grid-template-columns: 1fr; } }

/* photo gallery */
.ps-gallery-main { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: var(--ps-bg); }
.ps-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ps-gallery-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 0.78rem; padding: 3px 10px; border-radius: 50px; }
.ps-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.ps-gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.ps-gallery-thumbs img.active { border-color: var(--ps-brand); }

/* lightbox */
.ps-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 2000; display: none; align-items: center; justify-content: center; }
.ps-lightbox.show { display: flex; }
.ps-lightbox img { max-width: 92%; max-height: 88%; object-fit: contain; }
.ps-lightbox .lb-close, .ps-lightbox .lb-prev, .ps-lightbox .lb-next { position: absolute; color: #fff; background: rgba(255,255,255,.15); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.ps-lightbox .lb-close { top: 20px; right: 20px; }
.ps-lightbox .lb-prev { left: 20px; top: 50%; }
.ps-lightbox .lb-next { right: 20px; top: 50%; }

/* step progress for post form */
.ps-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.ps-step { flex: 1; text-align: center; padding: 10px; border-bottom: 3px solid var(--ps-line); color: var(--ps-muted); font-size: 0.85rem; font-weight: 600; }
.ps-step.active { color: var(--ps-brand); border-bottom-color: var(--ps-brand); }
.ps-step.done { color: var(--ps-emerald); border-bottom-color: var(--ps-emerald); }
.ps-select-card { border: 2px solid var(--ps-line); border-radius: 12px; padding: 24px; cursor: pointer; transition: .15s; display: block; }
.ps-select-card.selected, .ps-select-card:hover { border-color: var(--ps-brand); background: rgba(4, 120, 87,.04); }

/* photo upload grid */
.ps-dropzone { border: 2px dashed var(--ps-line); border-radius: 12px; padding: 30px; text-align: center; color: var(--ps-muted); cursor: pointer; }
.ps-dropzone.dragover { border-color: var(--ps-brand); background: rgba(4, 120, 87,.04); }
.ps-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.ps-photo-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--ps-line); }
.ps-photo-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.ps-photo-item .ps-photo-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.ps-photo-item .ps-photo-actions button { background: rgba(0,0,0,.6); color: #fff; border: none; width: 24px; height: 24px; border-radius: 5px; cursor: pointer; }

/* misc */
.section-pad { padding: 56px 0; }
.ps-eyebrow-icon { vertical-align: middle; }
.ps-aff-rail-disclosure { font-size: 0.72rem; color: #9CA3AF; }

/* ============ Homepage supplement ============ */
.ps-hero-badge-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.ps-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; backdrop-filter: blur(6px); }
.ps-hero-badge-stat strong { color: #6ee7b7; }
.ps-hero-headline-accent { color: #34d399; text-shadow: 0 2px 18px rgba(4, 120, 87,.5); }
.ps-hero-tabs { display: flex; gap: 4px; }
.ps-hero-tab { background: rgba(255,255,255,.85); border: none; padding: 10px 22px; font-weight: 600; color: #374151; border-radius: 10px 10px 0 0; cursor: pointer; }
.ps-hero-tab.active { background: #fff; color: #047857; }

.ps-stats-bar { background: #fff; border-bottom: 1px solid var(--ps-line); padding: 22px 0; }
.ps-stat-item { padding: 8px; }
.ps-stat-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.ps-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--ps-ink); line-height: 1.1; }
.ps-stat-label { font-size: .82rem; color: var(--ps-muted); }

.section-title { font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--ps-ink); margin: 4px 0 0; }
.section-header { margin-bottom: 24px; }

.category-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; text-decoration: none; transition: .18s; height: 100%; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--ps-card-shadow-hover); }
.category-card-icon { width: 46px; height: 46px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.category-card-body { flex: 1; display: flex; flex-direction: column; }
.category-card-name { font-weight: 700; color: var(--ps-ink); font-size: .95rem; }
.category-card-count { font-size: .8rem; color: var(--ps-muted); }
.category-card-arrow { color: var(--ps-muted); opacity: 0; transition: .18s; width: 18px; }
.category-card:hover .category-card-arrow { opacity: 1; }

.how-card { position: relative; border: 1px solid var(--ps-line); border-radius: 14px; padding: 28px 24px; background: #fff; height: 100%; }
.how-num { position: absolute; top: 16px; right: 20px; font-size: 2.2rem; font-weight: 800; color: rgba(4, 120, 87,.12); }
.how-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(4, 120, 87,.1); color: #047857; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.how-card h3 { font-size: 1.1rem; font-weight: 700; }
.how-card p { color: var(--ps-muted); font-size: .9rem; margin: 0; }

/* autocomplete */
.ps-autocomplete-box { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--ps-line); border-radius: 0 0 10px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 50; max-height: 280px; overflow-y: auto; }
.ps-ac-item { display: block; padding: 10px 14px; color: var(--ps-ink); text-decoration: none; border-bottom: 1px solid #f1f3f5; font-size: .9rem; }
.ps-ac-item:hover { background: var(--ps-bg); color: #047857; }

/* listing bookmark saved state */
.listing-bookmark.saved { color: #EF4444; }
.listing-bookmark.saved svg { fill: #EF4444; }

/* auth divider */
.auth-divider { display: flex; align-items: center; text-align: center; color: #9CA3AF; font-size: .8rem; margin: 6px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ps-line); }
.auth-divider span { padding: 0 12px; }
.auth-wrap .ps-hdr-logo { display: inline-flex; }

/* Gradient hero headings must be white (override Mofi's dark heading color) */
.ps-city-hero h1, .ps-city-hero h2, .ps-city-hero p,
.ps-city-hero .breadcrumb-item, .ps-city-hero .breadcrumb-item a,
.ps-city-hero .breadcrumb-item.active, .ps-city-hero .breadcrumb-item + .breadcrumb-item::before { color: #fff !important; }
.ps-city-hero .breadcrumb-item a { opacity: .85; }
.ps-city-hero { color: #fff; }

/* ============================================================
   PREMIUM POLISH (Emerald + Gold)  — loaded last, wins
   ============================================================ */
:root {
  --ps-brand:   #047857;
  --ps-brand-d: #065F46;
  --ps-brand-l: #34d399;
  --ps-gold:    #C8A04B;
  --ps-gold-d:  #A9842F;
  --ps-emerald: #059669;
  --ps-ink:     #0B1F17;
  --ps-shadow:  0 1px 2px rgba(11,31,23,.04), 0 8px 24px rgba(11,31,23,.06);
  --ps-shadow-h:0 6px 16px rgba(11,31,23,.10), 0 20px 40px rgba(4,120,87,.12);
}
body { color: #1a2b24; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Logo sizing */
.ps-logo-img { height: 38px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; }
@media (max-width:767px){ .ps-logo-img { height: 32px; } }

/* Buttons: premium weight + subtle depth */
.btn { font-weight: 600; letter-spacing: -0.01em; }
.btn-primary { background: linear-gradient(180deg,#0a8a64,#047857) !important; border:none !important; box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 6px 16px rgba(4,120,87,.22); }
.btn-primary:hover { background: linear-gradient(180deg,#067a59,#065F46) !important; box-shadow: 0 8px 22px rgba(4,120,87,.30); transform: translateY(-1px); }
.btn-lg { padding: .8rem 1.6rem; border-radius: 12px; }
.btn-outline-primary { border-width: 1.5px !important; font-weight: 600; }

/* Cards: refined */
.card { border-color: #eceef0; border-radius: 14px; box-shadow: var(--ps-shadow); }
.listing-card { border-radius: 14px; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s; }
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--ps-shadow-h); }
.listing-card-img-wrap img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.listing-card:hover .listing-card-img-wrap img { transform: scale(1.05); }

/* Featured = exclusive GOLD */
.listing-badge-featured { background: linear-gradient(135deg,#D9B85C,#B8860B) !important; color:#fff !important; box-shadow:0 2px 8px rgba(168,132,47,.35); }
.featured-card { border-color: rgba(200,160,75,.5) !important; box-shadow: 0 0 0 1px rgba(200,160,75,.25), var(--ps-shadow); }
.listing-badge-sale { background: var(--ps-brand) !important; }
.listing-badge-rent { background: #115e4a !important; }

/* Section eyebrow gets a gold tick */
.section-eyebrow { color: var(--ps-brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; display:inline-flex; align-items:center; gap:8px; }
.section-eyebrow::before { content:""; width:22px; height:2px; background: var(--ps-gold); display:inline-block; border-radius:2px; }
.section-title { font-family:'Outfit',sans-serif; font-weight: 800; letter-spacing: -0.02em; }

/* Header refinement */
.ps-hdr { box-shadow: 0 1px 0 rgba(11,31,23,.06); transition: box-shadow .2s; }
.ps-hdr.scrolled { box-shadow: 0 6px 24px rgba(11,31,23,.08); }
.ps-hdr-post-btn { box-shadow: 0 4px 12px rgba(4,120,87,.25); }

/* Scroll-to-top */
.tap-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border:none; color:#fff; display:none; align-items:center; justify-content:center; z-index: 1040; cursor:pointer; box-shadow: 0 8px 24px rgba(4,120,87,.35); }
.tap-top.show { display:flex; }

/* Enrichment chips: refined pill */
.ps-chip { border:1px solid rgba(0,0,0,.04); }

/* MT research card: emerald->gold premium accent */
.ps-mt-card { background: linear-gradient(120deg,#0b2018 0%,#047857 100%); border:1px solid rgba(200,160,75,.25); }
.ps-mt-card .ps-mt-icon { background: rgba(200,160,75,.18); color: var(--ps-gold); }

/* Data advantage band -> deep emerald */
.ps-data-section { background: linear-gradient(135deg,#06231a 0%,#047857 100%) !important; }

/* Hero polish */
.hero-headline { font-family:'Outfit',sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.hero-headline-accent { color: var(--ps-brand-l); }
.hero-search-btn { background: linear-gradient(180deg,#0a8a64,#047857) !important; }

/* City card text shadow for legibility */
.city-card-name, .city-card-count { text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* Gradient hero (programmatic pages) -> emerald */
.ps-city-hero { background: linear-gradient(135deg,#06231a,#047857) !important; }

/* ============================================================
   LISTING PAGE — premium
   ============================================================ */
.ps-gallery-main { position: relative; width: 100%; padding-top: 60%; border-radius: 18px; overflow: hidden; background: var(--ps-bg); box-shadow: var(--ps-shadow); }
.ps-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ps-gallery-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.ps-gbadge { display:inline-flex; align-items:center; gap:5px; font-size:.74rem; font-weight:700; padding:6px 12px; border-radius:50px; color:#fff; backdrop-filter: blur(4px); }
.ps-gbadge-featured { background: linear-gradient(135deg,#D9B85C,#B8860B); box-shadow:0 2px 10px rgba(168,132,47,.4); }
.ps-gbadge-type { background: rgba(4,120,87,.92); }
.ps-gallery-viewall { position:absolute; bottom:14px; right:14px; z-index:2; border:none; background: rgba(11,31,23,.72); color:#fff; font-size:.78rem; font-weight:600; padding:8px 14px; border-radius:50px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; backdrop-filter: blur(4px); }
.ps-gallery-thumbs { display:flex; gap:10px; overflow-x:auto; margin-top:12px; padding-bottom:4px; }
.ps-gallery-thumbs img { width:96px; height:70px; object-fit:cover; border-radius:10px; border:2px solid transparent; cursor:pointer; transition:.15s; }
.ps-gallery-thumbs img:hover { transform: translateY(-2px); }
.ps-gallery-thumbs img.active { border-color: var(--ps-brand); box-shadow:0 0 0 2px rgba(4,120,87,.2); }

.ps-detail-header { background:#fff; border:1px solid var(--ps-line); border-radius:16px; padding:22px 24px; box-shadow: var(--ps-shadow); }
.ps-detail-price { font-family:'Outfit',sans-serif; font-size:2.2rem; font-weight:900; color:var(--ps-ink); line-height:1; letter-spacing:-0.02em; }
.ps-detail-tag { display:inline-block; background:rgba(4,120,87,.1); color:var(--ps-brand); font-weight:700; font-size:.72rem; padding:4px 10px; border-radius:50px; margin-top:8px; vertical-align:middle; }
.ps-detail-ppsf { color:var(--ps-muted); font-size:.82rem; margin-left:8px; }
.ps-detail-title { font-family:'Outfit',sans-serif; font-size:1.5rem; font-weight:700; color:var(--ps-ink); letter-spacing:-0.01em; }
.ps-detail-addr { display:flex; align-items:center; gap:6px; font-size:.92rem; }
.ps-detail-specs { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.ps-spec { display:flex; align-items:center; gap:8px; background:var(--ps-bg); border:1px solid var(--ps-line); border-radius:12px; padding:10px 16px; font-size:.9rem; }
.ps-spec i { width:18px; height:18px; color:var(--ps-brand); }

.ps-insights { background:#fff; border:1px solid var(--ps-line); border-radius:16px; padding:6px 20px 20px; margin-top:20px; box-shadow: var(--ps-shadow); position:relative; overflow:hidden; }
.ps-insights::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--ps-brand), var(--ps-gold)); }
.ps-insights-hd { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:18px 0 4px; }
.ps-insights-title { font-family:'Outfit',sans-serif; font-weight:800; color:var(--ps-ink); display:inline-flex; align-items:center; gap:7px; }
.ps-insights-title i { color: var(--ps-brand); }
.ps-insights-sub { font-size:.8rem; color:var(--ps-muted); }
.ps-insights .ps-enrichment-grid { margin: 8px 0 0; }
.ps-enrich-card { border:1px solid var(--ps-line); border-radius:14px; padding:18px 14px; text-align:center; background:#fff; transition:.2s; }
.ps-enrich-card:hover { border-color: rgba(4,120,87,.3); box-shadow:0 6px 16px rgba(4,120,87,.08); transform: translateY(-2px); }
.ps-enrich-icon { width:46px; height:46px; }
.ps-enrich-value { font-family:'Outfit',sans-serif; font-size:1.7rem; }

/* Sticky contact card premium */
.ps-contact-card { border:1px solid var(--ps-line); border-radius:16px; box-shadow: var(--ps-shadow-h); }
.ps-contact-card-header { background: linear-gradient(135deg,#047857,#065F46); }
.ps-affiliate-card { border-radius:14px; }

/* ============================================================
   HERO SEARCH TABS — premium segmented control (fix button chrome)
   ============================================================ */
.hero-search-tabs { display:flex; gap:4px; background:#eef1f0; border:none !important; padding:5px; border-radius:14px; margin:0 auto 18px; width:-moz-fit-content; width:fit-content; }
.hero-tab { -webkit-appearance:none; appearance:none; border:none !important; background:none; padding:9px 26px; border-radius:10px; font-weight:700; font-size:14px; color:#5b6b64; cursor:pointer; transition:.18s; border-bottom:none !important; white-space:nowrap; }
.hero-tab:hover { color: var(--ps-brand); background: rgba(255,255,255,.5); }
.hero-tab.active { background:#fff !important; color: var(--ps-brand) !important; box-shadow:0 1px 4px rgba(11,31,23,.15); border-bottom:none !important; }

/* Cities grid: clean responsive premium grid */
.cities-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.city-card { aspect-ratio: 4/3; min-height:170px; }
@media (max-width:991px){ .cities-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width:575px){ .cities-grid { grid-template-columns: repeat(2,1fr); } }
.city-card-name { font-family:'Outfit',sans-serif; font-size:1.05rem; font-weight:700; }

/* Browse dropdown: open on hover (desktop) in addition to click */
@media (min-width: 992px) {
  .ps-hdr-dd-wrap:hover .ps-hdr-dd { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
}
.ps-hdr-dd-trigger { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; }
.ps-caret { transition: transform .18s; }
.ps-hdr-dd-wrap.open .ps-caret, .ps-hdr-dd-wrap:hover .ps-caret { transform: rotate(180deg); }
