/*
 * CUI Property Search & Results v1 / 17 November 2026
 * Scoped, non-global refinements. Mobile RESULTS styling and interactions stay intact.
 * The pre-existing design-followup-01 stylesheet is retained in candidate includes/head.php.
 */
.search-main-no-hero .unified-search-form .input-with-icon{
  position:relative;
  overflow:visible!important;
}
.search-main-no-hero .cui-search-suggestions[hidden]{display:none!important}
.search-main-no-hero .cui-search-suggestions{
  position:absolute;
  top:calc(100% + 5px);
  inset-inline:0;
  z-index:2500;
  width:100%;
  max-height:320px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#fff;
  border:1px solid #dcd7d1;
  border-radius:5px;
  box-shadow:0 16px 32px rgba(27,32,32,.13);
}
.search-main-no-hero .cui-search-suggestions button{
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  width:100%!important;
  min-height:50px!important;
  height:auto!important;
  padding:9px 17px!important;
  border:0!important;
  border-bottom:1px solid #f1eeeb!important;
  border-radius:0!important;
  background:#fff!important;
  text-align:left;
  color:#222!important;
  cursor:pointer;
  box-shadow:none!important;
}
.search-main-no-hero .cui-search-suggestions button:last-child{border-bottom:0!important}
.search-main-no-hero .cui-search-suggestions button:hover,
.search-main-no-hero .cui-search-suggestions button[aria-selected="true"]{background:#f7f4ef!important}
.search-main-no-hero .cui-search-suggestions strong{font:500 14px/1.25 var(--sans,Arial,sans-serif)}
.search-main-no-hero .cui-search-suggestions small{margin-top:3px;font:400 12px/1.3 var(--sans,Arial,sans-serif);color:#827b73}
.search-main-no-hero .unified-search-form .input-with-icon:has(.cui-search-suggestions:not([hidden])){z-index:20}
@media (max-width:900px){
  /* The fourth layout button must NEVER enter the approved mobile switcher. */
  body.property-results-page .view-switcher .desktop-grid-view{display:none!important}
}

/* Only the >=901px results interface changes below this boundary. */
@media (min-width:901px){
  body.property-results-page .view-switcher .desktop-grid-view{
    display:inline-grid!important;
    place-items:center;
    cursor:pointer;
  }
  body.property-results-page .view-switcher .desktop-grid-view svg{width:19px;height:19px}
  body.property-results-page .view-switcher button{
    width:46px;
    border-right-color:#dedcd9;
    transition:background-color .16s ease,color .16s ease;
  }
  body.property-results-page .view-switcher button:focus-visible{
    outline:2px solid #b61227;outline-offset:-2px;
  }
  body.property-results-page .view-switcher button:not(.active):hover{
    background:#f1efed;color:#b61227;
  }
  body.property-results-page .results-demo .property-card{
    background:#fffefc;
    border:1px solid #e5e0da;
    border-radius:5px;
    box-shadow:0 3px 16px rgba(37,31,27,.035);
    overflow:hidden;
    margin-bottom:14px;
    grid-template-columns:50% 50%;
  }
  body.property-results-page .results-demo .property-card .property-photo{
    aspect-ratio:3/2;
    min-height:0;
    overflow:hidden;
  }
  body.property-results-page .results-demo .property-card .property-photo img{
    object-fit:cover;
  }
  body.property-results-page .results-demo .property-card .property-copy{
    padding:22px 23px 60px;
  }
  body.property-results-page .results-demo .property-card .price-line h2{
    font-family:var(--sans,Arial,sans-serif)!important;
    font-size:clamp(23px,1.7vw,29px)!important;
    line-height:1.15!important;
    font-weight:500!important;
    letter-spacing:-.025em;
  }
  body.property-results-page .results-demo .property-card .price-line .price-amount{
    font-family:var(--sans,Arial,sans-serif)!important;
    font-size:inherit!important;
    font-weight:500!important;
    letter-spacing:-.025em!important;
  }
  body.property-results-page .results-demo .property-card .property-address-line h3,
  body.property-results-page .results-demo .property-card .property-address-line h3 a{
    font:400 clamp(23px,1.7vw,28px)/1.13 var(--serif,Georgia,serif)!important;
    letter-spacing:-.018em!important;
    color:#2c2a28;
  }
  body.property-results-page .results-demo .property-card .property-type{
    font-size:12px;
    color:#776f67;
    text-transform:uppercase;
    letter-spacing:.085em;
  }
  body.property-results-page .results-demo .property-card .image-card-tools button{
    width:31px!important;height:31px!important;
    border-color:rgba(220,214,209,.8);
    background:rgba(255,255,255,.87);
    opacity:.76;
    box-shadow:none!important;
    border-radius:4px;
  }
  body.property-results-page .results-demo .property-card .image-card-tools button:hover,
  body.property-results-page .results-demo .property-card .image-card-tools button:focus-visible{
    opacity:1;background:#fff;
  }
  body.property-results-page .results-demo .property-card .image-card-tools svg{width:15px;height:15px}
  body.property-results-page .results-demo .property-card .status-badge,
  body.property-results-page .results-demo .property-card .instruction-tag{
    border-radius:2px!important;
    font-size:10px!important;
    font-weight:600!important;
    letter-spacing:.08em;
    text-transform:uppercase;
    padding:6px 9px!important;
    box-shadow:none!important;
  }
  body.property-results-page .results-demo .property-card .instruction-tag{
    background:#f2e9d9!important;
    color:#463b2b!important;
    border:1px solid #e0d2b9!important;
  }
  body.property-results-page .results-demo .property-card .virtual-tour-roundel{
    display:inline-flex!important;
    align-items:center;justify-content:center;gap:6px;
    width:auto!important;min-width:0!important;height:33px!important;
    border-radius:4px!important;padding:0 10px!important;
    background:#fff!important;color:#403c37!important;
    border:1px solid #d5d0cb!important;
    box-shadow:none!important;
    font:500 11px/1 var(--sans,Arial,sans-serif)!important;
    text-transform:uppercase;letter-spacing:.025em;
  }
  body.property-results-page .results-demo .property-card .virtual-tour-roundel svg{
    width:15px!important;height:15px!important;
  }
  body.property-results-page .results-demo .property-card .virtual-tour-roundel:hover{
    border-color:#c11b2e!important;color:#a81225!important;
  }
  body.property-results-page .results-demo .property-card .virtual-tour-roundel::after{
    content:"Virtual tour";display:inline!important;white-space:nowrap;
  }
  body.property-results-page .results-demo .filter-chevron{
    margin-right:2px;flex:0 0 auto;
  }
  body.property-results-page .all-filters-dialog .modal-department-selector select{
    height:44px!important;min-height:44px!important;
    padding:0 35px 0 14px!important;
    border-radius:5px!important;
    border:1px solid #d8d2cc!important;
  }
  body.property-results-page .all-filters-dialog .filters-grid input:not([type=range]),
  body.property-results-page .all-filters-dialog .filters-grid select{
    height:44px!important;min-height:44px!important;
    border:1px solid #d8d2cc!important;
    border-radius:5px!important;
    padding:0 13px!important;
    box-shadow:none!important;
    margin-bottom:0!important;
  }
  body.property-results-page .all-filters-dialog .quick-filter-grid{gap:18px 26px}
  body.property-results-page .map-school-panel .school-rating,
  body.property-results-page .map-school-panel .school-rating-badge{
    font-size:11px!important;padding:3px 7px!important;
    border-radius:3px!important;
  }
  body.property-results-page .results-workspace.view-grid{
    display:block!important;
    width:100%;
    min-width:0;
    height:100%;
  }
  body.property-results-page .results-workspace.view-grid>.map-pane,
  body.property-results-page .results-workspace.view-grid>.table-pane,
  body.property-results-page .results-workspace.view-grid>.school-detail-panel{
    display:none!important;
  }
  body.property-results-page .results-workspace.view-grid>.results-pane{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:none!important;
    grid-auto-rows:max-content!important;
    gap:18px;
    align-content:start;
    width:100%;
    height:100%;
    max-width:100%;
    overflow:auto;
    padding:20px 26px 30px;
    background:#f7f6f3;
  }
  body.property-results-page .view-grid .results-pane>.results-controls-panel,
  body.property-results-page .view-grid .results-pane>.results-skeleton,
  body.property-results-page .view-grid .results-pane>.results-empty,
  body.property-results-page .view-grid .results-pane>.results-error,
  body.property-results-page .view-grid .results-pane>.results-pagination,
  body.property-results-page .view-grid .results-pane>.pagination-summary,
  body.property-results-page .view-grid .results-pane>.cui-desktop-infinite-sentinel{
    grid-column:1 / -1;
    min-width:0;
  }
  body.property-results-page .view-grid .results-pane .property-card{
    min-width:0;
    width:100%;
    margin:0!important;
    display:flex!important;
    flex-direction:column;
    border-radius:5px;
    min-height:0;
    height:auto;
  }
  body.property-results-page .view-grid .results-pane .property-card[hidden]{display:none!important}
  body.property-results-page .view-grid .results-pane .property-card .property-photo{
    flex:0 0 auto;
    width:100%;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/10!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-copy{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-height:230px;
    padding:18px 19px 20px!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .price-line{
    padding-right:0;
    flex-wrap:wrap;
    gap:7px;
  }
  body.property-results-page .view-grid .results-pane .property-card .price-line h2{
    font-size:clamp(21px,1.55vw,27px)!important;
    max-width:100%!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-address-line h3,
  body.property-results-page .view-grid .results-pane .property-card .property-address-line h3 a{
    font-size:24px!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-roundels{gap:6px}
  body.property-results-page .view-grid .results-pane .property-card .description{
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    margin-bottom:12px;
    font-size:13px;
    line-height:1.55;
  }
  body.property-results-page .view-grid .results-pane .property-card .hide-property-button{
    position:static!important;
    order:20;
    align-self:flex-end;
    width:auto!important;
    height:25px!important;
    margin:7px 0 0!important;
    padding:0 4px!important;
    border:0!important;
    background:transparent!important;
    color:#7d756e!important;
    font:400 20px/1 var(--sans,Arial,sans-serif);
    cursor:pointer;
  }
  body.property-results-page .view-grid .results-pane .property-card .hide-property-button:hover{color:#a91528!important}
  body.property-results-page .view-grid .results-pane .property-card .property-specs{
    position:static!important;
    margin-top:auto;
    padding-top:12px;
    padding-bottom:0;
    border-top:1px solid #ede9e5;
    left:auto;right:auto;bottom:auto;
    gap:12px;
    flex-wrap:wrap;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-specs .distance{margin-left:0}
  body.property-results-page .cui-desktop-infinite-sentinel{
    clear:both;
    padding:18px 12px 26px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:13px;
    border-top:1px solid #e5e0da;
    color:#777067;
    font:400 12px/1.5 var(--sans,Arial,sans-serif);
  }
  body.property-results-page .cui-desktop-infinite-sentinel[hidden]{display:none!important}
  body.property-results-page .cui-desktop-infinite-sentinel button{
    min-height:38px;
    border:1px solid #d1cac2;
    background:#fff;
    color:#302d2a;
    padding:0 18px;
    border-radius:4px;
    font:500 13px/1 var(--sans,Arial,sans-serif);
    cursor:pointer;
  }
  body.property-results-page .cui-desktop-infinite-sentinel button:hover{border-color:#c11b2e;color:#b01226}
  body.property-results-page .cui-desktop-infinite-sentinel button:focus-visible{outline:2px solid #c11b2e;outline-offset:2px}
}
@media(min-width:901px) and (max-width:1360px){
  body.property-results-page .results-workspace.view-grid>.results-pane{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:18px;
  }
}
@media(min-width:901px) and (max-width:1100px){
  body.property-results-page .results-demo .property-card .virtual-tour-roundel::after{display:none!important}
  body.property-results-page .results-demo .property-card .virtual-tour-roundel{width:33px!important;padding:0!important}
  body.property-results-page .results-workspace.view-grid .virtual-tour-roundel::after{display:inline!important}
  body.property-results-page .results-workspace.view-grid .virtual-tour-roundel{width:auto!important;padding:0 9px!important}
}

/* Continued N37/N40/N42/N43/N45/N47/N48, desktop only.
   Mobile results remain expressly frozen. */
@media(min-width:901px){
  body.property-results-page .filter-control .filter-select{display:flex;align-items:center;gap:8px;}
  body.property-results-page .filter-control .filter-chevron{margin-left:auto!important;margin-right:0!important;align-self:center!important;flex:0 0 auto!important;transform:rotate(45deg)!important;}
  body.property-results-page .mobile-filter-strip .filter-control{flex:0 0 auto!important;min-width:0!important;}
  body.property-results-page .mobile-filter-strip .filter-control .filter-select{padding-inline:12px!important;}
  body.property-results-page .results-demo .property-card .price-line h2,
  body.property-results-page .results-demo .property-card .price-line .price-amount{font-weight:600!important;color:#1e2825!important;}
  body.property-results-page .results-demo .property-card .image-card-tools button{width:31px!important;height:31px!important;min-width:31px!important;flex:0 0 31px!important;border-radius:5px!important;opacity:.85!important;}
  body.property-results-page .results-demo .property-card .virtual-tour-roundel{border:0!important;padding:0 4px!important;background:transparent!important;color:#39433b!important;font-size:11px!important;}
  body.property-results-page .results-demo .property-card .virtual-tour-roundel:hover,
  body.property-results-page .results-demo .property-card .virtual-tour-roundel:focus-visible{color:#a52835!important;text-decoration:underline!important;}
  body.property-results-page .results-demo .view-grid .property-card .property-copy{padding-bottom:27px!important;}
  body.property-results-page .results-demo .property-status-badges .status-badge,
  body.property-results-page .results-demo .property-status-badges .instruction-tag{line-height:1.2!important;min-height:27px!important;display:inline-flex;align-items:center;}
}

/* V13 final N38: place the live count and Add a must-have on the same line.
   The original buttons/handlers and the separate table copy remain in the DOM.
   Strict desktop scope preserves all approved mobile list/map controls. */
@media(min-width:901px){
  body.property-results-page .results-pane>.results-controls-panel,
  body.property-results-page .table-pane>.table-results-controls{
    display:grid!important;
    grid-template-columns:max-content max-content minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:6px 14px;
    align-items:center;
    margin-bottom:10px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
    min-width:0;
  }
  body.property-results-page .results-controls-panel .pane-results-head{
    display:contents!important;
  }
  body.property-results-page .results-controls-panel .pane-results-count{
    grid-column:1;grid-row:1;display:flex!important;align-items:center;
    gap:6px;min-width:0;margin:0!important;
  }
  body.property-results-page .results-controls-panel .must-have-row{
    grid-column:2;grid-row:1;position:relative;
    align-items:center;justify-content:flex-start;
    display:flex!important;min-height:37px!important;
    height:auto!important;padding:0!important;margin:0!important;
  }
  body.property-results-page .results-controls-panel .must-have-toggle{
    white-space:nowrap;min-height:36px!important;
  }
  body.property-results-page .results-controls-panel .result-actions{
    grid-column:3;grid-row:1;justify-self:end;
    margin:0!important;min-width:0;
  }
  body.property-results-page .results-controls-panel .hidden-results-notice:not([hidden]){
    grid-column:1 / -1;grid-row:2;margin:3px 0 4px!important;
  }
  /* N39: match the real shared-header height to remove the bottom unused strip.
     Keep map/list/table panels stretching together within an independently
     scrollable desktop workspace. */
  body.property-results-page .results-demo{
    height:calc(100vh - 88px)!important;
    height:calc(100dvh - 88px)!important;
    min-height:620px;
    display:flex!important;flex-direction:column!important;
    padding-bottom:0!important;margin-bottom:0!important;
  }
  body.property-results-page .results-workspace{
    flex:1 1 0!important;
    min-height:0!important;
    height:auto!important;align-items:stretch!important;
    padding-bottom:0!important;margin-bottom:0!important;
  }
  body.property-results-page .results-workspace:not(.view-grid)>.results-pane,
  body.property-results-page .results-workspace:not(.view-grid)>.table-pane,
  body.property-results-page .results-workspace>.map-pane{
    min-height:0!important;height:100%!important;
    margin-bottom:0!important;
  }
  body.property-results-page .results-workspace.view-grid>.results-pane{
    height:100%!important;min-height:0!important;
    padding-bottom:10px!important;
  }
  /* N47: grid cards have restrained lower spacing and grouped location
     metadata at the right, with visible, keyboard-accessible card controls. */
  body.property-results-page .view-grid .results-pane .property-card{
    align-self:stretch!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-copy{
    min-height:205px!important;
    padding:15px 17px 13px!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .description{
    margin-bottom:6px!important;
    line-height:1.45!important;
  }
  body.property-results-page .view-grid .results-pane .property-card .property-specs{
    margin-top:auto!important;padding-top:9px!important;
    gap:9px!important;min-width:0;
  }
  body.property-results-page .view-grid .results-pane .property-specs .distance.station{
    margin-left:auto!important;
  }
  body.property-results-page .view-grid .results-pane .property-specs .distance.school{
    margin-left:auto!important;
  }
  body.property-results-page .view-grid .results-pane .property-specs .distance.station + .distance.school{
    margin-left:0!important;
  }
  body.property-results-page .view-grid .results-pane .hide-property-button{
    height:21px!important;min-height:21px!important;
    margin:3px 0 0!important;
  }
  body.property-results-page .view-table .table-selected-card-host .property-card .price-line h2,
  body.property-results-page .view-table .table-selected-card-host .property-card .price-line .price-amount{
    font-weight:600!important;color:#24312a!important;
    letter-spacing:-.022em!important;
  }
  body.property-results-page .view-table .table-selected-card-host .property-card .property-address-line h3,
  body.property-results-page .view-table .table-selected-card-host .property-card .property-address-line h3 a{
    font-family:"Cormorant Garamond",Georgia,serif!important;
    font-weight:500!important;line-height:1.12!important;
  }
  body.property-results-page .view-table .table-selected-card-host .property-card .image-card-tools button,
  body.property-results-page .view-table .table-selected-card-host .property-card .image-card-tools a{
    width:31px!important;height:31px!important;min-width:31px!important;
  }
  /* N48: the blank white square in the reference is a hidden, empty
     furnishing status badge whose display can be revived by .status-badge.
     Force hidden/empty items to stay hidden, then match badge dimensions. */
  body.property-results-page .map-popup-badge-row [hidden],
  body.property-results-page .map-popup-badge-row [data-map-popup-furnishing]:empty,
  body.property-results-page .map-popup-badge-row [data-map-popup-status]:empty{
    display:none!important;
  }
  body.property-results-page .map-popup-badge-row .status-badge,
  body.property-results-page .map-popup-badge-row .instruction-tag{
    box-sizing:border-box!important;
    display:inline-flex!important;align-items:center!important;
    min-height:25px!important;
    padding:5px 8px!important;
    border-radius:3px!important;
    font:600 10px/1.15 var(--sans,Arial,sans-serif)!important;
    text-transform:uppercase!important;
    letter-spacing:.045em!important;
  }
}
@media(min-width:901px) and (max-width:1100px){
  body.property-results-page .results-demo{
    height:calc(100vh - 118px)!important;
    height:calc(100dvh - 118px)!important;
  }
}
@media(min-width:901px) and (max-width:1180px){
  body.property-results-page .results-pane>.results-controls-panel,
  body.property-results-page .table-pane>.table-results-controls{
    grid-template-columns:max-content minmax(0,1fr);
  }
  body.property-results-page .results-controls-panel .must-have-row{
    grid-column:2;grid-row:1;
  }
  body.property-results-page .results-controls-panel .result-actions{
    grid-column:1/-1;grid-row:2;
    justify-self:start;
  }
  body.property-results-page .results-controls-panel .hidden-results-notice:not([hidden]){
    grid-row:3;
  }
}

/* N48 cross-device hidden-state invariant; no mobile geometry changes. */
body.property-results-page .map-preview-badges [hidden],
body.property-results-page .map-preview-badges [data-map-popup-furnishing]:empty,
body.property-results-page .map-preview-badges [data-map-popup-status]:empty{
  display:none!important;
}


/* N48 final state guard: higher specificity than generic badge display rules. */
body.property-results-page .map-popup-badge-row .status-furnishing[hidden],
body.property-results-page .map-popup-badge-row .status-furnishing:empty,
body.property-results-page .map-popup-badge-row .status-commercial[hidden],
body.property-results-page .map-popup-badge-row .instruction-tag:empty,
body.property-results-page .map-preview-badges .status-furnishing[hidden],
body.property-results-page .map-preview-badges .status-furnishing:empty,
body.property-results-page .map-preview-badges .status-commercial[hidden],
body.property-results-page .map-preview-badges .instruction-tag:empty{
  display:none!important;
}
