/* Shared site selection controls. Existing logo, navigation and listing design stay intact. */
.moreon-saved-nav{display:flex;align-items:center;gap:4px;flex:none;margin:0;padding:0}
.moreon-saved-link{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:44px;min-height:44px;color:var(--moreon-navy,#0d2b52);text-decoration:none!important;padding:4px 5px;border-radius:4px;box-sizing:border-box;font:600 10px/1.15 var(--moreon-font,Arial,sans-serif)}
.moreon-saved-link:hover,.moreon-saved-link[aria-current="page"]{background:#edf3f8;color:#0d2b52}
.moreon-saved-icon{position:relative;display:flex;align-items:center;justify-content:center;width:25px;height:25px}
.moreon-saved-icon svg{width:24px;height:24px;display:block}
.moreon-saved-count{position:absolute;top:-5px;right:-10px;display:flex;align-items:center;justify-content:center;background:#0d2b52;color:#fff;border:1px solid #fff;min-width:18px;height:18px;padding:0 3px;border-radius:10px;font-size:10px;font-weight:700;box-sizing:border-box}
.moreon-saved-count[hidden]{display:none!important}
.moreon-saved-label{white-space:nowrap}
.moreon-compare-toggle{position:absolute;top:12px;right:60px;width:40px;height:40px;border-radius:50%;border:1px solid #d9e3ec;background:rgba(255,255,255,.96);color:#0d2b52;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:4;padding:8px}
.moreon-compare-toggle svg{width:23px;height:23px}
.moreon-compare-toggle.is-active,.moreon-compare-toggle.saved-v63{color:#fff;background:#0d2b52;border-color:#0d2b52}
.moreon-compare-toggle.moreon-compare-large{position:relative;top:auto;right:auto;display:inline-flex;width:auto;height:44px;border-radius:4px;gap:8px;padding:8px 14px;font-size:12px;font-weight:650;margin-top:14px}
.moreon-object-selection{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
.moreon-saved-page{padding:40px 0 80px;min-height:60vh}
.moreon-saved-page h1{font-size:clamp(30px,4vw,48px);font-weight:750;margin:0 0 12px;color:#0d2b52;letter-spacing:-.04em}
.moreon-saved-lead{font-size:14px;color:#607488;margin-bottom:24px}
.moreon-workspace-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid #d9e3ec;margin:0 0 25px}
.moreon-workspace-tabs>a{display:flex;align-items:center;gap:7px;min-height:46px;padding:10px 12px;border-bottom:3px solid transparent;font-size:14px;font-weight:650;color:#0d2b52}
.moreon-workspace-tabs>a[aria-current="page"]{border-bottom-color:#ee7b25}
.moreon-workspace-tabs>a span{background:#eef3f8;min-width:24px;padding:3px 7px;text-align:center;border-radius:12px;font-size:11px}
.moreon-workspace-return{margin-left:auto;font-size:12px!important}
.moreon-saved-empty{padding:42px 25px;border:1px solid #d9e3ec;background:#f2f6fa;text-align:center}
.moreon-saved-empty h2{font-size:24px;margin:0 0 14px;font-weight:700}
.moreon-saved-empty p,.moreon-saved-status{color:#607488;font-size:14px}
.moreon-saved-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.moreon-compare-scroll{max-width:100%;overflow:auto;border:1px solid #d9e3ec;overscroll-behavior-x:contain}
.moreon-compare-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:13px;color:#142f50;background:white}
.moreon-compare-table caption{text-align:left;padding:12px 16px;color:#607488;font-size:12px}
.moreon-compare-table th,.moreon-compare-table td{border-bottom:1px solid #d9e3ec;border-right:1px solid #d9e3ec;vertical-align:top;text-align:left;padding:13px 15px;min-width:210px;width:240px;max-width:260px;overflow-wrap:anywhere}
.moreon-compare-table th:first-child{position:sticky;left:0;z-index:2;background:#f2f6fa;width:164px;min-width:164px;max-width:164px}
.moreon-compare-table thead th{font-weight:650}
.moreon-compare-table thead th:first-child{vertical-align:middle}
.moreon-compare-photo{height:142px;overflow:hidden;background:#e8eef4;margin-bottom:12px}
.moreon-compare-photo .photo-shell,.moreon-compare-photo img{width:100%;height:100%;display:block;object-fit:cover}
.moreon-compare-table tbody tr:first-child td{font-size:20px;font-weight:750;color:#0d2b52}
.moreon-remove{display:block;color:#607488;border:0;background:transparent;text-align:left;text-decoration:underline;font-size:12px;margin:8px 0 0;padding:5px 0;cursor:pointer}
.moreon-unavailable-saved{margin-top:24px;padding:20px;background:#f2f6fa;border:1px solid #d9e3ec}
.moreon-unavailable-saved h2{font-size:20px}
.moreon-unavailable-saved>div{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #d9e3ec;padding:8px 0}
@media(min-width:1161px) and (max-width:1500px){
 .moreon-unified-row,html.moreon-v89 body .site-header .site-header-row{gap:12px!important}
 .moreon-unified-nav,html.moreon-v89 body .site-header .site-nav{gap:10px!important}
}
@media(min-width:1161px) and (max-width:1320px){.moreon-unified-phone,html.moreon-v89 body .site-header .site-phone{display:none!important}}
@media(max-width:1160px){
 html.moreon-v89 .site-header .site-brand{order:0}
 html.moreon-v89 .site-header .moreon-saved-nav{order:1;margin-left:auto}
 html.moreon-v89 .site-header .site-menu{order:2;margin-left:0!important}
 .moreon-unified-row,html.moreon-v89 body .site-header .site-header-row{gap:8px!important}
 .moreon-unified-actions{gap:8px!important}
 .moreon-saved-link{min-width:42px;min-height:44px;padding:4px}
}
@media(max-width:520px){
 .moreon-saved-label{display:none}
 .moreon-saved-nav{gap:2px}.moreon-saved-link{min-width:37px}.moreon-saved-icon{width:22px;height:22px}.moreon-saved-icon svg{width:21px;height:21px}
 .moreon-unified-row,html.moreon-v89 body .site-header .site-header-row{gap:4px!important;width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important}
 .moreon-unified-actions{gap:4px!important}
 .moreon-unified-menu,html.moreon-v89 .site-header .site-menu{width:40px!important;min-width:40px!important}
 .moreon-saved-page{padding:26px 0 48px}.moreon-saved-grid{grid-template-columns:1fr}
 .moreon-workspace-tabs{gap:5px}.moreon-workspace-tabs>a{font-size:12px;padding:8px 6px}
 .moreon-workspace-return{margin-left:0}
 .moreon-compare-table th:first-child{width:112px;min-width:112px;max-width:112px;padding:10px}
 .moreon-compare-table th,.moreon-compare-table td{width:176px;min-width:176px;max-width:190px;padding:10px}
 .moreon-compare-photo{height:112px}
 .moreon-compare-toggle{right:49px;top:9px;width:33px;height:33px;padding:5px}
 .moreon-compare-toggle svg{width:20px;height:20px}
 .moreon-object-selection{justify-content:flex-start}
}
@media(min-width:521px) and (max-width:960px){.moreon-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* On split and mobile list cards keep both photo actions away from the top-left category tag. */
html.moreon-v89 .card .moreon-compare-toggle{top:auto;bottom:8px;right:8px}
.moreon-saved-menu-link{display:none!important}
@media(max-width:1160px){
 .moreon-unified-nav .moreon-saved-menu-link,html.moreon-v89 .site-header .site-nav .moreon-saved-menu-link{display:flex!important}
}
@media(max-width:520px){
 .moreon-compare-toggle.moreon-compare-large{width:auto;height:44px;top:auto;right:auto}
}

/* Mobile saved controls: keep the approved desktop design and both storage keys. */
@media(max-width:700px){
 html.moreon-v89 .card .card-media>button.fav,
 html.moreon-v89 .card .card-media>button.moreon-compare-toggle{
  display:flex!important;align-items:center;justify-content:center;
  width:44px!important;height:44px!important;min-width:44px;min-height:44px;
  right:8px!important;z-index:6!important;visibility:visible!important;
 }
 html.moreon-v89 .card .card-media>button.fav{top:8px!important;bottom:auto!important}
 html.moreon-v89 .card .card-media>button.moreon-compare-toggle{top:auto!important;bottom:8px!important}
 html.moreon-v89 .gallery-wrap .gallery-actions{
  display:flex!important;flex-wrap:wrap;justify-content:flex-end;
  max-width:calc(100% - 16px);gap:8px!important;right:8px!important;top:8px!important;
 }
 html.moreon-v89 .gallery-wrap .gallery-actions .gallery-action{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:44px;min-width:44px;height:auto!important;padding:8px 11px!important;
  font-size:12px!important;line-height:1.2;white-space:nowrap;visibility:visible!important;
 }
 html.moreon-v89 .gallery-wrap .gallery-actions .gallery-action::after{content:none!important}
 html.moreon-v89 .object-address{
  display:block!important;min-width:0;max-width:100%;white-space:normal!important;
  overflow-wrap:anywhere;line-height:1.5;
 }
 html.moreon-v89 .object-address a{display:inline!important;white-space:normal!important;overflow-wrap:anywhere}
 html.moreon-v89 body:has(.gallery-wrap):has(#mobileBar[style*="grid"]){
  padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;
 }
 html.moreon-v89:has(.gallery-wrap):has(#mobileBar[style*="grid"]){
  scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));
 }
 .property-card .property-photo>button.favorite-toggle,
 .property-card .property-photo>button.moreon-compare-toggle{
  top:58px!important;bottom:auto!important;width:44px!important;height:44px!important;
  min-width:44px;min-height:44px;z-index:5;
 }
 .property-card .property-photo>button.favorite-toggle{right:12px!important}
 .property-card .property-photo>button.moreon-compare-toggle{right:64px!important}
}
