/* Shared tokens/components are in somi-shared.css (loaded first); only .somi-find-specific rules live here. */

.somi-find {
  box-sizing: border-box;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
}
.somi-find-modal.sf-filters-modal {
  font-family: var(--font-base);
  color: var(--sf-text); font-size: 14px;
}

/* Radios keep native rendering here; checkboxes use the canonical hand-drawn style
   from common-back-front.css -- just size + alignment reset here. */
.somi-find input[type="radio"],
.somi-find-modal.sf-filters-modal input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--sf-brand);
  width: 16px; height: 16px; min-width: 16px;
  border: none;
  background-color: transparent !important;
  position: static; left: auto;
  margin: 0; vertical-align: middle;
}
.somi-find input[type="radio"]:checked,
.somi-find-modal.sf-filters-modal input[type="radio"]:checked { background-color: transparent !important; }
.somi-find input[type="checkbox"],
.somi-find-modal.sf-filters-modal input[type="checkbox"] {
  position: static; left: auto; margin: 0; vertical-align: middle;
}

.home_search_container { padding: 30px 0px 37px; background: var(--lgray-f5);}
.somi-find .sf-section { width:100%; }
.somi-find .sf-inner   { max-width: 1400px; margin: 0 auto; }
.home_search_container .sf-header   { text-align: center; margin-bottom: 32px; }
/* .sf-header sits outside .somi-find (sibling in index.php, not a descendant), so the
   --sf-* aliases scoped to .somi-find don't inherit here -- use the global --su-* tokens. */
.home_search_container .sf-header .sf-eyebrow {
  display: inline-block; background: var(--su-brand-soft); color: var(--su-brand);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 14px;
}
.home_search_container .sf-header .sf-eyebrow-break { display: none; }
.home_search_container .sf-header h2 { font-size: clamp(24px, 6vw, 32px); font-weight:600; letter-spacing:0.64px; margin:0 0 8px; }
.home_search_container .sf-header p  { font-size: 15px; color: var(--su-text-muted); margin: 0 auto; max-width: 640px; line-height: 1.55; max-width: 1080px; padding: 0px 20px; text-wrap: balance; }
.home_search_container .sf-header .sf-stat-line { color: var(--su-brand); font-weight: 600; margin-top: 14px; }
.home_search_container .sf-header .sf-stat-line:empty { display: none; }

/* Tab grid auto-fits so the row always fills full width regardless of tab count */
.somi-find .sf-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.somi-find .sf-tab-label-short { display: none; }
.somi-find .sf-tab-label-full  { display: inline; }
.somi-find .sf-tab {
  padding: 24px 14px; text-align: center;
  font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--sf-tab-inactive); color: var(--sf-text);
  border: none; border-radius: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 118px;
  transition: background 0.15s ease, color 0.15s ease; line-height: 1.2;
}
.somi-find .sf-tab:first-child { border-radius: 18px 0 0 0; }
.somi-find .sf-tab:last-child  { border-radius: 0 18px 0 0; }
.somi-find .sf-tab:hover  { background: var(--sf-tab-hover); }
.somi-find .sf-tab.active { background: var(--sf-brand); color: #fff; }
.somi-find .sf-tab svg { width:46px; height:46px; color:var(--sf-text); fill:none; transition:color 0.15s ease; flex-shrink:0; }
.somi-find .sf-tab.active svg { color: #fff; }
.somi-find .sf-tab-tagline { font-size: 11px; font-weight: 400; letter-spacing: normal; text-transform: none; margin-top: -6px; opacity: 0.85; }
.somi-find .sf-tab.active .sf-tab-tagline { opacity: 0.95; }

/* Dismissible "pick an asset class..." hint band */
.somi-find .sf-how-it-works {
  position: relative; margin: 0; padding: 10px 44px; text-align: center;
  font-size: 12.5px; color: var(--sf-text-muted); background: var(--sf-brand-soft);
  border-bottom: 1px solid var(--sf-border);
  text-wrap: balance; /* even line lengths, no 1-2 word orphan line */
}
.search_tip_container { background: #fff; }
.somi-find .sf-how-it-works strong { color: var(--sf-brand); }
.somi-find .sf-how-it-works.hidden { display: none; }
.somi-find .sf-hiw-dismiss {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--sf-text-muted); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 6px;
}
.somi-find .sf-hiw-dismiss:hover { color: var(--sf-brand); }

/* border-top removed so card connects visually to tab row above */
.somi-find .sf-card {
  border-top: none;
  padding: 28px;
}

/* Floating-card shell, same treatment on every page that uses this widget (homepage AND
   search-page mode -- property-search.php, mapsearch.php, etc.), matching SI's .si-search-shell
   which was never mode-split to begin with. Was previously scoped to :not(.sf-search-page) only,
   leaving search-page mode on the old flat/shadowless look -- same recurring class of bug as the
   .sf-more-btn fix noted above (homepage-only fix never propagated to search-page mode).
   The shadow lives once on .sf-search-card (wraps tabs+hint-band+card) so it stays continuous
   regardless of what renders between them -- .sf-tabs/.sf-card below keep only their own
   corner clipping, not a shadow of their own (box-shadow:none is explicit since .sf-card is
   also targeted by a shared rule in somi-shared.css that would otherwise silently reapply). */
.somi-find .sf-search-card {
  box-shadow: var(--sf-shadow-card);
  border-radius: var(--sf-radius-card);
}
.somi-find .sf-tabs {
  gap: 6px;
  box-shadow: none;
  border-radius: var(--sf-radius-card) var(--sf-radius-card) 0 0;
}
.somi-find .sf-tab:first-child { border-radius: var(--sf-radius-card) 0 0 0; }
.somi-find .sf-tab:last-child  { border-radius: 0 var(--sf-radius-card) 0 0; }

.somi-find .sf-card {
  border: none;
  border-radius: 0 0 var(--sf-radius-card) var(--sf-radius-card);
  box-shadow: none;
}

.somi-find .sf-chips {
  margin: 18px 0 0 0;
  padding: 16px 0 0 0;
  background: transparent;
  border-radius: 0;
}

.somi-find .sf-footer-bar { border-top: none; }

@media (max-width: 768px) {
  .somi-find .sf-tabs { gap: 4px; }
  .somi-find .sf-search-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06); }
}

/* Zero-state banner reuses the canonical .no-results-state component (css/master.css);
   only the properties below differ, so it reads as a matching pair with .sf-search-card
   above it instead of that component's plain gray fill. */
.somi-find .sf-empty-state.no-results-state {
  display: none;
  margin-top: 18px;
  background: var(--sf-surface);
  border: none;
  box-shadow: var(--sf-shadow-card);
  border-radius: var(--sf-radius-card);
  padding: 20px 24px;
}
.somi-find .sf-empty-state.no-results-state .no-results-state-icon { margin-bottom: 8px; }
.somi-find .sf-empty-state.no-results-state h3 { margin-bottom: 4px; }
.somi-find .sf-empty-state.no-results-state p { margin-bottom: 10px; }

/* row-1 columns: offering | property-type | search input */
.somi-find .sf-row-1 { grid-template-columns: 1fr 1.4fr 2fr; }

/* row-2: 5 filter pill columns */
.somi-find .sf-row-2 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.somi-find .sf-row-subtype {
  display: none; grid-template-columns: 1fr; margin-bottom: 0;
  /* @keyframes suDropIn defined in somi-shared.css */
  -webkit-animation: suDropIn 0.2s ease-out;
          animation: suDropIn 0.2s ease-out;
}
.somi-find .sf-row-subtype.show { display: grid; margin-bottom: 16px; }
/* Prevent Bootstrap's .show anchor styles from interfering */
.somi-find .show { padding: 0; margin: 0; }
.somi-find .show:hover { text-decoration: none; }

.somi-find .sf-save-search-btn {
  height: 48px; padding: 0 20px 0 18px;
  font-size: 14px; font-weight: 700;
  color: var(--front_btn_secondary_text, #a00a0f); background: var(--front_btn_secondary_bg, #ffffff);
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.somi-find .sf-save-search-btn: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); }
.somi-find .sf-save-search-btn .icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: block; align-self: center; vertical-align: middle;
}

.somi-find .sf-more-btn {
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--front_btn_secondary_text, #a00a0f); background: var(--front_btn_secondary_bg, #ffffff);
  border: 1.5px solid var(--front_btn_secondary_border, #a00a0f);
  min-height: 48px;
}
/* v29 mockup: always red-bordered/red-text/white-bg, not just on
   .has-filters -- was previously only applied on the homepage widget
   (:not(.sf-search-page)), leaving property-search.php/mapsearch.php
   stuck on this rule's old gray/bordered default. */
.somi-find .sf-more-btn: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); }
.somi-find .sf-more-btn .more-filters-icon {
  fill: none;
  transition: fill 0.15s ease, -webkit-transform 0.3s ease, transform 0.3s ease;
}
.somi-find .sf-more-btn.has-filters .more-filters-icon { fill: currentColor; }
.somi-find .sf-more-btn.has-filters:hover .more-filters-icon { -webkit-transform: scale(1.3); transform: scale(1.3); }
.somi-find .sf-more-btn .sf-hint {
  font-size: 11px; font-weight: 400; color: var(--sf-text-muted);
  margin-left: 4px;
}
.somi-find .sf-more-btn.has-filters {
  background: var(--sf-brand-soft);
  border-color: var(--front_btn_secondary_border, #a00a0f);
  color: var(--front_btn_secondary_text, #a00a0f);
}
.somi-find .sf-more-btn.has-filters:hover {
  background: var(--sf-brand-soft);
  border-color: var(--front_btn_secondary_border, #a00a0f);
}

/* Clear All now sits next to More Filters (own footer-bar child, not inside
   .sf-actions) -- margin-left:auto on .sf-actions claims the row's remaining
   space so Save Search/View stay pinned to the right as their own group. */
.somi-find .sf-actions { margin-left: auto; }

/* Text-darkness pass: field labels/active-filters label read lighter than
   real values at the old 0.08em tracking; "Any" placeholder matched to the
   same muted gray used for real values instead of a lighter dedicated tone. */
.somi-find .sf-field-label { letter-spacing: 0.6px; }
.somi-find .sf-dd-trigger.sf-placeholder { color: var(--sf-text-muted); }
.somi-find .sf-chips .sf-chips-label { font-weight: 600; letter-spacing: 0.88px; }

/* Search pages keep a smaller/dimmer "results" suffix; homepage matches it to the
   button's own "View" text style instead (no override needed -- see below). */
.somi-find.sf-search-page .sf-search-btn .sf-count-suffix {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; opacity: 0.85;
}

/* @keyframes suChipIn defined in somi-shared.css */
.somi-find .sf-chip {
  border: 1px solid rgba(160, 10, 15, 0.28);
  -webkit-animation: suChipIn 180ms ease-out;
  animation: suChipIn 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .somi-find .sf-chip { -webkit-animation: none; animation: none; }
}

.somi-find-modal.sf-filters-modal .sf-modal-foot-right {
  display: inline-flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.somi-find-modal.sf-filters-modal .sf-modal-foot-right > * { height: 48px; box-sizing: border-box; }
.somi-find-modal.sf-filters-modal .sf-modal-foot .sf-modal-clear { box-sizing: border-box; }

.somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear {
  height: auto; min-height: 36px;
  padding: 6px 4px;
  font-size: 14px; font-weight: 500; letter-spacing: normal;
  text-transform: none;
  color: var(--sf-text-muted); background: transparent;
  border: none; border-radius: 0;
  gap: 6px;
  text-decoration: none;
  text-underline-offset: 3px;
}
.somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear:hover {
  color: var(--sf-text); background: transparent;
  text-decoration: underline;
}

/* .sf-modal-count removed -- View button is now the single count source */
.somi-find-modal.sf-filters-modal .sf-group-title {
  font-size: 13px;
  color: var(--sf-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--sf-group-bg);
  padding: 11px 14px;
  border-radius: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.somi-find-modal.sf-filters-modal .sf-group-title-text { flex: 1; }
.somi-find-modal.sf-filters-modal .sf-group-title-count {
  display: none;
  background: var(--sf-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.sf-filters-modal .sf-group-title-count.is-visible { display: inline-flex; }

.somi-find-modal.sf-filters-modal .sf-modal-foot {
  transition: box-shadow 0.15s ease;
}
.somi-find-modal.sf-filters-modal .sf-modal-foot.is-scrolled {
  box-shadow: 0 -8px 16px -8px rgba(0,0,0,0.10);
}









.somi-find .sf-match-count { font-size: 13px; color: var(--sf-text-muted); margin-top: 14px; text-align: center; }
.somi-find .sf-match-count strong { color: var(--sf-text); font-weight: 600; }

.somi-find-modal.sf-filters-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: 1050; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
.somi-find-modal.sf-filters-modal.open {
  display: flex;
  opacity: 1;
}
/* @keyframes suModalIn defined in somi-shared.css */
.somi-find-modal.sf-filters-modal.open .sf-modal-wrap {
  -webkit-animation: suModalIn 0.22s ease-out;
  animation: suModalIn 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .somi-find-modal.sf-filters-modal { transition: none; }
  .somi-find-modal.sf-filters-modal.open .sf-modal-wrap { -webkit-animation: none; animation: none; }
}
.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-find-modal.sf-filters-modal button { font-family: inherit; cursor: pointer; }

/* Bootstrap's .modal class overrides position:fixed+inset:0; restore normal flow here */
.somi-find-modal.sf-filters-modal .sf-modal-wrap {
  position: relative; top: auto; right: auto; bottom: auto; left: auto;
}



.somi-find-modal.sf-filters-modal .sf-modal-pill {
  color: #fff; white-space: nowrap;
}

/* Note: this modal's clear link is .sf-modal-clear, not .sf-clear-link */
.somi-find-modal.sf-filters-modal .sf-modal-clear {
  font-size: 14px; color: var(--sf-text-muted);
  background: transparent; border: none; cursor: pointer; padding: 8px 4px;
}
.somi-find-modal.sf-filters-modal .sf-modal-clear:hover { color: var(--sf-text); text-decoration: underline; }





@media (max-width: 1024px) {
  .home_search_container { padding: 44px 0 52px; }
  .somi-find .sf-row-1 { grid-template-columns: 1fr 1fr; }
  .somi-find .sf-row-1 .sf-field:nth-child(3) { grid-column: 1 / -1; }
  .somi-find .sf-row-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .somi-find .sf-tab   { padding: 18px 10px; min-height: 100px; }
  .somi-find .sf-tab svg { width: 36px; height: 36px; }
}
@media (max-width: 768px) {
  .home_search_container { padding: 28px 0 40px; }
  .home_search_container .sf-header h2 { font-size: 26px; }
  .somi-find .sf-tabs { gap: 3px; }
  .somi-find .sf-tab  { padding: 14px 6px; min-height: 88px; font-size: 11px; letter-spacing: 0.04em; gap: 8px; -webkit-tap-highlight-color: transparent; }
  .somi-find .sf-tab:first-child { border-radius: 12px 0 0 0; }
  .somi-find .sf-tab:last-child  { border-radius: 0 12px 0 0; }
  .somi-find .sf-tab-label-full  { display: none; }
  .somi-find .sf-tab-label-short { display: inline; }
  .somi-find .sf-tab-tagline { display: none; }
  .somi-find .sf-how-it-works { padding: 8px 34px; font-size: 11.5px; }
  .somi-find .sf-how-it-works .sf-hiw-dismiss { right: 6px; }
  /* Card becomes a flex column so ordering works */
  .somi-find .sf-card { padding: 16px 15px; display: flex; flex-direction: column; gap: 14px; }
  .somi-find .sf-chips { margin: 18px -14px -20px -14px; padding: 12px 14px; }
  .somi-find .sf-row-1 .sf-field:nth-child(1) { order: 1; }
  .somi-find .sf-row-subtype { order: 3; margin-bottom: 0 !important; }
  .somi-find .sf-row-2  { order: 5; grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
  .somi-find .sf-footer-bar  { order: 6; }
  .somi-find .sf-match-count { order: 7; }
  .somi-find .sf-footer-bar { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; }
  .somi-find .sf-more-btn   { width: 100%; }
  .somi-find .sf-actions    { flex-direction: column; }
  .somi-find .sf-search-btn { width: 100%; padding: 0 16px; min-height: 48px; }
  .somi-find .sf-save-search-btn { width: 100%; min-height: 48px; }

  .somi-find:not(.sf-search-page) .sf-search-btn { gap: 6px; }
  .somi-find.sf-search-page .sf-actions { width: 100%; margin-left: 0; }
  .somi-find .sf-dd-panel   { min-width: auto; }
  .somi-find .sf-dd-panel.wide { width: 100%; max-width: 100%; }
  .somi-find-modal.sf-filters-modal           { padding: 0; align-items: stretch; }
  .somi-find-modal.sf-filters-modal .sf-modal-wrap { max-width: 100%; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0; }
  .somi-find-modal.sf-filters-modal .sf-modal-body { padding: 16px; }
  .somi-find-modal.sf-filters-modal .sf-modal-row.cols-2 { grid-template-columns: 1fr; }
  .somi-find-modal.sf-filters-modal .sf-checkbox-row { grid-template-columns: 1fr; }
  /* iOS Safari: bump inputs to 16px to prevent auto-zoom on focus */
  .somi-find .sf-search-wrap input,
  .somi-find .sf-range-input,
  .somi-find .sf-inline-range-input,
  .somi-find .sf-dd-trigger { font-size: 16px; }
  .somi-find-modal.sf-filters-modal .sf-modal-foot {
    gap: 10px;
  }
  .somi-find-modal.sf-filters-modal.open .sf-modal-wrap {
    -webkit-animation: suModalInMobile 0.22s ease-out;
    animation: suModalInMobile 0.22s ease-out;
  }
  .somi-find-modal.sf-filters-modal .sf-modal-clear {
    width: 100%; height: auto; min-height: 44px;
    padding: 10px 12px;
    text-align: center; order: 3;
    border: none; background: transparent;
  }
  .somi-find-modal.sf-filters-modal .sf-modal-foot-right { grid-template-columns: 1fr; gap: 10px; }
  .somi-find-modal.sf-filters-modal .sf-btn-pri, .somi-find-modal.sf-filters-modal .sf-btn-sec { width: 100%; height: 48px; font-size: 14px; }
}
@media (max-width: 480px) {
  /* v10c-edge: tightened to match somi-residential-search-prototype-v27's
     mobile vertical rhythm (top/bottom only -- horizontal is already 0 at
     every width here via Bootstrap's own .container, not this rule). */
  .home_search_container { padding: 20px 0 30px; }
  .home_search_container .sf-header h2 { font-size: 22px; }
  .home_search_container .sf-header { margin-bottom: 20px; }
  .home_search_container .sf-header .sf-eyebrow-break { display: block; }
  .home_search_container .sf-header .sf-eyebrow { text-align: center; }
  .somi-find .sf-tab  { padding: 12px 4px; min-height: 80px; }
  .somi-find .sf-chips { margin: 16px -10px -16px -10px; padding: 12px 10px; }
  .somi-find .sf-empty-state.no-results-state { padding: 16px 16px; }
  .somi-find .sf-empty-state.no-results-state .no-results-state-icon { width: 48px; height: 48px; }
  .somi-find .sf-empty-state.no-results-state .no-results-state-icon svg { width: 22px; height: 22px; }
  .somi-find .sf-empty-state.no-results-state h3 { font-size: 16px; }
  .somi-find .sf-empty-state.no-results-state p { font-size: 13px; }
  .somi-find .sf-empty-state.no-results-state .btn-solid { width: 100%; }
  .somi-find .sf-row-2 { grid-template-columns: 1fr; }
  .somi-find-modal.sf-filters-modal .sf-group-title { font-size: 12px; padding: 10px 12px; }
  .somi-find-modal.sf-filters-modal .sf-filter-group { margin-bottom: 16px; }
  .somi-find-modal.sf-filters-modal .sf-checkbox-row label { padding: 10px 12px; font-size: 13px; }
  .somi-find-modal.sf-filters-modal .sf-btnrow { grid-template-columns: repeat(3, 1fr); }
  .somi-find-modal.sf-filters-modal .sf-btnrow.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .somi-find-modal.sf-filters-modal .sf-inline-range { grid-template-columns: 1fr; gap: 8px; }
  .somi-find-modal.sf-filters-modal .sf-inline-range .sf-range-sep { display: none; }
  .somi-find .sf-range-inputs { grid-template-columns: 1fr; gap: 8px; }
  .somi-find .sf-range-sep { display: none; }
  .somi-find-modal.sf-filters-modal .sf-modal-head-title { flex-wrap: wrap; gap: 8px; }
  .somi-find .sf-more-btn .sf-badge { display: none; }
  .somi-find:not(.sf-search-page) .sf-search-btn { padding: 0 12px; gap: 5px; }
}
@media (max-width: 380px) {
  /* v10c-edge xs: same pattern as 480px, one size down (iPhone SE). */
  .home_search_container { padding: 16px 0 24px; }
  .somi-find .sf-tab { padding: 10px 3px; min-height: 72px; gap: 6px; }
  .home_search_container .sf-header h2 { font-size: 20px; }
  .somi-find .sf-dd-trigger { font-size: 13px; padding: 0 12px; }
  .somi-find .sf-chips { margin: 14px -8px -14px -8px; padding: 10px 8px; }
  .somi-find-modal.sf-filters-modal .sf-btnrow-btn { font-size: 12px; padding: 9px 4px; }
  .somi-find .sf-match-count { font-size: 12px; }
  .home_search_container .sf-header .sf-stat-line { font-size: 12.5px; }
}

@media (hover: none) and (pointer: coarse) {
  .somi-find .sf-chip .sf-x { width: 32px; height: 32px; }
  .somi-find .sf-chip .sf-x svg { width: 14px; height: 14px; }
  .somi-find .sf-search-clear { width: 36px; height: 36px; }
  .somi-find .sf-search-clear svg { width: 18px; height: 18px; }
}

/* Mirrors SS .save-with-count in property-search.php -- keep in sync */
.somi-find .sf-save-with-count {
  height: 48px; box-sizing: border-box;
  border-radius: var(--sf-radius);
}
.somi-find .sf-save-with-count .sf-save-search-btn {
  border-right: none;
}
.somi-find .sf-count-num {
  letter-spacing: 0.01em;
}
@media (prefers-reduced-motion: reduce) {
  .somi-find .sf-count-badge.is-pulsing { -webkit-animation: none; animation: none; }
}
@media (max-width: 768px) {
  .somi-find .sf-save-with-count { width: 100%; }
  .somi-find .sf-save-with-count .sf-save-search-btn { height: 48px; }
  .somi-find .sf-count-num { font-size: 17px; }
}


/* Separate from the .sf-count-badge pulse above -- this targets the small count pill inside the search button */
.somi-find .sf-search-btn .sf-count.is-pulsing {
  -webkit-animation: sfCountPulse 380ms ease-out;
  animation: sfCountPulse 380ms ease-out;
  display: inline-block; /* needed for transform on <span> */
}
@-webkit-keyframes sfCountPulse {
  0%   { -webkit-transform: scale(1);    background: rgba(255, 255, 255, 0.18); }
  40%  { -webkit-transform: scale(1.25); background: rgba(255, 255, 255, 0.50); }
  100% { -webkit-transform: scale(1);    background: rgba(255, 255, 255, 0.18); }
}
@keyframes sfCountPulse {
  0%   { transform: scale(1);    background: rgba(255, 255, 255, 0.18); }
  40%  { transform: scale(1.25); background: rgba(255, 255, 255, 0.50); }
  100% { transform: scale(1);    background: rgba(255, 255, 255, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .somi-find .sf-search-btn .sf-count.is-pulsing { -webkit-animation: none; animation: none; }
}

.somi-find .sf-more-btn, .somi-find .sf-save-search-btn,
.somi-find-modal.sf-filters-modal .sf-btn-pri, .somi-find-modal.sf-filters-modal .sf-btn-sec,
.somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear {
  transition: background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, -webkit-transform 0.08s ease,
              transform 0.08s ease;
}
.somi-find .sf-more-btn:active, .somi-find .sf-save-search-btn:active,
.somi-find-modal.sf-filters-modal .sf-btn-pri:active, .somi-find-modal.sf-filters-modal .sf-btn-sec:active,
.somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear:active {
  -webkit-transform: scale(0.97); transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .somi-find .sf-more-btn:active, .somi-find .sf-save-search-btn:active, .somi-find .sf-clear-link:active,
  .somi-find-modal.sf-filters-modal .sf-btn-pri:active, .somi-find-modal.sf-filters-modal .sf-btn-sec:active,
  .somi-find-modal.sf-filters-modal .sf-modal-foot > .sf-modal-clear:active {
    -webkit-transform: none; transform: none;
  }
}
