/* FLMHS public listings pages — scoped under #flmhs-listings + .fl-overlay.
 * Served from landing.myflmhs.com; bump ?v= on the page link tag to update. */
#flmhs-listings { --fl-navy:#002868; --fl-ink:#22252a; --fl-mute:#6a7076; --fl-line:#e3e5e8;
  --fl-accent:#B22234; --fl-green:#1d7a34; --fl-bg:#f7f8f9;
  font-variant-numeric: tabular-nums; color: var(--fl-ink); }

#flmhs-listings .fl-loading, #flmhs-listings .fl-empty {
  padding: 44px 16px; text-align: center; color: var(--fl-mute); font-size: 17px;
  background: var(--fl-bg); border-radius: 12px; }
#flmhs-listings .fl-empty a { color: var(--fl-ink); font-weight: 800; text-decoration: none; }

/* controls */
#flmhs-listings .fl-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 4px; }
/* Harden every control against the Carrot theme's input/select/button rules —
   without explicit height + line-height the theme's values leak in and the
   text sits off-center, most visibly on iOS. */
#flmhs-listings input, #flmhs-listings select, #flmhs-listings button {
  box-sizing: border-box; margin: 0; font-family: inherit; }
#flmhs-listings .fl-search, #flmhs-listings .fl-price-in, #flmhs-listings .fl-sort {
  height: 46px; line-height: normal; -webkit-appearance: none; appearance: none; }
#flmhs-listings .fl-search { flex: 1 1 240px; padding: 0 14px; border: 1.5px solid var(--fl-line);
  border-radius: 10px; font-size: 16px; min-width: 200px; background: #fff; }
#flmhs-listings .fl-search:focus { outline: none; border-color: var(--fl-navy); }
#flmhs-listings .fl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#flmhs-listings .fl-chip { border: 1.5px solid var(--fl-line); background: #fff; color: var(--fl-ink);
  border-radius: 99px; padding: 7px 14px; font-size: 14px; cursor: pointer;
  line-height: normal; -webkit-appearance: none; appearance: none; }
#flmhs-listings .fl-chip-on { background: var(--fl-navy); border-color: var(--fl-navy); color: #fff; }
#flmhs-listings .fl-sort { padding: 0 32px 0 12px; border: 1.5px solid var(--fl-line); border-radius: 10px;
  font-size: 16px; color: var(--fl-ink); cursor: pointer;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23565c63' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
#flmhs-listings .fl-count-line { margin: 10px 2px 14px; font-weight: 700; color: var(--fl-navy); }

/* grid */
#flmhs-listings .fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
#flmhs-listings .fl-card { background: #fff; border: 1px solid var(--fl-line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
#flmhs-listings .fl-card:hover { box-shadow: 0 8px 22px rgba(18,47,75,.14); transform: translateY(-2px); }
#flmhs-listings .fl-thumb-wrap { position: relative; aspect-ratio: 4/3; background: #dfe3e7; overflow: hidden; }
#flmhs-listings .fl-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
#flmhs-listings .fl-nophoto .fl-thumb { display: none; }
#flmhs-listings .fl-nophoto-label { display: none; position: absolute; inset: 0; align-items: center;
  justify-content: center; color: var(--fl-mute); font-size: 14px; }
#flmhs-listings .fl-nophoto .fl-nophoto-label { display: flex; }
#flmhs-listings .fl-card-body { padding: 12px 14px 14px; }
#flmhs-listings .fl-price { font-size: 22px; font-weight: 800; color: var(--fl-navy); }
#flmhs-listings .fl-addr { font-weight: 600; margin-top: 2px; }
#flmhs-listings .fl-city { color: var(--fl-mute); font-size: 14px; }
#flmhs-listings .fl-specs { color: var(--fl-mute); font-size: 13.5px; margin-top: 6px; }
#flmhs-listings .fl-badges { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
#flmhs-listings .fl-badge, .fl-overlay .fl-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 99px; letter-spacing: .02em; }
#flmhs-listings .fl-badge-mbm, .fl-overlay .fl-badge-mbm { background: #f5eedd; color: #7d5f24; }
#flmhs-listings .fl-badge-55,  .fl-overlay .fl-badge-55  { background: #e8f0fa; color: #2a5b96; }
#flmhs-listings .fl-badge-aa,  .fl-overlay .fl-badge-aa  { background: #e9f4ec; color: var(--fl-green); }
#flmhs-listings .fl-badge-rent,.fl-overlay .fl-badge-rent{ background: #f1f2f4; color: #565c63; }

/* solds strip */
#flmhs-listings .fl-solds { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--fl-line); }
#flmhs-listings .fl-solds-title { font-weight: 800; color: var(--fl-navy); margin-bottom: 10px; }
#flmhs-listings .fl-solds-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
#flmhs-listings .fl-sold-card { flex: 0 0 170px; background: #fff; border: 1px solid var(--fl-line);
  border-radius: 10px; overflow: hidden; }
#flmhs-listings .fl-sold-thumb { position: relative; aspect-ratio: 4/3; background: #dfe3e7; }
#flmhs-listings .fl-sold-thumb img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.85); }
#flmhs-listings .fl-sold-ribbon { position: absolute; top: 8px; left: -6px; background: var(--fl-green);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px;
  border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
#flmhs-listings .fl-sold-body { display: flex; flex-direction: column; padding: 8px 10px 10px; }
#flmhs-listings .fl-sold-price { font-weight: 800; color: var(--fl-navy); font-size: 15px; }
#flmhs-listings .fl-sold-city { font-size: 12px; color: var(--fl-mute); }

/* overlay */
.fl-overlay { position: fixed; inset: 0; background: rgba(15,20,26,.62); z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.fl-overlay .fl-modal { background: #fff; border-radius: 14px; max-width: 720px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative; }
/* Sticky so the X stays in the top-right corner of the modal while its
   content scrolls; the negative bottom margin removes it from layout flow. */
.fl-overlay .fl-close { position: sticky; top: 8px; display: block;
  margin: 8px 10px -46px auto; z-index: 5; border: none;
  background: rgba(255,255,255,.92); width: 38px; height: 38px; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fl-overlay .fl-carousel { position: relative; aspect-ratio: 4/3; background: #0f141a; }
.fl-overlay .fl-carousel-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fl-overlay .fl-nav { position: absolute; top: 50%; transform: translateY(-50%); border: none;
  background: rgba(255,255,255,.88); width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer; }
.fl-overlay .fl-prev { left: 10px; } .fl-overlay .fl-next { right: 10px; }
.fl-overlay .fl-count { position: absolute; bottom: 10px; right: 12px; background: rgba(15,20,26,.7);
  color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.fl-overlay .fl-modal-body { padding: 16px 20px 22px; }
.fl-overlay .fl-price-lg { font-size: 28px; font-weight: 800; color: #002868; }
.fl-overlay .fl-addr { font-weight: 600; }
.fl-overlay .fl-specs { color: #6a7076; font-size: 14px; margin-top: 4px; }
.fl-overlay .fl-badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.fl-overlay .fl-inquiry { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e5e8;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px; position: relative; }
.fl-overlay .fl-form-title { grid-column: 1/-1; font-weight: 800; color: #002868; }
.fl-overlay .fl-in { padding: 11px 12px; border: 1.5px solid #e3e5e8; border-radius: 9px; font-size: 15px; width: 100%; box-sizing: border-box; }
.fl-overlay .fl-in:focus { outline: none; border-color: #002868; }
.fl-overlay textarea.fl-in, .fl-overlay .fl-in[name="name"] { grid-column: 1/-1; }
.fl-overlay .fl-btn { grid-column: 1/-1; background: #B22234 !important; color: #fff; border: none;
  border-radius: 9px; padding: 13px; font-size: 16px; font-weight: 800; cursor: pointer; }
.fl-overlay .fl-btn:hover { background: #93202f !important; }
.fl-overlay .fl-btn:disabled { opacity: .6; cursor: default; }
.fl-overlay .fl-form-note { grid-column: 1/-1; font-size: 13.5px; color: #6a7076; text-align: center; }
.fl-overlay .fl-form-note a, .fl-overlay .fl-form-done a { color: var(--fl-ink, #22252a); font-weight: 800; text-decoration: none; }
.fl-overlay .fl-form-status { grid-column: 1/-1; color: #b4520f; font-size: 14px; }
.fl-overlay .fl-form-done { grid-column: 1/-1; background: #e9f4ec; color: #1d7a34; font-weight: 600;
  padding: 16px; border-radius: 10px; text-align: center; }

@media (max-width: 560px) {
  #flmhs-listings .fl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  #flmhs-listings .fl-price { font-size: 18px; }
  .fl-overlay { padding: 8px; }
  .fl-overlay .fl-inquiry { grid-template-columns: 1fr; }
}

/* map view */
#flmhs-listings .fl-viewtoggle { display: flex; height: 46px; border: 1.5px solid var(--fl-line); border-radius: 10px; overflow: hidden; }
#flmhs-listings .fl-vbtn { border: none; background: #fff; padding: 0 16px; font-size: 14px; cursor: pointer; color: var(--fl-ink);
  display: inline-flex; align-items: center; justify-content: center; line-height: normal;
  -webkit-appearance: none; appearance: none; height: 100%; }
#flmhs-listings .fl-vbtn-on { background: var(--fl-navy); color: #fff; }
#flmhs-listings .fl-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--fl-line); }
#flmhs-listings .fl-map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 900;
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 7px 11px; font-size: 12.5px;
  color: var(--fl-ink); box-shadow: 0 2px 8px rgba(18,47,75,.18); display: flex; flex-wrap: wrap;
  gap: 4px 14px; max-width: calc(100% - 20px); }
#flmhs-listings .fl-lg-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#flmhs-listings .fl-lg-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
#flmhs-listings .fl-map-inner { height: 560px; width: 100%; background: var(--fl-bg);
  display: flex; align-items: center; justify-content: center; color: var(--fl-mute); }
@media (max-width: 640px) { #flmhs-listings .fl-map-inner { height: 420px; } }
.fl-pop { text-align: center; }
.fl-pop-img { width: 100%; border-radius: 6px; margin-bottom: 6px; display: block; }
.fl-pop-price { font-weight: 800; color: #002868; font-size: 16px; }
.fl-pop-city { font-size: 12.5px; color: #6a7076; margin-bottom: 4px; }
.fl-pop-tag { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.fl-pop-btn { background: #B22234; color: #fff; border: none; border-radius: 7px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; width: 100%; }
.fl-pop-btn:hover { background: #93202f; }

/* share + nearby */
.fl-overlay .fl-share-row { margin-top: 12px; }
.fl-overlay .fl-share { border: 1.5px solid #002868; background: #fff; color: #002868;
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px; cursor: pointer;
  line-height: normal; -webkit-appearance: none; appearance: none; }
.fl-overlay .fl-share:hover { background: #eef1f7; }
.fl-overlay .fl-near { margin-top: 16px; }
.fl-overlay .fl-near-title { font-weight: 800; color: #002868; margin-bottom: 8px; }
.fl-overlay .fl-near-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.fl-overlay .fl-near-card { flex: 0 0 150px; border: 1px solid #e3e5e8; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: #fff; }
.fl-overlay .fl-near-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.fl-overlay .fl-near-nopic { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center;
  justify-content: center; background: #dfe3e7; color: #6a7076; font-size: 12.5px; }
.fl-overlay .fl-near-body { display: flex; flex-direction: column; padding: 7px 9px 9px; }
.fl-overlay .fl-near-price { font-weight: 800; color: #002868; font-size: 14.5px; }
.fl-overlay .fl-near-city { font-size: 12px; color: #6a7076; }

/* preferred source block */
#flmhs-listings .fl-prefsrc { margin-top: 22px; padding: 18px 16px 16px; background: var(--fl-bg);
  border-radius: 10px; text-align: center; }
#flmhs-listings .fl-prefsrc-txt { font-weight: 800; color: #002868; font-size: 16px; margin-bottom: 10px; }
#flmhs-listings .fl-prefsrc-btn { display: flex; justify-content: center; min-height: 40px; }
#flmhs-listings .fl-psbtn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px;
  border-radius: 99px; border: 2px solid transparent; font-weight: 800; font-size: 15px;
  color: #002868; text-decoration: none; cursor: pointer;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #4285F4, #9B72CB, #D96570, #F2A600);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 2px 10px rgba(18,47,75,.14); transition: transform .12s, box-shadow .12s; }
#flmhs-listings .fl-psbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(18,47,75,.2); }
#flmhs-listings .fl-prefsrc-sub { margin-top: 10px; font-size: 13.5px; color: var(--fl-mute); }

/* listing description */
.fl-overlay .fl-desc { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e5e8;
  font-size: 15px; line-height: 1.55; color: #3a3f45; }
.fl-overlay .fl-desc-head { font-weight: 800; color: #002868; font-size: 16.5px; margin-bottom: 6px; }
.fl-overlay .fl-desc p { margin: 0 0 9px; }

/* price range */
#flmhs-listings .fl-price-range { display: flex; align-items: center; gap: 6px; }
#flmhs-listings .fl-price-in { width: 96px; padding: 0 10px; border: 1.5px solid var(--fl-line);
  border-radius: 10px; font-size: 16px; background: #fff; }
#flmhs-listings .fl-price-in:focus { outline: none; border-color: var(--fl-navy); }
#flmhs-listings .fl-price-dash { color: var(--fl-mute); font-size: 13px; }

/* mobile control layout: everything full-width rows, nothing floating off-center */
@media (max-width: 640px) {
  #flmhs-listings .fl-controls { gap: 8px; }
  #flmhs-listings .fl-search { flex: 1 1 100%; }
  #flmhs-listings .fl-price-range { flex: 1 1 100%; }
  #flmhs-listings .fl-price-in { flex: 1 1 auto; width: auto; min-width: 0; }
  #flmhs-listings .fl-chips { flex: 1 1 100%; }
  #flmhs-listings .fl-sort { flex: 1 1 auto; }
  #flmhs-listings .fl-viewtoggle { flex: 0 0 auto; margin-left: auto; }
}
