/*
 * search-v2.layout.css
 * Owner: task 02, docs/search-redesign/02-page-layout-header/TASK.md
 * Every rule must start with body.search-v2. Colors only through var(--sv2-*).
 *
 * Desktop (>=1281px), map open (.section--city.half):
 *   .section--city is a 2-column grid. .section__content is display:contents so
 *   its children (#ai-bar, .filters-block, .map-city, .results-block) and the SEO
 *   blocks after it (.seo-links, .seo-faq) all become grid items:
 *
 *     col 1 (list pane, --sv2-list-pane-w)   | col 2 (map pane, 1fr)
 *     row 1  #ai-bar                         | .map-city (rows 1 / -1,
 *     row 2  .filters-block                  |   position: sticky,
 *     row 3  .results-block                  |   top: header height,
 *     row 4  .seo-links                      |   height: 100vh - header)
 *     row 5  .seo-faq            (1fr row)   |
 *
 *   The page (viewport) stays the scroller, as in the legacy layout, so
 *   jquery.lazy and the .filters-city top calculation keep working. No element
 *   between .section--city and .filters-city/.results-block is positioned, so
 *   .section--city stays the offsetParent of both (jquery.custom.js:406).
 *
 * Map closed (no .half): legacy block flow, full-width list. .map-city stays
 * position:fixed off-screen (legacy left:-100%) at the SAME size as the open map
 * pane, so the mapbox canvas never changes size when toggled.
 *//* ------------------------------------------------------------------ *//* Header (shared partial, restyled only under body.search-v2)         *//* ------------------------------------------------------------------ */body.search-v2 .header.header--page{background-color:var(--sv2-color-surface);border-bottom:1px solid var(--sv2-color-border)}@media screen and (min-width: 1281px){body.search-v2 .header--page .header__content{width:auto;height:var(--sv2-header-h);padding:0 var(--sv2-space-7);justify-content:flex-start;gap:var(--sv2-space-6)}body.search-v2 .header--page .header__logo{flex:0 0 auto}/* Location search field */body.search-v2 .header--page .search-form__input_header{flex:0 1 560px;min-width:160px;max-width:560px;min-height:48px;box-sizing:border-box;margin-right:auto;padding:0 var(--sv2-space-4) 0 44px;align-items:center;flex-wrap:nowrap;background-color:var(--sv2-color-surface);background-image:url(../images/icons/search.svg);background-repeat:no-repeat;background-position:18px 50%;background-size:16px 16px;border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-pill);transition:border-color var(--sv2-dur) var(--sv2-ease),box-shadow var(--sv2-dur) var(--sv2-ease)}body.search-v2 .header--page .search-form__input_header:focus-within{border-color:var(--sv2-color-primary);box-shadow:var(--sv2-shadow-focus)}body.search-v2 .header--page .search-form__input_header .search-input{flex:1 1 80px;width:auto;min-width:80px;height:46px;padding:0;border:0;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);color:var(--sv2-color-text);letter-spacing:normal}/* The ring is drawn on the whole field via :focus-within above. */body.search-v2 .header--page .search-form__input_header .search-input:focus-visible{box-shadow:none}body.search-v2 .header--page .search-form__input_header .search-input::placeholder{color:var(--sv2-color-text-subtle);opacity:1}/* Location tags: #tags display is toggled by JS (show/hide), so only its
     size is set here; the chips themselves are inline-flex. */body.search-v2 .header--page .search-form__input_header .filter-tags{flex:0 1 auto;min-width:0;max-width:70%;padding:var(--sv2-space-1) 0;line-height:1}body.search-v2 .header--page .search-form__input_header .tag_list{display:inline-flex;align-items:center;gap:var(--sv2-space-2);max-width:100%;box-sizing:border-box;height:28px;margin:2px var(--sv2-space-2) 2px 0;padding:0 var(--sv2-space-3);background-color:var(--sv2-color-tint);color:var(--sv2-color-primary);border-radius:var(--sv2-radius-pill);font-size:var(--sv2-fs-sm);line-height:28px;vertical-align:middle}body.search-v2 .header--page .search-form__input_header .tag_list span{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-semibold);letter-spacing:normal;text-transform:capitalize}body.search-v2 .header--page .search-form__input_header .tag_list .remove{color:var(--sv2-color-primary);font-size:var(--sv2-fs-xs);text-decoration:none}/* Spinner: centre it vertically in the 48px field (display stays JS-owned). */body.search-v2 .header--page .search-form__input_header .loader-block{top:50%;right:var(--sv2-space-3);margin-top:-15px}/* Nav (partial/nav.html, CSS only) */body.search-v2 .header--page .header__menu{flex:0 0 auto;padding:0;white-space:nowrap}body.search-v2 .header--page .header__menu > ul > li{padding:0 var(--sv2-space-3);font-size:var(--sv2-fs-md)}/* Caret: drawn inline right after the label (a::after), not as the li's
     background at its far right edge, where it sat closer to the next item
     than to its own label and off-centre vertically. */body.search-v2 .header--page .header__menu > ul > li.menu-item-has-children{margin-right:0;padding:26px var(--sv2-space-3);background-image:none}body.search-v2 .header--page .header__menu > ul > li.menu-item-has-children > a::after{content:"";display:inline-block;width:9px;height:5px;margin-left:6px;vertical-align:middle;position:relative;top:-1px;/* optical centre between x-height and caps */background-color:currentColor;-webkit-mask:url(../images/icons/menu-arrow-black.svg) center/9px 5px no-repeat;mask:url(../images/icons/menu-arrow-black.svg) center/9px 5px no-repeat}body.search-v2 .header--page .header__menu > ul > li > a{display:inline-block;vertical-align:middle;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-regular);letter-spacing:normal;line-height:var(--sv2-lh);color:var(--sv2-color-text);text-transform:lowercase}body.search-v2 .header--page .header__menu > ul > li > a::first-letter{text-transform:uppercase}body.search-v2 .header--page .header__menu > ul > li > a:hover,body.search-v2 .header--page .header__menu > ul > li.selected > a{color:var(--sv2-color-primary)}body.search-v2 .header--page .header__menu > ul > li.divider{margin:0 var(--sv2-space-2);padding:0;border-left-color:var(--sv2-color-border)}/* Nav dropdowns */body.search-v2 .header--page .header__menu ul li ul{padding:var(--sv2-space-2) 0;background-color:var(--sv2-color-surface);border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-md);box-shadow:var(--sv2-shadow-lg)}body.search-v2 .header--page .header__menu ul li ul li a{margin:0;padding:10px var(--sv2-space-4);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-sm);letter-spacing:normal;color:var(--sv2-color-text);border-bottom-color:var(--sv2-color-border-subtle);text-transform:lowercase}body.search-v2 .header--page .header__menu ul li ul li a::first-letter{text-transform:uppercase}body.search-v2 .header--page .header__menu ul li ul li a:hover{background-color:var(--sv2-color-tint);color:var(--sv2-color-primary)}}/* 1281-1440px: nav at 14px so logo + field + nav fit on one row when the
   logged-in nav (ADD PHONE + MY ACCOUNT) is shown. */@media screen and (min-width: 1281px) and (max-width: 1440px){body.search-v2 .header--page .header__menu > ul > li,body.search-v2 .header--page .header__menu > ul > li > a{font-size:var(--sv2-fs-sm)}body.search-v2 .header--page .header__menu > ul > li{padding:0 var(--sv2-space-2)}body.search-v2 .header--page .header__menu > ul > li.menu-item-has-children{padding:26px var(--sv2-space-2)}}/* ------------------------------------------------------------------ *//* Location autocomplete (jQuery UI, appended to body)                 *//* Width and left are set by JS (search.js:950-963): not touched.      *//* ------------------------------------------------------------------ */body.search-v2 .ui-autocomplete{padding:var(--sv2-space-2) 0;background-color:var(--sv2-color-surface);border:1px solid var(--sv2-color-border) !important;/* overrides style.css:536 */border-radius:var(--sv2-radius-md);box-shadow:var(--sv2-shadow-lg) !important;/* overrides style.css:542 */font-family:var(--sv2-font-ui);overflow-x:hidden}body.search-v2 .ui-autocomplete > li.ui-menu-item{min-height:var(--sv2-control-h);padding:0;font-size:var(--sv2-fs-sm);color:var(--sv2-color-text);border-bottom:0}body.search-v2 .ui-autocomplete > li.listings-list{border-bottom:1px solid var(--sv2-color-border-subtle) !important/* overrides style.css:3030 */}body.search-v2 .ui-autocomplete .border-after{border-bottom-color:var(--sv2-color-border-subtle) !important/* overrides style.css:3060 */}/* Group headings ("Popular places", "Recent searches", "Listings", ...) */body.search-v2 .ui-autocomplete > li.ui-autocomplete-category{min-height:0;padding:var(--sv2-space-3) var(--sv2-space-4) var(--sv2-space-1);border-bottom:0;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xs);font-weight:var(--sv2-fw-semibold);letter-spacing:0.02em;text-transform:uppercase;color:var(--sv2-color-text-muted);cursor:default}body.search-v2 .ui-autocomplete .property-listing{min-height:var(--sv2-control-h);margin:0;padding:0 var(--sv2-space-4);border:0;font-size:var(--sv2-fs-sm) !important;/* overrides style.css:3036 */letter-spacing:normal !important;/* overrides style.css:3037 */color:var(--sv2-color-text);text-transform:none}body.search-v2 .ui-autocomplete > li.ui-menu-item:hover,body.search-v2 .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,body.search-v2 .ui-autocomplete .ui-state-focus{background-color:var(--sv2-color-tint);color:var(--sv2-color-text);border-color:transparent;font-weight:inherit}body.search-v2 .ui-autocomplete > li.ui-autocomplete-category:hover{background-color:transparent}body.search-v2 .ui-autocomplete .property-listing:hover{color:var(--sv2-color-text)}body.search-v2 .ui-autocomplete .property-listing strong{color:var(--sv2-color-primary)}/* ------------------------------------------------------------------ *//* Page layout: desktop two-pane split (>=1281px)                       *//* ------------------------------------------------------------------ */@media screen and (min-width: 1281px){/* Both states: content starts right under the fixed 80px header. */body.search-v2 .section.section--city{padding:var(--sv2-header-h) 0 0;background-color:var(--sv2-color-surface)}body.search-v2 .section--city #ai-bar{margin-top:var(--sv2-space-6)}/* Map pane: same box-sizing and border in both states, so open (grid
     column 2) and closed (fixed, off-screen) widths are identical. */body.search-v2 .section--city .map-city{box-sizing:border-box;border-left:1px solid var(--sv2-color-border)}/* ---- Map open --------------------------------------------------- */body.search-v2 .section--city.half{display:grid;grid-template-columns:var(--sv2-list-pane-w) minmax(0, 1fr);grid-template-rows:auto auto auto auto 1fr;width:auto;/* legacy style.css:1333 width:50% */float:none;/* legacy style.css:1334 float:right */padding-bottom:0}/* Children become grid items of .section--city (see header comment). */body.search-v2 .section--city.half > .section__content{display:contents}body.search-v2 .section--city.half #ai-bar{grid-column:1;grid-row:1;margin:var(--sv2-space-6) var(--sv2-space-7) 18px}body.search-v2 .section--city.half .filters-block{grid-column:1;grid-row:2;min-width:0;margin:0 var(--sv2-space-7)}body.search-v2 .section--city.half .results-block{grid-column:1;grid-row:3;min-width:0;margin:0 var(--sv2-space-7) var(--sv2-space-7)}body.search-v2 .section--city.half > .seo-links{grid-column:1;grid-row:4;min-width:0;max-width:none;margin-left:var(--sv2-space-7);margin-right:var(--sv2-space-7)}body.search-v2 .section--city.half > .seo-faq{grid-column:1;grid-row:5;align-self:start;min-width:0;max-width:none;margin-left:var(--sv2-space-7);margin-right:var(--sv2-space-7)}body.search-v2 .section--city.half .map-city{grid-column:2;grid-row:1/-1;align-self:start;position:sticky;/* legacy style.css:1424 position:fixed */top:var(--sv2-header-h);left:auto;/* legacy style.css:4508/4511 left:-100% / 0 */width:auto;/* legacy style.css:1428 width:50% */height:calc(100vh - var(--sv2-header-h))}/* Filter flyout: keep it inside the list pane. Only horizontal placement;
     display and top stay JS-owned (jquery.custom.js:395-407). Task 04 may
     restyle further but must keep it in column 1. */body.search-v2 .section--city.half .filters-city{box-sizing:border-box;left:var(--sv2-space-7);right:auto;width:calc(max(560px, 48%) - 2 * var(--sv2-space-7))/* = list column (--sv2-list-pane-w) minus side margins */}/* ---- Map closed ------------------------------------------------- */body.search-v2 .section--city:not(.half) > .section__content{width:auto;padding:0 var(--sv2-space-7)}/* Stays fixed + off-screen (legacy left:-100%), sized like the open pane:
     100% of the viewport here = 100% of .section--city in the open grid. */body.search-v2 .section--city:not(.half) .map-city{width:calc(100% - max(560px, 48%));height:calc(100vh - var(--sv2-header-h))}/* ---- CLOSE MAP button (top-left of the map pane) --------------- */body.search-v2 .section--city .close-map{top:var(--sv2-space-4);left:var(--sv2-space-4);right:auto;margin:0;height:var(--sv2-control-h);box-sizing:border-box;padding:0 var(--sv2-space-5) 0 40px;background-color:var(--sv2-color-surface);background-image:url(../images/icons/close.svg);background-repeat:no-repeat;background-position:18px 50%;background-size:12px 12px;border:0;border-radius:var(--sv2-radius-pill);box-shadow:var(--sv2-shadow-md);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-semibold);letter-spacing:normal;line-height:var(--sv2-control-h);color:var(--sv2-color-text);white-space:nowrap;text-transform:lowercase;transition:box-shadow var(--sv2-dur) var(--sv2-ease),background-color var(--sv2-dur) var(--sv2-ease)}body.search-v2 .section--city .close-map::first-letter{text-transform:uppercase}body.search-v2 .section--city .close-map:hover{background-color:var(--sv2-color-tint);box-shadow:var(--sv2-shadow-lg)}}/* ------------------------------------------------------------------ *//* Mobile / tablet (<=1280px): spacing and backgrounds only (task 10   *//* owns the full responsive pass). Stacked layout and toggles as-is.   *//* ------------------------------------------------------------------ */@media screen and (max-width: 1280px){body.search-v2 .section.section--city{background-color:var(--sv2-color-surface)}body.search-v2 .section--city.half .section__content,body.search-v2 .section--city:not(.half) .section__content{width:auto;padding-left:var(--sv2-space-4);padding-right:var(--sv2-space-4)}}/* ------------------------------------------------------------------ *//* Task 10: mobile pass (<=1280px)                                     *//* ------------------------------------------------------------------ */@media screen and (max-width: 1280px){/* Room under the last content for the fixed #ai-pill (48px, bottom
     max(16px, safe area), ai-search.css:157) + 16px air. Legacy was 40px. */body.search-v2 .section.section--city{padding-bottom:calc(48px + var(--sv2-space-4) + max(var(--sv2-space-4), env(safe-area-inset-bottom)))}/* M4: legacy pairs top:160px (mediaqueries.css:1442) with
     height:calc(100% - 150px)!important (mediaqueries.css:696), so the
     bottom 10px of the map (attribution) sat below the viewport.
     Pin the bottom edge instead; left/top/z-index stay legacy. */body.search-v2 .section--city .map-city{bottom:0;height:auto !important/* overrides mediaqueries.css:696 */}/* Mobile keyword field: same look as the header field (section above).
     Outer band keeps its legacy 55px (5 + 44 + 6) so the fixed toolbar
     below (top:110px) does not move. */body.search-v2 .mobile-filter-keywords{align-items:center;width:calc(100% - 2 * var(--sv2-space-4));height:var(--sv2-control-h);padding:5px var(--sv2-space-4) 6px;background-color:var(--sv2-color-surface)}body.search-v2 .mobile-filter-keywords .mobile-filter-keywords__input{flex:1 1 auto;min-width:0;box-sizing:border-box;height:var(--sv2-control-h);margin:0;padding:0 var(--sv2-space-4) 0 44px;background-color:var(--sv2-color-surface);background-image:url(../images/icons/search.svg);background-repeat:no-repeat;background-position:18px 50%;background-size:16px 16px;border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-pill);color:var(--sv2-color-text);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);/* 16px also stops iOS zoom-on-focus */letter-spacing:normal;transition:border-color var(--sv2-dur) var(--sv2-ease),box-shadow var(--sv2-dur) var(--sv2-ease)}body.search-v2 .mobile-filter-keywords .mobile-filter-keywords__input:focus{outline:none;border-color:var(--sv2-color-primary);box-shadow:var(--sv2-shadow-focus)}body.search-v2 .mobile-filter-keywords .mobile-filter-keywords__input::placeholder{color:var(--sv2-color-text-subtle);opacity:1}/* Tags (#tags-mobile display is JS-owned; chips match the header ones) */body.search-v2 .mobile-filter-keywords .mobile-tags{flex:0 1 auto;min-width:0;max-width:60%;line-height:1}body.search-v2 .mobile-filter-keywords .mobile-tags .tag_list{display:inline-flex;align-items:center;gap:var(--sv2-space-2);max-width:100%;box-sizing:border-box;height:28px;margin:0 var(--sv2-space-2) 0 0;padding:0 var(--sv2-space-3);background-color:var(--sv2-color-tint);color:var(--sv2-color-primary);border-radius:var(--sv2-radius-pill);font-size:var(--sv2-fs-sm);line-height:28px;vertical-align:middle}body.search-v2 .mobile-filter-keywords .mobile-tags .tag_list span{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-semibold);letter-spacing:normal;text-transform:capitalize}body.search-v2 .mobile-filter-keywords .mobile-tags .tag_list .remove{color:var(--sv2-color-primary);font-size:var(--sv2-fs-xs);text-decoration:none}/* Spinner centred in the 44px field (display stays JS-owned) */body.search-v2 .mobile-filter-keywords .loader-block{top:50%;right:calc(var(--sv2-space-4) + var(--sv2-space-3));height:30px;margin-top:-15px}}