/* Public rental search only. Owner and administrator cards keep their layouts. */
#search-view .results-tools{flex-wrap:wrap;align-items:center}
#search-view .onto-search-layout{display:grid;grid-template-columns:auto auto;align-items:center;gap:.35rem .6rem;max-width:100%;font-size:.875rem;color:#575b5e}
#search-view .onto-search-layout[hidden]{display:none!important}
#search-view .onto-search-layout-label{font-weight:600;white-space:nowrap}
#search-view .onto-search-layout-buttons{display:flex;gap:.25rem}
#search-view .onto-search-layout-buttons button{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;min-height:2.75rem;border:1px solid #d6d8da;border-radius:.4rem;padding:.5rem;background:#fff;color:#34383c;font-family:inherit;font-size:1rem;font-weight:600;line-height:1.2;cursor:pointer}
#search-view .onto-search-layout-buttons button[aria-pressed="true"]{background:#b72237;border-color:#b72237;color:#fff}
#search-view .onto-search-layout-buttons button:disabled{opacity:.4;cursor:default}
#search-view .onto-search-layout-buttons button:focus-visible{outline:3px solid #b72237;outline-offset:3px}
#search-view .onto-search-layout-note{grid-column:1/-1;max-width:23rem;min-height:1.1em;font-size:.8125rem;line-height:1.4}
#search-view .onto-search-layout-note:empty{display:none}
#search-view #search-content.onto-search-layout-enabled #results-cards{display:grid;grid-template-columns:repeat(var(--onto-search-columns,2),minmax(0,1fr));grid-auto-rows:1fr;gap:1rem;align-items:stretch}
/* Only cards painted inside public rental holders receive this compact class. */
.property-card.onto-compact-card,.cards>.property-card.onto-compact-card{display:flex;flex-direction:column;min-width:0;height:100%;min-height:0;margin:0;overflow:hidden;border:1px solid #dfe2e5;border-radius:.6rem;background:#fff;container:onto-public-card/inline-size}
.property-card.onto-compact-card>.card-photo,.cards>.property-card.onto-compact-card>.card-photo{position:relative;flex:0 0 auto;width:100%;height:auto!important;min-height:0;padding:0;aspect-ratio:4/3;overflow:hidden;background:#eff0f1}
.property-card.onto-compact-card .card-photo>a{display:block;width:100%;height:100%}
.property-card.onto-compact-card .card-photo img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover}
.property-card.onto-compact-card .card-photo img[hidden]{display:none!important}
.onto-compact-card .onto-search-photo-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;color:#62686d;background:#eff0f1;font-size:.875rem;line-height:1.4;pointer-events:none}
.onto-compact-card .onto-search-photo-placeholder[hidden]{display:none!important}
.onto-compact-card .onto-card-actions{position:absolute;right:.65rem;bottom:.65rem;left:.65rem;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:.5rem;pointer-events:none}
.onto-compact-card .onto-card-actions>*{pointer-events:auto}
.property-card.onto-compact-card .heart-btn{position:static;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem;margin:0;border:1px solid #d8dce0;border-radius:50%;background:#fff;color:#353a3e;box-shadow:0 2px 6px #0002}
.property-card.onto-compact-card .heart-btn.is-saved{color:#b72237;background:#fff4f5;border-color:#d3969f}
.property-card.onto-compact-card .heart-btn svg{width:1.3rem;height:1.3rem}
.property-card.onto-compact-card .compare-choice{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;max-width:calc(100% - 3.25rem);gap:.35rem;margin:0;padding:.4rem .6rem;border:1px solid #d8dce0;border-radius:.4rem;background:#fff;color:#353a3e;box-shadow:0 2px 6px #0002;font-size:.875rem;line-height:1.2;cursor:pointer}
.onto-compact-card .compare-choice input{width:1.1rem;height:1.1rem;margin:0;accent-color:#b72237;flex:0 0 auto}
.onto-compact-card .compare-choice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-card.onto-compact-card>.card-body,.cards>.property-card.onto-compact-card>.card-body{display:grid;flex:1;align-self:stretch;align-content:start;grid-template-rows:auto 1.5em auto 1.5em;gap:.6rem;min-width:0;padding:1rem;color:#34383c;font-size:1rem;line-height:1.5}
.onto-compact-card .onto-card-keyline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.4rem;min-height:2.75rem;min-width:0}
.property-card.onto-compact-card .card-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.1rem .3rem;min-width:0;margin:0;color:#a81e31;font-size:clamp(1.125rem,2vw,1.5rem);font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.property-card.onto-compact-card .card-price small{font-size:.875rem;line-height:1.4;font-weight:400;color:#62686d;white-space:nowrap}
.onto-compact-card .onto-card-verification{display:inline-flex;align-items:center;justify-content:center;min-width:1.3rem;min-height:1.3rem}
.onto-compact-card .onto-card-details{display:inline-flex;align-items:center;justify-content:center;justify-self:end;min-height:2.75rem;max-width:100%;padding:.45rem .7rem;border:1px solid #b72237;border-radius:.4rem;background:#b72237;color:#fff;text-decoration:none;font-family:inherit;font-size:.875rem;line-height:1.25;font-weight:650;white-space:nowrap}
.onto-compact-card .onto-card-details:hover{background:#9e1b2e;border-color:#9e1b2e;color:#fff}
.onto-compact-card .onto-card-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:.1rem .45rem;min-width:0}
.onto-compact-card .onto-card-subject{display:none}
.property-card.onto-compact-card .card-type{flex:0 1 auto;min-width:0;max-width:100%;margin:0;color:#646a70;font-size:.875rem;line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-card.onto-compact-card .card-title.onto-card-title-accessible{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.property-card.onto-compact-card .card-facts{display:flex;align-items:center;flex-wrap:nowrap;gap:.6rem;height:1.5rem;min-height:0;min-width:0;margin:0;color:#535a60;font-size:.875rem;font-weight:600;line-height:1.4;overflow:hidden}
.onto-compact-card .onto-card-fact{display:inline-flex;align-items:center;flex:0 1 auto;gap:.25rem;min-width:0;white-space:nowrap}
.onto-compact-card .onto-card-fact>span:first-child{display:inline-flex;flex:0 0 auto;align-items:center}
.onto-compact-card .onto-card-fact svg{width:1rem;height:1rem;flex:0 0 auto}
.onto-compact-card .onto-fact-value{min-width:0;overflow:hidden;text-overflow:ellipsis}
.property-card.onto-compact-card .card-subtitle{min-width:0;min-height:0;height:1.5em;margin:0;color:#62686d;font-size:.875rem;line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.onto-compact-card a:focus-visible,.onto-compact-card button:focus-visible,.onto-compact-card .compare-choice:focus-within{outline:3px solid #b72237;outline-offset:3px}
@container onto-public-card (max-width:16.5rem){
 .onto-compact-card .onto-card-keyline{grid-template-columns:minmax(0,1fr) auto;gap:.2rem .4rem}
 .property-card.onto-compact-card .card-price{grid-column:1;grid-row:1;min-height:1.9rem}
 .onto-compact-card .onto-card-verification{grid-column:1/-1;grid-row:2;justify-content:center;min-height:1.3rem}
 .onto-compact-card .onto-card-details{grid-column:2;grid-row:1}
 .onto-compact-card .onto-fact-unit{display:none}
 .property-card.onto-compact-card>.card-body,.cards>.property-card.onto-compact-card>.card-body{padding:.7rem;gap:.45rem}
 .onto-compact-card .compare-choice{padding:.35rem;min-width:2.75rem}
 .onto-compact-card .compare-choice span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:680px){#search-view .results-tools{gap:.65rem;justify-content:flex-start}#search-view .onto-search-layout{order:3;width:100%;justify-content:start}}

.onto-compact-card .card-badge.featured{position:absolute;left:.65rem;top:.65rem;max-width:calc(100% - 1.3rem);padding:.3rem .5rem;border-radius:.25rem;background:#b72237;color:#fff;font-size:.75rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Desktop map browsing: the map remains alongside a keyboard-focusable results
   pane. The page itself stays scrollable so footer/navigation remain reachable. */
@media(min-width:1001px){
 #search-view:has(#search-content.onto-map-scroll-enabled)>.search-toolbar{top:var(--onto-map-header-height,0px)}
 #search-view #search-content.map-mode.onto-map-scroll-enabled{height:var(--onto-map-pane-height);min-height:0;align-items:stretch}
 #search-view #search-content.map-mode.onto-map-scroll-enabled>#results-cards{height:100%;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-block:12px;padding:12px;grid-auto-rows:max-content;align-content:start}
 #search-view #search-content.map-mode.onto-map-scroll-enabled>#results-cards:focus-visible{outline:3px solid #b72237;outline-offset:-3px}
 #search-view #search-content.map-mode.onto-map-scroll-enabled>#map-panel{display:flex;flex-direction:column;position:sticky;top:var(--onto-map-sticky-top);height:100%;min-height:0;min-width:0;align-self:start}
 #search-view #search-content.map-mode.onto-map-scroll-enabled #rental-map{flex:1 1 auto;height:0;min-height:0}
 #search-view #search-content.map-mode.onto-map-scroll-enabled>#map-panel>.map-note,
 #search-view #search-content.map-mode.onto-map-scroll-enabled>#map-panel>[data-map-credits]{flex:none}
}

/* Photo previews keep the original card and scroll position in place. */
.onto-compact-card .card-photo>a{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.onto-compact-card .card-photo img{pointer-events:none;-webkit-user-drag:none}
.onto-compact-card .onto-card-photo-controls{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding-inline:.4rem;pointer-events:none}
.onto-compact-card .onto-card-photo-step{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.75rem;height:2.75rem;padding:.65rem;border:1px solid #ffffffb3;border-radius:50%;color:#34383c;background:#ffffffed;box-shadow:0 2px 8px #0002;pointer-events:auto;opacity:0;transition:opacity .16s ease,background .16s ease;cursor:pointer}
.onto-compact-card .onto-card-photo-step svg{display:block;width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.onto-compact-card .onto-card-photo-step:hover{background:#fff}
.onto-compact-card .card-photo:hover .onto-card-photo-step,.onto-compact-card .card-photo:focus-within .onto-card-photo-step{opacity:1}
.onto-compact-card .onto-card-photo-count{position:absolute;top:.65rem;right:.65rem;z-index:3;max-width:calc(100% - 1.3rem);padding:.18rem .45rem;border-radius:.3rem;background:#222b;color:#fff;font-size:.75rem;font-variant-numeric:tabular-nums;line-height:1.4;pointer-events:none}
@media(hover:none){.onto-compact-card .onto-card-photo-step{opacity:.88}}
@media(prefers-reduced-motion:reduce){.onto-compact-card .onto-card-photo-step{transition:none}}

.onto-compact-card .onto-card-multiple-photos .card-badge.featured{max-width:calc(100% - 5.2rem)}
