.house-feature-group{grid-column:1/-1;min-width:0;margin:12px 0;border:1px solid #d7ddd3;border-radius:9px;padding:12px;background:#f8f9f5}
.house-feature-group>summary{cursor:pointer;font-weight:700;line-height:1.5;padding:4px}
.house-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:14px}
.house-feature-grid>label{min-width:0;display:flex;flex-direction:column;gap:6px}
.house-feature-grid :is(input:not([type=checkbox]),select){box-sizing:border-box;width:100%;min-width:0}
.house-feature-choices,.house-feature-range{min-width:0;margin:0;border:1px solid #d7ddd3;border-radius:7px;padding:12px}
.house-feature-choices{grid-column:1/-1}
.house-feature-choices legend,.house-feature-range legend{font-weight:600;padding:0 5px;font-size:15px}
.house-feature-choices>small{display:block;color:#697163;font-size:12px;margin-bottom:10px}
.house-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.house-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:38px;margin:0!important;font-size:14px;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}
.house-choice input[type=checkbox]{flex:none;appearance:auto;width:18px!important;height:18px!important;min-height:18px!important;margin:0;accent-color:#405649}
.house-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.house-feature-grid label:focus-within{outline-offset:3px}
@media(max-width:600px){.house-feature-grid{grid-template-columns:1fr}.house-choice-list{grid-template-columns:1fr}.house-feature-group{padding:10px}.house-choice{min-height:44px}}

.house-choice-picker>summary{cursor:pointer;padding:8px;border:1px solid #cbd3c6;border-radius:6px;font-size:14px;background:#fff}
.house-choice-picker>summary small{float:right;color:#66705f;font-size:12px}
.house-choice-picker .house-choice-list{margin-top:10px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px}

/* Компактная сетка свойств; локальные правила перекрывают общие отступы fieldset. */
body.realtor-theme .house-feature-group{margin:3px 0;padding:8px 10px;border-radius:7px}
body.realtor-theme .house-feature-group>summary{padding:3px 2px;font-size:15px;line-height:24px}
body.realtor-theme .house-feature-group .house-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;padding-top:10px;align-items:start}
body.realtor-theme .house-feature-grid :is(.house-feature-choices,.house-feature-range){grid-column:auto;min-width:0;min-inline-size:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}
body.realtor-theme .house-feature-grid :is(.house-feature-choices,.house-feature-range)>legend{float:none;width:auto;margin:0 0 5px;padding:0;font-size:13px;line-height:1.4;font-weight:600}
body.realtor-theme .house-feature-grid>label{font-size:13px;gap:5px}
body.realtor-theme .house-range-inputs{gap:6px}
body.realtor-theme .house-range-inputs label{font-size:12px;gap:3px}
body.realtor-theme .house-choice-picker{position:relative;margin:0}
body.realtor-theme .house-choice-picker>summary{display:flex;align-items:center;gap:7px;min-height:42px;box-sizing:border-box;padding:8px 10px;font-size:14px;list-style:none}
.house-choice-picker>summary::-webkit-details-marker{display:none}
.house-choice-picker>summary::after{content:'⌄';margin-left:auto;flex:none}
.house-choice-picker[open]>summary::after{transform:rotate(180deg)}
.house-choice-picker [data-feature-selection-label]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.house-choice-picker>summary small{float:none;flex:none;padding:0 6px;border-radius:9px;background:#e6ecdf;font-size:12px}
.house-choice-options{padding-top:8px}
.house-choice-options>small{display:block;font-size:12px;line-height:1.4;color:#66705f;margin:0 0 6px}
body.realtor-theme .house-choice-picker .house-choice-list{grid-template-columns:1fr;gap:2px;margin-top:0;max-height:none;padding:0;overflow:visible}
body.realtor-theme .house-choice{font-size:13px;min-height:34px}
@media(min-width:701px){
 .house-choice-picker[open]>.house-choice-options{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;max-height:300px;overflow:auto;padding:10px;border:1px solid #cbd3c6;border-radius:7px;background:#fff;box-shadow:0 8px 24px #17271926}
}
@media(min-width:601px) and (max-width:1000px){body.realtor-theme .house-feature-group .house-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 body.realtor-theme .house-feature-group .house-feature-grid{grid-template-columns:1fr;gap:10px}
 body.realtor-theme .house-choice-picker>summary{min-height:44px}
 body.realtor-theme .house-choice{min-height:44px}
 .house-choice-picker[open]>.house-choice-options{max-height:280px;overflow:auto;border-bottom:1px solid #d7ddd3}
}

body.realtor-theme .catalog-filters .house-area-range{grid-column:auto;margin:0;padding:0;border:0;min-width:0;min-inline-size:0}
body.realtor-theme .catalog-filters .house-area-range>legend{float:none;padding:0;margin:0 0 5px;font-size:13px;font-weight:600;line-height:1.4}
.house-area-range input{box-sizing:border-box;width:100%;min-width:0}

.house-feature-groups{grid-column:1/-1;min-width:0}
.house-feature-groups.is-filter{display:flex;flex-wrap:wrap;gap:8px}
body.realtor-theme .is-filter>.house-feature-group{flex:1 1 100%;box-sizing:border-box;margin:0}
body.realtor-theme .is-filter>.house-feature-group.is-sparse{flex:1 1 260px;padding:7px 9px}
body.realtor-theme .is-filter>.house-feature-group.is-sparse>summary{font-size:13px;line-height:20px;padding:0}
body.realtor-theme .is-filter>.house-feature-group.is-sparse .house-feature-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));padding-top:6px;gap:8px}
@media(max-width:600px){body.realtor-theme .is-filter>.house-feature-group.is-sparse{flex-basis:100%}.house-feature-groups.is-filter{gap:6px}}

body.realtor-theme .is-filter>.house-feature-group>summary{margin:0!important}
body.realtor-theme .is-filter>.house-feature-group .house-feature-grid{margin:0!important}
body.realtor-theme[data-public-typography] .catalog-filters.has-house-properties .filter-actions{margin-top:12px!important;padding-top:0}

/* Второстепенные публичные фильтры: две компактные колонки разделов. */
body.realtor-theme .house-feature-groups.is-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px}
body.realtor-theme .is-filter>.house-feature-group,
body.realtor-theme .is-filter>.house-feature-group.is-sparse{grid-column:auto;margin:0;padding:8px;min-width:0}
body.realtor-theme .is-filter>.house-feature-group>summary{font-size:13px;line-height:20px;padding:0 1px}
body.realtor-theme .is-filter>.house-feature-group .house-feature-grid,
body.realtor-theme .is-filter>.house-feature-group.is-sparse .house-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;padding-top:8px}
body.realtor-theme .is-filter .house-feature-grid>label,
body.realtor-theme .is-filter .house-feature-grid :is(.house-feature-choices,.house-feature-range)>legend{font-size:12px;line-height:17px;margin-bottom:3px;gap:3px}
body.realtor-theme .is-filter .house-feature-grid :is(input:not([type=checkbox]),select),
body.realtor-theme .is-filter .house-choice-picker>summary{height:34px;min-height:34px;padding:5px 8px;font-size:13px;line-height:22px;border-radius:5px}
body.realtor-theme .is-filter .house-range-inputs{gap:4px}
body.realtor-theme .is-filter .house-range-inputs label{display:block;margin:0}
body.realtor-theme .is-filter .house-range-bound{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.realtor-theme .is-filter .house-choice-options{min-width:0}
@media(max-width:900px){body.realtor-theme .house-feature-groups.is-filter{grid-template-columns:1fr}}
@media(max-width:600px){
 body.realtor-theme .is-filter>.house-feature-group .house-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px}
 body.realtor-theme .is-filter .house-feature-grid :is(input:not([type=checkbox]),select),body.realtor-theme .is-filter .house-choice-picker>summary{height:44px;min-height:44px;font-size:16px;padding:8px}
 body.realtor-theme .is-filter .house-choice{font-size:14px;min-height:44px}
 body.realtor-theme .is-filter .house-choice-picker[open]>.house-choice-options{max-height:260px}
}
@media(max-width:359px){body.realtor-theme .is-filter>.house-feature-group .house-feature-grid{grid-template-columns:1fr}}

/* Ровный шеврон не зависит от символов и метрик шрифта. */
.house-choice-picker>summary::after{content:"";display:block;box-sizing:border-box;width:7px;height:7px;margin:0 2px 3px auto;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);opacity:.65;flex-shrink:0}
.house-choice-picker[open]>summary::after{transform:rotate(225deg);margin-top:4px;margin-bottom:0}

body.realtor-theme .is-filter .house-feature-grid>label{margin:0!important}
body.realtor-theme .is-filter .house-feature-grid :is(input:not([type=checkbox]),select){height:34px!important;min-height:34px!important;padding:5px 8px!important;font-size:13px!important;line-height:22px!important;margin:0!important}
@media(max-width:600px){body.realtor-theme .is-filter .house-feature-grid :is(input:not([type=checkbox]),select){height:44px!important;min-height:44px!important;font-size:16px!important;padding:8px!important}}

/* Разделы идут последовательно; поля внутри используют ширину формы. */
body.realtor-theme .house-feature-groups.is-filter{grid-template-columns:1fr}
body.realtor-theme .is-filter>.house-feature-group .house-feature-grid,
body.realtor-theme .is-filter>.house-feature-group.is-sparse .house-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){body.realtor-theme .is-filter>.house-feature-group .house-feature-grid,body.realtor-theme .is-filter>.house-feature-group.is-sparse .house-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:359px){body.realtor-theme .is-filter>.house-feature-group .house-feature-grid,body.realtor-theme .is-filter>.house-feature-group.is-sparse .house-feature-grid{grid-template-columns:1fr}}

body.realtor-theme .is-filter .house-feature-grid>label{justify-content:flex-start}
body.realtor-theme .is-filter .house-feature-grid :is(.house-feature-choices,.house-feature-range)>legend{min-height:17px}

body.realtor-theme .is-filter .house-range-title{display:block;font-size:12px;font-weight:600;line-height:17px;min-height:17px;margin:0 0 3px;padding:0}
body.realtor-theme .is-filter .house-feature-grid>.house-feature-range{align-self:start}

/* Перекрываем общую публичную типографику внутри второстепенных фильтров. */
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-feature-grid .house-range-inputs input{box-sizing:border-box!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:5px 8px!important;font-size:13px!important;line-height:22px!important}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice,
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice span{font-size:12px!important;line-height:1.4!important;font-weight:400!important}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options>small{font-size:11px!important;line-height:1.4!important}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice{min-height:30px!important;margin:0!important;gap:7px}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important}
@media(max-width:600px){
 body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-feature-grid .house-range-inputs input{height:44px!important;min-height:44px!important;max-height:44px!important;font-size:16px!important;padding:8px!important}
 body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice{min-height:44px!important}
 body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice,body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-choice-options .house-choice span{font-size:13px!important}
}

/* Приоритет над настройкой размера публичных текстов темы. */
:is(#house-secondary-filters,.house-feature-groups.is-filter) .house-choice-options :is(label.house-choice,label.house-choice span){font-size:12px!important;line-height:1.4!important;font-weight:400!important}
:is(#house-secondary-filters,.house-feature-groups.is-filter) .house-choice-options>small{font-size:11px!important;line-height:1.4!important}
@media(max-width:600px){:is(#house-secondary-filters,.house-feature-groups.is-filter) .house-choice-options :is(label.house-choice,label.house-choice span){font-size:13px!important}}

/* Выпадающий слой на всех экранах: открытие не изменяет высоту сетки. */
.house-choice-picker[open]>.house-choice-options{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:10020;max-height:280px;overflow:auto;overscroll-behavior:contain;padding:9px;border:1px solid #cbd3c6;border-radius:7px;background:#fff;box-shadow:0 8px 24px #17271926;box-sizing:border-box}
@media(max-width:700px){
 .house-choice-picker[open]>.house-choice-options.is-floating{position:fixed;right:auto;top:var(--picker-top);left:var(--picker-left);width:var(--picker-width);max-height:var(--picker-height)}
 body.realtor-theme .is-filter .house-choice-picker>summary{font-size:14px!important;height:40px!important;min-height:40px!important;line-height:22px!important;padding:8px!important}
 body.realtor-theme .is-filter .house-feature-grid :is(.house-feature-choices,.house-feature-range)>legend,
 body.realtor-theme .is-filter .house-range-title{display:block;height:34px!important;min-height:34px!important;line-height:17px!important;font-size:12px!important;margin:0 0 4px!important}
 body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-feature-grid .house-range-inputs input,
 body.realtor-theme .is-filter .house-feature-grid .house-range-inputs input{height:40px!important;min-height:40px!important;max-height:40px!important;font-size:14px!important;line-height:22px!important;padding:8px!important}
 body.realtor-theme .is-filter .house-feature-grid .house-range-inputs input:focus{font-size:16px!important}
 :is(#house-secondary-filters,.house-feature-groups.is-filter) .house-choice-options :is(label.house-choice,label.house-choice span){font-size:12px!important}
}

/* Компактные основные фильтры для всех категорий каталога. */
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid{gap:10px!important}
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid>label,
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid>.district-field>span{font-size:13px!important;line-height:18px!important}
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid>label>input:not([type=checkbox]),
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid>label>select,
body.realtor-theme[data-public-typography] .catalog-filters .filter-grid .district-picker>summary{box-sizing:border-box;height:40px!important;min-height:40px!important;padding:8px 10px!important;font-size:14px!important;line-height:22px!important}
@media(min-width:901px){
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid>.filter-price,
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid.has-rooms>.district-field:nth-child(5){grid-column:span 2!important}
}
@media(min-width:1350px){
 body.realtor-theme[data-public-typography] .catalog-filters .search-refinements>.catalog-primary-grid{grid-template-columns:repeat(4,minmax(0,1fr)) repeat(2,140px)!important}
 body.realtor-theme[data-public-typography] .catalog-filters .search-refinements>.catalog-primary-grid.has-rooms{grid-template-columns:minmax(210px,1.3fr) minmax(160px,1fr) minmax(210px,1fr) minmax(145px,1fr) 90px repeat(2,120px)!important}
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid>*{grid-column:span 1!important}
}
@media(max-width:640px){
 body.realtor-theme[data-public-typography] .catalog-filters .search-refinements>.catalog-primary-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid>*{grid-column:span 6!important;min-width:0}
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid>.filter-price{grid-column:span 3!important}
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid.has-rooms>.filter-price,
 body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid.has-rooms>.district-field:nth-child(5){grid-column:span 2!important}
 body.realtor-theme[data-public-typography] .catalog-filters .filter-grid>label>input:focus{font-size:16px!important}
}

@media(min-width:1350px){body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid>.filter-price,body.realtor-theme[data-public-typography] .catalog-filters .catalog-primary-grid.has-rooms>.district-field:nth-child(5){grid-column:span 1!important}}

/* Единые короткие диапазоны площади и этажей во всех категориях. */
body.realtor-theme[data-public-typography] .catalog-filters .house-area-range{min-width:0;max-width:230px;width:100%;box-sizing:border-box;align-self:start}
body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls{display:flex!important;grid-column:1/-1;flex-wrap:wrap;align-items:flex-start;gap:12px!important;width:100%;margin-top:0}
body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-number-field{flex:0 1 150px!important;max-width:150px;width:150px}
body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-floor-range{flex:0 1 220px!important;max-width:220px;margin:0;padding:0;border:0}
body.realtor-theme[data-public-typography] .catalog-filters .house-area-range>legend{padding:0;margin:0 0 5px;font-size:13px;line-height:18px;font-weight:600}
body.realtor-theme[data-public-typography] .catalog-filters .house-area-range .house-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.realtor-theme[data-public-typography] .catalog-filters :is(.house-area-range,.compact-number-field) input{box-sizing:border-box;min-width:0;height:40px!important;min-height:40px!important;padding:8px!important;font-size:14px!important;line-height:22px!important}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-feature-range{max-width:230px;min-width:0}
body.realtor-theme[data-public-typography] .catalog-filters .is-filter .house-range-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
@media(max-width:640px){body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls{flex-wrap:nowrap;gap:10px!important}body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-number-field{flex:1 1 0!important;width:auto;min-width:0}body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-floor-range{flex:1.4 1 0!important;min-width:0}body.realtor-theme[data-public-typography] .catalog-filters :is(.house-area-range,.compact-number-field) input:focus{font-size:16px!important}}

body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-number-field{display:flex!important;flex-direction:column;gap:5px!important}
@media(max-width:640px){body.realtor-theme[data-public-typography] .catalog-filters .smart-search-controls>.compact-number-field{display:grid!important;grid-template-rows:36px 40px!important;align-content:start}body.realtor-theme[data-public-typography] .catalog-filters .compact-floor-range>legend{min-height:36px;box-sizing:border-box}}

body.realtor-theme[data-public-typography] .catalog-filters .compact-number-field>select{box-sizing:border-box;min-width:0;height:40px!important;min-height:40px!important;padding:8px!important;font-size:14px!important;line-height:22px!important}
