/* ===== Resets to make sure things can show ===== */
#fp-app{display:block;}
#fp-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;}
#fp-app .fp-card{display:block;}
#fp-app .fp-card.is-filtered-out{display:none!important;}

/* ===== Filter bar ===== */
/* Desktop (>=992): centered, tight, always visible */
@media (min-width:992px){
  #fp-toggle{display:none!important;}
  #fp-app > #fp-filters{
    display:inline-flex!important;
    justify-content:center; align-items:center; gap:16px;
    margin:12px auto 22px; width:auto; padding:10px 14px;
    background:#eff5f5; border:1px solid #e6e9f2; border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
  }
  #fp-app > #fp-filters .control{
    display:flex; align-items:center; gap:8px; margin:0; padding:0; border:0; font-size:14px; white-space:nowrap;
  }
  #fp-app > #fp-filters .control select,
  #fp-app > #fp-filters .control input{
    height:36px; padding:4px 8px; border:1px solid #cfc9c2; border-radius:2px; background:#fff; line-height:1.2;
  }
  #fp-bedrooms{min-width:90px;}
  #fp-price-min,#fp-price-max,#fp-sqft-min,#fp-sqft-max{width:86px;}
  #fp-movein{width:140px;}
  #fp-clear.fp-clear-btn{
    padding:4px 12px; border-radius:2px; font-weight:600; background:#575e65; border-color:#222; color:#fff;
  }
}

/* Tablet (768–991): show full bar, no toggle */
@media (min-width:768px) and (max-width:991.98px){
  #fp-toggle{display:none!important;}
  #fp-app > #fp-filters{
    display:flex!important; width:100%!important;
    margin:10px 0 16px!important; padding:12px;
    justify-content:center; gap:14px; flex-wrap:wrap;
    background:#ffffff; border:1px solid #e6e9f2; border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
  }
  #fp-app > #fp-filters .control select,
  #fp-app > #fp-filters .control input{height:38px;}
}

/* Mobile (<=767): floating toggle + drawer card */
@media (max-width:767.98px){
  /* Floating button */
  #fp-toggle{
    display:inline-block!important; position:relative; left:5px; bottom:8px; width:40px; height:40px;
    border:0; border-radius:2%; background:#575e65; box-shadow:0 10px 22px rgba(0,0,0,.2); z-index:1100; cursor:pointer;
    color:transparent; text-indent:-9999px; overflow:hidden;
    background-repeat:no-repeat; background-position:center; background-size:58% auto;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' y1='7' x2='20' y2='7'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='4' y1='17' x2='20' y2='17'/></g><circle cx='9' cy='7' r='2.5' fill='%23fff'/><circle cx='14' cy='12' r='2.5' fill='%23fff'/><circle cx='8' cy='17' r='2.5' fill='%23fff'/></svg>");
  }
  #fp-app:not(.filters-open) > #fp-filters{display:none!important;}
  #fp-app.filters-open > #fp-filters{
    display:flex!important; width:100%!important; margin:10px 0 16px!important; padding:14px;
    flex-wrap:wrap; gap:12px; background:#fff; border:1px solid #e6e9f2; border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
  }
  #fp-app > #fp-filters .control{
    width:100%; display:flex!important; flex-direction:column; align-items:stretch;
    gap:6px; margin:0; padding:0; border:0; font-size:14px;
  }
  #fp-app > #fp-filters .control select,
  #fp-app > #fp-filters .control input{
    width:100%; height:42px; padding:8px 10px; border:1px solid #cfc9c2; border-radius:8px; background:#fff;
  }
  #fp-app > #fp-filters .control input + input{ margin-top:8px; }
  #fp-clear.fp-clear-btn{
    width:100%; height:44px; margin-top:4px; padding:10px 14px; border-radius:2px;
    font-weight:700; font-size:16px; background:#575e65; border-color:#222; color:#fff;
  }
  /* Default (filters closed) – your current “sliders” icon stays */
  #fp-toggle{
    background-image:url(data:image/svg+xml;utf8,<svg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 24\ 24\'><g\ fill=\'none\'\ stroke=\'%23fff\'\ stroke-width=\'2\'\ stroke-linecap=\'round\'\ stroke-linejoin=\'round\'><line\ x1=\'4\'\ y1=\'7\'\ x2=\'20\'\ y2=\'7\'/><line\ x1=\'4\'\ y1=\'12\'\ x2=\'20\'\ y2=\'12\'/><line\ x1=\'4\'\ y1=\'17\'\ x2=\'20\'\ y2=\'17\'/></g><circle\ cx=\'9\'\ cy=\'7\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'14\'\ cy=\'12\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'8\'\ cy=\'17\'\ r=\'2.5\'\ fill=\'%23fff\'/></svg>);
    transition: background-image .18s ease
  }

  /* When open – show a white “X” */
  #fp-app.filters-open #fp-toggle{
    background-image:url(data:image/svg+xml;utf8,<svg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 24\ 24\'><path\ d=\'M6\ 6l12\ 12M18\ 6L6\ 18\'\ stroke=\'%23fff\'\ stroke-width=\'2\'\ stroke-linecap=\'round\'\ stroke-linejoin=\'round\'/></svg>);
  }
}

/* ===== Units table: ensure visible even if other CSS conflicts ===== */
.fp-table-wrap{overflow:auto;}
table.units{width:100%; border-collapse:separate; border-spacing:0 12px;}
table.units thead{display:table-header-group;}
@media (min-width:641px){ table.units thead{display:none;} }

table.units tbody tr{ display:table-row; }
table.units tbody tr.unit-row{
  display:grid;
  grid-template-columns:1.2fr 1.2fr 1fr auto;
  background:#fff; border:1px solid #e9ecef; border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
table.units td{
  border:0!important; padding:16px 18px; vertical-align:middle; white-space:nowrap;
}
table.units td.right{text-align:right;}
table.units td:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px;}
table.units td:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px;}

.u-id .u-num{color:#737f6f;font-weight:700;font-size:18px;line-height:1.1;}
.u-id .u-meta{margin-top:4px;color:#6b7280;font-size:13px;}
.u-price .u-price-line{color:#111827;font-size:14px;}
.u-price .u-price-line strong{font-weight:700;}
.u-availability .u-avail{color:#1f7a1f;font-weight:600;font-size:14px;}

.btn-lease{
  display:inline-block;padding:10px 16px;background:#312a25;color:#fff;border-radius:2px;text-decoration:none;font-weight:700;line-height:1;border:1px solid #312a25;font-size:14px;
}
.btn-lease:hover,.btn-lease:focus{background:#575e65;border-color:#222;color:#fff;}

/* Mobile table cards */
@media (max-width:640px){
  table.units{border-spacing:0 10px;}
  table.units tbody tr.unit-row{display:block;padding:10px 12px;}
  table.units td{display:flex;justify-content:space-between;gap:12px;padding:8px 0;white-space:normal;}
  table.units td.u-action{padding-top:12px;}
  .btn-lease{width:100%;text-align:center;}
}

/* ===== Thumbnail strip always visible ===== */
#floorplans .fp-thumbs{display:flex!important;gap:20px;margin:12px 0;flex-wrap:wrap;}
#floorplans .fp-thumb{width:64px;height:64px;border:1px solid #e6e9f2;border-radius:8px;background:#fbf9f6 center/cover no-repeat;cursor:pointer;}
#floorplans .fp-thumb.is-active{outline:2px solid #89c5be;outline-offset:2px;}
@media (max-width:640px){ #floorplans .fp-thumb{width:56px;height:56px;} }

/* Safety: make main image visible and clickable */
#floorplans .fp-img{padding:1.25rem;display:flex;align-items:center;justify-content:center;min-height:250px;background:#fff center/contain no-repeat;border-bottom:1px solid #c4e5dc;}
#floorplans .fp-body{padding:1rem;}

/* ===== FIX FLOORPLAN GRID LAYOUT ===== */
/* 1 col on phones, 2 cols on tablets, 3 cols on desktop */
#fp-grid.fp-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
@media (min-width: 768px){
  #fp-grid.fp-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1100px){
  #fp-grid.fp-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Cards should just auto-flow; never rely on grid-column spans */
#fp-grid .fp-card{
  grid-column: auto !important;
  width: 100% !important;
  margin: 0;
}

/* ===== IMAGE BOX: keep proper shape without padding hacks ===== */
#fp-grid .fp-img{
  padding-top: 0 !important;
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: #fff;
  background-position: center;
  background-size: contain;
  border-bottom: 1px solid #c4e5dc;
}

/* ===== CARD BODY / SPACING POLISH ===== */
#fp-grid .fp-body{ padding: 14px 16px 16px !important; background: #f4f5f5; }
#fp-grid .fp-title {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 1.23rem;
  color: #575e65;
}
#fp-grid .fp-meta{ color:#222; font-size: .95rem; font-weight: 550; }

/* Thumbs row: horizontal, neat spacing */
#fp-grid .fp-thumbs{
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
#fp-grid .fp-thumb{
  width: 64px; height: 64px;
  border: 1px solid #e6e9f2;
  border-radius: 8px;
  background: #fbf9f6 center/cover no-repeat;
  cursor: pointer;
}
#fp-grid .fp-thumb.is-active{ outline: 2px solid #89c5be; outline-offset: 2px; }
@media (max-width: 640px){
  #fp-grid .fp-thumb{ width: 56px; height: 56px; }
}

/* ===== FILTER BAR stays tidy & centered ===== */
#fp-app > #fp-filters{
  max-width: 1200px;
  margin: 12px auto 22px !important;
  width: fit-content;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 14px;
  background: #f8f7f5;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* Tablet: show full-width bar (no floating button) */
@media (min-width: 768px) and (max-width: 991.98px){
  #fp-app > #fp-filters{
    width: 100% !important;
    justify-content: center;
    gap: 14px;
  }
}

/* Mobile: use the floating toggle and slide-open full-width card */
@media (max-width: 767.98px){
  #fp-app:not(.filters-open) > #fp-filters{ display: none !important; }
  #fp-app.filters-open > #fp-filters{
    width: 100% !important;
    margin: 10px 0 16px !important;
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  #fp-app > #fp-filters .control{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  #fp-app > #fp-filters .control input + input{ margin-top: 8px; }
  #fp-clear.fp-clear-btn{ width: 100%; height: 44px; font-weight: 700; }
}

/* Units table cards (unchanged, just make sure they fill the card) */
#fp-grid .fp-table-wrap{ width: 100%; }

/* ========== Floorplan grid stays 1/2/3 columns, never skinny ========== */
#fp-grid.fp-grid{
  display:grid !important;
  grid-template-columns: 1fr !important;
  gap:24px !important;
}
@media (min-width:768px){
  #fp-grid.fp-grid{ grid-template-columns: repeat(1,minmax(0,1fr)) !important; }
}
@media (min-width:1100px){
  #fp-grid.fp-grid{ grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
#fp-grid .fp-card{ grid-column:auto !important; }

/* Image box shows whole plan; consistent tile shape */
#fp-grid .fp-img{
  padding-top:0 !important;
  aspect-ratio:10/3;
  background:#fff center/contain no-repeat;
  border-bottom:0px solid #c4e5dc;
}

/* ========== UNITS “TABLE” -> modern card rows, no scroll ========== */
#fp-grid .fp-table-wrap{ overflow:visible !important; }

table.units{
  width:100%;
  border-collapse:separate !important;
  border-spacing:0 14px !important;
  table-layout:fixed;
  border: 0px solid #323232;
}
table.units thead{ display:none; }

table.units tbody tr{
  display:grid !important;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  align-items:center;
  gap:16px;
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:1px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  padding:14px 16px;
  margin-bottom: .25rem !important;
}

table.units td{
  padding:0 !important;
  border:0 !important;
  white-space:normal !important;
}

.u-id .u-num{ color:#198763; font-weight:700; font-size:18px; line-height:1.1; }
.u-id .u-meta{ margin-top:4px; color:#212529; font-size:15px; }
.u-price .u-price-line{ color:#111827; font-size:14px; }
.u-price .u-price-line strong{ font-weight:700; }
.u-availability .u-avail{ color:#1f7a1f; font-weight:600; font-size:14px; }

.u-action .btn-lease{
  display:inline-block;
  padding:10px 16px;
  background: #312a25;
  border: 1px solid #282828;
  color: #fff;
  border-radius:4px;
  text-decoration:none;
  font-weight:700;
  line-height:1;
  border:1px solid #198787;
  white-space:nowrap;
}
.u-action .btn-lease:hover,
.u-action .btn-lease:focus{ background:#ebf5f5; border-color:#415d56; color:#222; }

@media (max-width:640px){
  table.units{ border-spacing:0 10px !important; }
  table.units tbody tr{
    grid-template-columns: 1fr;
    gap:10px;
    padding:12px;
  }
  table.units td{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
  }
  table.units td::before{
    content:attr(data-label);
    font-weight:600;
    color:#111;
    margin-right:12px;
  }
  .u-action .btn-lease{ width:100%; text-align:center; }
}

/* ========== thumbs tidy ========== */
#fp-grid .fp-thumbs{ display:flex !important; flex-wrap:wrap; gap:8px; margin-top:12px; }
#fp-grid .fp-thumb{
  width:64px; height:64px; border:1px solid #e6e9f2; border-radius:8px;
  background:#fbf9f6 center/cover no-repeat; cursor:pointer;
}
#fp-grid .fp-thumb.is-active{ outline:2px solid #89c5be; outline-offset:2px; }
@media (max-width:640px){ #fp-grid .fp-thumb{ width:56px; height:56px; } }

/* ========== filter bar keeps centered and neat ========== */
#fp-app > #fp-filters{
  max-width:1200px;
  margin:12px auto 22px !important;
  width:fit-content;
  display:flex !important;
  align-items:center; justify-content:center;
  gap:16px; padding:10px 14px;
  background:#f8f7f5; border:1px solid #e6e9f2; border-radius:2px;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}
@media (min-width:768px) and (max-width:991.98px){
  #fp-app > #fp-filters{ width:100% !important; gap:14px; }
}
@media (max-width:767.98px){
  #fp-app:not(.filters-open) > #fp-filters{ display:none !important; }
  #fp-app.filters-open > #fp-filters{
    width:100% !important; margin:10px 0 16px !important; padding:14px;
    flex-wrap:wrap; gap:12px; background:#fff; border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
  }
  #fp-app > #fp-filters .control{ width:100%; display:flex; flex-direction:column; gap:6px; }
  #fp-app > #fp-filters .control input + input{ margin-top:8px; }
  #fp-clear.fp-clear-btn{ width:100%; height:44px; font-weight:700; }
}

/* ---------------------------------------
   UNITS: mobile fix + polish (<= 640px)
   --------------------------------------- */
@media (max-width: 640px){
  table.units tbody tr{
    display:block !important;
    padding:12px 12px !important;
    border-radius:12px !important;
    gap:0 !important;
  }
  table.units td{
    display:flex !important;
    align-items:baseline !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:10px 0 !important;
    border:0 !important;
    white-space:normal !important;
  }
  table.units td::before{
    content:attr(data-label);
    font-weight:600;
    font-size:13px;
    color:#6b7280;
    margin-right:12px;
  }
  table.units td.u-id{
    display:flex !important;
    flex-wrap:wrap;
  }
  table.units td.u-id .u-num{
    font-size:18px;
    font-weight:700;
    color:#6c774e;
  }
  table.units td.u-id .u-meta{
    width:100%;
    margin-top:4px;
    font-size:13px;
    color:#6b7280;
  }
  table.units td.u-price .u-price-line,
  table.units td.u-availability .u-avail{ font-size:14px; }
  table.units td.u-action{ padding-top:12px !important; }
  table.units td.u-action .btn-lease{ width:100%; text-align:center; }
}

@media (max-width: 640px){
  .fp-table-wrap{ margin-top:6px; }
}

@media (max-width: 640px){
  table.units{ border-spacing: 0 8px; }
  table.units tbody tr{
    display:block !important;
    padding:8px 10px !important;
    border-radius:10px !important;
    box-shadow:0 4px 12px rgba(0,0,0,.04);
  }
  table.units td{
    display:flex !important;
    align-items:baseline !important;
    justify-content:space-between !important;
    gap:8px !important;
    padding:6px 0 !important;
    border:0 !important;
    white-space:normal !important;
    line-height:1.25;
  }
  table.units td::before{
    content:attr(data-label);
    font-weight:600;
    font-size:12px;
    color:#6b7280;
    margin-right:8px;
  }
  table.units td.u-id{ flex-wrap:wrap; padding-top:2px !important; padding-bottom:4px !important; }
  table.units td.u-id .u-num{
    font-size:16px;
    font-weight:700;
    color:#198763;
    line-height:1.2;
  }
  table.units td.u-id .u-meta{
    width:100%;
    margin-top:2px;
    font-size:12px;
    color:#6b7280;
  }
  table.units td.u-price .u-price-line,
  table.units td.u-availability .u-avail{
    font-size:13px;
    line-height:1.25;
  }
  table.units td.u-price .u-price-line strong{ font-weight:700; }
  table.units td.u-action{ padding-top:8px !important; }
  table.units td.u-action .btn-lease{
    width:100%;
    height:38px;
    padding:8px 10px;
    font-size:14px;
    border-radius:6px;
  }
}

/* Actions cell with two buttons */
table.units td.u-action{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* Apply Now (primary) */
.btn-apply{
  display:inline-block;
  padding:10px 16px;
  background: #3b655b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #212529;
}
.btn-apply:hover,
.btn-apply:focus{
  background:#6fa397;
  border-color:#232323;
  color:#fff;
}

/* Book a Tour (secondary) */
.btn-tour{
  display:inline-block;
  padding:10px 16px;
  background:#fff;
  color:#312a25;
  border-radius:2px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  line-height:1;
  border:1px solid #cfc9c2;
}
.btn-tour:hover,
.btn-tour:focus{
  background:#eff5f5;
  border-color:#cfc9c2;
  color:#312a25;
}

/* Mobile: stack the buttons full width */
@media (max-width: 640px){
  table.units td.u-action a{
    width:100%;
    text-align:center;
  }
  table, th, tr, td { border: 0px solid #323232; }
  table.units tbody tr.unit-row{
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr auto;
    background: #fff;
    border: 1px solid #198773;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    margin-bottom: 1rem !important;
  }
}

/* ===== ResMan-like mobile unit card ===== */
.unit-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: #fff;
}
.unit-card__row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.unit-card__meta{ color:#575e65; font-size:.92rem; }
.unit-card__bold{ font-weight:600; }
.unit-card__price{ font-weight:700; font-size:1.05rem; }
.unit-card__badge{ font-weight:700; font-size:.9rem; color:#3b7f3b; }
.unit-card__badge.is-later{ color:#0d6efd; }
.unit-card__badge.is-na{ color:#575e65; }
.unit-card__dot::before{ content:"•"; color:#adb5bd; }

.unit-card__buttons{ margin-top:10px; display:grid; gap:10px; }
.unit-card__buttons .btn{ width:100%; }

@media (max-width:576px){
  .unit-card{ padding:12px; border-radius:10px; }
  .unit-card__price{ font-size:1rem; }
  .unit-card__meta{ font-size:.9rem; }
}

/* Visibility toggles */
.units-cards{ display: none; }
@media (max-width: 768px){
  .units{ display: none; }
  .units-cards{ display: block; }
}

/* Desktop list spacing (optional, tidy) */
.units td{ vertical-align: middle; padding: 12px 10px; }
.units .u-unit{ color:#737f6f; font-size: 20px; font-weight:600; }
.units .u-meta{ color:#222; font-size:.93rem; }
.units .u-price{ font-weight: 550; color: #222; font-size: 15px; }
.units .u-lease{ color:#222; font-size:.9rem; margin-top:4px; }
.units .u-avail{ color:#737f6f; font-weight:700; white-space:nowrap; }

/* Mobile card look */
.unit-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: #fff;
}
.unit-card__row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.unit-card__meta{ color:#575e65; font-size:.92rem; }
.unit-card__bold{ font-weight:600; }
.unit-card__price{ font-weight:700; font-weight: 550; color: #222; }
.unit-card__badge{ font-weight:700; color:#3b7f3b; }
.unit-card__badge.is-later{ color:#0d6efd; }
.unit-card__badge.is-na{ color:#575e65; }
.unit-card__buttons{ margin-top:10px; display:grid; gap:10px; }
.unit-card__buttons .btn-lease, .unit-card__buttons .btn-tour{ width:100%; text-align:center; }

/* map-pin icon style */
.u-pin, .unit-pin{
  display:inline-block;
  width:40px;
  height:40px;
  vertical-align:-3px;
  margin-right:6px;
  opacity:.7;
}
.u-unit{ display:flex; align-items:center; gap:6px; }

/* Desktop table: tiny row gap */
#floorplans .fp-table-wrap table.units{ border-collapse: separate !important; border-spacing: 0 6px !important; }
#floorplans .fp-table-wrap table.units td{ background:#fff; }

/* Unit cell pin + spacing */
.u-unit{ display:flex; align-items:center; gap:8px; color:#7d7882; font-weight:600; }
.u-pin, .unit-pin{ width:32px; height:32px; opacity:.8; }

/* Details column look */
.u-meta{ color:#6b6b6b; }
.u-meta strong{ font-weight:700; }

/* Price & terms (exact look) */
.u-price{ font-weight:700; white-space:nowrap; }
.u-lease{ color:#6b6b6b; font-size:.92rem; margin-top:4px; }

/* Availability right side */
.u-avail{ color:#2e8b57; font-weight:700; white-space:nowrap; }

/* Mobile card (unchanged look) */
.unit-card{ border:1px solid rgba(0,0,0,.12); border-radius:12px; padding:14px; margin:14px 0; background:#fff; }
.unit-card__row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.unit-card__meta{ color:#222; font-size:.92rem; }
.unit-card__bold{ font-weight:600; }
.unit-card__price{ font-weight:700; }
.unit-card__badge{ font-weight:700; color:#737f6f; font-size: 16px; }

/* Loading spinner */
#fp-loading{ display: none; align-items: center; justify-content: center; padding: 28px 0; }
#fp-loading.is-on{ display: flex; }
.fp-spinner{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e6e9f2;
  border-top-color: #575e65;
  animation: fp-spin .8s linear infinite;
}
@keyframes fp-spin{ to { transform: rotate(360deg); } }

/* Hide-only text for screen readers */
.fp-sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* --- Filter FAB --- */
.fp-fab{
  position: sticky; top: 12px; float: right;
  z-index: 20; width: 48px; height: 48px;
  border-radius: 999px; border: 1px solid #e6e6e6;
  background:#fff; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: box-shadow .15s ease;
}
.fp-fab:focus, .fp-fab:hover{ box-shadow: 0 4px 18px rgba(0,0,0,.12); outline: none; }
.fp-fab .dot{
  position:absolute; right:6px; top:6px; width:9px; height:9px;
  background:#d44; border-radius:999px; display:none;
}
.fp-fab.has-active .dot{ display:block; }

/* --- Popover --- */
.fp-pop{
  position:absolute; right:12px; margin-top:8px; z-index:30;
  width: 330px; max-width: calc(100vw - 28px);
  background:#fff; border:1px solid #ececec; border-radius:14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.16); display:none;
}
.fp-pop.open{ display:block; }
.fp-pop__section{ border-top:1px solid #f2f2f2; }
.fp-pop__head{
  padding:14px 16px; font-weight:600; display:flex;
  align-items:center; justify-content:space-between; cursor:pointer;
}
.fp-pop__body{ padding: 0 16px 14px; }
.fp-row{ display:flex; gap:10px; align-items:center; }
.fp-row + .fp-row{ margin-top:10px; }
.fp-pop .fp-clear{ display:block; padding:12px 16px; color:#b33; cursor:pointer; }
.fp-muted{ color:#6b7280; font-weight:400; }

/* Bedrooms checkboxes */
.fp-beds{ display:flex; flex-direction:column; gap:10px; }
.fp-beds label{ display:flex; gap:10px; align-items:center; cursor:pointer; }

/* Inputs */
.fp-input{ width:100%; border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; }
.fp-input[type="number"]{ -moz-appearance:textfield; }
.fp-input::-webkit-outer-spin-button, .fp-input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

/* Chips row */
.fp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin: 10px 0 16px; }
.fp-chip{
  display:inline-flex; align-items:center; gap:8px;
  background:#f7f7f8; border:1px solid #eee; color:#333;
  padding:6px 10px; border-radius:999px; font-size:.95rem;
}
.fp-chip button{ border:0; background:transparent; cursor:pointer; line-height:1; padding:0; }

@media (max-width: 991.98px){
  .fp-fab{ position: sticky; top: 8px; right: 8px; }
}

.fp-header .fp-meta-line { margin-top: 2px; color:#666; font-size:.95rem; display:flex; gap:.75rem; flex-wrap:wrap; }
.fp-top-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
.fp-price-line{ font-weight:600; }
.fp-badges{ display:flex; gap:6px; flex-wrap:wrap; }
.fp-badge{ background:#eee; color:#333; border-radius:999px; padding:3px 10px; font-size:.825rem; line-height:1.6; }
.fp-badge--ok{ background:#e6f6ee; color:#146c43; }
.fp-badge--soft{ background:#f2f4f7; color:#555; }
/* --- Specs row: "1 bed    1 bath    669 sq. ft." --- */
.fp-specs{
  display:flex;
  align-items:center;
  column-gap: 28px;          /* even spacing between items */
  row-gap: 6px;
  margin-top: 6px;
  color:#111;                /* dark like your sample */
  font-size: 14px;
  line-height: 1.35;
}
.fp-specs > span{ white-space:nowrap; }  /* keep each item on one line */

/* --- Price row: "$1,403.75 /mo*" --- */
.fp-start{ margin-top: 6px; }
.fp-price{
  font-weight: 700;          /* bold amount */
  font-size: 16px;
  color:#111;
}

/* If you wrap "/mo*" in a span.per (see tiny JS below), style it lighter */
.fp-price .per{
  font-weight: 400;
  margin-left: 4px;
  color:#111;                /* same color, just not bold */
}

/* Hide if empty / $0 safety */
.fp-start:empty{ display:none; }
.fp-price:empty{ display:none; }
/* --- Filters Modal --- */
.fp-modal{position:fixed;inset:0;display:none;z-index:1050;background:rgba(0,0,0,.45);}
.fp-modal.is-open{display:block;}
.fp-modal__dlg{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(700px, 92vw); max-height:85vh;
  background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  display:flex; flex-direction:column;
}
.fp-modal__hd{padding:14px 18px; border-bottom:1px solid #eee; display:flex; align-items:center; justify-content:space-between}
.fp-modal__title{margin:0; font-size:18px; font-weight:600}
.fp-modal__close{background:none;border:0;font-size:20px;line-height:1;cursor:pointer;padding:6px 8px}
.fp-modal__bd{padding:16px; overflow:auto}
.fp-modal__ft{padding:12px 16px; border-top:1px solid #eee; display:flex; gap:10px; justify-content:flex-end}

.fp-btn{appearance:none; border:0; border-radius:8px; padding:10px 14px; font-weight:600; cursor:pointer}
.fp-btn--primary{background:#e18b2d; color:#fff}
.fp-btn--ghost{background:#f5f5f5; color:#333}
body.fp-noscroll{overflow:hidden}

/* Optional: make filters look stacked nicely inside modal */
.fp-modal .fp-filter{border:1px solid #eee; border-radius:10px; margin-bottom:10px}
.fp-modal .fp-filter.open{box-shadow:none}
.fp-modal .fp-filter .fp-trigger{width:100%}
/* Modal shell */
.fp-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.45);z-index:9999;}
.fp-modal.is-open{display:flex;}
.fp-modal__dlg{background:#fff;max-width:640px;width:92vw;max-height:92vh;display:flex;flex-direction:column;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);}
.fp-modal__hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee;}
.fp-modal__bd{padding:12px 16px;overflow:auto;}
.fp-modal__ft{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #eee;}
.fp-noscroll{overflow:hidden;}

/* Modal shell */
.fp-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.45);z-index:9999;}
.fp-modal.is-open{display:flex;}
.fp-modal__dlg{background:#fff;max-width:640px;width:92vw;max-height:92vh;display:flex;flex-direction:column;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);}
.fp-modal__hd{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee;}
.fp-modal__bd{padding:12px 16px;overflow:auto;}
.fp-modal__ft{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #eee;}
.fp-modal__close{border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer}
.fp-btn{border:1px solid #ccc;background:#fff;border-radius:8px;padding:8px 14px;cursor:pointer}
.fp-btn--primary{background:#f06500;border-color:#f06500;color:#fff}
.fp-btn--ghost{background:#fff;border-color:#ccc;color:#333}
.fp-noscroll{overflow:hidden}

/* While filters are inside the modal, make any collapsible panel always visible */
.in-modal .fp-panel,
.in-modal .fp-dropdown,
.in-modal .fp-filter .fp-options{display:block!important;visibility:visible!important;max-height:none!important;opacity:1!important}

/* Hide any legacy caret state style */
.in-modal .fp-filter.open{}

/* Optional: hide per-card results when filtered out */
.fp-card.is-hidden{display:none!important;}
/* Small-desktop layout fix for filter bar (e.g. 1024px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #fp-app .fp-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;       /* tighten spacing a bit */
    align-items: center;
  }

  /* Make each control wrap to 3 columns */
  #fp-app .fp-filters .control{
    flex: 1 1 calc(33.333% - 12px);
    min-width: 260px;     /* prevents labels overlapping inputs */
    margin: 0;            /* kill any legacy margins */
  }

  /* Inputs/selects fill the control width */
  #fp-app .fp-filters .control select,
  #fp-app .fp-filters .control input{
    width: 100%;
  }

  /* Keep the Clear button parked to the right on its own line if needed */
  #fp-app .fp-clear-btn{
    margin-left: auto;
    flex: 0 0 auto;
  }
  #fp-clear.fp-clear-btn {
        padding: 4px 12px;
        border-radius: 2px;
        font-weight: 500;
        background: transparent;
        border-color: #222;
        color: #212529;
    }
}
#fp-app #fp-filters{ display:none !important; }

/* Hide the inline Clear button (modal has its own) */
#fp-app #fp-clear,
#fp-app .fp-clear-btn{ display:none !important; }

/* Force the mobile toggle to show on all breakpoints, with YOUR styles */
#fp-app #fp-toggle{
  display:inline-block!important; position:relative; left:5px; bottom:8px; width:40px; height:40px;
  border:0 none; border-radius:2%; background:#706e62 url(data:image/svg+xml;utf8,<svg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 24\ 24\'><g\ fill=\'none\'\ stroke=\'%23fff\'\ stroke-width=\'2\'\ stroke-linecap=\'round\'\ stroke-linejoin=\'round\'><line\ x1=\'4\'\ y1=\'7\'\ x2=\'20\'\ y2=\'7\'/><line\ x1=\'4\'\ y1=\'12\'\ x2=\'20\'\ y2=\'12\'/><line\ x1=\'4\'\ y1=\'17\'\ x2=\'20\'\ y2=\'17\'/></g><circle\ cx=\'9\'\ cy=\'7\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'14\'\ cy=\'12\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'8\'\ cy=\'17\'\ r=\'2.5\'\ fill=\'%23fff\'/></svg>) no-repeat center; box-shadow:0 10px 22px rgba(0,0,0,.2); z-index:1100; cursor:pointer;
  color:transparent; text-indent:-9999px; overflow:hidden;
  background-position-x:center; background-position-y:center; background-size:58% auto; background-image:url(data:image/svg+xml;utf8,<svg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 24\ 24\'><g\ fill=\'none\'\ stroke=\'%23fff\'\ stroke-width=\'2\'\ stroke-linecap=\'round\'\ stroke-linejoin=\'round\'><line\ x1=\'4\'\ y1=\'7\'\ x2=\'20\'\ y2=\'7\'/><line\ x1=\'4\'\ y1=\'12\'\ x2=\'20\'\ y2=\'12\'/><line\ x1=\'4\'\ y1=\'17\'\ x2=\'20\'\ y2=\'17\'/></g><circle\ cx=\'9\'\ cy=\'7\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'14\'\ cy=\'12\'\ r=\'2.5\'\ fill=\'%23fff\'/><circle\ cx=\'8\'\ cy=\'17\'\ r=\'2.5\'\ fill=\'%23fff\'/></svg>); background-repeat:no-repeat
}

/* Remove any caret/icon the old CSS added */
#fp-app #fp-toggle .fp-caret{ display:none !important; }
/* === Mobile-friendly modal sizing & scrolling === */
@media (max-width: 768px){
  /* Don't center vertically; start at top */
  .fp3-modal{ align-items:flex-start; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }

  /* Dialog fits within the viewport (accounting for iOS bars) */
  .fp3-dlg{
    width: 94vw;
    max-width: 640px;
    margin: 12px auto;                  /* space from edges */
    border-radius: 12px;
    /* Prefer dynamic viewport units when available */
    max-height: calc(100dvh - 24px);
    /* Fallback for older browsers */
  }
  @supports not (height: 100dvh){
    .fp3-dlg{ max-height: calc(100vh - 24px); }
  }

  /* Keep header/footer visible; scroll the content area only */
  .fp3-hd{
    position: sticky;
    top: 0;
    z-index: 2;
    background:#fff;
  }
  .fp3-ft{
    position: sticky;
    bottom: 0;
    z-index: 2;
    background:#fff;
    border-top:1px solid #eee;
  }

  /* Make the scrollable region glide on iOS and leave space for sticky footer */
  .fp3-bd{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    /* reserve space so footer doesn't overlap the last fields */
    --footer-h: 60px;
    padding-bottom: calc(var(--footer-h) + 10px);
  }

  /* Extra breathing room for iOS bottom home bar */
  .fp3-dlg{ padding-bottom: env(safe-area-inset-bottom); }
}