/* NVHomesLV FMR7 Base2.6 - desktop Sort + Map geometry only.
   PropertyMinder retains the real sort trigger, map, results, filters and actions. */
@media (min-width:901px){
  #_searchResultsMenu a.toolkit-btn-main.dropdown-toggle.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"],
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"]{
    min-height:42px!important;
    padding:0 18px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:#050505!important;
    background-color:#050505!important;
    background-image:none!important;
    border:1px solid #050505!important;
    border-radius:10px!important;
    box-shadow:0 3px 10px rgba(17,19,24,.07)!important;
    text-shadow:none!important;
  }
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] .order-by,
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] .sortingText,
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] ._sortingText,
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] .sortingIcon,
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] i,
  #_searchResultsMenu a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] i:before{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-shadow:none!important;
  }
}

/* NVHomesLV Base2.2 - native Show Map presentation only.
   Keep PropertyMinder's bound element in the DOM for programmatic activation,
   but remove it from layout without off-screen positioning or giant overflow. */
html[data-nvpm-passive-detail] body #_wrapapp #map-details .nvpx-native-map-load-source,
html[data-nvpm-passive-detail] body #_wrapapp #map-details .nvpx-native-map-load-source .loadMapBtn,
html[data-nvpm-passive-detail] body #_wrapapp #map-details :is(.loadMap._loadMap,.loadMapMask._loadMap,a.loadMapMask,button.loadMapBtn){
  display:none!important;
}

/* PUNCH 01/02 — native PropertyMinder scroll restoration.
   No custom Map/results height, overflow, sticky, fixed, or nested scroll rules.
   PropertyMinder owns the desktop Map/results split and native scroll lifecycle. */

/* Base2.7 SORT TEXT ONLY 1
   Existing Sort presentation remains unchanged by this scrolling repair.
   Change only the native PropertyMinder result-sort text/icon color to white. */
@media (min-width:901px){
  html[data-nvpm-search-ui="recovery-mobile-layout-r18"]
    #_wrapapp[data-nvpm-full-app="recovery-mobile-layout-r18"]
    #_searchResultsMenu .sorting_group_
    a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"],
  html[data-nvpm-search-ui="recovery-mobile-layout-r18"]
    #_wrapapp[data-nvpm-full-app="recovery-mobile-layout-r18"]
    #_searchResultsMenu .sorting_group_
    a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"] :is(.order-by,.sortingText,._sortingText,.sortingText *,._sortingText *,i,i::before){
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-shadow:none!important;
  }
  html[data-nvpm-search-ui="recovery-mobile-layout-r18"]
    #_wrapapp[data-nvpm-full-app="recovery-mobile-layout-r18"]
    #_searchResultsMenu .sorting_group_
    a.dropdown-toggle-sorting[data-popmodal-bind="#type-results-"]::after{
    border-color:#fff!important;
  }
}

/* PUNCH 01/02 - desktop Map native affix top-gap repair only.
   PropertyMinder keeps #_mapView native and affixes it while the browser page
   scrolls. On the NVHomesLV shell the site header scrolls away, so the native
   affix top offset leaves a visible white strip above the map. Preserve the
   native affix/scroll behavior and remove only that obsolete top offset. */
@media (min-width:901px){
  html[data-nvpm-search-ui="recovery-mobile-layout-r18"][data-nvpm-search-view="map"]
    #_wrapapp[data-nvpm-full-app="recovery-mobile-layout-r18"] > #_mapView.affix{
    top:0!important;
    margin-top:0!important;
  }
}
