/* BSK Search Filters 1.1.0. Laptop directory only: the Property type box, the More filters panel, the location grid and the list or grid view.
 * Colours come from the listing's own tokens (--s-*, --g, --muted), with plain fallbacks. */

.bsf-type { position: relative; min-width: 0; }
.bsf-type-src[hidden] { display: none; }

.bsf-type-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: var(--s-field-h, 46px); padding: 0 12px;
  border: 1px solid var(--s-line, #d5dbe3); border-radius: var(--s-radius, 6px);
  background: #fff; color: var(--ink, #1d2630);
  font: inherit; font-size: 15px; font-weight: 400; text-align: left; cursor: pointer;
}
.bsf-type-btn:hover { border-color: #b7c0cc; }
.bsf-type-btn[aria-expanded="true"] { border-color: var(--g-brand, #2e7d32); outline: 2px solid var(--g-brand, #2e7d32); outline-offset: 0; }
.bsf-type-btn:focus-visible { outline: 2px solid var(--g-brand, #2e7d32); outline-offset: 2px; }
.bsf-type-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsf-type.is-empty .bsf-type-val { color: var(--muted, #6b7280); }
.bsf-type.is-set .bsf-type-btn { border-color: #9fd3a3; background: var(--s-soft, #eef8ee); }
.bsf-chev {
  width: 16px; height: 16px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--muted, #6b7280);
}

.bsf-type-panel {
  position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0;
  width: min(600px, calc(100vw - 32px)); padding: 12px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--s-line, #d5dbe3); border-radius: var(--s-radius-lg, 10px);
  box-shadow: var(--s-pop-shadow, 0 16px 40px rgba(16, 24, 40, .18));
}
.bsf-type-panel[hidden] { display: none; }

.bsf-tabs { display: flex; gap: 4px; margin: 0 0 6px; border-bottom: 1px solid var(--s-line, #d5dbe3); }
.bsf-tab {
  flex: 0 0 auto; margin-bottom: -1px; padding: 9px 12px 10px;
  border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--ink, #1d2630); font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.bsf-tab:hover { color: var(--g, #2e7d32); }
.bsf-tab.is-on { color: var(--g, #2e7d32); border-bottom-color: var(--g-brand, #2e7d32); }
.bsf-tab:focus-visible, .bsf-opt:focus-visible, .bsf-reset:focus-visible, .bsf-close:focus-visible {
  outline: 2px solid var(--g-brand, #2e7d32); outline-offset: 2px;
}

.bsf-cols {
  list-style: none; margin: 0; padding: 4px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px;
  max-height: 320px; overflow-y: auto;
}
.bsf-cols li { min-width: 0; margin: 0; }

.bsf-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 38px; padding: 8px 10px; box-sizing: border-box;
  border: 0; border-radius: 6px; background: none; color: var(--ink, #1d2630);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.bsf-opt:hover { background: var(--s-soft-hover, #f1f8e9); }
.bsf-opt.is-on { background: var(--s-soft-on, #e8f5e9); color: var(--g, #2e7d32); font-weight: 700; }
.bsf-opt.is-child { padding-left: 22px; }
.bsf-opt.bsf-any { margin-bottom: 4px; font-weight: 700; }
.bsf-opt-t { min-width: 0; overflow-wrap: anywhere; }

.bsf-n { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted, #6b7280); white-space: nowrap; }

.bsf-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--s-line, #d5dbe3);
}
.bsf-reset {
  padding: 6px 4px; border: 0; background: none;
  color: var(--g, #2e7d32); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.bsf-close {
  min-height: 38px; padding: 0 18px;
  border: 1px solid var(--g-brand, #2e7d32); border-radius: 999px; background: #fff;
  color: var(--g, #2e7d32); font: inherit; font-weight: 700; cursor: pointer;
}
.bsf-reset:hover, .bsf-close:hover { opacity: .85; }

/* More filters */
.bsf-more { position: relative; }
.bsf-more > summary .bsf-ico {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; vertical-align: -3px;
}
.bsf-more-panel {
  position: absolute; z-index: 20; top: 100%; right: 0; margin-top: 6px;
  width: min(640px, calc(100vw - 32px)); padding: 14px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line, #d5dbe3); border-radius: var(--radius-lg, 10px);
  box-shadow: var(--s-pop-shadow, 0 16px 40px rgba(16, 24, 40, .18));
}
.bsf-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bsf-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.bsf-set legend {
  padding: 0 0 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7280);
}
.bsf-set-list { display: grid; gap: 2px; }
.bsf-choice {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 6px;
  border-radius: 6px; font-size: 14px; cursor: pointer;
}
.bsf-choice:hover { background: var(--s-soft-hover, #f1f8e9); }
.bsf-choice input { margin: 0; accent-color: var(--g-brand, #2e7d32); }
.bsf-choice-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bsf-more-foot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--s-line, #d5dbe3);
}
@media (max-width: 1100px) {
  .bsf-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 1.1.0: the location grid under a chosen type */
.bsf-places {
  margin: 14px 0 0; padding: 14px 16px; box-sizing: border-box;
  border: 1px solid var(--s-line, #d5dbe3); border-radius: var(--s-radius-lg, 10px); background: #fff;
}
.bsf-places-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.bsf-places-head h2 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink, #1d2630); }
.bsf-places-all {
  padding: 6px 12px; border: 1px solid var(--g-brand, #2e7d32); border-radius: 999px;
  color: var(--g, #2e7d32); font-size: 14px; font-weight: 700; text-decoration: none;
}
.bsf-places-all.is-on { background: var(--g-brand, #2e7d32); color: #fff; }
.bsf-places-grid {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px;
  max-height: 320px; overflow-y: auto;
}
.bsf-places-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 38px; padding: 8px 10px; box-sizing: border-box; border-radius: 6px;
  color: var(--ink, #1d2630); font-size: 14px; text-decoration: none;
}
.bsf-places-grid a:hover { background: var(--s-soft-hover, #f1f8e9); }
.bsf-places-grid a.is-on { background: var(--s-soft-on, #e8f5e9); color: var(--g, #2e7d32); font-weight: 700; }
.bsf-place-t { min-width: 0; display: grid; overflow-wrap: anywhere; }
.bsf-place-t small { font-size: 12px; color: var(--muted, #6b7280); }
.bsf-places-all:focus-visible, .bsf-places-grid a:focus-visible, .bsf-view-btn:focus-visible {
  outline: 2px solid var(--g-brand, #2e7d32); outline-offset: 2px;
}

/* 1.1.0: the list (the default) and the grid. The grid shows the cards in columns on wide screens. */
.bsf-views { display: inline-flex; align-items: center; gap: 6px; }
.bsf-view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; box-sizing: border-box;
  border: 1px solid var(--s-line, #d5dbe3); border-radius: var(--s-radius, 6px);
  background: #fff; color: var(--muted, #6b7280); text-decoration: none;
}
.bsf-view-btn:hover { color: var(--ink, #1d2630); border-color: #b7c0cc; }
.bsf-view-btn.is-on { background: var(--g-brand, #2e7d32); border-color: var(--g-brand, #2e7d32); color: #fff; }
.bsf-view-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Columns follow the width of the list itself (the theme may make it narrower than the screen): four from 968 px, then
   three, two and one as it narrows. A card is never narrower than 230 px. */
.bsf-view-grid { grid-template-columns: repeat(auto-fill, minmax(max(230px, calc((100% - 48px) / 4)), 1fr)); gap: 16px; }
.bsf-view-grid .bskpl-card { grid-template-columns: minmax(0, 1fr); }
.bsf-view-grid .bskpl-card-media { aspect-ratio: 4 / 3; }
