/* EnterHome filter layout 1.0.0 — compact controls, proportionate panels. */
body:has(#eh9-filters) .eh9-filter-row {
  display:flex; flex-wrap:nowrap; align-items:center; gap:7px; min-width:0;
  overflow-x:auto; overflow-y:visible; scrollbar-width:thin; padding:6px 2px 8px;
}
body:has(#eh9-filters) .eh9-filter-row > * { flex:0 0 auto; }
body:has(#eh9-filters) .eh9-filter[open] { z-index:10001; }
body:has(#eh9-filters) .eh9-filter-content {
  position:fixed !important; top:var(--eh-filter-top,180px) !important;
  left:var(--eh-filter-left,16px) !important; right:auto !important;
  width:var(--eh-filter-width,360px) !important; min-width:0 !important; max-width:calc(100vw - 24px) !important;
  max-height:var(--eh-filter-height,65dvh) !important; box-sizing:border-box;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; z-index:10002; isolation:isolate;
  padding:14px; border:1px solid #d9dfe7; border-radius:11px; background:#fff;
  box-shadow:0 12px 32px #1520332e;
}
body:has(#eh9-filters) .eh9-filter-content label { min-width:0; display:grid; gap:5px; align-content:start; font-size:12px; }
body:has(#eh9-filters) .eh9-filter-content input:not([type=checkbox]):not([type=radio]),
body:has(#eh9-filters) .eh9-filter-content select { min-width:0; width:100%; box-sizing:border-box; }
body:has(#eh9-filters) .eh9-filter-content.eh9-pair { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body:has(#eh9-filters) .eh9-filter-content.eh9-pair small { grid-column:1/-1; }
body:has(#eh9-filters) .eh9-type-options {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 12px;
  margin:8px 0 0; padding:8px 0 0; border:0; border-top:1px solid #edf0f4;
}
body:has(#eh9-filters) .eh9-type-options legend { padding:0 4px 0 0; font-size:12px; font-weight:700; }
body:has(#eh9-filters) .eh9-filter-content .eh9-type-options label { display:flex; align-items:center; gap:7px; padding:4px 0; line-height:1.25; }
body:has(#eh9-filters) .eh9-type-options input { flex:0 0 auto; accent-color:#a81031; }
body:has(#eh9-filters) .eh93-filter-panel { display:block; padding:12px; }
body:has(#eh9-filters) .eh93-filter-panel h2 {
  position:sticky; top:-12px; z-index:2; display:flex; align-items:center; justify-content:space-between;
  gap:8px; margin:-12px -12px 7px; padding:10px 12px 8px; background:#fff;
  border-bottom:1px solid #edf0f4; font-size:16px; line-height:1.25;
}
body:has(#eh9-filters) .eh93-filter-panel > .eh9-source { margin:0 0 9px; color:#637084; font-size:11px; line-height:1.35; }
body:has(#eh9-filters) .eh93-filter-sections {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:7px;
}
body:has(#eh9-filters) .eh93-filter-sections > .eh93-group {
  min-width:0; margin:0; padding:8px; border:1px solid #e6e0e3; border-radius:8px;
}
body:has(#eh9-filters) .eh93-filter-sections > .eh93-group legend { padding:0 4px; font-size:11px; font-weight:750; }
body:has(#eh9-filters) .eh93-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
body:has(#eh9-filters) .eh93-group-grid > label, body:has(#eh9-filters) .eh93-range { min-width:0; display:grid; gap:4px; align-content:start; }
body:has(#eh9-filters) .eh93-range > strong { font-size:10px; line-height:1.2; }
body:has(#eh9-filters) .eh93-group .eh9-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
body:has(#eh9-filters) .eh93-group input[type=number], body:has(#eh9-filters) .eh93-group select,
body:has(#eh9-filters) .eh93-keywords input { min-width:0; width:100%; box-sizing:border-box; }
body:has(#eh9-filters) .eh93-group label { min-width:0; font-size:10px; }
body:has(#eh9-filters) .eh93-group small, body:has(#eh9-filters) .eh93-keywords small { color:#647084; font-size:10px; line-height:1.3; }
body:has(#eh9-filters) .eh93-group-timing { grid-column:auto; }
body:has(#eh9-filters) .eh93-group-timing label { max-width:none; }
body:has(#eh9-filters) .eh93-keywords { display:grid; grid-column:1/-1; gap:4px; }
body:has(#eh9-filters) .eh93-filter-close { flex:0 0 auto; }
@media (max-width:1100px) {
  body:has(#eh9-filters) .eh93-filter-sections { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  body:has(#eh9-filters) .eh9-filter-row { gap:6px; padding:5px 1px 7px; }
  body:has(#eh9-filters) .eh9-filter-content { padding:11px; border-radius:10px; }
  body:has(#eh9-filters) .eh93-filter-panel { padding:10px; }
  body:has(#eh9-filters) .eh93-filter-panel h2 { top:-10px; margin:-10px -10px 7px; padding:9px 10px 7px; }
  body:has(#eh9-filters) .eh93-filter-sections { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  body:has(#eh9-filters) .eh93-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(#eh9-filters) .eh93-keywords { grid-column:1/-1; }
}
@media (max-width:480px) {
  body:has(#eh9-filters) .eh93-filter-sections { grid-template-columns:1fr; }
  body:has(#eh9-filters) .eh93-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(#eh9-filters) .eh9-type-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Screenshot follow-up: keep checkbox labels together and give the fee controls room. */
body:has(#eh9-filters) .eh9-filter-content .eh9-type-options label {
  display:flex; flex-direction:row; grid-template-columns:none; align-items:center;
  justify-content:flex-start; gap:8px; white-space:normal; overflow-wrap:anywhere;
}
body:has(#eh9-filters) .eh9-filter-content .eh9-type-options label input[type=checkbox] {
  display:block; flex:0 0 16px; width:16px; min-width:16px; margin:0; accent-color:#a81031;
}
body:has(#eh9-filters) .eh93-group-cost { grid-column:span 2; }
body:has(#eh9-filters) .eh93-group-cost .eh93-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body:has(#eh9-filters) .eh93-group-cost .eh93-range { min-width:0; }
body:has(#eh9-filters) .eh93-group-cost .eh93-range input[type=number],
body:has(#eh9-filters) .eh93-group-cost .eh93-range input[type=range] { min-width:0; max-width:100%; }
@media (max-width:800px) {
  body:has(#eh9-filters) .eh93-group-cost { grid-column:1/-1; }
  body:has(#eh9-filters) .eh93-group-cost .eh93-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:480px) {
  body:has(#eh9-filters) .eh93-group-cost .eh93-group-grid { grid-template-columns:1fr; }
}

/* Keep ranges legible without stretching the cost card vertically. */
body:has(#eh9-filters) .eh93-group-size .eh93-group-grid > .eh93-range { grid-column:1/-1; }
body:has(#eh9-filters) .eh93-group-size .eh93-range .eh9-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
body:has(#eh9-filters) .eh93-group-cost .eh93-cost-sliders { display:grid; gap:7px; }
body:has(#eh9-filters) .eh93-group-cost .eh93-cost-sliders label {
  display:grid !important; grid-template-columns:48px minmax(0,1fr) 44px;
  align-items:center; gap:7px; min-width:0; font-size:11px; line-height:1.2;
}
body:has(#eh9-filters) .eh93-group-cost .eh93-cost-sliders input[type=range] {
  display:block; width:100%; min-width:0; margin:0; accent-color:#a81031;
}
body:has(#eh9-filters) .eh93-group-cost .eh93-cost-sliders output {
  text-align:right; white-space:nowrap; color:#596477; font-size:10px;
}
body:has(#eh9-filters) .eh93-group-cost .eh93-fee-exclude {
  display:flex !important; flex-direction:row; align-items:center; justify-content:flex-start;
  gap:8px; margin-top:7px; line-height:1.3;
}
body:has(#eh9-filters) .eh93-group-cost .eh93-fee-exclude input[type=checkbox] {
  display:block; flex:0 0 16px; width:16px; min-width:16px; margin:0; accent-color:#a81031;
}

/* Balanced, aligned sections for the All filters panel. */
body:has(#eh9-filters) .eh93-filter-sections {
  display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:stretch;
  align-content:start; gap:9px;
}
body:has(#eh9-filters) .eh93-filter-sections > .eh93-group {
  height:100%; box-sizing:border-box; align-self:stretch; background:#fff;
}
body:has(#eh9-filters) .eh93-group-size { grid-column:span 5; }
body:has(#eh9-filters) .eh93-group-cost { grid-column:span 7; }
body:has(#eh9-filters) .eh93-group-features,
body:has(#eh9-filters) .eh93-group-site { grid-column:span 6; }
body:has(#eh9-filters) .eh93-keywords { grid-column:1/-1; }
body:has(#eh9-filters) .eh9-filter-row > .eh9-power-sale {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-sizing:border-box; min-height:36px; margin:0; padding:0 12px;
  border:1px solid #d7dce4; border-radius:7px; background:#fff; color:#263244;
  font-size:12px; font-weight:600; line-height:1; white-space:nowrap; cursor:pointer;
}
body:has(#eh9-filters) .eh9-filter-row > .eh9-power-sale:has(input:checked) {
  border-color:#a81031; background:#fff3f5; color:#761023;
}
body:has(#eh9-filters) .eh9-filter-row > .eh9-power-sale input[type=checkbox] {
  flex:0 0 15px; width:15px; height:15px; margin:0; accent-color:#a81031;
}
body:has(#eh9-filters) .eh9-filter-row > .eh9-power-sale:focus-within {
  outline:2px solid #a81031; outline-offset:2px;
}
@media (max-width:800px) {
  body:has(#eh9-filters) .eh93-filter-sections { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(#eh9-filters) .eh93-group-size,
  body:has(#eh9-filters) .eh93-group-cost { grid-column:1/-1; }
  body:has(#eh9-filters) .eh93-group-features,
  body:has(#eh9-filters) .eh93-group-site { grid-column:span 1; }
}
@media (max-width:480px) {
  body:has(#eh9-filters) .eh93-filter-sections { grid-template-columns:1fr; }
  body:has(#eh9-filters) .eh93-filter-sections > .eh93-group,
  body:has(#eh9-filters) .eh93-keywords { grid-column:1/-1; }
}
