/* Shared tokens/components for somi-inventory.css and find-section.css -- load this file before both. */

:root {
  --su-brand:         var(--front_primary_brand);
  --su-brand-hover:   var(--front_primary_brand_hover);
  --su-brand-soft:    rgba(160, 10, 15, 0.08);
  --su-brand-tint:    #FBEFEF;
  --su-group-bg:      #F1F1F1;
  --su-tab-inactive:  #e5e5e5;
  --su-tab-hover:     #d8d8d8;
  --su-surface:       #FFFFFF;
  --su-text:          #1A1A1A;
  --su-text-muted:    #6B7280;
  --su-text-soft:     #9CA3AF;
  --su-border:        #E0E0E0;
  --su-border-strong: var(--lgray-cc);
  --su-hover-bg:      #F5F5F5;
  --su-shadow:        0 8px 28px rgba(0, 0, 0, 0.10);
  --su-radius:        8px;
  --su-status-active: #10B981;
  --su-status-closed: #a00a0f;
}

.somi-inv {
  --si-brand:              var(--su-brand);
  --si-brand-hover:        var(--su-brand-hover);
  --si-brand-soft:         var(--su-brand-soft);
  --si-brand-tint:         var(--su-brand-tint);
  --si-group-bg:           var(--su-group-bg);
  --si-section-bg:         #ECECEC; /* inventory-only token */
  --si-tab-inactive:       var(--su-tab-inactive);
  --si-tab-inactive-hover: var(--su-tab-hover);
  --si-surface:            var(--su-surface);
  --si-text:               var(--su-text);
  --si-text-muted:         var(--su-text-muted);
  --si-text-soft:          var(--su-text-soft);
  --si-border:             var(--su-border);
  --si-border-strong:      var(--su-border-strong);
  --si-hover-bg:           var(--su-hover-bg);
  --si-shadow:             var(--su-shadow);
  --si-radius:             var(--su-radius);
  /* Floating-card shadow + corner radius for .si-search-shell -- matches --sf-shadow-card/--sf-radius-card */
  --si-shadow-card:        0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.07);
  --si-radius-card:        16px;
  --si-status-active:      var(--su-status-active);
  --si-status-closed:      var(--su-status-closed);
}

.somi-find,
.somi-find-modal.sf-filters-modal {
  --sf-brand:         var(--su-brand);
  --sf-brand-hover:   var(--su-brand-hover);
  --sf-brand-soft:    var(--su-brand-soft);
  --sf-brand-tint:    var(--su-brand-tint);
  --sf-group-bg:      var(--su-group-bg);
  --sf-tab-inactive:  var(--su-tab-inactive);
  --sf-tab-hover:     var(--su-tab-hover);
  --sf-surface:       var(--su-surface);
  --sf-text:          var(--su-text);
  --sf-text-muted:    var(--su-text-muted);
  --sf-text-soft:     var(--su-text-soft);
  --sf-border:        var(--su-border);
  --sf-border-strong: var(--su-border-strong);
  --sf-hover-bg:      var(--su-hover-bg);
  --sf-shadow:        var(--su-shadow);
  --sf-radius:        var(--su-radius);
  /* Homepage-only "floating card" shadow + corner radius */
  --sf-shadow-card:   0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.07);
  --sf-radius-card:   16px;
  --sf-status-active: var(--su-status-active);
  --sf-status-closed: var(--su-status-closed);
}

.somi-inv *,  .somi-inv *::before,  .somi-inv *::after,
.somi-find *, .somi-find *::before, .somi-find *::after,
.somi-find-modal.sf-filters-modal *, .somi-find-modal.sf-filters-modal *::before, .somi-find-modal.sf-filters-modal *::after {
  box-sizing: border-box;
}
.somi-inv button,  .somi-find button,  .somi-find-modal.sf-filters-modal button  { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.somi-inv input,   .somi-find input,   .somi-find-modal.sf-filters-modal input    { font-family: inherit; -webkit-appearance: none; appearance: none; }
.somi-inv input::-webkit-search-cancel-button,  .somi-inv input::-webkit-search-decoration,
.somi-find input::-webkit-search-cancel-button, .somi-find input::-webkit-search-decoration { -webkit-appearance: none; }

.si-card,
.somi-find .sf-card {
  background: var(--su-surface);
  border-radius: 0 0 var(--su-radius) var(--su-radius);
  padding: 22px 26px 20px;
  box-shadow: var(--ss-shadow-card);
}

.si-row,
.somi-find .sf-row { display: grid; gap: 14px; margin-bottom: 16px; }

.field, .si-field, .somi-find .sf-field { display: flex; flex-direction: column; position: relative; min-width: 0; }
.si-field > label,  .si-field-label,
.somi-find .sf-field-label {
  font-family: var(--font-base) !important;
  font-size: 11px !important;
  color: var(--su-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
  display: block;
  width: 100%;
  margin-left: 0;
}
.field > label, .field-label {
  font-family: var(--font-base) !important;
  font-size: 11px !important;
  color: var(--su-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  width: 100%;
  margin-left: 0;
  margin-bottom: 0; /* cancels bootstrap.min.css's label{margin-bottom:5px} fallback, which otherwise stacks on top of .field's own flex gap:6px */
}

.si-dropdown,
.somi-find .sf-dd,
.somi-find-modal.sf-filters-modal .sf-dd,
.find-section .dropdown { position: relative; }

.si-dropdown-trigger,
.somi-find .sf-dd-trigger,
.somi-find-modal.sf-filters-modal .sf-dd-trigger,
.find-section .dropdown-trigger {
  height: 44px; width: 100%; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--su-text);
  background: #fff; border: 1px solid var(--su-border); border-radius: var(--su-radius);
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.si-dropdown-trigger:hover,
.somi-find .sf-dd-trigger:hover,
.somi-find-modal.sf-filters-modal .sf-dd-trigger:hover,
.find-section .dropdown-trigger:hover { border-color: var(--su-border-strong); }
.si-dropdown-trigger.open,  .si-dropdown-trigger:focus,
.somi-find .sf-dd-trigger.open,  .somi-find .sf-dd-trigger:focus,
.somi-find-modal.sf-filters-modal .sf-dd-trigger.open, .somi-find-modal.sf-filters-modal .sf-dd-trigger:focus,
.find-section .dropdown-trigger.open, .find-section .dropdown-trigger:focus {
  outline: none; border-color: var(--su-brand);
  box-shadow: 0 0 0 3px rgba(160, 10, 15, 0.10);
}
.si-dropdown-trigger.placeholder,
.somi-find .sf-dd-trigger.sf-placeholder,
.somi-find-modal.sf-filters-modal .sf-dd-trigger.sf-placeholder,
.find-section .dropdown-trigger.placeholder { color: var(--su-text-soft); font-weight: 400; }

.si-dropdown-value,
.somi-find .sf-dd-value,
.somi-find-modal.sf-filters-modal .sf-dd-value,
.find-section .dropdown-value {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.si-dropdown-chevron,
.somi-find .sf-dd-chevron,
.somi-find-modal.sf-filters-modal .sf-dd-chevron,
.find-section .dropdown-chevron {
  width: 12px; height: 12px; margin-left: 8px; color: var(--su-text-muted);
  transition: -webkit-transform 0.2s ease, transform 0.2s ease; flex-shrink: 0;
}
.si-dropdown-trigger.open .si-dropdown-chevron,
.somi-find .sf-dd-trigger.open .sf-dd-chevron,
.somi-find-modal.sf-filters-modal .sf-dd-trigger.open .sf-dd-chevron,
.find-section .dropdown-trigger.open .dropdown-chevron { -webkit-transform: rotate(180deg); transform: rotate(180deg); }

@-webkit-keyframes suDropIn { from { opacity: 0; -webkit-transform: translateY(-4px); } to { opacity: 1; -webkit-transform: translateY(0); } }
@keyframes suDropIn         { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.si-dropdown-panel,
.somi-find .sf-dd-panel,
.somi-find-modal.sf-filters-modal .sf-dd-panel,
.find-section .dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: auto; min-width: 100%;
  background: #fff; border: 1px solid var(--su-border); border-radius: var(--su-radius);
  box-shadow: var(--su-shadow); padding: 14px; z-index: 200; display: none;
  -webkit-animation: suDropIn 0.15s ease-out;
          animation: suDropIn 0.15s ease-out;
}
.somi-find-modal.sf-filters-modal .sf-dd-panel { z-index: 300; }
.si-dropdown-panel.open,
.somi-find .sf-dd-panel.open,
.somi-find-modal.sf-filters-modal .sf-dd-panel.open,
.find-section .dropdown-panel.open { display: block; }
.si-dropdown-panel.wide,
.somi-find .sf-dd-panel.wide,
.somi-find-modal.sf-filters-modal .sf-dd-panel.wide,
.find-section .dropdown-panel.wide { width: 360px; max-width: calc(100vw - 32px); }

.si-dropdown-options,
.somi-find .sf-dd-options,
.somi-find-modal.sf-filters-modal .sf-dd-options,
.find-section .dropdown-options { max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* type-to-filter box for long lists -- matches the backend .csm-search/.dd-search spec */
.si-dropdown-search,
.somi-find .sf-dd-search,
.somi-find-modal.sf-filters-modal .sf-dd-search,
.find-section .dropdown-search { position: relative; margin-bottom: 8px; }
.si-dropdown-search svg,
.somi-find .sf-dd-search svg,
.somi-find-modal.sf-filters-modal .sf-dd-search svg,
.find-section .dropdown-search svg {
  position: absolute; left: 10px; top: 50%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--su-text-soft); pointer-events: none;
}
.si-dropdown-search input,
.somi-find .sf-dd-search input,
.somi-find-modal.sf-filters-modal .sf-dd-search input,
.find-section .dropdown-search input {
  width: 100%; height: 36px; padding: 0 10px 0 32px; box-sizing: border-box;
  font-size: 13.5px; font-family: inherit; color: var(--su-text);
  background: #fbfbfb; border: 1px solid var(--su-border); border-radius: 6px; outline: none;
  -webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
          transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.si-dropdown-search input:focus,
.somi-find .sf-dd-search input:focus,
.somi-find-modal.sf-filters-modal .sf-dd-search input:focus,
.find-section .dropdown-search input:focus {
  border-color: var(--su-brand); box-shadow: 0 0 0 3px var(--su-brand-soft); background: #fff;
}
.si-dropdown-empty,
.somi-find .sf-dd-empty,
.somi-find-modal.sf-filters-modal .sf-dd-empty,
.find-section .dropdown-empty {
  padding: 22px 12px; text-align: center; color: var(--su-text-muted); font-size: 13px;
}
/* iOS Safari auto-zooms inputs under 16px */
@media (max-width: 768px) {
  .si-dropdown-search input,
  .somi-find .sf-dd-search input,
  .somi-find-modal.sf-filters-modal .sf-dd-search input,
  .find-section .dropdown-search input { font-size: 16px; }
}

.si-dropdown-option,
.somi-find .sf-dd-option,
.somi-find-modal.sf-filters-modal .sf-dd-option,
.find-section .dropdown-option {
  padding: 10px 12px; font-size: 14px; color: var(--su-text); border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; transition: background 0.1s ease;
}
.si-dropdown-option:hover,
.somi-find .sf-dd-option:hover,
.somi-find-modal.sf-filters-modal .sf-dd-option:hover,
.find-section .dropdown-option:hover { background: var(--su-hover-bg); }
.si-dropdown-option.selected,
.somi-find .sf-dd-option.selected,
.somi-find-modal.sf-filters-modal .sf-dd-option.selected,
.find-section .dropdown-option.selected { background: var(--su-brand-soft); font-weight: 600; color: var(--su-brand);}
/* Pinned lookup values: bold, thin divider before the rest */
.si-dropdown-option.somi-dd-pinned,
.somi-find .sf-dd-option.somi-dd-pinned,
.somi-find-modal.sf-filters-modal .sf-dd-option.somi-dd-pinned,
.find-section .dropdown-option.somi-dd-pinned,
.si-ms-option.somi-dd-pinned,
.somi-find .sf-ms-opt.somi-dd-pinned,
.somi-find-modal.sf-filters-modal .sf-ms-opt.somi-dd-pinned,
.find-section .ms-option.somi-dd-pinned { font-weight: 600; }
.somi-dd-sep { height: 1px; margin: 4px 10px; background: var(--su-border); }

.si-check,
.somi-find .sf-check,
.somi-find-modal.sf-filters-modal .sf-check,
.find-section .dropdown-option .check { width: 14px; height: 14px; color: var(--su-brand); opacity: 0; flex-shrink: 0; }
.si-dropdown-option.selected .si-check,
.somi-find .sf-dd-option.selected .sf-check,
.somi-find-modal.sf-filters-modal .sf-dd-option.selected .sf-check,
.find-section .dropdown-option.selected .check { opacity: 1; }

.si-ms-option,
.somi-find .sf-ms-opt,
.somi-find-modal.sf-filters-modal .sf-ms-opt,
.find-section .ms-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 14px; cursor: pointer; border-radius: 6px;
  transition: background 0.1s ease;
  width: 100%;
  color: unset;
  margin: 0px;
}
.si-ms-option:hover,
.somi-find .sf-ms-opt:hover,
.somi-find-modal.sf-filters-modal .sf-ms-opt:hover,
.find-section .ms-option:hover { background: var(--su-hover-bg); }
.si-ms-option input,
.somi-find .sf-ms-opt input,
.somi-find-modal.sf-filters-modal .sf-ms-opt input,
.find-section .ms-option input { margin: 0; }
.si-ms-option.selected,
.somi-find .sf-ms-opt.selected,
.somi-find-modal.sf-filters-modal .sf-ms-opt.selected,
.find-section .ms-option.selected { background: var(--su-brand-soft); color: var(--su-brand); }

.si-ms-footer,
.somi-find .sf-ms-footer,
.somi-find-modal.sf-filters-modal .sf-ms-footer,
.find-section .ms-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--su-border);
}
.si-ms-footer button,
.somi-find .sf-ms-footer button,
.somi-find-modal.sf-filters-modal .sf-ms-footer button,
.find-section .ms-footer button {
  font-size: 12px; padding: 6px 12px; border: 1px solid var(--su-border-strong);
  background: #fff; border-radius: 6px; color: var(--su-text);
}
.si-ms-footer button.primary,
.somi-find .sf-ms-footer button.sf-ms-primary,
.somi-find-modal.sf-filters-modal .sf-ms-footer button.sf-ms-primary,
.find-section .ms-footer button.primary { background: var(--su-brand); color: #fff; border-color: var(--su-brand); }

.si-show-more-link,
.somi-find .sf-show-more,
.somi-find-modal.sf-filters-modal .sf-show-more,
.find-section .show-more-link {
  display: inline-block; margin-top: 8px; padding: 6px 0;
  color: var(--su-brand); font-size: 12px; font-weight: 600; cursor: pointer;
  background: transparent; border: none; letter-spacing: 0.02em;
}
.si-show-more-link:hover,
.somi-find .sf-show-more:hover,
.somi-find-modal.sf-filters-modal .sf-show-more:hover,
.find-section .show-more-link:hover { text-decoration: underline; }

.si-range-popover .si-panel-section,
.somi-find .sf-panel-section,
.somi-find-modal.sf-filters-modal .sf-panel-section,
.find-section .range-popover .panel-section { margin-bottom: 14px; }
.si-range-popover .si-panel-section:last-child,
.somi-find .sf-panel-section:last-child,
.somi-find-modal.sf-filters-modal .sf-panel-section:last-child,
.find-section .range-popover .panel-section:last-child { margin-bottom: 0; }
.somi-find .sf-range-sect,
.somi-find-modal.sf-filters-modal .sf-range-sect { margin-bottom: 14px; }
.somi-find .sf-range-sect:last-child,
.somi-find-modal.sf-filters-modal .sf-range-sect:last-child { margin-bottom: 0; }

.si-panel-label,
.somi-find .sf-panel-label,
.somi-find-modal.sf-filters-modal .sf-panel-label,
.find-section .panel-label {
  font-size: 11px; color: var(--su-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px; display: block;
}

.si-range-inputs,
.somi-find .sf-range-inputs,
.somi-find-modal.sf-filters-modal .sf-range-inputs,
.find-section .range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.si-range-inputs .si-sep,
.somi-find .sf-range-sep,
.somi-find-modal.sf-filters-modal .sf-range-sep,
.find-section .range-inputs .sep { color: var(--su-text-soft); font-size: 14px; text-align: center; }
.si-range-input,
.somi-find .sf-range-input,
.somi-find-modal.sf-filters-modal .sf-range-input,
.find-section .range-input {
  height: 40px; width: 100%; padding: 0 12px; font-size: 14px;
  background: #fff; border: 1px solid var(--su-border); border-radius: 6px; outline: none;
}
.si-range-input:focus,
.somi-find .sf-range-input:focus,
.somi-find-modal.sf-filters-modal .sf-range-input:focus,
.find-section .range-input:focus { border-color: var(--su-brand); box-shadow: 0 0 0 3px rgba(160, 10, 15, 0.10); }

.si-preset-row,
.somi-find .sf-preset-row,  .somi-find .sf-presets,
.somi-find-modal.sf-filters-modal .sf-preset-row, .somi-find-modal.sf-filters-modal .sf-presets,
.find-section .preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.si-preset,
.somi-find .sf-preset,
.somi-find-modal.sf-filters-modal .sf-preset,
.find-section .preset {
  padding: 6px 10px; font-size: 12px; background: #fff;
  border: 1px solid var(--su-border-strong); border-radius: 999px;
  cursor: pointer; transition: all 0.1s ease; color: var(--su-text);
}
.si-preset:hover,  .somi-find .sf-preset:hover,  .somi-find-modal.sf-filters-modal .sf-preset:hover,  .find-section .preset:hover  { border-color: var(--su-brand); color: var(--su-brand); }
.si-preset.active, .somi-find .sf-preset.active, .somi-find-modal.sf-filters-modal .sf-preset.active, .find-section .preset.active { background: var(--su-brand); color: #fff; border-color: var(--su-brand); }

.si-btnrow,
.somi-find .sf-btnrow,
.somi-find-modal.sf-filters-modal .sf-btnrow,
.find-section .btnrow { display: grid; grid-template-columns: repeat(6, minmax(38px, 1fr)); gap: 6px; }
.somi-find .sf-btnrow.cols-5, .somi-find-modal.sf-filters-modal .sf-btnrow.cols-5, .find-section .btnrow.cols-5 { grid-template-columns: repeat(5, minmax(38px, 1fr)); }
.somi-find .sf-btnrow.cols-3, .somi-find-modal.sf-filters-modal .sf-btnrow.cols-3, .find-section .btnrow.cols-3 { grid-template-columns: repeat(3, minmax(38px, 1fr)); }
.si-btnrow-btn,
.somi-find .sf-btnrow-btn,
.somi-find-modal.sf-filters-modal .sf-btnrow-btn,
.find-section .btnrow-btn {
  padding: 10px 6px; font-size: 13px; font-weight: 600; background: #fff;
  border: 1px solid var(--su-border-strong); border-radius: 6px;
  cursor: pointer; color: var(--su-text); transition: all 0.1s ease;
  min-width: 38px;
}
.si-btnrow-btn:hover,  .somi-find .sf-btnrow-btn:hover,  .somi-find-modal.sf-filters-modal .sf-btnrow-btn:hover,  .find-section .btnrow-btn:hover  { border-color: var(--su-brand); color: var(--su-brand); }
.si-btnrow-btn.active, .somi-find .sf-btnrow-btn.active, .somi-find-modal.sf-filters-modal .sf-btnrow-btn.active, .find-section .btnrow-btn.active { background: var(--su-brand); color: #fff; border-color: var(--su-brand); }

.si-slider-wrap,  .somi-find .sf-slider-wrap,  .somi-find-modal.sf-filters-modal .sf-slider-wrap,  .find-section .slider-wrap  { padding: 6px 4px 0; }
.si-slider-track, .somi-find .sf-slider-track, .somi-find-modal.sf-filters-modal .sf-slider-track, .find-section .slider-track {
  position: relative; height: 4px; background: #E0E0E0;
  border-radius: 2px; margin: 22px 0 14px;
}
.si-slider-fill,  .somi-find .sf-slider-fill,  .somi-find-modal.sf-filters-modal .sf-slider-fill,  .find-section .slider-fill  { position: absolute; top: 0; height: 100%; background: var(--su-brand); border-radius: 2px; }
.si-slider-thumb, .somi-find .sf-slider-thumb, .somi-find-modal.sf-filters-modal .sf-slider-thumb, .find-section .slider-thumb {
  position: absolute; top: 50%;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  width: 22px; height: 22px; background: #fff;
  border: 2px solid var(--su-brand); border-radius: 50%;
  cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  -ms-touch-action: none; touch-action: none;
}
.si-slider-thumb:active, .somi-find .sf-slider-thumb:active, .somi-find-modal.sf-filters-modal .sf-slider-thumb:active, .find-section .slider-thumb:active { cursor: grabbing; }
.si-slider-labels, .somi-find .sf-slider-labels, .somi-find-modal.sf-filters-modal .sf-slider-labels, .find-section .slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--su-text-muted); }
.somi-find .sf-slider-val, .somi-find-modal.sf-filters-modal .sf-slider-val { color: var(--su-text); font-weight: 600; }

.si-search-wrap,
.somi-find .sf-search-wrap,
.find-section .search-wrap { position: relative; }
.si-search-wrap input,
.somi-find .sf-search-wrap input,
.find-section .search-wrap input {
  height: 48px; width: 100%; padding: 0 16px 0 44px;
  font-size: 14px; color: var(--su-text); background: #fff;
  border: 1px solid var(--su-border); border-radius: var(--su-radius); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.si-search-wrap input::placeholder,
.somi-find .sf-search-wrap input::placeholder,
.find-section .search-wrap input::placeholder { color: var(--su-text-soft) !important; }
.si-search-wrap input:hover,
.somi-find .sf-search-wrap input:hover,
.find-section .search-wrap input:hover { border-color: var(--su-border-strong); }
.si-search-wrap input:focus,
.somi-find .sf-search-wrap input:focus,
.find-section .search-wrap input:focus { border-color: var(--su-brand); box-shadow: 0 0 0 3px rgba(160, 10, 15, 0.10); }
.si-search-wrap > svg,
.somi-find .sf-search-wrap > svg,
.find-section .search-wrap > svg {
  position: absolute; left: 16px; top: 50%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--su-text-muted); pointer-events: none;
}

.si-search-btn,
.somi-find .sf-search-btn {
  height: 48px; padding: 0 32px;
  font-size: 14px; font-weight: 600;
  color: #fff; background: var(--su-brand); border: none; border-radius: var(--su-radius);
  transition: background 0.15s ease;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.si-search-btn:hover, .somi-find .sf-search-btn:hover { background: var(--su-brand-hover); }
.si-search-btn .si-count, .somi-find .sf-search-btn .sf-count {
  background: rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 600;
}

.si-footer-bar,
.somi-find .sf-footer-bar,
.find-section .footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; flex-wrap: wrap; gap: 16px;
}

.si-more-filters,
.somi-find .sf-more-btn,
.find-section .more-filters {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; font-weight: 700;
  color: var(--front_btn_secondary_text, #a00a0f); background: var(--front_btn_secondary_bg, #ffffff);
  border: 1px solid var(--front_btn_secondary_border, #a00a0f); border-radius: var(--su-radius);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 44px;
}
.si-more-filters:hover, .somi-find .sf-more-btn:hover, .find-section .more-filters:hover { background: var(--front_btn_secondary_bg_hover, #a00a0f14); border-color: var(--front_btn_secondary_border_hover, #a00a0f); color: var(--front_btn_secondary_text_hover, #a00a0f); }

.si-more-filters .si-hint,
.somi-find .sf-more-btn .sf-hint { font-size: 11px; font-weight: 400; color: var(--su-text-soft); margin-left: 4px; }

.si-more-filters .more-filters-icon,
.somi-find .sf-more-btn .more-filters-icon,
.find-section .more-filters .more-filters-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: block;
  align-self: center;
  vertical-align: middle;
  fill: none;
  transition: fill 0.15s ease;
}
.si-more-filters.has-filters,
.somi-find .sf-more-btn.has-filters,
.find-section .more-filters.has-filters { background: var(--su-brand-soft); border-color: var(--front_btn_secondary_border, #a00a0f); color: var(--front_btn_secondary_text, #a00a0f); }

.si-more-filters .si-badge,
.somi-find .sf-more-btn .sf-badge,
.find-section .more-filters .badge {
  background: var(--su-brand); color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 2px 7px; margin-left: 6px;
}

.si-actions,
.somi-find .sf-actions,
.find-section .actions { display: inline-flex; align-items: stretch; gap: 14px; flex-wrap: wrap; line-height: 1; }
.si-actions > *,
.somi-find .sf-actions > *,
.find-section .actions > * { height: 48px; box-sizing: border-box; }

.si-clear-link,
.clear-link {
  border-radius: var(--su-radius);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.si-active-filters,
.somi-find .sf-chips,
.find-section .active-filters {
  display: none; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 18px 0px 0px;
  padding: 16px 0px 0px;
  background: var(--su-surface);
  border: none;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 var(--su-radius) var(--su-radius);
}
.si-active-filters.has-chips,
.somi-find .sf-chips.has-chips,
.find-section .active-filters.has-chips {
  display: flex;
  -webkit-animation: suActiveFiltersIn 180ms ease-out;
  animation: suActiveFiltersIn 180ms ease-out;
}
@-webkit-keyframes suActiveFiltersIn {
  from { opacity: 0; -webkit-transform: translateY(-4px); }
  to   { opacity: 1; -webkit-transform: none; }
}
@keyframes suActiveFiltersIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .si-active-filters.has-chips, .somi-find .sf-chips.has-chips, .find-section .active-filters.has-chips { -webkit-animation: none; animation: none; }
}

.si-active-filters .si-af-label,
.somi-find .sf-chips .sf-chips-label,
.find-section .active-filters .label {
  font-size: 11px; color: var(--su-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-right: 4px;
  padding: 0px;
}

.si-chip,
.somi-find .sf-chip,
.find-section .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px; font-size: 13px;
  background: var(--su-brand-soft); color: var(--su-brand);
  border-radius: 999px; border: 1px solid rgba(160, 10, 15, 0.18);
  min-height: 36px; font-weight: 600;
}
.si-chip .si-x,
.somi-find .sf-chip .sf-x,
.find-section .chip .x {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; border: none; padding: 0;
  color: var(--su-brand); border-radius: 50%; transition: background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.si-chip .si-x svg, .somi-find .sf-chip .sf-x svg, .find-section .chip .x svg { width: 12px; height: 12px; pointer-events: none; }
.si-chip .si-x:hover, .si-chip .si-x:active,
.somi-find .sf-chip .sf-x:hover, .somi-find .sf-chip .sf-x:active,
.find-section .chip .x:hover, .find-section .chip .x:active { background: var(--su-brand); color: #fff; }
/* Hidden x button stays in DOM to keep chip width consistent */
.somi-inv .si-chip--default .si-x,
.somi-find .sf-chip .sf-x.is-hidden { visibility: hidden; pointer-events: none; }

.si-pill-row,
.somi-find .sf-pill-row,
.somi-find-modal.sf-filters-modal .sf-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.si-pill,
.somi-find .sf-pill,
.somi-find-modal.sf-filters-modal .sf-pill {
  font-size: 13px; padding: 8px 14px; background: #fff;
  border: 1px solid var(--su-border-strong); border-radius: 999px;
  cursor: pointer; transition: all 0.15s ease;
}
.si-pill:hover,  .somi-find .sf-pill:hover,  .somi-find-modal.sf-filters-modal .sf-pill:hover  { border-color: #999; }
.si-pill.active, .somi-find .sf-pill.active, .somi-find-modal.sf-filters-modal .sf-pill.active { background: var(--su-brand); color: #fff; border-color: var(--su-brand); }

.si-pets-sub,
.somi-find-modal.sf-filters-modal .sf-pets-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, padding 0.25s ease;
  opacity: 0; margin: 0; padding: 0 14px;
  background: #FAFAFA; border-radius: 6px; grid-column: 1 / -1;
}
.si-pets-sub.show,
.somi-find-modal.sf-filters-modal .sf-pets-sub.show { max-height: 220px; opacity: 1; margin-top: 8px; padding: 12px 14px; }

.si-pets-sub-label,
.somi-find-modal.sf-filters-modal .sf-pets-sub-label {
  font-size: 11px; color: var(--su-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.si-pets-sub .si-pill-row,      .somi-find-modal.sf-filters-modal .sf-pets-sub .sf-pill-row  { gap: 6px; }
.si-pets-sub .si-pill,          .somi-find-modal.sf-filters-modal .sf-pets-sub .sf-pill       { font-size: 12px; padding: 6px 12px; }

.si-modal,
.somi-find-modal.sf-filters-modal .sf-modal-wrap {
  width: 100%; max-width: 820px; background: #fff;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px);
}

.si-modal-head,
.somi-find-modal.sf-filters-modal .sf-modal-head {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.si-modal-head-title,
.somi-find-modal.sf-filters-modal .sf-modal-head-title { display: flex; align-items: center; gap: 12px; }

/* Per-tab/per-page intro line -- sits between the red modal header and the filter fields */
.si-modal-intro,
.somi-find-modal.sf-filters-modal .sf-modal-intro {
  margin: 0; padding: 16px 24px; color: var(--su-text-muted); font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px solid var(--su-border);
}
.si-modal-intro:empty,
.somi-find-modal.sf-filters-modal .sf-modal-intro:empty { display: none; }

.si-modal-body,
.somi-find-modal.sf-filters-modal .sf-modal-body { padding: 22px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

.si-filter-group,
.somi-find-modal.sf-filters-modal .sf-filter-group { margin-bottom: 22px; }
.si-filter-group:last-child,
.somi-find-modal.sf-filters-modal .sf-filter-group:last-child { margin-bottom: 0; }

.si-group-title {
  font-size: 13px; color: var(--su-text); letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 700; background: var(--su-group-bg); padding: 11px 14px; border-radius: 0;
  margin-bottom: 16px;
  display: flex; align-items: center;
}
.si-group-title-text { flex: 1; }
.si-group-title-count {
  display: none;
  background: var(--su-brand); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
  margin-left: 8px;
  -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum";
}
.si-group-title-count.is-visible { display: inline-flex; }

.si-modal-row,
.somi-find-modal.sf-filters-modal .sf-modal-row { display: grid; gap: 16px; margin-bottom: 14px; }
.si-modal-row:last-child,
.somi-find-modal.sf-filters-modal .sf-modal-row:last-child { margin-bottom: 0; }
.si-modal-row.cols-2,
.somi-find-modal.sf-filters-modal .sf-modal-row.cols-2 { grid-template-columns: 1fr 1fr; }
.si-modal-row.full,
.somi-find-modal.sf-filters-modal .sf-modal-row.full { grid-template-columns: 1fr; }

.si-modal-field,
.somi-find-modal.sf-filters-modal .sf-modal-field { display: flex; flex-direction: column; }
.si-modal-field-label,
.somi-find-modal.sf-filters-modal .sf-modal-field-label {
  font-size: 11px; color: var(--su-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}

.si-checkbox-row,
.somi-find-modal.sf-filters-modal .sf-checkbox-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; font-size: 14px; }
.si-checkbox-row label,
.somi-find-modal.sf-filters-modal .sf-checkbox-row label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; background: #fff; border: 1px solid var(--su-border);
  border-radius: var(--su-radius); transition: border-color 0.1s ease;
  color: var(--su-text); width: 100%;
}
.si-checkbox-row label:hover,
.somi-find-modal.sf-filters-modal .sf-checkbox-row label:hover { border-color: var(--su-border-strong); }
.si-checkbox-row label.checked,
.somi-find-modal.sf-filters-modal .sf-checkbox-row label.checked { border-color: var(--su-brand); background: var(--su-brand-soft); }
.si-checkbox-row input,
.somi-find-modal.sf-filters-modal .sf-checkbox-row input { flex-shrink: 0; }

.si-conditional-row,
.somi-find-modal.sf-filters-modal .sf-conditional-row {
  max-height: 0; overflow: hidden; opacity: 0; margin: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease, overflow 0s 0.3s;
}
.si-conditional-row.show,
.somi-find-modal.sf-filters-modal .sf-conditional-row.show {
  max-height: 260px; opacity: 1; margin-top: 14px; overflow: visible;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease, overflow 0s 0s;
}

.si-inline-range,
.somi-find-modal.sf-filters-modal .sf-inline-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.si-inline-range .si-sep,
.somi-find-modal.sf-filters-modal .sf-inline-range .sf-range-sep { color: var(--su-text-soft); font-size: 14px; text-align: center; }

.si-inline-range-input,
.somi-find-modal.sf-filters-modal .sf-inline-input,
.somi-find-modal.sf-filters-modal .sf-inline-range-input {
  height: 44px; width: 100%; padding: 0 14px; font-size: 14px;
  background: #fff; border: 1px solid var(--su-border); border-radius: var(--su-radius); outline: none;
}
.si-inline-range-input:focus,
.somi-find-modal.sf-filters-modal .sf-inline-input:focus,
.somi-find-modal.sf-filters-modal .sf-inline-range-input:focus { border-color: var(--su-brand); box-shadow: 0 0 0 3px rgba(160, 10, 15, 0.10); }

.si-inline-presets,
.somi-find .sf-inline-presets,
.somi-find-modal.sf-filters-modal .sf-inline-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.si-modal-foot,
.somi-find-modal.sf-filters-modal .sf-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--su-border); background: #fafafa;
  flex-wrap: wrap; gap: 10px; flex-shrink: 0;
}
.si-modal-count,
.somi-find-modal.sf-filters-modal .sf-modal-count { font-size: 12px; color: var(--su-text-muted); }
.si-modal-count strong,
.somi-find-modal.sf-filters-modal .sf-modal-count strong { color: var(--su-text); font-weight: 600; }
.si-modal-foot-right,
.somi-find-modal.sf-filters-modal .sf-modal-foot-right { display: inline-flex; gap: 10px; flex-wrap: wrap; }

.si-btn-secondary,
.somi-find-modal.sf-filters-modal .sf-btn-sec {
  height: 48px; padding: 0 18px; font-size: 14px; font-weight: 400; background: #fff;
  border: 1.5px solid var(--su-border-strong); border-radius: var(--su-radius); color: var(--su-text);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.si-btn-secondary:hover, .somi-find-modal.sf-filters-modal .sf-btn-sec:hover { background: var(--su-hover-bg); }
.si-btn-primary,
.somi-find-modal.sf-filters-modal .sf-btn-pri {
  height: 48px; padding: 0 22px; min-width: 130px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: var(--su-brand); border: 1.5px solid var(--su-brand); border-radius: var(--su-radius);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.si-btn-primary:hover, .somi-find-modal.sf-filters-modal .sf-btn-pri:hover { background: var(--su-brand-hover); border-color: var(--su-brand-hover); }

.si-modal-close,
.somi-find-modal.sf-filters-modal .sf-modal-close {
  border: none; padding: 0; cursor: pointer; color: #fff;
  -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  -webkit-transition: background 0.18s ease; transition: background 0.18s ease;
}
.si-modal-close svg,
.somi-find-modal.sf-filters-modal .sf-modal-close svg {
  display: block;
  -webkit-transition: -webkit-transform 0.2s ease; transition: transform 0.2s ease;
}
.si-modal-close:hover svg,
.somi-find-modal.sf-filters-modal .sf-modal-close:hover svg { -webkit-transform: rotate(90deg); }
.si-modal-close:active,
.somi-find-modal.sf-filters-modal .sf-modal-close:active { -webkit-transform: scale(0.94); transform: scale(0.94); }

.si-status-dot,
.somi-find .sf-status-dot,
.somi-find-modal.sf-filters-modal .sf-status-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.si-status-dot { margin-right: 8px; }
.somi-find .sf-status-dot,
.somi-find-modal.sf-filters-modal .sf-status-dot { margin-right: 6px; }
.si-status-dot.active,
.somi-find .sf-status-dot.active,
.somi-find-modal.sf-filters-modal .sf-status-dot.active { background: var(--su-status-active); }
.si-status-dot.closed,
.somi-find .sf-status-dot.closed,
.somi-find-modal.sf-filters-modal .sf-status-dot.closed { background: var(--su-status-closed); }
/* SI-only extended states */
.si-status-dot.coming-soon { background: #3B82F6; }
.si-status-dot.pending     { background: #F59E0B; }

.somi-inv button:focus-visible, .somi-inv a:focus-visible,
.somi-inv .si-dropdown-trigger:focus-visible, .somi-inv .si-chip .si-x:focus-visible,
.somi-find button:focus-visible, .somi-find a:focus-visible,
.somi-find .sf-dd-trigger:focus-visible, .somi-find .sf-chip .sf-x:focus-visible,
.somi-find-modal.sf-filters-modal button:focus-visible {
  outline: 2px solid var(--su-brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(160, 10, 15, 0.12);
  border-radius: var(--su-radius);
}
.somi-inv .si-modal-foot > .si-clear-link:focus-visible,
.somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear:focus-visible {
  outline: 2px solid var(--su-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.somi-inv .si-search-wrap input,
.somi-find .sf-search-wrap input { padding-right: 44px; }
.somi-inv .si-search-clear,
.somi-find .sf-search-clear {
  position: absolute; right: 8px; top: 50%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  width: 32px; height: 32px;
  display: none; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--su-text-muted); border-radius: 50%;
  -webkit-transition: background 0.15s ease, color 0.15s ease; transition: background 0.15s ease, color 0.15s ease;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.somi-inv .si-search-clear svg,
.somi-find .sf-search-clear svg { width: 16px; height: 16px; pointer-events: none; }
.somi-inv .si-search-clear:hover,
.somi-find .sf-search-clear:hover { background: var(--su-hover-bg); color: var(--su-text); }
.somi-inv .si-search-clear.is-visible,
.somi-find .sf-search-clear.is-visible { display: inline-flex; }

.si-conditional-group,
.somi-find-modal.sf-filters-modal .sf-cond-group {
  max-height: 0; overflow: hidden; opacity: 0; margin: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}
.si-conditional-group.show,
.somi-find-modal.sf-filters-modal .sf-cond-group.show {
  max-height: none; opacity: 1; margin-top: 22px; margin-bottom: 22px; overflow: visible;
}
/* SI-specific transition override on .show */
.si-conditional-group { -webkit-transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease, overflow 0s 0.3s; transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease, overflow 0s 0.3s; }
.si-conditional-group.show { padding-bottom: 6px; -webkit-transition: opacity 0.2s ease, margin 0.3s ease; transition: opacity 0.2s ease, margin 0.3s ease; }

.somi-inv .si-chip {
  -webkit-animation: suChipIn 180ms ease-out;
  animation: suChipIn 180ms ease-out;
}
@-webkit-keyframes suChipIn {
  from { opacity: 0; -webkit-transform: translateY(2px) scale(0.96); }
  to   { opacity: 1; -webkit-transform: none; }
}
@keyframes suChipIn {
  from { opacity: 0; transform: translateY(2px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .somi-inv .si-chip { -webkit-animation: none; animation: none; }
}

@-webkit-keyframes suCountPulse {
  0%   { -webkit-transform: scale(1); }
  40%  { -webkit-transform: scale(1.08); }
  100% { -webkit-transform: scale(1); }
}
@keyframes suCountPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .somi-inv .si-count-badge.is-pulsing { -webkit-animation: none; animation: none; }
}

.somi-inv .si-more-filters, .somi-inv .si-btn-primary, .somi-inv .si-btn-secondary {
  transition: background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, -webkit-transform 0.08s ease,
              transform 0.08s ease;
}
.somi-inv .si-more-filters:active, .somi-inv .si-btn-primary:active, .somi-inv .si-btn-secondary:active {
  -webkit-transform: scale(0.97); transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .somi-inv .si-more-filters:active, .somi-inv .si-btn-primary:active, .somi-inv .si-btn-secondary:active {
    -webkit-transform: none; transform: none;
  }
}

@media (max-width: 768px) {
  .somi-inv .si-active-filters { margin: 18px -14px -20px -14px; padding: 12px 14px; }
}
@media (max-width: 480px) {
  .somi-inv .si-active-filters { margin: 16px -10px -16px -10px; padding: 12px 10px; }
}
@media (max-width: 380px) {
  .somi-inv .si-active-filters { margin: 14px -8px -14px -8px; padding: 10px 8px; }
}

/* Sticky search bar: JS sets style.transform (translateY) to the header's current height before
   showing, and re-syncs it whenever #sticky_header's hide/show class toggles (resets on hide).
   Uses --su-* tokens so it works outside .somi-find/.somi-inv scope.

   Was style.top instead of transform, transitioned via `top 0.25s ease-in-out` -- top is a layout
   property with no compositor fast-path, so browsers can (and did) let its transition lag a frame
   or more behind #sticky_header's own transform-only hide/show animation during active scrolling,
   most visibly on Safari (it deprioritizes main-thread work harder than Chromium during momentum
   scroll). That lag was the 1-2px gap showing page content through between the header and this bar.
   transform keeps both elements on the same GPU-composited timeline, so they can't drift apart. */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 998;  /* below #sticky_header's 999 */
  background: #fff;
  border-bottom: 1px solid var(--su-border-strong);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  -webkit-transform: translateY(-100%); transform: translateY(-100%);
  transition: -webkit-transform 0.25s ease-in-out, transform 0.25s ease-in-out; /* matches #sticky_header's own 0.25s ease-in-out */
  will-change: transform;
  pointer-events: none;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.sticky-bar.is-visible {
  pointer-events: auto;
  /* transform itself (translateY(0) or translateY(<headerHeight>px)) is set inline by
     initStickyBar() in somi-search-core.js -- both the initial reveal and every later
     header-offset resync animate through the transition declared on the base rule above. */
}
.sticky-bar-inner {
  max-width: 1255px; margin: 0 auto;
  padding: 10px 15px;
  display: flex; align-items: center; gap: 14px;
}
.sticky-bar-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--su-text);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.sticky-bar-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--su-brand); flex-shrink: 0;
}
.sticky-bar-spacer { flex: 1; }
.sticky-bar-edit {
  height: 40px; padding: 0 14px;
  font-size: 13px; font-weight: 700;
  color: var(--front_btn_secondary_text, #a00a0f); background: var(--front_btn_secondary_bg, #ffffff);
  border: 1px solid var(--front_btn_secondary_border, #a00a0f); border-radius: var(--su-radius);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              -webkit-transform 0.08s ease, transform 0.08s ease;
}
.sticky-bar-edit:hover  { background: var(--front_btn_secondary_bg_hover, #a00a0f14); color: var(--front_btn_secondary_text_hover, #a00a0f); border-color: var(--front_btn_secondary_border_hover, #a00a0f); }
.sticky-bar-edit:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
/* All sticky bar button icons — same size, CSS-controlled (no inline width/height on SVGs) */
.sticky-bar-edit .icon,
.sticky-bar-more .icon {
  width: 17px; height: 17px; flex-shrink: 0;
}
.sticky-bar-edit .icon {
  -webkit-animation: suNudgeUp 1.6s ease-in-out 2;
          animation: suNudgeUp 1.6s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-bar-edit .icon { -webkit-animation: none; animation: none; }
}
@-webkit-keyframes suNudgeUp {
  0%, 100% { -webkit-transform: translateY(0); }
  50%      { -webkit-transform: translateY(-2px); }
}
@keyframes suNudgeUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.sticky-bar-more {
  height: 40px; padding: 0 16px;
  font-size: 13px; font-weight: 700; border-radius: var(--su-radius);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, -webkit-transform 0.08s ease, transform 0.08s ease;
}
.sticky-bar-more:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
.sticky-bar-count {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  background: var(--su-brand); color: #fff;
  border-radius: var(--su-radius);
  font-size: 14px;
  -webkit-font-feature-settings: "tnum";
}
@media (max-width: 768px) {
  .sticky-bar-edit  { font-size: 11px; }
  .sticky-bar-more { height: 38px; padding: 0 12px; font-size: 12px; }
}

/* Modal entrance keyframes: one set shared by all three search systems */
@-webkit-keyframes suModalIn {
  from { opacity: 0; -webkit-transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; -webkit-transform: none; }
}
@keyframes suModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
/* Mobile: fade-only (no scale on fullscreen sheet) */
@-webkit-keyframes suModalInMobile { from { opacity: 0; } to { opacity: 1; } }
@keyframes suModalInMobile          { from { opacity: 0; } to { opacity: 1; } }

/* Shared by SS (.somi-find-modal) and SF (.somi-find-modal.sf-filters-modal); SF overrides z-index/panel structure in find-section.css (.sf-modal-wrap/.sf-modal-head, not .modal/.modal-head) */
.somi-find-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 60px 20px; z-index: 1000; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
.somi-find-modal.open {
  display: flex;
  opacity: 1;
}
.somi-find-modal.open .modal {
  -webkit-animation: suModalIn 0.22s ease-out;
  animation: suModalIn 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .somi-find-modal { transition: none; }
  .somi-find-modal.open .modal { -webkit-animation: none; animation: none; }
}
.somi-find-modal .modal {
  width: 100%; max-width: 820px; background: #fff;
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  /* Bootstrap sets position:fixed+inset:0 on .modal -- override so it sits normally in the flex overlay */
  position: relative; top: auto; right: auto; bottom: auto; left: auto;
}
.somi-find-modal .modal-head {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.somi-find-modal .modal-head-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.somi-find-modal .modal-head .tab-pill {
  color: #fff; white-space: nowrap;
}
.somi-find-modal .modal-close {
  border: none; padding: 0;
  cursor: pointer; color: #fff;
  -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
  -webkit-transition: background 0.18s ease, -webkit-transform 0.18s ease;
  transition: background 0.18s ease, transform 0.18s ease;
}
.somi-find-modal .modal-close svg { display: block; -webkit-transition: -webkit-transform 0.2s ease; transition: transform 0.2s ease; }
.somi-find-modal .modal-close:hover svg { -webkit-transform: rotate(90deg); }
.somi-find-modal .modal-close:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
/* Per-page intro line -- sits between the red modal header and the filter fields (SS has no tabs, so this is static per page) */
.somi-find-modal .modal-intro {
  margin: 0; padding: 16px 24px; color: var(--ss-text-muted); font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px solid var(--ss-border);
}
.somi-find-modal .modal-intro:empty { display: none; }

.somi-find-modal .modal-body { padding: 22px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

.somi-find-modal .filter-group { margin-bottom: 22px; }
.somi-find-modal .filter-group:last-child { margin-bottom: 0; }
.somi-find-modal .group-title {
  font-size: 13px; color: var(--ss-text); letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 700;
  background: var(--ss-group-bg); padding: 11px 14px; border-radius: 0;
  margin-bottom: 16px;
  display: flex; align-items: center;
}
.somi-find-modal .group-title-text { flex: 1; }
.somi-find-modal .group-title-count {
  display: none;
  background: var(--ss-brand); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
  margin-left: 8px;
  -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum";
}
.somi-find-modal .group-title-count.is-visible { display: inline-flex; }
.somi-find-modal .filter-group.conditional-group { display: none; }
.somi-find-modal .filter-group.conditional-group.show { display: block; }

.somi-find-modal .modal-row { display: grid; gap: 16px; margin-bottom: 14px; }
.somi-find-modal .modal-row:last-child { margin-bottom: 0; }
.somi-find-modal .modal-row.cols-2 { grid-template-columns: 1fr 1fr; }
.somi-find-modal .modal-row.full { grid-template-columns: 1fr; }
.somi-find-modal .modal-field { display: flex; flex-direction: column; min-width: 0; }
.somi-find-modal .modal-field-label {
  font-size: 11px; color: var(--ss-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}
.somi-find-modal .conditional-row {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
  opacity: 0; margin: 0;
}
.somi-find-modal .conditional-row.show { max-height: 260px; opacity: 1; margin-top: 14px; overflow: visible; }

.somi-find-modal .modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-top: 1px solid var(--ss-border); background: #fafafa;
  flex-wrap: wrap; gap: 10px; flex-shrink: 0;
  transition: box-shadow 0.15s ease;
}
.somi-find-modal .modal-foot.is-scrolled {
  box-shadow: 0 -8px 16px -8px rgba(0,0,0,0.10);
}
.somi-find-modal .btn-secondary {
  height: 48px; padding: 0 18px; font-size: 14px; font-weight: 600; background: #fff;
  border: 1px solid var(--ss-border-strong); border-radius: var(--ss-radius); color: var(--ss-text-muted);
  display: -webkit-inline-flex; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.somi-find-modal .btn-secondary:hover { background: var(--ss-hover-bg); }
.somi-find-modal .btn-primary {
  height: 48px; min-width: 130px; padding: 0 22px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: var(--ss-brand); border: 1.5px solid var(--ss-brand); border-radius: var(--ss-radius);
  display: -webkit-inline-flex; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; box-sizing: border-box;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.somi-find-modal .btn-primary:hover { background: var(--ss-brand-hover); border: 1.5px solid var(--ss-brand-hover); }
.somi-find-modal .btn-primary .apply-count {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum";
}
.somi-find-modal .btn-primary .apply-suffix { opacity: 1; }
.somi-find-modal .modal-foot-right { display: inline-flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.somi-find-modal .modal-foot-right > * { height: 48px; }
.somi-find-modal .modal-foot .clear-link { box-sizing: border-box; }
.somi-find-modal .modal-foot > .clear-link {
  height: auto; border: none; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ss-text-muted); padding: 4px 0;
}
.somi-find-modal .modal-foot > .clear-link:hover { background: transparent; color: var(--ss-text); }
/* View button is the single source of truth for filter count, not .modal-count */

.somi-find-modal .checkbox-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; font-size: 14px; }
.somi-find-modal .checkbox-row label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius);
  transition: border-color 0.1s ease; min-height: 44px;
  color: var(--ss-text); width: 100%;
}
.somi-find-modal .checkbox-row label:hover { border-color: var(--ss-border-strong); }
.somi-find-modal .checkbox-row label.checked { border-color: var(--ss-brand); background: var(--ss-brand-soft); color: var(--ss-text); }
.somi-find-modal .checkbox-row input[type="checkbox"] { margin: 0; flex-shrink: 0; }

.somi-find-modal .pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.somi-find-modal .pill {
  font-size: 13px; padding: 8px 14px; background: #fff;
  border: 1px solid var(--ss-border-strong); border-radius: 999px;
  cursor: pointer; transition: all 0.15s ease;
}
.somi-find-modal .pill:hover { border-color: #999; }
.somi-find-modal .pill.active { background: var(--ss-brand); color: #fff; border-color: var(--ss-brand); }

.somi-find-modal .status-dot {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; flex-shrink: 0; margin-right: 8px;
}
.somi-find-modal .status-dot.active { background: var(--ss-status-active); }
.somi-find-modal .status-dot.closed { background: var(--ss-status-closed); }

.somi-find-modal .inline-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.somi-find-modal .inline-range .sep { color: var(--ss-text-soft); font-size: 14px; text-align: center; }
.somi-find-modal .inline-range-input {
  height: 44px; width: 100%; padding: 0 14px; font-size: 14px;
  background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); outline: none;
}
.somi-find-modal .inline-range-input:focus { border-color: var(--ss-brand); box-shadow: 0 0 0 3px rgba(160,10,15,0.10); }
.somi-find-modal .inline-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.somi-find-modal .pets-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, padding 0.25s ease;
  opacity: 0; margin: 0; padding: 0 14px;
  background: #FAFAFA; border-radius: 6px; grid-column: 1 / -1;
}
.somi-find-modal .pets-sub.show { max-height: 260px; opacity: 1; margin-top: 8px; padding: 12px 14px; }
.somi-find-modal .pets-sub-label {
  font-size: 11px; color: var(--ss-text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.somi-find-modal .pets-sub .pill-row { gap: 6px; }
.somi-find-modal .pets-sub .pill { font-size: 12px; padding: 6px 12px; }

/* -- Search-box help tooltip (shared by SF / SS / SI; clamped via somi-search-core.js) -- */
.somi-search-hint {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  color: var(--su-text-muted, #8a8a8a);
  cursor: help;
  font-size: 14px;
  font-weight: 400;
}
.somi-search-hint:hover,
.somi-search-hint:focus { color: var(--su-brand, #a00a0f); outline: none; }
/* Inline glossary term (e.g. "Miami MLS") -- reuses the same .somi-hint-bubble popup, dotted-underline trigger instead of a "?" icon. Tap-to-show handled via .tip-active, added by a small delegated click handler. */
.term {
  position: relative;
  display: inline;
  border-bottom: 1px dotted var(--su-text-muted, #8a8a8a);
  cursor: help;
}
.term:hover,
.term:focus { border-bottom-color: var(--su-brand, #a00a0f); outline: none; }
.term .somi-hint-bubble { top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); }
.term:hover .somi-hint-bubble,
.term:focus .somi-hint-bubble,
.term.tip-active .somi-hint-bubble {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.somi-hint-bubble {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 280px;
  background: #2b2b2b;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
  padding: 9px 11px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  white-space: normal;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-transition: opacity .15s ease, transform .15s ease;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  text-transform: none;
}
/* tap/click toggles (.is-open), keyboard focus shows it, hover only where a mouse is */
.somi-search-hint.is-open .somi-hint-bubble,
.somi-search-hint:focus-visible .somi-hint-bubble {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
@media (hover: hover) {
  .somi-search-hint:hover .somi-hint-bubble { opacity: 1; visibility: visible; -webkit-transform: translateY(0); transform: translateY(0); }
}
@media (max-width: 600px) {
  .somi-hint-bubble { max-width: 80vw; }
  /* hidden tip still widened the page on phones (sideways scroll): take it out of layout until shown */
  .somi-hint-bubble { display: none; }
  .somi-search-hint.is-open .somi-hint-bubble,
  .somi-search-hint:focus-visible .somi-hint-bubble,
  .term:hover .somi-hint-bubble,
  .term:focus .somi-hint-bubble,
  .term.tip-active .somi-hint-bubble { display: block; }
}

/* Search-card redesign (patches 18.0 + 20.0): styles for SomiSearch.cardUX in js/somi-search-core.js; html.cux is set by it */

/* ---------- counts: "N results", "No matches", "Updating..." ---------- */
.cux-count .cux-none, .cux-count .cux-upd { display: none; }
html.cux .cux-count.is-empty > :not(.cux-none),
html.cux .cux-count.is-loading > :not(.cux-upd) { display: none !important; }
html.cux .cux-count.is-empty > .cux-none,
html.cux .cux-count.is-loading > .cux-upd { display: inline-flex; align-items: center; }
.cux-spin {
  width: 13px; height: 13px; margin-right: 8px; flex-shrink: 0;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  display: inline-block; -webkit-animation: cuxSpin .7s linear infinite; animation: cuxSpin .7s linear infinite;
}
@-webkit-keyframes cuxSpin { to { -webkit-transform: rotate(360deg); } }
@keyframes cuxSpin { to { transform: rotate(360deg); } }
html.cux-loading .thumbViewContainer,
html.cux-loading .listViewContainer { opacity: .45; transition: opacity .15s; }

/* ---------- card: Show N results button (search pages, map, Inventory) ---------- */
html.cux .cux-show {
  height: 48px; min-width: 220px; padding: 0 22px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--su-radius); cursor: pointer;
  background: var(--su-brand); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum";
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .08s ease;
}
html.cux .cux-show:hover { background: var(--su-brand-hover); }
html.cux .cux-show:active { transform: scale(.98); }
html.cux .cux-show .cux-roll { background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
html.cux .cux-show.is-loading { background: color-mix(in srgb, var(--su-brand) 66%, #fff); cursor: default; }
html.cux .cux-show.is-empty, html.cux #sf-search-btn.is-empty { background: #e5e7eb; color: var(--su-text-muted); }
html.cux .cux-show:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 2px; }

/* Save search: its own outlined button, sentence case (was glued to the count box) */
html.cux .save-with-count,
html.cux .sf-save-with-count { display: inline-flex; align-items: center; gap: 12px; height: auto; }
html.cux .save-search-btn,
html.cux .save-with-count .save-search-btn,
html.cux .somi-find .sf-save-search-btn {
  height: 48px; border: 1.5px solid var(--front_btn_secondary_border, #a00a0f);
  border-radius: var(--su-radius); letter-spacing: 0; text-transform: none;
}
/* sentence case on the card buttons */
html.cux .find-section .more-filters,
html.cux .somi-find .sf-more-btn,
html.cux .somi-inv .si-more-filters,
html.cux .somi-find .sf-search-btn { letter-spacing: 0; text-transform: none; }
html.cux .somi-find .sf-search-btn .sf-count-suffix { text-transform: none; letter-spacing: 0; }
/* desktop card bottom row: 16px under the fields, 46px buttons (21.1 prototype) */
@media (min-width: 769px) {
  html.cux .find-section .footer-bar,
  html.cux .somi-find .sf-footer-bar,
  html.cux .somi-inv .si-footer-bar { padding-top: 0; }
  html.cux .find-section .more-filters,
  html.cux .somi-find .sf-more-btn,
  html.cux .somi-inv .si-more-filters,
  html.cux .save-with-count .save-search-btn,
  html.cux .somi-find .sf-save-search-btn,
  html.cux .somi-find .sf-search-btn,
  html.cux .cux-show { height: 46px; min-height: 46px; }
}

html.cux .cux-off { display: none !important; }

/* More filters button: phone-only parts */
.cux-lbl-short, .cux-pbadge, .more-filters .cux-chev, .sf-more-btn .cux-chev, .si-more-filters .cux-chev { display: none; }

/* ---------- Active filters: Clear all link at the end ---------- */
.cux-clear {
  border: 0; background: none; padding: 6px 0 6px 12px; margin: 0 0 0 auto; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--su-text-muted);
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; letter-spacing: 0; text-transform: none;
  -webkit-appearance: none; appearance: none;
}
.cux-clear:hover { color: var(--su-brand); }
.cux-clear:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 2px; border-radius: 4px; }
.cux-clear[hidden], .cux-pills-more[hidden] { display: none !important; }
.cux-pills-more { display: none; }
html.cux .cux-flash { -webkit-animation: cuxFlash 1.2s ease-out; animation: cuxFlash 1.2s ease-out; }
@keyframes cuxFlash { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--su-brand) 35%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@-webkit-keyframes cuxFlash { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--su-brand) 35%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* quick filters + phone-only tip text are hidden on desktop */
.cux-quick, .cux-phone, .cux-tb-left, .cux-grab { display: none; }

/* ---------- Our Inventory, All tab: Show button beside the search box ---------- */
html.cux .si-card.cux-inv-all #si-row-search.show { display: flex !important; align-items: flex-end; gap: 12px; } /* siRenderTab sets an inline display */
html.cux .si-card.cux-inv-all #si-row-search .si-field { flex: 1; min-width: 0; }
html.cux .si-card.cux-inv-all #si-row-search .cux-show { flex-shrink: 0; }
html.cux .si-card.cux-inv-all .si-footer-bar { display: none; }
/* the All tab has no More filters: its tip sentence goes too (desktop) */
.somi-inv:has(.si-card.no-more-filters) .cux-hiw-more .cux-desk { display: none; }

/* ---------- More filters popup: white header, shortcuts, footer ---------- */
html.cux .somi-find-modal .modal-head,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-head,
html.cux .si-modal-head {
  background: #fff; color: var(--su-text);
  border-bottom: 1px solid #eee; padding: 12px 11px 12px 24px;
}
html.cux .somi-find-modal .modal-head h3,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-head h3,
html.cux .si-modal-head h3 { color: var(--su-text); font-size: 18px; font-weight: 700; margin: 0; letter-spacing: 0; text-transform: none; }
/* badge (the tab's glyph, same light-red circle as the backend confirm/delete popups) + title with the tab name under it */
html.cux .somi-find-modal .modal-head .modal-head-title,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-head .sf-modal-head-title,
html.cux .si-modal-head .si-modal-head-title {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; min-width: 0;
}
/* 44px badge = title line 24 + 2 + tab line 18, so both lines sit level with the badge top and bottom */
html.cux .cux-mbadge {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--su-brand-soft); color: var(--su-brand); display: flex; align-items: center; justify-content: center;
}
html.cux .cux-mbadge svg { width: 24px; height: 24px; }
html.cux .cux-mbadge svg [fill]:not([fill="none"]) { fill: currentColor; }
html.cux .cux-mbadge svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
html.cux .somi-find-modal .modal-head h3,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-head h3,
html.cux .si-modal-head h3 { grid-column: 2; line-height: 24px; }
html.cux .somi-find-modal .modal-head .tab-pill,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-pill,
html.cux .si-modal-head .si-tab-pill {
  grid-column: 2; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 18px;
  color: var(--su-text-muted); background: none; border: 0; border-radius: 0; padding: 0; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.cux .somi-find-modal .modal-close,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-close,
html.cux .si-modal-head .si-modal-close {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: #666; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
html.cux .somi-find-modal .modal-close svg,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-close svg,
html.cux .si-modal-head .si-modal-close svg { width: 22px; height: 22px; display: block; transition: transform .2s; }
html.cux .somi-find-modal .modal-close:hover,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-close:hover,
html.cux .si-modal-head .si-modal-close:hover { background: rgba(0,0,0,.06); color: var(--su-text); }
html.cux .somi-find-modal .modal-close:hover svg,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-close:hover svg,
html.cux .si-modal-head .si-modal-close:hover svg { transform: rotate(90deg); }
html.cux .somi-find-modal .modal-close:focus-visible,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-close:focus-visible,
html.cux .si-modal-head .si-modal-close:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 2px; }

/* section shortcuts */
.cux-jump-wrap { position: relative; background: #fff; border-bottom: 1px solid #eee; flex-shrink: 0; }
.cux-jump-wrap[hidden] { display: none !important; }
.cux-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 24px; scroll-behavior: smooth; }
.cux-jump::-webkit-scrollbar { display: none; }
.cux-jump button {
  flex-shrink: 0; height: 32px; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--su-border); border-radius: 999px; background: #fff; color: var(--su-text);
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.cux-jump button:hover { border-color: var(--su-brand); color: var(--su-brand); }
.cux-jump button[aria-current="true"] { background: var(--su-brand); border-color: var(--su-brand); color: #fff; }
.cux-jump .c { background: var(--su-brand); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 1px 6px; }
.cux-jump .c[hidden] { display: none; }
.cux-jump button[aria-current="true"] .c { background: #fff; color: var(--su-brand); }
.cux-jump-arrow { position: absolute; top: 0; bottom: 0; width: 44px; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; color: var(--su-text); }
.cux-jump-arrow[hidden] { display: none; }
.cux-jump-arrow svg { width: 18px; height: 18px; }
.cux-jump-arrow.l { left: 0; justify-content: flex-start; padding-left: 8px; background: linear-gradient(90deg, #fff 55%, rgba(255,255,255,0)); }
.cux-jump-arrow.r { right: 0; justify-content: flex-end; padding-right: 8px; background: linear-gradient(270deg, #fff 55%, rgba(255,255,255,0)); }
.cux-jump-arrow:hover { color: var(--su-brand); }

/* footer: Show N results always on the right, with or without Clear all */
html.cux .somi-find-modal .modal-foot-right,
html.cux .somi-find-modal.sf-filters-modal .sf-modal-foot-right,
html.cux .si-modal-foot-right { margin-left: auto; }
html.cux #modal-apply, html.cux #sf-modal-apply, html.cux #si-modal-apply { min-width: 240px; letter-spacing: 0; text-transform: none; }
html.cux #modal-apply.is-loading, html.cux #sf-modal-apply.is-loading, html.cux #si-modal-apply.is-loading { background: color-mix(in srgb, var(--su-brand) 66%, #fff); border-color: color-mix(in srgb, var(--su-brand) 66%, #fff); }
html.cux #modal-apply.is-empty, html.cux #sf-modal-apply.is-empty, html.cux #si-modal-apply.is-empty { background: #e5e7eb; border-color: #e5e7eb; color: var(--su-text-muted); }

/* ---------- sticky bar ---------- */
html.cux .sticky-bar-edit { letter-spacing: 0; text-transform: none; border-width: 1.5px; }
html.cux .sticky-bar-more {
  letter-spacing: 0; text-transform: none;
  background: var(--front_btn_secondary_bg, #fff); color: var(--front_btn_secondary_text, #a00a0f);
  border: 1.5px solid var(--front_btn_secondary_border, #a00a0f);
}
html.cux .sticky-bar-more:hover, html.cux .sticky-bar-more.has-filters { background: var(--su-brand-soft); }
html.cux .sticky-bar-more .more-filters-icon { fill: none; transition: fill .15s; }
html.cux .sticky-bar-more.has-filters .more-filters-icon { fill: currentColor; }
html.cux .sticky-bar-more .cux-lbl-short, html.cux .sticky-bar-more .cux-chev { display: none; }
.sticky-bar-more .cux-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; box-sizing: border-box;
  background: var(--su-brand); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.sticky-bar-more .cux-badge[hidden] { display: none; }
html.cux .sticky-bar-count {
  border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0;
  -webkit-appearance: none; appearance: none; transition: background .15s, transform .08s;
}
html.cux .sticky-bar-count .cux-roll { font-weight: 700; }
html.cux .sticky-bar-count .sticky-bar-count-label { font-size: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 1; }
html.cux .sticky-bar-count:hover { background: var(--su-brand-hover); }
html.cux .sticky-bar-count:active { transform: scale(.97); }
html.cux .sticky-bar-count.is-loading { background: color-mix(in srgb, var(--su-brand) 66%, #fff); cursor: default; }
html.cux .sticky-bar-count.is-empty { background: #e5e7eb; color: var(--su-text-muted); }
/* Our Inventory, All tab: no More filters (desktop) */
@media (min-width: 769px) {
  body:has(.si-card.no-more-filters) #sticky-bar-more { display: none; }
}

/* results: even 24px steps - toolbar, count, pages, listings, pages, count */
@media (min-width: 769px) {
  .search-propert-tab .total-search-for { margin: 24px 0 10px; }
  .search-propert-tab .pagination_container_top .page,
  .search-propert-tab .pagination_container_bottom .page { padding-top: 0; padding-bottom: 0; margin: 24px 0; }
  .search-propert-tab > .tab-content { margin-top: 24px; }
  .search-propert-tab .thumb-view:not(:has(.no-results-state)),
  .search-propert-tab .search-match.listViewContainer:not(:has(.no-results-state)) { margin-bottom: 0; }
  /* bottom matches the top: the footer's first row sits 24px under the last count row */
  .search-propert-tab .pagination_container_bottom .total-search-for { margin-bottom: 0; }
  body:has(.search-propert-tab) .footerTop { padding-top: 24px; }
}

/* ---------- listing cards in search results ---------- */
/* Save Property / Save Project becomes a round heart on the photo (same element + handler) */
.thumbViewContainer .property-card { position: relative; }
.thumbViewContainer .property-actions .save-home {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 40px; height: 40px; padding: 0; margin: 0; flex: none;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.94);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.thumbViewContainer .property-actions .save-home::after { content: ""; position: absolute; inset: -4px; }
/* map pin's right edge lines up with the heart button's circle (both 10px in) */
.thumbViewContainer .property-photo .map_count_pin { right: 10px; }
.thumbViewContainer .property-actions .save-home span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.thumbViewContainer .property-actions .save-home i.svg-icons { width: 20px; height: 20px; color: var(--su-brand) !important; transition: transform .2s; }
@media (hover: hover) {
  .thumbViewContainer .property-actions .save-home:hover { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.28); transform: scale(1.08); }
  .thumbViewContainer .property-actions .save-home:hover i.svg-icons { transform: scale(1.15); }
}
.thumbViewContainer .property-actions .save-home:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 2px; }
/* the photo dots move to the bottom centre (the heart now holds the top-right corner) */
.thumbViewContainer .swiperSlider .swiper-pagination-bullets.swiper-pagination-horizontal {
  top: auto; bottom: 12px; left: 50%; right: auto; padding: 6px 9px; white-space: nowrap; /* one row, even before the dots are windowed */
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
}
/* the status ring moves left of the heart */
.thumbViewContainer .property-photo .prop-status-ring { right: 58px; top: 17px; }
.thumbViewContainer .property-actions .view-details { flex: 1 1 100%; }
/* desktop: outlined View Details (fills on hover) -- 18+ solid buttons outweighed the prices */
@media (min-width: 769px) {
  .thumbViewContainer .property-actions .propBoxButton.view-details {
    background: var(--front_btn_secondary_bg, #fff); color: var(--front_btn_secondary_text, #a00a0f);
    border-color: var(--front_btn_secondary_border, #a00a0f);
  }
  .thumbViewContainer .property-actions .propBoxButton.view-details i.svg-icons { color: var(--front_btn_secondary_text, #a00a0f) !important; }
  .thumbViewContainer .property-actions .propBoxButton.view-details:hover {
    background: var(--front_btn_primary_bg, #a00a0f); color: var(--front_btn_primary_text, #fff); border-color: var(--front_btn_primary_border, #a00a0f);
  }
  .thumbViewContainer .property-actions .propBoxButton.view-details:hover i.svg-icons { color: var(--front_btn_primary_text, #fff) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cux-spin, html.cux .cux-flash { -webkit-animation: none; animation: none; }
  .cux-jump, .cux-jump button, html.cux .cux-show, html.cux .sticky-bar-count,
  .thumbViewContainer .property-actions .save-home, .thumbViewContainer .property-actions .save-home i.svg-icons { transition: none; }
}

/* ---------- PHONES (768px and narrower) ---------- */
@media (max-width: 768px) {
  /* ----- card: Search, quick filters, Filters + Save heart, pills ----- */
  html.cux .find-section .card, html.cux .somi-find .sf-card, html.cux .somi-inv .si-card { gap: 0; }
  html.cux .find-section .ss-row-1,
  html.cux .somi-find .sf-row-1 { display: block; margin: 0; }
  html.cux .find-section .ss-row-1 .field,
  html.cux .somi-find .sf-row-1 .sf-field,
  html.cux .somi-inv #si-row-search .si-field { margin: 0; width: 100%; }
  html.cux .cux-quick { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; order: 5; }
  html.cux #si-row-search:not(.show) + * .cux-quick, html.cux .si-card .cux-quick:first-child { margin-top: 0; }
  html.cux .cux-quick[hidden] { display: none; }
  .cux-qrow { display: flex; gap: 6px; min-width: 0; }
  .cux-qf {
    flex: 1 1 calc(var(--n, 5) * 1ch + 33px); min-width: 0; height: 36px; padding: 0 8px 0 10px; cursor: pointer;
    border: 1px solid var(--su-border); border-radius: 999px; background: #fff; color: var(--su-text);
    font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    -webkit-appearance: none; appearance: none; transition: border-color .15s, color .15s, background .15s;
  }
  .cux-qf[hidden] { display: none; }
  .cux-qf span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cux-qf svg { width: 9px; height: 7px; color: var(--su-text-muted); flex-shrink: 0; }
  .cux-qf:hover { border-color: var(--su-brand); color: var(--su-brand); }
  .cux-qf.is-set { background: var(--su-brand-soft); border-color: color-mix(in srgb, var(--su-brand) 18%, transparent); color: var(--su-brand); }
  .cux-qf.is-set svg { color: var(--su-brand); }

  /* footer row: Filters (full width) + Save heart; Show button only on the homepage */
  html.cux .find-section .footer-bar,
  html.cux .somi-find .sf-footer-bar,
  html.cux .somi-inv .si-footer-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch;
    padding: 0; margin: 12px 0 0; border: 0; flex-direction: row;
  }
  html.cux .find-section .footer-bar > *,
  html.cux .somi-find .sf-footer-bar > *,
  html.cux .somi-find .sf-actions > *,
  html.cux .somi-inv .si-footer-bar > * { grid-column: auto; }
  html.cux .find-section .actions,
  html.cux .somi-find .sf-actions,
  html.cux .somi-inv .si-actions { margin: 0; width: auto; display: flex; gap: 10px; order: 0; }
  html.cux .find-section .more-filters,
  html.cux .somi-find .sf-more-btn,
  html.cux .somi-inv .si-more-filters {
    display: flex !important; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 14px 0 16px;
    align-items: center; justify-content: flex-start; gap: 10px; font-size: 14px; font-weight: 700;
  }
  html.cux .more-filters .cux-lbl-full, html.cux .sf-more-btn .cux-lbl-full, html.cux .si-more-filters .cux-lbl-full,
  html.cux .more-filters .hint, html.cux .sf-more-btn .sf-hint, html.cux .si-more-filters .si-hint,
  html.cux .more-filters .badge, html.cux .sf-more-btn .sf-badge, html.cux .si-more-filters .si-badge { display: none !important; }
  html.cux .more-filters .cux-lbl-short, html.cux .sf-more-btn .cux-lbl-short, html.cux .si-more-filters .cux-lbl-short { display: block; flex: 1; text-align: left; }
  html.cux .more-filters .cux-chev, html.cux .sf-more-btn .cux-chev, html.cux .si-more-filters .cux-chev { display: block; width: 16px; height: 16px; flex-shrink: 0; }
  html.cux .cux-pbadge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
    border-radius: 999px; background: var(--su-brand); color: #fff; font-size: 11px; font-weight: 700;
  }
  html.cux .cux-pbadge[hidden] { display: none; }
  html.cux .more-filters.cux-has, html.cux .sf-more-btn.cux-has, html.cux .si-more-filters.cux-has { background: var(--su-brand-soft); }
  html.cux .more-filters.cux-has .more-filters-icon, html.cux .sf-more-btn.cux-has .more-filters-icon,
  html.cux .si-more-filters.cux-has .more-filters-icon { fill: currentColor; }
  html.cux .find-section .more-filters .more-filters-icon, html.cux .somi-find .sf-more-btn .more-filters-icon,
  html.cux .somi-inv .si-more-filters .more-filters-icon { width: 20px; height: 20px; flex-shrink: 0; }

  /* Save search = 48px heart square */
  html.cux .save-with-count, html.cux .sf-save-with-count { display: flex; gap: 10px; }
  html.cux .find-section .save-with-count .save-search-btn, html.cux .somi-find .sf-actions .sf-save-search-btn {
    flex: none; width: 48px; min-width: 48px; height: 48px; padding: 0; font-size: 0; gap: 0; justify-content: center;
    border-radius: var(--su-radius); border-right: 1.5px solid var(--front_btn_secondary_border, #a00a0f);
  }
  html.cux .save-search-btn .icon, html.cux .somi-find .sf-save-search-btn .icon { width: 22px; height: 22px; }
  /* Show N results: hidden on the search pages (the listings are right below), full width on the homepage */
  html.cux .cux-show { display: none; }
  html.cux .somi-find:not(.sf-search-page) .sf-footer-bar { grid-template-columns: minmax(0, 1fr) 48px; }
  html.cux .somi-find:not(.sf-search-page) .sf-actions { display: contents; }
  html.cux .somi-find:not(.sf-search-page) .sf-search-btn {
    grid-column: 1 / -1; order: 2; width: 100%; height: 48px; margin: 0; font-size: 14px; font-weight: 600;
  }
  /* Inventory has no Save search: Filters takes the row */
  html.cux .somi-inv .si-footer-bar { grid-template-columns: minmax(0, 1fr); }
  html.cux .somi-inv .si-actions { display: none; }
  html.cux .si-card.cux-inv-all .si-footer-bar { display: grid; }

  /* pills: label + Clear all on the first line, pills below, 2 rows then "+N more" */
  html.cux .find-section .active-filters,
  html.cux .somi-find .sf-chips,
  html.cux .somi-inv .si-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
  html.cux .active-filters > .label, html.cux .sf-chips > .sf-chips-label, html.cux .si-active-filters > .si-af-label { flex: 1 0 60%; order: 0; margin: 0; }
  html.cux .cux-clear { order: 1; margin: 0; padding: 4px 0 4px 12px; }
  html.cux .active-filters > .chip, html.cux .sf-chips > .sf-chip, html.cux .si-active-filters > .si-chip { order: 2; }
  html.cux .find-section .active-filters, html.cux .somi-find .sf-chips, html.cux .somi-inv .si-active-filters { order: 8; margin: 12px 0 0; padding: 0; border-top: 0; border-radius: 0; background: none; }
  html.cux .active-filters > .label, html.cux .sf-chips > .sf-chips-label, html.cux .si-active-filters > .si-af-label { text-align: left; width: auto; }
  html.cux .active-filters > .chip, html.cux .sf-chips > .sf-chip, html.cux .si-active-filters > .si-chip {
    min-height: 32px; height: auto; max-width: 100%; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 600; width: auto; margin: 0;
  }
  html.cux .active-filters > .chip--default, html.cux .sf-chips > .sf-chip:has(> .sf-x.is-hidden), html.cux .si-active-filters > .si-chip--default { padding-right: 12px; }
  html.cux .active-filters > .chip--default > .x, html.cux .sf-chips .sf-x.is-hidden, html.cux .si-active-filters > .si-chip--default > .si-x { display: none; }
  html.cux .cux-clamped { max-height: var(--cux-clamp, 120px); overflow: hidden; }
  /* the strip's negative bottom margin would pull "+N more" up into the pills */
  html.cux :is(.active-filters, .sf-chips, .si-active-filters):has(+ .cux-pills-more:not([hidden])) { margin-bottom: 0; padding-bottom: 0; }
  html.cux .cux-pills-more {
    display: block; order: 9; align-self: flex-start; border: 0; background: none; cursor: pointer; padding: 12px 0 8px; margin: 0 0 -8px;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--su-brand); letter-spacing: 0; text-transform: none;
  }
  html.cux .cux-pills-more:hover { text-decoration: underline; text-underline-offset: 3px; }
  html.cux .cux-phone { display: inline; }
  html.cux .cux-desk { display: none; }

  /* search box: no browser clear button on type=search */
  html.cux #search-input, html.cux #sf-search-input, html.cux #si-main-search-input { font-size: 16px; }

  /* ----- the popup becomes a bottom sheet: "Filters" ----- */
  html.cux .somi-find-modal.open,
  html.cux .somi-find-modal.sf-filters-modal.open,
  html.cux .si-modal-overlay.open { align-items: flex-end; padding: 0; }
  html.cux .somi-find-modal .modal,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-wrap,
  html.cux .si-modal-overlay .si-modal {
    width: 100%; max-width: 100%; height: auto; max-height: 94vh; max-height: 94dvh;
    border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden;
    transition: transform .2s ease-out;
  }
  html.cux .cux-dragging { transition: none !important; }
  html.cux .cux-grab { display: flex; justify-content: center; padding: 8px 0 0; background: #fff; cursor: grab; touch-action: none; flex-shrink: 0; }
  html.cux .cux-grab i { width: 40px; height: 4px; border-radius: 2px; background: #d1d5db; display: block; }
  html.cux .somi-find-modal .modal-head,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-head,
  html.cux .si-modal-head { padding: 6px 5px 10px 18px; touch-action: none; }
  html.cux .somi-find-modal .modal-head h3,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-head h3,
  html.cux .si-modal-head h3 { font-size: 17px; }
  .cux-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html.cux .cux-scroll > .modal-intro,
  html.cux .cux-scroll > .sf-modal-intro,
  html.cux .cux-scroll > .si-modal-intro { margin: 0; padding: 14px 18px 12px; border-bottom: 1px solid #eee; }
  html.cux .cux-scroll .cux-jump-wrap { position: sticky; top: 0; z-index: 12; }
  .cux-jump { padding: 10px 18px; }
  html.cux .cux-scroll > .modal-body,
  html.cux .cux-scroll > .sf-modal-body,
  html.cux .cux-scroll > .si-modal-body { overflow: visible; flex: none; max-height: none; padding: 0 18px 24px; }
  html.cux .cux-scroll .filter-group,
  html.cux .cux-scroll .sf-filter-group,
  html.cux .cux-scroll .si-filter-group { scroll-margin-top: 56px; }
  /* Main filters: the card fields, stacked */
  html.cux .cux-main { margin: 0; padding: 16px 18px 4px; }
  html.cux .cux-main-title { margin: 0 0 14px; }
  .cux-main-fields { display: flex; flex-direction: column; gap: 14px; }
  html.cux .cux-main-fields .ss-row,
  html.cux .cux-main-fields .sf-row,
  html.cux .cux-main-fields .si-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; margin: 0; padding: 0; border: 0; }
  html.cux .cux-main-fields .ss-row:empty, html.cux .cux-main-fields .sf-row:empty, html.cux .cux-main-fields .si-row:empty,
  html.cux .cux-main-fields .si-row-conditional:not(.show), html.cux .cux-main-fields .si-row-subtype:not(.show) { display: none; }
  html.cux .cux-main-fields .si-row-1 { grid-template-columns: minmax(0, 1fr); }
  html.cux .cux-main-fields .field,
  html.cux .cux-main-fields .sf-field,
  html.cux .cux-main-fields .si-field { min-width: 0; margin: 0; grid-column: 1 / -1; }
  /* Beds + Baths stay paired; their panel spans the whole row (20.3) */
  html.cux .cux-main-fields .cux-half { grid-column: auto; }
  html.cux .cux-main-fields :is(.ss-row, .sf-row, .si-row):has(> .cux-half) { position: relative; }
  html.cux .cux-main-fields .cux-half,
  html.cux .cux-main-fields .cux-half > :is(.dropdown, .sf-dd, .si-dropdown) { position: static; }
  html.cux .cux-flash { border-radius: 8px; }
  /* footer: Clear all link + Show N results on one row */
  html.cux .somi-find-modal .modal-foot,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-foot,
  html.cux .si-modal-foot {
    flex-direction: row; align-items: center; gap: 14px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  }
  html.cux .somi-find-modal .modal-foot > .clear-link,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear,
  html.cux .si-modal-foot > .si-clear-link { order: 0; width: auto; padding: 12px 4px; flex-shrink: 0; }
  html.cux .somi-find-modal .modal-foot-right,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-foot-right,
  html.cux .si-modal-foot-right { order: 1; flex: 1; width: auto; display: flex; }
  html.cux #modal-apply, html.cux #sf-modal-apply, html.cux #si-modal-apply { min-width: 0; width: 100%; height: 48px; }

  /* ----- sticky bar: up arrow - Filters - count ----- */
  html.cux .sticky-bar-inner { padding: 8px 12px; gap: 8px; }
  html.cux .sticky-bar-tag, html.cux .sticky-bar-spacer { display: none; }
  html.cux .sticky-bar-edit { width: 40px; height: 40px; padding: 0; justify-content: center; flex-shrink: 0; }
  html.cux .sticky-bar-edit span { display: none; }
  html.cux .sticky-bar-more { flex: 1; min-width: 0; height: 40px; padding: 0 12px; font-size: 13px; display: inline-flex !important; }
  html.cux .sticky-bar-more .cux-lbl-full { display: none; }
  html.cux .sticky-bar-more .cux-lbl-short { display: block; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.cux .sticky-bar-more .cux-chev { display: block; width: 16px; height: 16px; flex-shrink: 0; }
  html.cux .sticky-bar-count { height: 40px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; flex-shrink: 0; }
  html.cux .sticky-bar-count .sticky-bar-count-label { text-transform: uppercase; }

  /* ----- results toolbar: count - Sort - views ----- */
  html.cux .searchTabBody {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap;
    padding: 0 2px; margin: 0 0 12px; border: 0; background: none; position: relative;
  }
  html.cux .cux-tb-left { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1; min-width: 0; margin-right: 2px; }
  html.cux .cux-tb-count {
    display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--su-text); font-variant-numeric: tabular-nums;
  }
  html.cux .cux-tb-count .cux-roll { color: var(--su-brand); font-weight: 700; }
  html.cux .cux-tb-count.is-loading { color: var(--su-text-muted); }
  html.cux .searchTabBody .sortByDropDownContainer { display: block; width: auto; margin: 0; padding: 0; flex: none; position: static; }
  /* Sort menu anchors to the toolbar's right edge (mockup), not the Sort button */
  html.cux .searchTabBody .sortByDropDownInput .dropdown { position: static; }
  html.cux .searchTabBody .sortByDropDownContainer > .for-label { display: none; }
  html.cux .searchTabBody .sortByDropDownInput { width: auto; margin: 0; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger {
    height: 38px; width: auto; min-width: 0; padding: 0 10px; gap: 6px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--su-text);
    border: 1px solid var(--su-border); background: #fff; box-shadow: none; transition: border-color .15s, color .15s;
  }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger:focus { border-color: var(--su-border); box-shadow: none; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger:hover,
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger.open { border-color: var(--su-brand); color: var(--su-brand); }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger .dropdown-value { display: none; }
  /* mockup sort icon as a mask so it takes the text color on hover */
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger::before {
    content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E");
    mask: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E");
  }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger::after { content: "Sort"; font-weight: 600; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-trigger .dropdown-chevron { display: none; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-panel { left: auto; right: 2px; width: min(290px, calc(100vw - 48px)); min-width: 0; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-option span span { white-space: normal !important; }
  html.cux #searchtabs3 {
    display: inline-flex; flex: none; width: auto; margin: 0; padding: 0; border: 1px solid var(--su-border); border-radius: 8px; overflow: hidden; float: none; gap: 0;
  }
  html.cux #searchtabs3 > li { margin: 0; float: none; border: 0; width: auto; flex: none; }
  /* divider inside the 38px button (mockup); gap/letter-spacing 0 so the hidden label takes no room and the icon centres */
  html.cux #searchtabs3 > li + li { border-left: 0; }
  html.cux #searchtabs3 > li > a {
    width: 38px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 0;
    display: flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; gap: 0; letter-spacing: 0;
    background: #fff; color: var(--su-text-muted); transition: color .15s, background .15s;
  }
  html.cux #searchtabs3 > li + li > a { border-left: 1px solid var(--su-border); }
  html.cux #searchtabs3 > li > a svg { width: 18px; height: 18px; margin: 0; color: inherit; }
  html.cux #searchtabs3 > li > a:hover { background: #fff; color: var(--su-brand); }
  html.cux #searchtabs3 > li.active > a, html.cux #searchtabs3 > li.active > a:hover { background: var(--su-brand); color: #fff; }
  /* page numbers and Show 18 per page give way to Show more listings (cardUX) */
  html.cux .pagination_container_top { display: none; }
  html.cux.cux-more-on .pagination_container_bottom,
  html.cux.cux-more-on .perPageDropDown,
  html.cux.cux-more-on .su-select-per-page { display: none !important; }

  /* Interactive Map: toolbar, then the map (300px), then the listings */
  html.cux .sf-search-page ~ * .search-propert-tab, html.cux .search-propert-tab:has(> .mapSearchContainer) { display: flex; flex-direction: column; }
  html.cux .search-propert-tab:has(> .mapSearchContainer) > .sortByContainer { order: 1; }
  html.cux .search-propert-tab:has(> .mapSearchContainer) > .mapSearchContainer { order: 2; }
  html.cux .search-propert-tab:has(> .mapSearchContainer) > :not(.sortByContainer):not(.mapSearchContainer) { order: 3; }
  html.cux .mapSearchContainer #propMapView { height: 300px !important; }

  /* listing cards: View Details stays solid on phones (one card at a time) */
}
@media (max-width: 380px) {
  html.cux .cux-qf { font-size: 12.5px; padding: 0 6px 0 8px; }
}

/* ---------- patch 20.0 additions ---------- */

/* ---------- counts: the engines' number stays for screen readers; .cux-roll is what people see ---------- */
html.cux .cux-count .cux-n {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
html.cux .cux-count { border-radius: 6px; }
html.cux .cux-count.cux-rolled { -webkit-animation: cuxRolled 1.1s ease-out; animation: cuxRolled 1.1s ease-out; }
@-webkit-keyframes cuxRolled { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--su-brand) 20%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }
@keyframes cuxRolled { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--su-brand) 20%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }
html.cux .cux-tb-count.cux-rolled { -webkit-animation: cuxRolledBg 1.1s ease-out; animation: cuxRolledBg 1.1s ease-out; }
@-webkit-keyframes cuxRolledBg { 0%, 40% { background: color-mix(in srgb, var(--su-brand) 10%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--su-brand) 10%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@keyframes cuxRolledBg { 0%, 40% { background: color-mix(in srgb, var(--su-brand) 10%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--su-brand) 10%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }

/* ---------- "Updates as you filter" (green dot) ---------- */
.cux-live {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; color: #1e7a41;
}
.cux-live i { width: 7px; height: 7px; border-radius: 50%; background: #22a447; display: block; flex: none; -webkit-animation: cuxLive 2s ease-out infinite; animation: cuxLive 2s ease-out infinite; }
@-webkit-keyframes cuxLive { 0% { box-shadow: 0 0 0 0 rgba(34,164,71,.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34,164,71,0); } }
@keyframes cuxLive { 0% { box-shadow: 0 0 0 0 rgba(34,164,71,.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34,164,71,0); } }
/* popup footer: the same line, centred under the footer buttons */
html.cux .cux-live-note { flex-basis: 100%; justify-content: center; margin: 4px 0 0; font-size: 12px; font-weight: 500; color: var(--su-text-muted); }
html.cux .cux-live-note i { width: 6px; height: 6px; -webkit-animation: none; animation: none; }
html.cux .modal-foot, html.cux .sf-modal-foot, html.cux .si-modal-foot { flex-wrap: wrap; }
/* tip bands on the Interactive Map and Our Inventory (not the homepage, whose button opens the results page) */
html.cux-home .cux-live-tip { display: none; }

/* ---------- desktop: "N results below" link instead of the red Show button (search pages, map, Inventory) ---------- */
@media (min-width: 769px) {
  html.cux .cux-show.cux-jumpres {
    height: 46px; min-width: 0; padding: 0 4px; background: none; color: var(--su-brand);
    font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  html.cux .cux-show.cux-jumpres:hover { background: none; }
  html.cux .cux-show.cux-jumpres:hover .cux-roll, html.cux .cux-show.cux-jumpres:hover .cux-sfx { text-decoration: underline; text-underline-offset: 4px; }
  html.cux .cux-show.cux-jumpres > .cux-w { display: none; } /* "Show" */
  html.cux .cux-show.cux-jumpres .cux-roll { background: none; padding: 0; font-size: 15px; font-weight: 700; color: inherit; }
  html.cux .cux-show.cux-jumpres .cux-live { order: 9; padding-right: 2px; }
  html.cux .cux-show.cux-jumpres.is-loading { background: none; color: var(--su-text-muted); cursor: default; }
  html.cux .cux-show.cux-jumpres.is-empty { background: none; color: var(--su-text-muted); }
  html.cux .cux-show.cux-jumpres.is-loading > .cux-live, html.cux .cux-show.cux-jumpres.is-empty > .cux-live { display: inline-flex !important; }
  /* the number and "results below" sit together on one line; the 1fr column takes any spare width */
  html.cux .cux-show.cux-jumpres { display: inline-grid; grid-template-columns: 1fr auto auto; justify-items: end; align-content: center; column-gap: 0; }
  html.cux .cux-show.cux-jumpres > .cux-roll { grid-column: 2; }
  html.cux .cux-show.cux-jumpres > .cux-sfx { grid-column: 3; }
  html.cux .cux-show.cux-jumpres > .cux-live { grid-column: 1 / -1; }
  html.cux .cux-show.cux-jumpres > .cux-none, html.cux .cux-show.cux-jumpres > .cux-upd { grid-column: 1 / -1; }
  /* the count flash rings the count line only, not "Updates as you filter" (21.1 prototype) */
  html.cux .cux-show.cux-jumpres { position: relative; }
  html.cux .cux-show.cux-jumpres.cux-rolled { -webkit-animation: none; animation: none; }
  html.cux .cux-show.cux-jumpres::before { content: ""; position: absolute; grid-area: 1 / 2 / 2 / -1; top: -1px; bottom: -1px; left: -6px; right: -6px; border-radius: 6px; pointer-events: none; }
  html.cux .cux-show.cux-jumpres.cux-rolled:not(.is-loading):not(.is-empty)::before { -webkit-animation: cuxRolled 1.1s ease-out; animation: cuxRolled 1.1s ease-out; }
}
@media (max-width: 768px) {
  html.cux .cux-show.cux-jumpres .cux-live { display: none; }
}

/* ---------- no matches: which filter to remove ---------- */
.cux-relax[hidden], .cux-relax-hint[hidden] { display: none !important; }
html.cux .cux-relax { margin: 0 0 16px; padding: 20px; background: var(--su-surface); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); text-align: center; }
html.cux .cux-relax-t { margin: 0 0 12px; font-size: 14px; color: var(--su-text-muted); }
html.cux .cux-relax-list { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 0 auto; }
html.cux .no-results-state .cux-relax-list { width: 100%; margin: 4px auto 16px; }
/* Show N results focuses the listings for keyboard users; no ring round the whole area */
html.cux :is(.int_cntnt_testimonial, .search-propert-tab, .si-results-area):focus { outline: none; }
html.cux .cux-relax-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; width: 100%;
  border: 1px solid var(--su-border); border-radius: 8px; background: #fff; padding: 8px 12px;
  font: inherit; font-size: 13px; color: var(--su-text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
html.cux .cux-relax-btn:hover { border-color: var(--su-brand); background: var(--su-brand-soft); }
html.cux .cux-relax-btn b { color: var(--su-brand); font-weight: 700; }
html.cux .cux-relax-n { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
html.cux .cux-relax-hint { flex-basis: 100%; margin: 0 0 8px; font-size: 13px; color: var(--su-text-muted); text-align: center; }
html.cux .cux-relax-link { border: 0; background: none; padding: 0; font: inherit; color: var(--su-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- search suggestions ---------- */
html.cux .cux-sugg-host { position: relative; }
html.cux .cux-sugg {
  position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; z-index: 60; list-style: none; padding: 6px 0;
  background: #fff; border: 1px solid var(--su-border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  max-height: 330px; overflow: auto; text-align: left;
}
html.cux .cux-sg-h { padding: 8px 14px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--su-text-muted); }
html.cux .cux-sg { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 0 14px; font-size: 14px; color: var(--su-text); cursor: pointer; }
html.cux .cux-sg[aria-selected="true"], html.cux .cux-sg:hover { background: var(--su-brand-soft); }
html.cux .cux-sg mark { background: none; color: inherit; font-weight: 700; padding: 0; }
html.cux .cux-sg-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.cux .cux-sg-t { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--su-brand); }

/* ---------- phones: Show more listings ---------- */
.cux-more-wrap[hidden], .cux-more[hidden] { display: none !important; }
html.cux .cux-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 16px; }
html.cux .cux-more-status { margin: 0; font-size: 12.5px; color: var(--su-text-muted); }
html.cux .cux-more {
  height: 48px; width: 100%; border: 1.5px solid var(--su-brand); border-radius: 8px; background: #fff; color: var(--su-brand);
  font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 0; cursor: pointer;
}
html.cux .cux-more:hover { background: var(--su-brand-soft); }
html.cux .cux-more[disabled] { color: var(--su-text-muted); border-color: var(--su-border); background: #fff; cursor: default; }
html.cux .cux-batch {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 -4px; grid-column: 1 / -1;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--su-text-muted);
}
html.cux .cux-batch::after { content: ""; flex: 1; height: 1px; background: var(--su-border); }
html.cux .cux-batch:focus { outline: none; }
html.cux .cux-batch:focus-visible { outline: 2px solid var(--su-brand); outline-offset: 4px; border-radius: 4px; }

/* ---------- grey placeholder cards (first load, tab change) ---------- */
.cux-skel { display: none; }
html.cux.cux-first .cux-skel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
html.cux.cux-first .thumbViewContainer, html.cux.cux-first .listViewContainer { display: none !important; }
html.cux.cux-first .pagination_container_top, html.cux.cux-first .pagination_container_bottom, html.cux.cux-first .cux-relax { visibility: hidden; }
.cux-sk-card { background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,.04); box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden; }
.cux-sk-ph { height: 210px; }
.cux-sk-b { padding: 16px 16px 6px; }
.cux-sk-p { padding: 4px 16px 16px; }
.cux-sk-card i { display: block; height: 12px; border-radius: 6px; margin: 0 0 10px; }
.cux-sk-p i { height: 18px; }
.cux-sk-ph, .cux-sk-card i {
  background: linear-gradient(90deg, #eceef1 25%, #f6f7f8 50%, #eceef1 75%); background-size: 200% 100%;
  -webkit-animation: cuxSkel 1.2s linear infinite; animation: cuxSkel 1.2s linear infinite;
}
@-webkit-keyframes cuxSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes cuxSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 768px) {
  html.cux.cux-first .cux-skel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- Min / Max boxes: shortcuts tip (keyboards only; the phone number pad has no letters) ---------- */
.somi-range-tip { margin: 6px 0 0; font-size: 12px; font-weight: 400; color: var(--su-text-muted); text-transform: none; letter-spacing: 0; }
@media (hover: none) { .somi-range-tip { display: none; } }

/* ---------- popup text fields (Complex name, Subdivision name) ---------- */
.somi-text-input {
  height: 44px; width: 100%; box-sizing: border-box; border: 1px solid var(--su-border); border-radius: var(--su-radius);
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--su-text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.somi-text-input::placeholder { color: var(--su-text-soft); }
.somi-text-input:hover { border-color: var(--su-border-strong); }
.somi-text-input:focus { outline: none; border-color: var(--su-brand); box-shadow: 0 0 0 3px var(--su-brand-soft); }

@media (prefers-reduced-motion: reduce) {
  .cux-live i, html.cux .cux-count.cux-rolled, html.cux .cux-tb-count.cux-rolled, html.cux .cux-show.cux-jumpres.cux-rolled:not(.is-loading):not(.is-empty)::before, .cux-sk-ph, .cux-sk-card i { -webkit-animation: none; animation: none; }
}

/* ---------- Interactive Map: Search as I move the map (map_search_new.js) ---------- */
.map-area-ctl { margin: 10px; }
.map-area-ctl [hidden] { display: none !important; }
.map-area-ctl .map-auto {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 9px; margin: 0;
  background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  font-size: 12px; font-weight: 600; color: var(--su-text); cursor: pointer; white-space: nowrap;
}
.map-area-ctl .map-auto input { width: 16px; height: 16px; margin: 0; accent-color: var(--su-brand); cursor: pointer; }
.map-area-ctl .map-area-btn {
  height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--su-brand); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer;
}
.map-area-ctl .map-area-btn:hover { background: var(--su-brand-hover); }

/* popup intro: left-aligned (.resource_right p justifies it) */
.somi-find-modal .modal-intro { text-align: left; }
/* desktop popups: vertically centred, even 40px above and below (max-height is 100vh - 80px; was 60 top / 20 bottom) */
@media (min-width: 769px) {
  .somi-find-modal.open, .somi-find-modal.sf-filters-modal.open, .si-modal-overlay.open { padding-top: 40px; padding-bottom: 40px; }
  .somi-find-modal.open .modal, .somi-find-modal.sf-filters-modal.open .sf-modal-wrap, .si-modal-overlay.open .si-modal { margin-top: auto; margin-bottom: auto; }
}
/* Our Inventory: no Property type label when the tab has no property dropdown (All tab, phone sheet) */
.si-field:has(> [data-si-dropdown="property"]:empty) { display: none; }
/* master.css legacy .show (padding 3px 5px, Arial) hits the card rows' .show state; same fix as .somi-find .show */
.si-card .show { padding: 0; font: inherit; }

/* ---------- phones: 20.3 results-first re-match (spacing, sort menu, sheet, empty state, map card) ---------- */
@media (max-width: 768px) {
  /* 14px steps: page bar - heading - card - toolbar - listings; 18px from the last listing to Showing */
  html.cux .ss-page-header-bar { margin-bottom: 14px; }
  html.cux .search-properties-panel { margin-bottom: 14px; }
  html.cux .si-find-header { margin-bottom: 14px; }
  html.cux .somi-inv .si-find-section { padding-top: 0; padding-bottom: 14px; }
  html.cux .si-card #si-row-search { margin-bottom: 0; }
  html.cux .searchTabBody { margin-bottom: 14px; }
  html.cux .search-propert-tab > .tab-content { margin-top: 14px; }
  html.cux .thumbViewContainer { gap: 14px; }
  html.cux.cux-more-on .search-propert-tab .thumb-view,
  html.cux.cux-more-on .search-propert-tab .search-match.listViewContainer { margin-bottom: 0; }
  html.cux .cux-more-wrap { margin-top: 18px; }

  /* Active filters (20.x): no divider, label on a 24px line with no colon */
  html.cux .active-filters > .label, html.cux .sf-chips > .sf-chips-label, html.cux .si-active-filters > .si-af-label { line-height: 24px; }
  .af-colon { display: none; }
  /* Clear all and the 32px remove targets don't make their rows taller (24px head, 34px pills) */
  html.cux .cux-clear { margin: -2px 0; }
  html.cux :is(.find-section .chip .x, .somi-find .sf-chip .sf-x, .somi-inv .si-chip .si-x) { margin: -4px 0; }

  /* Sort menu: 6px inset, 2px between options */
  html.cux .searchTabBody .sortByDropDownInput .dropdown-panel { padding: 6px; }
  html.cux .searchTabBody .sortByDropDownInput .dropdown-options { display: flex; flex-direction: column; gap: 2px; }

  /* Filters sheet: intro left-aligned with 14px under it, 22px above each section title, 14px under it */
  html.cux .cux-scroll > .modal-intro,
  html.cux .cux-scroll > .sf-modal-intro,
  html.cux .cux-scroll > .si-modal-intro { text-align: left; margin-bottom: 14px; }
  html.cux .cux-scroll .filter-group,
  html.cux .cux-scroll .sf-filter-group,
  html.cux .cux-scroll .si-filter-group { margin-bottom: 22px; }
  html.cux .cux-scroll .filter-group:last-child,
  html.cux .cux-scroll .sf-filter-group:last-child,
  html.cux .cux-scroll .si-filter-group:last-child { margin-bottom: 0; }
  html.cux .cux-scroll .cux-main { padding-top: 22px; margin-bottom: 18px; }
  html.cux .cux-scroll .group-title,
  html.cux .cux-scroll .sf-group-title,
  html.cux .cux-scroll .si-group-title { margin-bottom: 14px; }

  /* sheet footer: Show [N] results with the number in a pill, "Updates as you filter" under it */
  html.cux .somi-find-modal .modal-foot,
  html.cux .somi-find-modal.sf-filters-modal .sf-modal-foot,
  html.cux .si-modal-foot { row-gap: 8px; }
  html.cux .cux-live-note { order: 2; margin: 0; }
  html.cux .cux-relax-hint { margin: 0; }
  html.cux #modal-apply, html.cux #sf-modal-apply, html.cux #si-modal-apply { font-weight: 600; border-radius: 8px; }
  html.cux #modal-apply .cux-roll, html.cux #sf-modal-apply .cux-roll, html.cux #si-modal-apply .cux-roll {
    margin: 0 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 600;
  }

  /* homepage card: Show N results last, under Active filters (moved by placeHomeShow) */
  html.cux .somi-find:not(.sf-search-page) .sf-card > .sf-search-btn { order: 9; margin-top: 12px; border-radius: 8px; }
  html.cux .somi-find:not(.sf-search-page) .sf-search-btn .cux-roll { padding: 3px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
  html.cux .somi-find:not(.sf-search-page) .sf-chips:has(+ .sf-search-btn) { margin-bottom: 0; padding-bottom: 0; }

  /* empty results: plain card, grey icon, Reset all filters as a link */
  html.cux .search-propert-tab .no-results-state,
  html.cux .si-results-area .no-results-state { margin: 0; padding: 28px 20px; gap: 8px; background: var(--su-surface); border: 0; }
  html.cux .search-propert-tab .no-results-state-icon,
  html.cux .si-results-area .no-results-state-icon { width: 34px; height: 34px; margin: 0; background: none; color: var(--su-text-muted); }
  html.cux .search-propert-tab .no-results-state-icon svg,
  html.cux .si-results-area .no-results-state-icon svg { width: 34px; height: 34px; }
  html.cux .search-propert-tab .no-results-state h3,
  html.cux .si-results-area .no-results-state h3 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--su-text); }
  html.cux .search-propert-tab .no-results-state p,
  html.cux .si-results-area .no-results-state p { margin: 0; font-size: 13px; line-height: 1.45; text-align: center; color: var(--su-text-muted); }
  html.cux .no-results-state .cux-relax-list { margin: 4px auto 0; }
  html.cux .cux-relax-btn { font-weight: 500; }
  html.cux .search-propert-tab .no-results-state .btn-solid,
  html.cux .si-results-area .no-results-state .btn-solid {
    margin-top: 2px; padding: 6px; border: 0; background: none; color: var(--su-text-muted) !important;
    font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px;
  }
  html.cux .search-propert-tab .no-results-state .btn-solid:hover,
  html.cux .si-results-area .no-results-state .btn-solid:hover { background: none; color: var(--su-text) !important; }

  /* map: one card (Draw on the map row + map), controls on two rows so they never overlap */
  html.cux .search-propert-tab > .mapSearchContainer {
    margin-top: 0; background: var(--su-surface); border: 1px solid rgba(0,0,0,.04); border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); overflow: hidden;
  }
  html.cux .mapSearchContainer .mapHelpBox { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; }
  html.cux .mapSearchContainer .mapHelpBox .searchGroupsHeading { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--su-text); }
  html.cux .mapSearchContainer .mapHelpBox .searchGroupNumber { width: 22px; height: 22px; margin: 0; font-size: 12px; font-weight: 700; font-style: normal; line-height: 22px; }
  html.cux .mapSearchContainer .mapHelpBox .showMapHelpInfo { padding: 10px 0; font-size: 12.5px; color: var(--su-brand); text-decoration: underline; text-underline-offset: 3px; }
  html.cux .mapSearchContainer #propMapView { margin-bottom: 0; }
  .map-area-ctl { margin-top: 56px; }
}

/* ---------- patch 21.0: default pills, Save search, sticky bar ---------- */
/* default pills (For sale, All residential properties...) are not filters: the count names the Offering */
html.cux .cux-def { display: none !important; }
/* nothing set: no Active filters row at all (card and popup) */
html.cux .cux-nothing-set { display: none !important; }

/* Save search: saved state (filled heart, "Saved"), only after the save succeeds; scoped so the sidebar .is-saved icons keep their own rules */
html.cux #save-search-btn.is-saved svg path, html.cux #sf-save-search-btn.is-saved svg path, html.cux #sticky-bar-save.is-saved svg path { fill: currentColor; }
html.cux #save-search-btn.is-saved, html.cux #sf-save-search-btn.is-saved { background: var(--su-brand-soft); }

/* sticky bar Save search: phones only (desktop keeps the sidebar Save search, always in view) */
html.cux .sticky-bar-save { display: none; }
@media (max-width: 768px) {
  html.cux .sticky-bar-save {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--su-brand); border-radius: 8px;
    background: #fff; color: var(--su-brand); cursor: pointer;
  }
  html.cux .sticky-bar-save svg { width: 18px; height: 18px; }
  html.cux .sticky-bar-save .cux-save-lbl {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  html.cux .sticky-bar-save.is-saved { background: var(--su-brand-soft); }
  /* the count stacks ("24,991" over "FOR SALE") to make room for the heart */
  html.cux .sticky-bar-count {
    flex-direction: column; justify-content: center; align-items: center; gap: 1px;
    min-width: 78px; padding: 0 10px; line-height: 1.1;
  }
  html.cux .sticky-bar-count .sticky-bar-count-label { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  html.cux .sticky-bar-count.is-loading > .cux-upd, html.cux .sticky-bar-count.is-empty > .cux-none { font-size: 11px; }
}
