/*
 * search-v2.toolbar.css
 * Owner: task 03, docs/search-redesign/03-filter-toolbar/TASK.md
 * Every rule must start with body.search-v2.
 *
 * Desktop (>=1281px) structure, no DOM moves:
 *   .section__filters            flex column
 *     h1.seo-header              untouched (legacy font-size:0)
 *     .section__filters-links    order 1. Flex-wrap row of pills. position:relative and a
 *                                bottom padding that reserves the title row band.
 *       .sort-listing            absolute, bottom-right of the links box = right end of
 *                                the title row band.
 *     h3.default-title           order 2, pulled up into the reserved band with a
 *                                negative margin, padded right so it never runs under sort.
 *   Nothing between .section--city and .filters-city/.results-block is positioned
 *   (.section__filters-links is not an ancestor of either), so the
 *   jquery.custom.js:406 top calculation is unaffected.
 *
 * Visual pill order (flex order only): Type 1, Price 2, Beds/Baths 3, Style 4,
 * More Filters 5, Save search 6, Show map 7.
 *//* ------------------------------------------------------------------ *//* Desktop toolbar                                                     *//* ------------------------------------------------------------------ */@media screen and (min-width: 1281px){body.search-v2 .section__filters{display:flex;flex-direction:column;align-items:stretch;padding:0 0 var(--sv2-space-4)}/* Row 1: pills. Bottom padding = gap (24px) + title band (44px). */body.search-v2 .section__filters .section__filters-links,body.search-v2 .section--city.half .section__filters .section__filters-links{order:1;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;/* also when .no-title is set (style.css:3407) */gap:var(--sv2-space-3);width:100%;margin:0;padding:0 0 calc(var(--sv2-space-6) + var(--sv2-control-h));box-sizing:border-box}/* --- Filter pills (#listing-type, #price, #baths-beds, #style) and #more --- */body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view,body.search-v2 .section__filters-links .filters__tab.advanced-filters#more{position:relative;display:inline-block;box-sizing:border-box;width:auto;max-width:180px;height:var(--sv2-control-h);margin:0;padding:0 40px 0 var(--sv2-space-4);border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-pill);background:var(--sv2-color-surface);background-image:none;color:var(--sv2-color-text);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-regular);line-height:calc(var(--sv2-control-h) - 2px);letter-spacing:normal;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;user-select:none;transition:border-color var(--sv2-dur) var(--sv2-ease),color var(--sv2-dur) var(--sv2-ease),box-shadow var(--sv2-dur) var(--sv2-ease)}body.search-v2 .section__filters-links #listing-type{order:1}body.search-v2 .section__filters-links #price{order:2}body.search-v2 .section__filters-links #baths-beds{order:3}body.search-v2 .section__filters-links #style{order:4}body.search-v2 .section__filters-links #more{order:5}/* Caret (pseudo-element: JS rewrites these elements' text) */body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view::after{content:"";position:absolute;top:50%;right:var(--sv2-space-4);width:12px;height:12px;margin-top:-6px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4h8L6 9z'/%3E%3C/svg%3E") center/12px 12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4h8L6 9z'/%3E%3C/svg%3E") center/12px 12px no-repeat;pointer-events:none;transition:transform var(--sv2-dur) var(--sv2-ease)}body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view.selected::after{transform:rotate(180deg)}/* More Filters: sliders icon, no caret */body.search-v2 .section__filters-links .filters__tab.advanced-filters#more{padding:0 var(--sv2-space-4) 0 44px}body.search-v2 .section__filters-links .filters__tab.advanced-filters#more::before{content:"";position:absolute;top:50%;left:var(--sv2-space-4);width:18px;height:18px;margin-top:-9px;background-color:currentColor;-webkit-mask:url(../images/icons/advanced-filters.svg) center/18px 18px no-repeat;mask:url(../images/icons/advanced-filters.svg) center/18px 18px no-repeat;pointer-events:none}body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view:hover,body.search-v2 .section__filters-links .filters__tab.advanced-filters#more:hover{border-color:var(--sv2-color-text-muted)}body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view:focus-visible,body.search-v2 .section__filters-links .filters__tab.advanced-filters#more:focus-visible{outline:none;box-shadow:var(--sv2-shadow-focus)}/* Open/selected pill: 2px primary border look. Border width and padding stay
     untouched (the 2nd px is an inset shadow) so the pill never changes size
     at any breakpoint. */body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view.selected{border-color:var(--sv2-color-primary);color:var(--sv2-color-primary);box-shadow:inset 0 0 0 1px var(--sv2-color-primary),var(--sv2-shadow-focus)}/* --- Save search: primary filled pill. Visibility stays legacy:
         .save-search is display:none, .save-search-desktop.active is display:flex
         (style.css:5105/5117). No display set here. --- */body.search-v2 .section__filters-links .save-search.save-search-desktop{order:6;box-sizing:border-box;width:auto;min-width:136px;height:var(--sv2-control-h);margin:0;padding:0 var(--sv2-space-5);align-items:center;justify-content:center;border:1px solid var(--sv2-color-primary);border-radius:var(--sv2-radius-pill);background:var(--sv2-color-primary);color:var(--sv2-color-on-primary);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-semibold);line-height:1;letter-spacing:normal;white-space:nowrap;cursor:pointer;transition:background-color var(--sv2-dur) var(--sv2-ease),border-color var(--sv2-dur) var(--sv2-ease)}body.search-v2 .section__filters-links .save-search.save-search-desktop:hover{border-color:var(--sv2-color-primary-hover);background:var(--sv2-color-primary-hover)}body.search-v2 .section__filters-links .save-search.save-search-desktop:focus-visible{outline:none;box-shadow:var(--sv2-shadow-focus)}/* "SAVE SEARCH" -> "Save search". The <i class="fa"> is empty (FontAwesome is not
     loaded on this page); if it ever loads, the icon stays inline before the text. */body.search-v2 .section__filters-links .save-search.save-search-desktop > span{display:inline-block;text-transform:lowercase}body.search-v2 .section__filters-links .save-search.save-search-desktop > span::first-letter{text-transform:uppercase}/* Loader: JS checks css('display') === "block", so its display is not touched. */body.search-v2 .section__filters-links .save-search.save-search-desktop .ld-spin{margin:auto;color:var(--sv2-color-on-primary)}/* --- Show map (desktop, after CLOSE MAP). Visibility stays on .hide --- */body.search-v2 .section__filters-links .view-on-map{order:7;box-sizing:border-box;width:auto;height:var(--sv2-control-h);margin:0;padding:0 var(--sv2-space-5);border:1px solid var(--sv2-color-primary);border-radius:var(--sv2-radius-pill);background:var(--sv2-color-surface);color:var(--sv2-color-primary);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-semibold);line-height:calc(var(--sv2-control-h) - 2px);letter-spacing:normal;text-transform:lowercase;white-space:nowrap;cursor:pointer}body.search-v2 .section__filters-links .view-on-map::first-letter{text-transform:uppercase}body.search-v2 .section__filters-links .view-on-map:hover{background:var(--sv2-color-tint)}/* --- Row 2: title + sort --- */body.search-v2 .section__filters h3.default-title{order:2;box-sizing:border-box;min-height:var(--sv2-control-h);margin:calc(-1 * var(--sv2-control-h)) 0 0;padding:4px 220px 0 0;/* right: room for the absolutely placed sort */color:var(--sv2-color-text);font-family:var(--sv2-font-brand);font-size:var(--sv2-fs-2xl);font-weight:var(--sv2-fw-semibold);line-height:1.3;letter-spacing:normal;text-transform:none}body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view{position:absolute;right:0;bottom:0;display:flex;align-items:center;width:auto;min-width:0;height:var(--sv2-control-h);margin:0;padding:0;border:0;background:none;color:var(--sv2-color-text);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-regular);letter-spacing:normal;text-transform:none}body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view::before{content:"Sort:";margin-right:var(--sv2-space-1);color:var(--sv2-color-text)}/* Caret after the native select; clicks pass through to the select. */body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view::after{content:"";width:12px;height:12px;margin-left:-16px;background-color:var(--sv2-color-primary);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4h8L6 9z'/%3E%3C/svg%3E") center/12px 12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4h8L6 9z'/%3E%3C/svg%3E") center/12px 12px no-repeat;pointer-events:none}/* Native <select> kept. Sentence case isn't possible on a select (no
     ::first-letter) and capitalize leaves the uppercase copy as is, so the value
     is lowercased: "Sort: price high-low". field-sizing shrinks the select to the
     chosen value so the caret sits right after it (ignored where unsupported). */body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:auto;height:var(--sv2-control-h);margin:0;padding:0 20px 0 0;border:0;border-radius:var(--sv2-radius-sm);background:transparent;color:var(--sv2-color-primary);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-semibold);letter-spacing:normal;text-indent:0;text-transform:lowercase;field-sizing:content;cursor:pointer}body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view select:focus-visible{outline:none;box-shadow:var(--sv2-shadow-focus)}body.search-v2 .section__filters-links .filters__tab.sort-listing.desktop-view select option{color:var(--sv2-color-text);font-weight:var(--sv2-fw-regular)}}/* ------------------------------------------------------------------ *//* Mobile buttons (<=1280px): skin only. Layout and visibility stay    *//* legacy (.hide/.show/.mobile-view); layout polish is task 10.        *//* ------------------------------------------------------------------ */@media screen and (max-width: 1280px){body.search-v2 .section__filters-links .close-map-mobile,body.search-v2 .section__filters-links .view-on-map,body.search-v2 .section__filters-links .filter-listing.mobile-view{box-sizing:border-box;min-height:var(--sv2-control-h);padding:0 var(--sv2-space-3);border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-pill);background:var(--sv2-color-surface);color:var(--sv2-color-text);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-semibold);line-height:calc(var(--sv2-control-h) - 2px);letter-spacing:normal;text-align:center;text-transform:lowercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}body.search-v2 .section__filters-links .close-map-mobile::first-letter,body.search-v2 .section__filters-links .view-on-map::first-letter,body.search-v2 .section__filters-links .filter-listing.mobile-view::first-letter{text-transform:uppercase}/* "CLOSE FILTERS" state */body.search-v2 .section__filters-links .filter-listing.mobile-view.selected{border-color:var(--sv2-color-primary);color:var(--sv2-color-primary);box-shadow:inset 0 0 0 1px var(--sv2-color-primary)/* 2px look, no size change */}}/* ------------------------------------------------------------------ *//* Task 10: 1281-1440px tightening. The list column is 551-627px here,  *//* so the pills drop to 14px (like the header nav in this range,        *//* search-v2.layout.css) with 8px gaps and slimmer side padding. Default *//* text + Save search now fit one row at 1440, and More filters stays   *//* on row 1 at 1281. Long JS-written text still wraps (no extra clip).  *//* ------------------------------------------------------------------ */@media screen and (min-width: 1281px) and (max-width: 1440px){body.search-v2 .section__filters .section__filters-links,body.search-v2 .section--city.half .section__filters .section__filters-links{gap:var(--sv2-space-2)}body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view{padding:0 30px 0 var(--sv2-space-3);/* 12px caret + 6px air */font-size:var(--sv2-fs-sm)}body.search-v2 .section__filters-links .filters__tab.filter-listing.desktop-view::after{right:var(--sv2-space-3)}body.search-v2 .section__filters-links .filters__tab.advanced-filters#more{padding:0 var(--sv2-space-3) 0 36px;/* 18px icon + 6px air */font-size:var(--sv2-fs-sm)}body.search-v2 .section__filters-links .filters__tab.advanced-filters#more::before{left:var(--sv2-space-3)}body.search-v2 .section__filters-links .save-search.save-search-desktop{min-width:0;padding:0 14px;font-size:var(--sv2-fs-sm)}}/* ------------------------------------------------------------------ *//* Task 10: mobile toolbar row (<=1280px). 16px gutters to match the    *//* list, one row, 8px gap. The two toggles share the row and shrink     *//* (ellipsis) instead of scrolling, so no overflow clip on focus rings. *//* Which control shows stays legacy (.hide/.show/.mobile-view).         *//* ------------------------------------------------------------------ */@media screen and (max-width: 1280px){body.search-v2 .filters-block .section__filters{width:calc(100% - 2 * var(--sv2-space-4));/* overrides mediaqueries.css (fixed bar, 10px sides) */padding-left:var(--sv2-space-4);padding-right:var(--sv2-space-4)}body.search-v2 .filters-block .section__filters .section__filters-links{flex-wrap:nowrap;gap:var(--sv2-space-2);scrollbar-width:none}body.search-v2 .section__filters-links .close-map-mobile,body.search-v2 .section__filters-links .view-on-map,body.search-v2 .section__filters-links .filter-listing.mobile-view{flex:1 1 0;min-width:0;width:auto;margin-left:0;/* legacy 5px (mediaqueries.css:684); the row gap spaces them */margin-right:0}body.search-v2 .section__filters-links .close-map-mobile:focus-visible,body.search-v2 .section__filters-links .view-on-map:focus-visible,body.search-v2 .section__filters-links .filter-listing.mobile-view:focus-visible{outline:none;box-shadow:var(--sv2-shadow-focus)}}