/**
 * Findar V46144 — Progressive Search Filters FULL SAFE
 * Compact by default, powerful on demand.
 */

body.findar-mobile-premium {
  --f44-blue:#1857ff;
  --f44-blue-dark:#1047d9;
  --f44-ink:#071327;
  --f44-muted:#627085;
  --f44-line:#dce3ec;
  --f44-soft:#f5f7fa;
  --f44-white:#fff;
  --f44-shadow:0 18px 55px rgba(7,19,39,.16);
}

[data-fmp-filter-popover][hidden],
[data-fmp-filter-drawer][hidden],
[data-fmp-filter-backdrop][hidden],
[data-fmp-filter-count][hidden] {
  display:none!important;
}

body.fmp-filter-drawer-open,
body.fmp-filter-popover-open {
  overflow:hidden!important;
}

body.findar-mobile-premium-search .fmp-filter-shell {
  position:sticky!important;
  top:var(--fmp-global-header-h,0px)!important;
  z-index:850!important;
  overflow:visible!important;
  border-bottom:1px solid var(--f44-line)!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 7px 22px rgba(7,19,39,.045)!important;
}

body.findar-mobile-premium-search .fmp-filter-shell > .findar-container {
  overflow:visible!important;
}

body.findar-mobile-premium-search .fmp-filter-hub {
  position:relative!important;
  display:grid!important;
  width:100%!important;
  gap:12px!important;
  padding:16px 0 13px!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.findar-mobile-premium-search .fmp-filter-searchline {
  display:grid!important;
  grid-template-columns:minmax(280px,720px) auto!important;
  justify-content:start!important;
  gap:8px!important;
  width:100%!important;
}

body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location {
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  min-height:52px!important;
  padding:0 16px!important;
  border:1px solid var(--f44-line)!important;
  border-radius:14px!important;
  background:var(--f44-soft)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}

body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location > svg {
  flex:0 0 21px!important;
  width:21px!important;
  height:21px!important;
  margin-right:10px!important;
  fill:none!important;
  stroke:var(--f44-ink)!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
}

body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location input {
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--f44-ink)!important;
  font-size:16px!important;
  font-weight:650!important;
  box-shadow:none!important;
}

body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location:focus-within {
  border-color:var(--f44-blue)!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(24,87,255,.12)!important;
}

body.findar-mobile-premium-search .fmp-filter-submit {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:138px!important;
  min-height:52px!important;
  padding:0 20px!important;
  gap:9px!important;
  border:1px solid var(--f44-blue)!important;
  border-radius:14px!important;
  background:var(--f44-blue)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:850!important;
  box-shadow:0 9px 22px rgba(24,87,255,.2)!important;
  cursor:pointer!important;
}

body.findar-mobile-premium-search .fmp-filter-submit:hover {
  background:var(--f44-blue-dark)!important;
  transform:translateY(-1px)!important;
}

body.findar-mobile-premium-search .fmp-filter-submit svg {
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
}

body.findar-mobile-premium-search .fmp-filter-hub button {
  height:auto!important;
}

body.findar-mobile-premium-search .fmp-filter-hub :is(.fmp-filter-toolbar,.fmp-filter-popover,.fmp-filter-drawer,.fmp-filter-submit,.fmp-filter-map-button) span:not(.screen-reader-text) {
  display:inline!important;
}

.fmp-filter-toolbar {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.fmp-filter-menu {
  position:relative;
  flex:0 0 auto;
}

.fmp-filter-pill,
.fmp-filter-map-button {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  padding:0 16px!important;
  gap:9px!important;
  border:1px solid #cbd4df!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--f44-ink)!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:780!important;
  line-height:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:0 1px 0 rgba(7,19,39,.02)!important;
  cursor:pointer!important;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}

.fmp-filter-pill:hover,
.fmp-filter-map-button:hover {
  border-color:#96a5b8!important;
  background:#fbfcfe!important;
  transform:translateY(-1px)!important;
}

.fmp-filter-pill[aria-expanded="true"],
.fmp-filter-pill.is-active {
  border-color:rgba(24,87,255,.55)!important;
  background:#eef3ff!important;
  color:#0d43ca!important;
}

.fmp-filter-pill > svg:not(.fmp-filter-sliders) {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease;
}

.fmp-filter-pill[aria-expanded="true"] > svg:not(.fmp-filter-sliders) {
  transform:rotate(180deg);
}

.fmp-filter-pill--more b {
  display:grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  background:var(--f44-blue);
  color:#fff;
  font-size:11px;
}

.fmp-filter-sliders,
.fmp-filter-map-button svg {
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.fmp-filter-map-button {
  margin-left:auto!important;
  border-color:rgba(24,87,255,.38)!important;
  color:var(--f44-blue)!important;
}

.fmp-filter-popover {
  position:absolute;
  z-index:99920;
  top:calc(100% + 9px);
  left:0;
  width:min(390px,calc(100vw - 32px));
  padding:18px;
  border:1px solid var(--f44-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--f44-shadow);
}

.fmp-rooms-popover {
  width:min(430px,calc(100vw - 32px));
}

.fmp-type-popover {
  width:min(470px,calc(100vw - 32px));
}

.fmp-filter-popover__head,
.fmp-filter-drawer__head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.fmp-filter-popover__head {
  margin:-2px 0 15px;
}

.fmp-filter-popover__head strong {
  color:var(--f44-ink);
  font-size:16px;
  font-weight:850;
}

.fmp-filter-popover__head > button,
.fmp-filter-drawer__head > button {
  display:grid;
  place-items:center;
  width:44px;
  min-width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--f44-ink);
  font:400 28px/1 inherit;
  cursor:pointer;
}

.fmp-filter-popover__head > button:hover,
.fmp-filter-drawer__head > button:hover {
  background:var(--f44-soft);
}

.fmp-range-fields {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:end;
  gap:10px;
}

.fmp-range-fields > span {
  padding-bottom:16px;
  color:var(--f44-muted);
  font-weight:800;
}

.fmp-range-fields label {
  display:grid;
  gap:7px;
  min-width:0;
}

.fmp-range-fields label > span {
  color:#273448;
  font-size:12px;
  font-weight:800;
}

.fmp-range-fields input,
.fmp-drawer-select select {
  width:100%;
  min-width:0;
  height:48px;
  padding:0 13px;
  border:1px solid #ccd5e0;
  border-radius:11px;
  background:#fff;
  color:var(--f44-ink);
  font:700 14px/1 inherit;
  outline:0;
  box-shadow:none;
}

.fmp-range-fields input:focus,
.fmp-drawer-select select:focus {
  border-color:var(--f44-blue);
  box-shadow:0 0 0 4px rgba(24,87,255,.11);
}

.fmp-preset-chips {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}

.fmp-preset-chips button {
  min-height:36px;
  padding:0 11px;
  border:1px solid #e0e5ec;
  border-radius:999px;
  background:#f8fafc;
  color:#334055;
  font:700 12px/1 inherit;
  cursor:pointer;
}

.fmp-preset-chips button:hover,
.fmp-preset-chips button:focus-visible {
  border-color:rgba(24,87,255,.55);
  background:#eef3ff;
  color:#0d43ca;
}

.fmp-filter-popover__actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:17px -18px -18px;
  padding:13px 18px;
  border-top:1px solid var(--f44-line);
}

.fmp-filter-clear {
  min-height:42px;
  padding:0 6px;
  border:0;
  background:transparent;
  color:var(--f44-blue);
  font:800 13px/1 inherit;
  cursor:pointer;
}

.fmp-filter-apply {
  min-width:126px;
  min-height:42px;
  padding:0 17px;
  border:1px solid var(--f44-blue);
  border-radius:10px;
  background:var(--f44-blue);
  color:#fff;
  font:850 13px/1 inherit;
  cursor:pointer;
}

.fmp-segmented-options {
  display:grid;
  grid-template-columns:repeat(6,minmax(52px,1fr));
  overflow:hidden;
  border:1px solid #ccd5e0;
  border-radius:12px;
}

.fmp-segmented-options button {
  min-width:0;
  min-height:50px;
  padding:0 8px;
  border:0;
  border-right:1px solid #ccd5e0;
  background:#fff;
  color:#253247;
  font:800 13px/1 inherit;
  cursor:pointer;
}

.fmp-segmented-options button:last-child {
  border-right:0;
}

.fmp-segmented-options button.is-selected {
  background:var(--f44-blue);
  color:#fff;
}

.fmp-property-type-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-height:330px;
  overflow:auto;
  overscroll-behavior:contain;
}

.fmp-property-type-options button {
  display:flex;
  align-items:center;
  min-height:46px;
  padding:0 13px;
  gap:9px;
  border:1px solid #ccd5e0;
  border-radius:11px;
  background:#fff;
  color:#273448;
  font:750 13px/1.2 inherit;
  text-align:left;
  cursor:pointer;
}

.fmp-property-type-options button > span {
  color:var(--f44-blue);
  font-size:18px;
}

.fmp-property-type-options button.is-selected {
  border-color:var(--f44-blue);
  background:#eef3ff;
  color:#0d43ca;
  box-shadow:inset 0 0 0 1px var(--f44-blue);
}

.fmp-filter-backdrop {
  position:fixed;
  z-index:99980;
  inset:0;
  background:rgba(7,19,39,.52);
  backdrop-filter:blur(2px);
}

.fmp-filter-drawer {
  position:fixed;
  z-index:99990;
  top:0;
  right:0;
  bottom:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  width:min(510px,100vw);
  border-left:1px solid var(--f44-line);
  background:#f8fafc;
  box-shadow:-22px 0 60px rgba(7,19,39,.18);
  transform:translateX(102%);
  transition:transform .22s ease;
}

.fmp-filter-drawer.is-open {
  transform:translateX(0);
}

.fmp-filter-drawer__head {
  min-height:92px;
  padding:16px 20px;
  border-bottom:1px solid var(--f44-line);
  background:#fff;
}

.fmp-filter-drawer__head > div {
  display:grid;
  gap:2px;
}

.fmp-filter-drawer__head span {
  color:var(--f44-blue);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.fmp-filter-drawer__head h2 {
  margin:0!important;
  color:var(--f44-ink)!important;
  font-size:22px!important;
  line-height:1.05!important;
}

.fmp-filter-drawer__head small {
  color:var(--f44-muted);
  font-size:12px;
}

.fmp-filter-drawer__body {
  display:grid;
  align-content:start;
  gap:14px;
  padding:16px;
  overflow:auto;
  overscroll-behavior:contain;
}

.fmp-drawer-card {
  padding:18px;
  border:1px solid var(--f44-line);
  border-radius:16px;
  background:#fff;
}

.fmp-drawer-card h3 {
  margin:0 0 16px!important;
  padding:0 0 12px;
  border-bottom:1px solid var(--f44-line);
  color:var(--f44-ink)!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.2!important;
}

.fmp-transaction-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.fmp-transaction-options a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 13px;
  border:1px solid #ccd5e0;
  border-radius:11px;
  color:var(--f44-ink);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}

.fmp-transaction-options a.is-active {
  border-color:var(--f44-blue);
  background:#eef3ff;
  color:#0d43ca;
  box-shadow:inset 0 0 0 1px var(--f44-blue);
}

.fmp-property-type-options--drawer {
  max-height:none;
}

.fmp-drawer-select {
  display:block;
}

.fmp-filter-drawer__foot {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  gap:10px;
  padding:14px 16px max(14px,env(safe-area-inset-bottom));
  border-top:1px solid var(--f44-line);
  background:rgba(255,255,255,.98);
  box-shadow:0 -12px 30px rgba(7,19,39,.08);
}

.fmp-filter-drawer__foot a,
.fmp-filter-drawer__foot button {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 14px;
  border:1px solid var(--f44-blue);
  border-radius:12px;
  font:850 14px/1 inherit;
  text-decoration:none;
  cursor:pointer;
}

.fmp-filter-drawer__foot a {
  background:#fff;
  color:var(--f44-blue);
}

.fmp-filter-drawer__foot button {
  background:var(--f44-blue);
  color:#fff;
}

.fmp-filter-hub :is(button,a,input,select):focus-visible {
  outline:3px solid rgba(24,87,255,.3)!important;
  outline-offset:2px!important;
}

body.findar-mobile-premium-home .fmp-home-budget-menu {
  position:relative!important;
  overflow:visible!important;
}

body.findar-mobile-premium-home .fmp-home-budget-trigger {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:30px!important;
  padding:0!important;
  gap:8px!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  font:750 14px/1.2 inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}

body.findar-mobile-premium-home .fmp-home-budget-trigger svg {
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
}

body.findar-mobile-premium-home .fmp-home-price-popover {
  top:calc(100% + 12px)!important;
  right:0!important;
  left:auto!important;
  color:var(--f44-ink)!important;
  text-align:left!important;
}

.fmp-map-price-menu {
  position:relative!important;
  overflow:visible!important;
}

.fmp-map-price-menu > [data-fmp-map-price-trigger] {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-width:150px!important;
  min-height:44px!important;
  padding:0 13px!important;
  gap:9px!important;
  border:1px solid #d6dde7!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--f44-ink)!important;
  font:750 13px/1 inherit!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

.fmp-map-price-menu > [data-fmp-map-price-trigger][aria-expanded="true"] {
  border-color:var(--f44-blue)!important;
  background:#eef3ff!important;
  color:#0d43ca!important;
}

.fmp-map-price-popover {
  position:absolute;
  z-index:99930;
  top:calc(100% + 9px);
  left:0;
  width:min(390px,calc(100vw - 28px));
  padding:18px;
  border:1px solid var(--f44-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--f44-shadow);
}

.fmp-map-price-popover .fmp-range-fields select {
  width:100%;
  min-width:0;
  height:48px;
  padding:0 10px;
  border:1px solid #ccd5e0;
  border-radius:11px;
  background:#fff;
  color:var(--f44-ink);
  font:700 12px/1 inherit;
}

@media (max-width:900px) {
  .fmp-filter-pill,
  .fmp-filter-map-button {
    padding-inline:13px!important;
    font-size:13px!important;
  }
}

@media (max-width:768px) {
  body.findar-mobile-premium-search .fmp-filter-shell {
    position:relative!important;
    top:auto!important;
    z-index:920!important;
  }

  body.findar-mobile-premium-search .fmp-filter-hub {
    gap:10px!important;
    padding:10px 0 9px!important;
  }

  body.findar-mobile-premium-search .fmp-filter-searchline {
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:7px!important;
  }

  body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location {
    min-height:48px!important;
    padding:0 12px!important;
    border-radius:12px!important;
  }

  body.findar-mobile-premium-search .fmp-filter-searchline .fmp-filter-location input {
    height:46px!important;
    font-size:13px!important;
  }

  body.findar-mobile-premium-search .fmp-filter-submit {
    min-width:48px!important;
    width:48px!important;
    min-height:48px!important;
    padding:0!important;
    border-radius:12px!important;
  }

  body.findar-mobile-premium-search .fmp-filter-submit span {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }

  .fmp-filter-toolbar {
    gap:7px;
    margin-inline:-12px;
    padding:1px 12px 5px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }

  .fmp-filter-toolbar::-webkit-scrollbar {
    display:none;
  }

  .fmp-filter-menu,
  .fmp-filter-pill,
  .fmp-filter-map-button {
    flex:0 0 auto!important;
    scroll-snap-align:start;
  }

  .fmp-filter-pill,
  .fmp-filter-map-button {
    min-height:44px!important;
    padding:0 13px!important;
    border-radius:11px!important;
    font-size:12.5px!important;
  }

  .fmp-filter-map-button {
    margin-left:0!important;
  }

  .fmp-filter-popover {
    position:fixed;
    z-index:99990;
    top:auto;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-height:min(78vh,680px);
    padding:18px 16px max(18px,env(safe-area-inset-bottom));
    overflow:auto;
    border:0;
    border-radius:22px 22px 0 0;
    box-shadow:0 -18px 55px rgba(7,19,39,.2);
    animation:fmp44-sheet-in .2s ease-out both;
  }

  body.findar-mobile-premium-home .fmp-home-price-popover {
    top:auto!important;
    right:0!important;
    left:0!important;
  }

  .fmp-map-price-popover {
    position:fixed;
    z-index:99999;
    top:auto;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    padding:18px 16px max(20px,env(safe-area-inset-bottom));
    border:0;
    border-radius:22px 22px 0 0;
    box-shadow:0 -18px 55px rgba(7,19,39,.2);
    animation:fmp44-sheet-in .2s ease-out both;
  }

  .fmp-filter-popover__actions {
    position:sticky;
    bottom:calc(-1 * max(18px,env(safe-area-inset-bottom)));
    margin:17px -16px calc(-1 * max(18px,env(safe-area-inset-bottom)));
    padding:13px 16px max(13px,env(safe-area-inset-bottom));
    background:#fff;
    box-shadow:0 -8px 24px rgba(7,19,39,.07);
  }

  .fmp-property-type-options {
    max-height:none;
  }

  .fmp-segmented-options {
    grid-template-columns:repeat(3,minmax(0,1fr));
    border:0;
    gap:8px;
    overflow:visible;
  }

  .fmp-segmented-options button {
    min-height:48px;
    border:1px solid #ccd5e0!important;
    border-radius:11px;
  }

  .fmp-filter-drawer {
    width:100%;
    border-left:0;
  }

  .fmp-filter-drawer__head {
    min-height:82px;
    padding:12px 14px;
  }

  .fmp-filter-drawer__head h2 {
    font-size:20px!important;
  }

  .fmp-filter-drawer__body {
    gap:12px;
    padding:12px;
  }

  .fmp-drawer-card {
    padding:16px;
    border-radius:15px;
  }

  .fmp-filter-drawer__foot {
    padding:10px 11px max(10px,env(safe-area-inset-bottom));
  }

  .fmp-filter-drawer__foot a,
  .fmp-filter-drawer__foot button {
    min-height:52px;
    padding-inline:9px;
    font-size:13px;
  }
}

@media (max-width:390px) {
  .fmp-property-type-options {
    grid-template-columns:1fr;
  }

  .fmp-range-fields {
    gap:7px;
  }

  .fmp-range-fields input {
    padding-inline:9px;
    font-size:12px;
  }
}

@keyframes fmp44-sheet-in {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}

@media (prefers-reduced-motion:reduce) {
  .fmp-filter-drawer,
  .fmp-filter-popover {
    animation:none!important;
    transition:none!important;
  }
}
