/* Shared search controls; existing page layout and form values stay intact. */
:root{--dropdown-chevron-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/%3E%3C/svg%3E")}
.dropdown-chevron{display:block;width:16px;height:16px;flex:0 0 16px;color:inherit;transition:transform .16s ease}
.homely-select-arrow>.dropdown-chevron{width:16px;height:16px}
.cs-select{position:relative;display:block;min-width:0;width:100%;font-size:var(--cs-font-size,14px)}
.cs-select>.cs-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;opacity:0;clip-path:inset(50%);overflow:hidden;pointer-events:none;border:0!important}
.cs-select>.cs-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:var(--cs-height,44px);margin:0;padding:9px 12px;background:var(--cs-background,#fff);border:1px solid var(--cs-border,#dce4ee);border-radius:var(--cs-radius,8px);color:inherit;font:inherit;line-height:1.45;text-align:left;cursor:pointer;box-shadow:none}
.cs-select-value{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.cs-select-arrow{display:block;width:16px;height:16px;flex:0 0 16px;margin:0;padding:0;border:0;background:transparent;color:inherit;transform:none;opacity:.65;transition:transform .16s ease}
.cs-select.is-open .cs-select-arrow{transform:rotate(180deg)}
.cs-select>.cs-select-trigger:focus-visible,.cs-select.is-open>.cs-select-trigger{outline:2px solid #84b9ed;outline-offset:1px;border-color:#4a8acb}
.cs-select>.cs-select-trigger:disabled{background:#f3f5f8;color:#8692a2;cursor:not-allowed;opacity:.75}
.cs-select.is-invalid>.cs-select-trigger{border-color:#dc3545}
.cs-select-panel{position:fixed;z-index:1090;display:flex;flex-direction:column;max-height:var(--cs-panel-height,310px);min-height:90px;margin:0;padding:6px;background:#fff;color:#243b53;border:1px solid #dce5ef;border-radius:11px;box-shadow:0 12px 34px #16345326;font:400 13px/1.4 system-ui,sans-serif;box-sizing:border-box;text-align:left;overflow:hidden}
.cs-select-panel[hidden]{display:none!important}
.cs-select-search{flex-shrink:0;padding:3px 3px 7px}
.cs-select-panel .cs-select-query{display:block!important;width:100%;min-height:39px;height:39px;margin:0;padding:8px 11px;background:#f8fafc;color:#20354b;border:1px solid #e2e8f0;border-radius:7px;font:inherit;box-sizing:border-box;outline:none}
.cs-select-panel .cs-select-query:focus{border-color:#6ba6e0;box-shadow:0 0 0 2px #e9f3ff}
.cs-select-options{overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;touch-action:pan-y}
.cs-select-panel .cs-select-option{display:block;width:100%;min-height:37px;padding:9px 11px;border:0;border-radius:6px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.cs-select-panel .cs-select-option:hover,.cs-select-panel .cs-select-option.is-focused{background:#eef5fd;color:#075698}
.cs-select-panel .cs-select-option[aria-selected=true]{background:#e8f2ff;color:#074e8e;font-weight:650}
.cs-select-panel [aria-multiselectable=true] .cs-select-option{padding-left:33px;position:relative}
.cs-select-panel [aria-multiselectable=true] .cs-select-option::before{content:'';position:absolute;left:10px;top:12px;width:13px;height:13px;border:1px solid #b6c8da;border-radius:3px;background:#fff}
.cs-select-panel [aria-multiselectable=true] .cs-select-option[aria-selected=true]::before{content:'✓';color:#fff;border-color:#145f9e;background:#145f9e;font-size:10px;text-align:center;line-height:12px}
.cs-select-panel .cs-select-option:disabled{color:#a0aab7;background:#fafbfd;cursor:not-allowed}
.cs-select-group{padding:9px 11px 4px;color:#7b8b9d;font-size:10px;font-weight:750;letter-spacing:.6px;text-transform:uppercase}
.cs-select-empty{margin:8px;padding:10px;color:#7b8b9d;font:inherit}
.cs-select-panel [hidden]{display:none!important}
@media(max-width:767.98px){.cs-select-panel .cs-select-query{font-size:16px}.cs-select-panel .cs-select-option{min-height:43px;padding-top:12px;padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.cs-select-panel{scroll-behavior:auto}.dropdown-chevron,.cs-select-arrow{transition:none}}

.cs-select[hidden]{display:none!important}
