/* ═══════════════════════════════════════════════════════════════
   PROPERTIES PAGE — hero, layout, cards, filter panel
   Loaded only on /properties, /buy/, /rent/, /location/ pages.
   CSS ported from wireframe-interactive.html; .mode-* class selectors
   converted to real @media queries for the live site.
═══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.lc-hero{
  background:linear-gradient(135deg,#1e1b4b,#312e81); color:white;
  padding:28px 24px;
  /* override home.css .lc-hero which sets min-height:100vh on all pages */
  min-height:0; display:block; overflow:visible;
}
.lc-hero::before,.lc-hero::after{ display:none; }
.lc-hero .crumb{ font-size:12px; opacity:.7; margin-bottom:10px; }
.lc-hero .crumb a{ color:inherit; text-decoration:none; }
.lc-hero h1{ font-size:26px; font-weight:800; margin-bottom:6px; line-height:1.2; }
.lc-badge-count{ display:inline-block; background:rgba(255,255,255,.15); border-radius:999px; padding:4px 12px; font-size:12px; margin-top:6px; }
@media(max-width:767px){ .lc-hero h1{ font-size:20px; } }

/* ── PAGE WRAP ── */
.lc-page-wrap{ max-width:1280px; margin:0 auto; }

/* ── PROPERTIES LAYOUT ── */
.lc-properties-layout{
  display:flex; gap:24px; align-items:flex-start;
  padding:30px 24px 60px;
}
@media(min-width:768px) and (max-width:1024px){
  .lc-properties-layout{ display:block; padding:20px 16px 60px; }
}
@media(max-width:767px){
  .lc-properties-layout{ display:block; padding:20px 16px 60px; }
}

/* ── SIMPLE KEYWORD + LOCATION SEARCH ROW (above results grid) ── */
.lc-search-row{
  display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap;
}
.lc-search-row input{
  flex:1; min-width:130px; padding:9px 12px;
  border:1.5px solid var(--line); border-radius:8px; font-size:13px;
}
.lc-search-row input:focus{ outline:none; border-color:var(--brand); }
.lc-search-row button{
  padding:9px 20px; border:none; border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:white; font-weight:700; font-size:13px; cursor:pointer; white-space:nowrap;
}

/* ── RESULTS HEAD ── */
.lc-results-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.lc-results-head span{ font-size:13px; color:var(--muted); }
.lc-view-toggle{ display:flex; gap:6px; }
.lc-view-toggle button{
  width:30px; height:30px; border:1.5px solid var(--line); border-radius:6px;
  background:white; cursor:pointer; transition:all .15s;
}
.lc-view-toggle button:hover{ border-color:var(--brand); }

/* ── RESULTS GRID ── */
.lc-results-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media(max-width:767px){ .lc-results-grid{ grid-template-columns:1fr; } }

/* List view mode (toggled via lcSetView) */
.lc-results-grid.lc-list-view{ grid-template-columns:1fr; }
.lc-results-grid.lc-list-view .lc-card{ display:flex; flex-direction:row; }
.lc-results-grid.lc-list-view .lc-card-img{ width:180px; height:auto; flex-shrink:0; }
.lc-view-toggle button.active{ border-color:var(--brand); background:#fff3e8; color:var(--brand); }

/* ── PROPERTY CARDS ── */
.lc-card{
  border:1px solid var(--line); border-radius:14px; overflow:hidden;
  background:white; cursor:pointer; transition:transform .2s,box-shadow .2s;
}
.lc-card:hover{ transform:translateY(-3px); box-shadow:0 12px 32px rgba(0,0,0,.1); border-color:var(--brand); }
.lc-card-img{
  height:130px; background:linear-gradient(135deg,#fde68a,#fbbf24);
  position:relative; display:flex; align-items:flex-start; padding:10px; gap:6px;
  overflow:hidden; flex-shrink:0;
}
.lc-card-img.alt{ background:linear-gradient(135deg,#bae6fd,#7dd3fc); }
.lc-card-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.lc-card-badge{
  background:var(--brand); color:white; font-size:10px; font-weight:700;
  padding:3px 8px; border-radius:999px; position:relative; z-index:1; flex-shrink:0;
}
.lc-card-badge.outline{ background:white; color:var(--ink); border:1px solid var(--line); }
.lc-card-badge.rent{ background:#EFF6FF; color:#2563EB; border:1px solid #BFDBFE; }
.lc-card-body{ padding:14px; }
.lc-card-price{ color:var(--brand); font-weight:800; font-size:17px; margin-bottom:4px; }
.lc-card-title{ font-size:14px; font-weight:700; margin-bottom:4px; color:var(--ink); line-height:1.3; }
.lc-card-loc{ font-size:12px; color:var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   FILTER PANEL — base rules (not breakpoint-scoped)
   Copied verbatim from wireframe-interactive.html <style> block
═══════════════════════════════════════════════════════════════ */
.lc-filter-panel{
  background:#fff; font-family:inherit; border-radius:14px;
  border:1px solid var(--line); overflow:hidden;
}
.lc-filter-head{
  display:none; align-items:center; justify-content:space-between;
  padding:16px 18px; border-bottom:1px solid var(--line); flex-shrink:0;
}
.lc-filter-head-left{ display:flex; align-items:center; gap:9px; }
.lc-filter-head-icon{
  width:30px; height:30px; border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:white; font-size:14px;
}
.lc-filter-head-title{ font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.lc-filter-reset{
  font-size:12.5px; font-weight:700; color:var(--brand); background:none; border:none;
  cursor:pointer; padding:5px 7px; border-radius:6px;
}
.lc-filter-reset:hover{ background:#fff3e8; }
.lc-filter-body{ padding:12px 18px 4px; }
.lc-filter-group{ border-bottom:1px solid var(--soft); padding:13px 0; }
.lc-filter-group:last-child{ border-bottom:none; }
.lc-filter-group-head{
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer; user-select:none; min-height:32px;
}
.lc-filter-group-title{ font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.lc-filter-group-right{ display:flex; align-items:center; gap:8px; }
.lc-filter-count{
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:white;
  font-size:10.5px; font-weight:800; display:none; align-items:center; justify-content:center;
}
.lc-filter-count.show{ display:flex; }
.lc-filter-chevron{
  width:22px; height:22px; border-radius:6px; background:var(--soft);
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  transition:all .2s; flex-shrink:0; font-size:11px;
}
.lc-filter-group-head[aria-expanded="true"] .lc-filter-chevron{
  background:#fff3e8; color:var(--brand); transform:rotate(180deg);
}
.lc-filter-group-body{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .25s cubic-bezier(.16,1,.3,1); overflow:hidden;
}
.lc-filter-group-body.open{ grid-template-rows:1fr; }
.lc-filter-group-body-inner{ overflow:hidden; min-height:0; }
.lc-filter-options{ padding-top:8px; display:flex; flex-direction:column; gap:1px; }
.lc-filter-opt{
  display:flex !important; flex-direction:row !important; align-items:center !important;
  gap:11px; padding:8px 6px; border-radius:7px; cursor:pointer;
  transition:background .15s; min-height:38px; width:100%;
}
.lc-filter-opt:hover{ background:var(--soft); }
.lc-filter-opt input{ position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.lc-filter-radio{
  width:18px; height:18px; border-radius:50%; border:2px solid var(--line);
  flex-shrink:0; position:relative; transition:all .15s;
}
.lc-filter-opt input:checked ~ .lc-filter-radio{ border-color:var(--brand); }
.lc-filter-opt input:checked ~ .lc-filter-radio::after{
  content:''; position:absolute; inset:3px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
}
.lc-filter-checkbox{
  width:18px; height:18px; border-radius:5px; border:2px solid var(--line);
  flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:all .15s;
}
.lc-filter-opt input:checked ~ .lc-filter-checkbox{
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); border-color:transparent;
}
.lc-filter-checkbox svg{ opacity:0; transition:opacity .12s; }
.lc-filter-opt input:checked ~ .lc-filter-checkbox svg{ opacity:1; }
.lc-filter-opt-label{ font-size:13.5px; font-weight:500; flex:1; min-width:0; }
.lc-filter-opt input:checked ~ .lc-filter-opt-label{ color:var(--brand); font-weight:700; }
.lc-filter-opt-meta{ font-size:11.5px; color:var(--muted); flex-shrink:0; }
.lc-filter-chip-grid{ display:flex; flex-wrap:wrap; gap:7px; padding-top:8px; }
.lc-filter-chip{
  padding:6px 14px; border-radius:999px; border:1.5px solid var(--line); background:white;
  font-size:12.5px; font-weight:700; cursor:pointer; transition:all .15s;
  min-height:34px; display:flex; align-items:center;
}
.lc-filter-chip:hover{ border-color:var(--brand); }
.lc-filter-chip.lc-on{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border-color:transparent; color:white;
}
.lc-filter-budget-row{ display:flex; align-items:center; gap:8px; padding-top:8px; }
.lc-filter-budget-input{
  flex:1; min-width:0; padding:8px 10px; border:1.5px solid var(--line);
  border-radius:7px; font-size:13px;
}
.lc-filter-footer{ padding:14px 18px; border-top:1px solid var(--line); flex-shrink:0; }
.lc-filter-apply-btn{
  width:100%; padding:13px; border-radius:999px; border:none; cursor:pointer;
  background:linear-gradient(135deg,#f97316 0%,#f59e0b 50%,#ef4444 100%);
  color:white; font-size:14px; font-weight:800;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.lc-filter-applied-count{
  background:rgba(255,255,255,.25); padding:2px 8px; border-radius:999px;
  font-size:11.5px; display:none;
}
.lc-filter-applied-count.show{ display:inline-flex; }
.lc-filter-trigger-btn{
  display:none; align-items:center; gap:7px; padding:9px 16px;
  border-radius:999px; border:1.5px solid var(--line); background:white;
  font-size:13px; font-weight:700; cursor:pointer; margin-bottom:14px;
}
.lc-filter-trigger-badge{
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:white;
  font-size:10.5px; font-weight:800; padding:1px 6px; border-radius:999px; display:none;
}
.lc-filter-trigger-badge.show{ display:inline-flex; }
.lc-sheet-drag-handle{
  width:32px; height:4px; border-radius:999px; background:var(--line);
  margin:9px auto 0; flex-shrink:0;
}

/* ── DESKTOP ≥1025px: sticky sidebar, no header bar, no trigger ── */
@media(min-width:1025px){
  .lc-filter-trigger-btn{ display:none !important; }
  .lc-filter-panel{ position:sticky; top:16px; width:260px; flex-shrink:0; }
  .lc-filter-panel .lc-filter-head{ display:none !important; }
  .lc-filter-backdrop{ display:none !important; }
}

/* ── TABLET 768–1024px: trigger button + inline collapsible panel ── */
@media(min-width:768px) and (max-width:1024px){
  .lc-filter-trigger-btn{ display:inline-flex; }
  .lc-filter-panel{ display:none; width:100%; margin-bottom:18px; }
  .lc-filter-panel.lc-tablet-open{ display:block; }
  .lc-filter-panel .lc-filter-head{ display:flex !important; background:var(--soft); }
  .lc-filter-backdrop{ display:none !important; }
}

/* ── MOBILE ≤767px: fixed bottom sheet ── */
@media(max-width:767px){
  .lc-filter-trigger-btn{
    display:inline-flex; position:sticky; top:56px; z-index:50;
    background:#fff; margin-bottom:14px;
  }
  .lc-filter-backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9000;
    opacity:0; visibility:hidden; transition:opacity .25s ease;
  }
  .lc-filter-backdrop.lc-open{ opacity:1; visibility:visible; }
  .lc-filter-panel{
    position:fixed; left:0; right:0; bottom:0; top:12%; width:auto;
    border-radius:18px 18px 0 0; z-index:9100; display:flex; flex-direction:column;
    transform:translateY(100%); transition:transform .3s cubic-bezier(.16,1,.3,1);
    box-shadow:0 -8px 30px rgba(0,0,0,.2);
  }
  .lc-filter-panel.lc-open{ transform:translateY(0); }
  .lc-filter-panel .lc-filter-head{ display:flex !important; }
  .lc-filter-panel .lc-filter-body{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .lc-filter-panel .lc-filter-footer{ flex-shrink:0; }
  body.lc-no-scroll{ overflow:hidden; }
}
