/* ===== 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:#6b5b51; 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:#6b5b51; 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:#6b5b51; border-color:#222; color:#fff;
  }
  /* Default (filters closed) � your current �sliders� icon stays */
#fp-toggle{
  /* ...your existing styles... */
  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:#c77d24;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:#6b5b51;border-color:#005cbe;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;          /* kill old ratio hack */
  aspect-ratio: 4 / 3;                /* or 16/10 if you prefer */
  width: 100%;
  background-color: #fff;
  background-position: center;
  background-size: contain;           /* see entire plan */
  border-bottom: 1px solid #c4e5dc;
}

/* ===== CARD BODY / SPACING POLISH ===== */
#fp-grid .fp-body{ padding: 14px 16px 16px !important; }
#fp-grid .fp-title {
    font-weight: 700;
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: #6b5b51;
}
#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(1,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;         /* kill old ratio hack */
  aspect-ratio:10/3;                 /* pick 16/10 if you prefer */
  background:#fff center/contain no-repeat;
  border-bottom:1px solid #c4e5dc;
}

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

/* table as a card list */
table.units{
  width:100%;
  border-collapse:separate !important;
  border-spacing:0 14px !important;     /* space between cards */
  table-layout:fixed;
  border: 0px solid #323232;
}
table.units thead{ display:none; }       /* we render labels ourselves */

/* each row becomes a card */
table.units tbody tr{
  display:grid !important;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;  /* Unit | Price | Availability | CTA */
  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;
}

/* cells: no borders/padding fighting the grid */
table.units td{
  padding:0 !important;
  border:0 !important;
  white-space:normal !important;
}

/* unit block */
.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; }

/* price */
.u-price .u-price-line{ color:#111827; font-size:14px; }
.u-price .u-price-line strong{ font-weight:700; }

/* availability */
.u-availability .u-avail{ color:#1f7a1f; font-weight:600; font-size:14px; }

/* CTA button */
.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:#2222229e; }
/* ========== mobile stack (<= 640px) ========== */
@media (max-width:640px){
  table.units{ border-spacing:0 10px !important; }

  table.units tbody tr{
    grid-template-columns: 1fr;
    gap:10px;
    padding:12px;
  }

  /* turn cells into labeled rows */
  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:12px;
  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){

  /* force row out of grid on mobile */
  table.units tbody tr{
    display:block !important;      /* override desktop !important */
    padding:12px 12px !important;
    border-radius:12px !important;
    gap:0 !important;
  }

  /* cells become labeled rows */
  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;
  }

  /* softer label style */
  table.units td::before{
    content:attr(data-label);
    font-weight:600;
    font-size:13px;
    color:#6b7280;                 /* softer gray */
    margin-right:12px;
  }

  /* unit block first, value on the right */
  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;
  }

  /* price/availability text sized for mobile */
  table.units td.u-price .u-price-line,
  table.units td.u-availability .u-avail{
    font-size:14px;
  }

  /* CTA full width, push to bottom */
  table.units td.u-action{
    padding-top:12px !important;
  }
  table.units td.u-action .btn-lease{
    width:100%;
    text-align:center;
  }
}

/* a little more breathing room under the table on small screens */
@media (max-width: 640px){
  .fp-table-wrap{ margin-top:6px; }
}
/* Compact mobile units (<= 640px) */
@media (max-width: 640px){

  /* card shell */
  table.units{
    border-spacing: 0 8px;           /* smaller gap between cards */
  }
  table.units tbody tr{
    display:block !important;
    padding:8px 10px !important;     /* was 12/14 */
    border-radius:10px !important;   /* slightly tighter */
    box-shadow:0 4px 12px rgba(0,0,0,.04);
  }

  /* cell rows */
  table.units td{
    display:flex !important;
    align-items:baseline !important;
    justify-content:space-between !important;
    gap:8px !important;              /* smaller gap */
    padding:6px 0 !important;        /* tighter row height */
    border:0 !important;
    white-space:normal !important;
    line-height:1.25;                /* denser lines */
  }

  /* labels on the left */
  table.units td::before{
    content:attr(data-label);
    font-weight:600;
    font-size:12px;                  /* smaller label */
    color:#6b7280;
    margin-right:8px;
  }

  /* unit id block */
  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;                  /* was 18 */
    font-weight:700;
    color:#198763;
    line-height:1.2;
  }
  table.units td.u-id .u-meta{
    width:100%;
    margin-top:2px;                  /* tighter */
    font-size:12px;                  /* smaller meta */
    color:#6b7280;
  }

  /* price + availability text */
  table.units td.u-price .u-price-line,
  table.units td.u-availability .u-avail{
    font-size:13px;                  /* down from 14 */
    line-height:1.25;
  }
  table.units td.u-price .u-price-line strong{
    font-weight:700;
  }

  /* CTA button trimmed */
  table.units td.u-action{ padding-top:8px !important; }
  table.units td.u-action .btn-lease{
    width:100%;
    height:38px;                     /* shorter */
    padding:8px 10px;                /* tighter */
    font-size:14px;                  /* smaller */
    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:#2b3a3d;
  border-radius:2px;
  text-decoration:none;
  font-size:14px;     
  font-weight:700;
  line-height:1;
  border:1px solid #cfd6da;
}
.btn-tour:hover,
.btn-tour:focus{
  background:#f3f7f8;
  border-color:#b9c3c8;
  color:#2b3a3d;
}

/* 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:#6b5b51; 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; }        /* Available Now */
.unit-card__badge.is-later { color:#0d6efd; }                                 /* Future date */
.unit-card__badge.is-na    { color:#6b5b51; }                                  /* Not available */
.unit-card__dot::before { content:"•"; color:#adb5bd }

.unit-card__buttons { margin-top:10px; display:grid; gap:10px; }
.unit-card__buttons .btn { width:100%; } /* keep your theme colors on .btn-apply / .btn-outline-secondary */

@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:#6b5b51; font-size: 20px; font-weight:600; }
.units .u-meta { color:#6b5b51; font-size:.93rem; }
.units .u-price {
    font-weight: 550;
    color: #6b5b51;
    font-size: 15px;
}
.units .u-lease { color:#222; font-size:.9rem; margin-top:4px; }
.units .u-avail { color:#bf9866; 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:#6b5b51; font-size:.92rem; }
.unit-card__bold { font-weight:600; }
.unit-card__price { font-weight:700; font-weight: 550; color: #6b5b51;}
.unit-card__badge { font-weight:700; color:#3b7f3b; }
.unit-card__badge.is-later { color:#0d6efd; }
.unit-card__badge.is-na { color:#6b5b51; }
.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;            /* same soft gray feel */
}
.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:#6b5b51; font-size:.92rem; }
.unit-card__bold { font-weight:600; }
.unit-card__price { font-weight:700; }
.unit-card__badge { font-weight:700; color:#bf9866; font-size: 15px; }
/* === CARET: fixed position/size, no rotation or scaling === */

/* Base tile */
.btn.fp-acc { position: relative; padding-right: 46px; }
.btn.fp-acc .fp-caret{
  position: absolute;
  right: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) !important;  /* never rotate/scale */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  pointer-events: none;                     /* so hover/focus stays on button */
  transition: opacity .18s ease, background-image .18s ease;
  /* DOWN (white) */
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'white\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 5.5l6\ 6\ 6-6\'\ stroke=\'white\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* Remove any transforms that other styles might add */
.btn.fp-acc:hover .fp-caret,
.btn.fp-acc:focus-visible .fp-caret,
.btn.fp-acc.is-open .fp-caret,
.btn.fp-acc.is-open:hover .fp-caret,
.btn.fp-acc.is-open:focus-visible .fp-caret{
  transform: translateY(-50%) !important;  /* no spin, no jump */
}

/* Hover/keyboard focus color (DOWN) */
.btn.fp-acc:hover .fp-caret,
.btn.fp-acc:focus-visible .fp-caret{
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'%23434b2e\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 5.5l6\ 6\ 6-6\'\ stroke=\'%23434b2e\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* OPEN state swaps to UP */
.btn.fp-acc.is-open .fp-caret{
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'white\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 10.5l6-6\ 6\ 6\'\ stroke=\'white\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* OPEN + hover/focus = UP (green) */
.btn.fp-acc.is-open:hover .fp-caret,
.btn.fp-acc.is-open:focus-visible .fp-caret{
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'%23434b2e\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 10.5l6-6\ 6\ 6\'\ stroke=\'%23434b2e\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* Accessible outline on the button */
.btn.fp-acc:focus-visible{
  outline: 2px solid #2e8b57;
  outline-offset: 2px;
}
/* DOWN caret (focused state = green) */
.btn.fp-acc:focus .fp-caret,
.btn.fp-acc:focus-visible .fp-caret,
.btn.fp-acc:focus-within .fp-caret {
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'%23434b2e\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 5.5l6\ 6\ 6-6\'\ stroke=\'%23434b2e\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* UP caret (focused state = green) */
.btn.fp-acc.is-open:focus .fp-caret,
.btn.fp-acc.is-open:focus-visible .fp-caret,
.btn.fp-acc.is-open:focus-within .fp-caret {
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'%23434b2e\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 10.5l6-6\ 6\ 6\'\ stroke=\'%23434b2e\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}
/* Mobile-only: shrink the map pin on unit rows & cards */
@media (max-width: 575.98px) {
  .u-pin,
  .unit-pin {
    width: 18px;
    height: 18px;
    opacity: .8;
    display: inline-block;    /* ensures sizing applies cleanly */
    vertical-align: -2px;     /* slight optical alignment; adjust if needed */
  }

  /* optional: a little breathing room before the unit number */
  .u-unit .u-pin,
  .unit-card__meta .unit-pin {
    margin-right: 6px;
  }
}
background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ fill=\'%23434b2e\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 10.5l6-6\ 6\ 6\'\ stroke=\'%23434b2e\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}
/* --- Caret: fixed position/size, no rotation --- */
.btn.fp-acc { position: relative; padding-right: 46px; }

/* Base caret uses currentColor so you only change color on hover/focus/open */
.btn.fp-acc .fp-caret{
  position: absolute;
  right: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) !important;     /* never rotates */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  pointer-events: none;                        /* keep focus/hover on the button */
  transition: opacity .18s ease, background-image .18s ease;

  /* DOWN arrow (currentColor) */
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 5.5l6\ 6\ 6-6\'\ stroke=\'currentColor\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}
/* Kill any theme/Bootstrap dropdown caret */
button.btn.fp-acc::after { display:none !important; content:none !important; border:0 !important; }

/* Button text color drives the caret color (currentColor) */
.btn.fp-acc{
  position: relative;
  padding-right: 46px;
  color: #fff;                     /* default = white caret */
}

/* Single caret rule */
.btn.fp-acc .fp-caret{
  position: absolute;
  right: 1px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) !important;   /* no rotate/scale */
  background-repeat: no-repeat !important;
  background-position:  
               center !important;
  background-size: 16px 16px !important;
  pointer-events: none;

  /* DOWN chevron using currentColor so it inherits from .btn.fp-acc */
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 5.5l6\ 6\ 6-6\'\ stroke=\'currentColor\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* Hover/focus = green caret (by changing text color) */
.btn.fp-acc:hover,
.btn.fp-acc:focus-visible{
  color: #434b2e;
}

/* OPEN: swap to UP chevron (still currentColor) */
.btn.fp-acc.is-open .fp-caret{
  background-image: url(data:image/svg+xml,%3Csvg\ xmlns=\'http://www.w3.org/2000/svg\'\ viewBox=\'0\ 0\ 16\ 16\'%3E%3Cpath\ d=\'M1.5\ 10.5l6-6\ 6\ 6\'\ stroke=\'currentColor\'\ stroke-width=\'2\'\ fill=\'none\'/%3E%3C/svg%3E);
}

/* OPEN default color (white) */
.btn.fp-acc.is-open{ color:#fff; }

/* OPEN + hover/focus = green caret */
.btn.fp-acc.is-open:hover,
.btn.fp-acc.is-open:focus-visible{
  color:#434b2e;
}
/* don't paint a background icon if using inline SVG */
.btn.fp-acc .fp-caret { background: none !important; }

/* position the svg caret */
.fp-caret__svg{
  position:absolute; right:10px; top:50%;
  width:22px; height:22px;
  transform: translateY(-50%);
  transition: transform .18s ease, color .18s ease;
}

/* color via currentColor */
.btn.fp-acc { position:relative; padding-right:46px; color:#fff; }
.btn.fp-acc:hover, .btn.fp-acc:focus-visible { color:#434b2e; }

/* flip when open */
.btn.fp-acc.is-open .fp-caret__svg{ transform: translateY(-50%) rotate(180deg); }
/* 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;      /* track */
  border-top-color: #6b5b51;      /* brand color */
  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;
}/* Keep the Move In Date input the same size as the others */
#fp-app #fp-movein{
  width: 100%;
  height: 42px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  box-sizing: border-box;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #cfc9c2;
  border-radius: 8px;
}

/* iOS Safari fix: stop the internal date value from forcing extra height */
#fp-app #fp-movein::-webkit-date-and-time-value{
  min-height: 0 !important;
}

/* Desktop/tablet sizes to match your other controls */
@media (min-width: 768px){
  #fp-app #fp-movein{ height: 38px !important; min-height: 38px !important; }
}
@media (min-width: 992px){
  #fp-app #fp-movein{ width: 140px; height: 36px !important; min-height: 36px !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;
  }
}

/* Safety: if space is still tight, allow horizontal scroll instead of clipping */
#fp-app .fp-filters{ overflow-x: auto; }
.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; }