/* Expanded Filters panel on property.php (#hbFilterPanel, markup in property.php,
   behaviour in assets/js/property-filter-panel.js). Navy + gold like the rest of the
   page. Every rule is scoped under the panel's id: the page restyles bare inputs,
   selects and buttons site-wide, so these carry the id and !important where they must win.
   Spacing scale: 6 / 10 / 14. Controls are 44px tall, field text 15px (16px on a phone so
   iOS Safari does not zoom on focus). */

#hbFilterPanel{--hbf-line:rgba(235,216,176,.30);--hbf-fill:#081525;--hbf-text:#f4f6fa;--hbf-dim:#a9bccd;--hbf-gold:#ebd8b0}
#hbFilterPanel.show{flex-direction:column!important;align-items:stretch!important;gap:14px!important;padding-bottom:16px!important}
#hbFilterPanel .slider-container{display:none!important}
#hbFilterPanel .hbf-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0}
#hbFilterPanel [hidden]{display:none!important}

/* header */
#hbFilterPanel .hbf-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-2px 0 0;padding:0 0 10px;border-bottom:1px solid rgba(235,216,176,.18)}
#hbFilterPanel .hbf-title{margin:0;color:#fff;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:0}
#hbFilterPanel .hbf-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--hbf-line)!important;border-radius:50%!important;background:transparent!important;color:var(--hbf-text)!important;font-size:26px!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
#hbFilterPanel .hbf-close:hover{background:rgba(235,216,176,.12)!important}

/* groups + labels */
#hbFilterPanel .hbf-group{margin:0;padding:0;border:0;background:none;width:100%;min-width:0}
#hbFilterPanel .hbf-label,
#hbFilterPanel .priceLable.hbf-label{display:block;margin:0 0 6px;padding:0;color:var(--hbf-text)!important;font-size:14px!important;font-weight:700!important;line-height:1.3;letter-spacing:0;text-transform:none}
#hbFilterPanel .hbf-labelrow{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin:0 0 6px}
#hbFilterPanel .hbf-labelrow .hbf-label{margin:0}
#hbFilterPanel .hbf-labelrow>label{margin:0;color:var(--hbf-text);font-size:14px;font-weight:700;line-height:1.3}

/* two-up rows */
#hbFilterPanel .hbf-two,
#hbFilterPanel .showSeletedValue_wrapper.hbf-two{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;width:100%!important}
#hbFilterPanel .hbf-two>div{display:block!important;min-width:0}
#hbFilterPanel .hbf-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 10px;align-items:end}
#hbFilterPanel .hbf-field{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;margin:0}
#hbFilterPanel .hbf-field>label{display:block;margin:0 0 4px;color:var(--hbf-dim);font-size:12px;font-weight:500;line-height:1.3}
#hbFilterPanel .hbf-grid .hbf-field>label{margin:0 0 6px;color:var(--hbf-text);font-size:14px;font-weight:700}
#hbFilterPanel .hbf-grid .hbf-field .hbf-labelrow{margin-bottom:6px}
#hbFilterPanel .hbf-grid .hbf-field .hbf-labelrow>label{color:var(--hbf-text);font-size:14px;font-weight:700}

/* text inputs */
#hbFilterPanel input[type=text]{display:block;box-sizing:border-box;width:100%!important;min-width:0;height:44px!important;margin:0;padding:0 12px!important;border:1px solid var(--hbf-line)!important;border-radius:12px!important;background:var(--hbf-fill)!important;color:#fff!important;font-size:15px!important;line-height:1.2!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
#hbFilterPanel input[type=text].is-any{color:var(--hbf-dim)!important}
#hbFilterPanel input::placeholder{color:var(--hbf-dim)!important;font-size:15px!important;opacity:1;padding-left:0}
#hbFilterPanel input[type=text]:focus{outline:2px solid #f8dfaa!important;outline-offset:1px;border-color:rgba(235,216,176,.7)!important}
#hbFilterPanel .hbf-money{position:relative}
#hbFilterPanel .hbf-money>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--hbf-dim);font-size:15px;pointer-events:none}
#hbFilterPanel .hbf-money input[type=text]{padding-left:26px!important}
#hbFilterPanel input[aria-invalid=true]{border-color:#ff8a8a!important}

/* single selects */
#hbFilterPanel .hbf-select{position:relative}
#hbFilterPanel .hbf-select select{display:block;box-sizing:border-box;width:100%!important;height:44px!important;margin:0;padding:0 34px 0 12px!important;border:1px solid var(--hbf-line)!important;border-radius:12px!important;background-color:var(--hbf-fill)!important;color:#fff!important;-webkit-text-fill-color:#fff;font-size:15px!important;line-height:1.2;color-scheme:dark;text-overflow:ellipsis;box-shadow:none!important}
#hbFilterPanel .hbf-select select:focus{outline:2px solid #f8dfaa!important;outline-offset:1px}

/* multi-select dropdowns (Listing type, Property view): same look as a select */
#hbFilterPanel .box-select{width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
#hbFilterPanel .hbf-field.box-select>label{display:block;margin:0 0 6px;color:var(--hbf-text);font-size:14px;font-weight:700;line-height:1.3}
#hbFilterPanel .hbf-group.box-select>label.hbf-label{margin-bottom:6px}
#hbFilterPanel .nice-select.multi-select{display:flex!important;align-items:center;float:none!important;box-sizing:border-box;width:100%!important;height:44px!important;min-height:44px!important;margin:0;padding:0 34px 0 12px!important;border:1px solid var(--hbf-line)!important;border-radius:12px!important;background-color:var(--hbf-fill)!important;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ebd8b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 14px!important;color:#fff!important;font-size:15px;line-height:1.2;box-shadow:none!important}
#hbFilterPanel .nice-select.multi-select:after{display:none!important}
#hbFilterPanel .nice-select.multi-select:focus-visible{outline:2px solid #f8dfaa;outline-offset:1px}
#hbFilterPanel .nice-select.multi-select .current-listing,
#hbFilterPanel .nice-select.multi-select .current-view{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff!important;font-size:15px}
#hbFilterPanel .nice-select.multi-select .list{top:calc(100% + 6px)!important;left:0!important;right:auto;min-width:100%;max-height:260px;overflow-y:auto;border:1px solid var(--hbf-line);border-radius:12px;background:#0b1c2b!important;box-shadow:0 14px 34px rgba(0,0,0,.55)!important;z-index:30}
#hbFilterPanel .nice-select.multi-select .list li{display:block;min-height:44px;padding:0 12px!important;line-height:44px!important;color:#eaf1f7!important;background:none!important}
#hbFilterPanel .nice-select.multi-select .list li label{display:flex;align-items:center;gap:10px;width:100%;margin:0;color:#eaf1f7!important;font-size:15px;white-space:nowrap;cursor:pointer}
#hbFilterPanel .nice-select.multi-select .list input[type=checkbox]{width:18px!important;height:18px!important;margin:0;flex:0 0 auto;accent-color:#c9a96e}

/* bedroom / bathroom segmented rows */
#hbFilterPanel .hbf-seg{display:flex;flex-wrap:wrap;overflow:hidden;border:1px solid var(--hbf-line);border-radius:12px;background:var(--hbf-fill)}
#hbFilterPanel .hbf-seg button{flex:1 1 44px;min-width:44px;height:44px;margin:0;padding:0 4px;border:0!important;border-right:1px solid rgba(235,216,176,.18)!important;border-radius:0!important;background:transparent!important;color:var(--hbf-text)!important;font-family:inherit;font-size:15px!important;font-weight:500!important;line-height:1!important;text-transform:none!important;box-shadow:none!important;cursor:pointer}
#hbFilterPanel .hbf-seg button:last-child{border-right:0!important}
#hbFilterPanel .hbf-seg button:hover{background:rgba(235,216,176,.12)!important}
#hbFilterPanel .hbf-seg button:focus-visible{outline:2px solid #f8dfaa;outline-offset:-3px}
#hbFilterPanel .hbf-seg button[aria-checked=true]{background:linear-gradient(135deg,#ebd8b0,#c9a96e)!important;color:#061121!important;font-weight:800!important}

/* lot size unit toggle */
#hbFilterPanel .hbf-unit{display:inline-flex;overflow:hidden;border:1px solid var(--hbf-line);border-radius:10px;background:var(--hbf-fill)}
#hbFilterPanel .hbf-unit button{position:relative;min-width:56px;height:36px;margin:0;padding:0 10px;border:0!important;border-radius:0!important;background:transparent!important;color:var(--hbf-text)!important;font-family:inherit;font-size:13px!important;font-weight:500!important;line-height:1!important;text-transform:none!important;box-shadow:none!important;cursor:pointer}
#hbFilterPanel .hbf-unit button:after{content:'';position:absolute;inset:-4px 0}
#hbFilterPanel .hbf-unit button:focus-visible{outline:2px solid #f8dfaa;outline-offset:-3px}
#hbFilterPanel .hbf-unit button[aria-checked=true]{background:linear-gradient(135deg,#ebd8b0,#c9a96e)!important;color:#061121!important;font-weight:800!important}

/* date info disclosure */
#hbFilterPanel .hbf-info{position:relative;flex:0 0 auto;width:22px;height:22px;margin:0;padding:0;border:1px solid var(--hbf-line)!important;border-radius:50%!important;background:transparent!important;color:var(--hbf-gold)!important;font-size:13px!important;font-style:italic;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer}
#hbFilterPanel .hbf-info:after{content:'';position:absolute;inset:-11px}
#hbFilterPanel .hbf-info:focus-visible{outline:2px solid #f8dfaa;outline-offset:2px}
#hbFilterPanel .hbf-note{grid-column:1/-1;margin:-6px 0 0;color:var(--hbf-dim);font-size:12px;line-height:1.35}

/* validation */
#hbFilterPanel .hbf-error{margin:6px 0 0;color:#ff9b9b;font-size:13px;line-height:1.35}

/* footer */
#hbFilterPanel .hbf-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 0;padding:12px 0 0;border-top:1px solid rgba(235,216,176,.18)}
#hbFilterPanel .hbf-reset{min-width:44px;min-height:44px;margin:0;padding:0 4px!important;border:0!important;background:none!important;color:var(--hbf-gold)!important;font-family:inherit;font-size:15px!important;font-weight:700!important;line-height:1!important;text-decoration:underline;text-underline-offset:4px;text-transform:none!important;box-shadow:none!important;cursor:pointer}
#hbFilterPanel .hbf-reset:focus-visible{outline:2px solid #f8dfaa;outline-offset:2px}
#hbFilterPanel .hbf-group.box-select,#hbFilterPanel .hbf-field.box-select{display:block!important;text-align:left}
#hbFilterPanel .hbf-field.box-select{display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-end}
#hbFilterPanel .hbf-field.box-select>label,#hbFilterPanel .hbf-group.box-select>label{text-align:left!important;align-self:flex-start}
#hbFilterPanel .hbf-apply{position:static!important;top:auto!important;left:auto!important;width:auto!important;display:inline-flex!important;flex:1 1 auto;max-width:240px;height:48px!important;min-height:48px!important;margin:0 0 0 auto!important;padding:0 22px!important;font-size:15px!important;letter-spacing:.3px!important;text-transform:none!important}
#hbFilterPanel .hbf-apply[disabled]{opacity:.6;cursor:progress}

@media(max-width:767px){
  #hbFilterPanel input[type=text],
  #hbFilterPanel .hbf-select select,
  #hbFilterPanel .nice-select.multi-select,
  #hbFilterPanel .nice-select.multi-select .current-listing,
  #hbFilterPanel .nice-select.multi-select .current-view{font-size:16px!important}
}
@media(max-width:340px){
  #hbFilterPanel .hbf-grid{grid-template-columns:minmax(0,1fr)}
  #hbFilterPanel .hbf-seg button{font-size:14px!important}
}

@media(min-width:768px){
  #hbFilterPanel.show{max-width:760px!important;margin-left:auto!important;margin-right:auto!important}
}
