/* RC90 - share menus on property cards and detail pages. No external icon fonts. */
.ks .ks-share{position:relative;display:inline-flex;flex:0 0 auto;z-index:8}
.ks .ks-share .ks-share-trigger{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
 padding:8px!important;margin:0!important;border:0!important;border-radius:50%!important;
 background:#fff!important;color:#263f4d!important;box-shadow:0 2px 8px #0003!important;cursor:pointer;
}
.ks .ks-share .ks-share-trigger:hover,.ks .ks-share .ks-share-trigger[aria-expanded="true"]{background:#fff4ee!important;color:#be572d!important}
.ks .ks-share .ks-share-trigger svg{display:block;width:20px;height:20px;stroke:currentColor;fill:none;pointer-events:none}
.ks .ks-share .ks-share-trigger:focus-visible,.ks .ks-share-menu :focus-visible{outline:3px solid #167ca5!important;outline-offset:3px}
.ks .ks-share-menu{
 position:absolute;top:46px;right:0;width:205px;padding:10px 8px;
 background:#fff;border:1px solid #e1e7e9;border-radius:12px;
 box-shadow:0 10px 28px rgba(17,39,51,.22);z-index:20;
 color:#203543;text-align:center;font-family:inherit;
}
.ks .ks-share-menu[hidden]{display:none!important}
.ks .ks-share-heading{display:block;padding:6px 4px 9px;font-size:11px;font-weight:650;line-height:1.35;color:#536b77}
.ks .ks-share-menu a,.ks .ks-share-menu button.ks-share-copy{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-height:36px!important;height:auto!important;
 padding:8px 10px!important;margin:0!important;border:0!important;
 border-radius:7px!important;background:transparent!important;color:#2d5264!important;
 box-shadow:none!important;font-family:inherit!important;font-size:12px!important;font-weight:550!important;
 line-height:1.3!important;letter-spacing:0!important;text-transform:none!important;
 text-decoration:none!important;cursor:pointer;
}
.ks .ks-share-menu a:hover,.ks .ks-share-menu button.ks-share-copy:hover{background:#f1f6f8!important;color:#173849!important}
.ks .ks-share-status{display:block;font-size:11px;line-height:1.4;color:#216c4d}
.ks .ks-share-status:empty{display:none}
/* Place share control beside the existing favorite heart without overlaying the location badge. */
.ks.ks-browse .ks-stay-photo{container-type:inline-size}
.ks.ks-browse .ks-stay-photo>.ks-share{position:absolute;top:12px;right:58px;z-index:7}
.ks.ks-browse .ks-stay-photo>.ks-share .ks-share-menu{right:-46px;max-width:calc(100cqw - 20px)}
/* Detail page: keep existing save control, add share on the same row. */
.ks.ks-property .ks-property-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.ks.ks-property .ks-property-actions .ks-share-menu{right:0}
@media(max-width:600px){
 .ks.ks-property .ks-property-heading{flex-wrap:wrap}
 .ks.ks-property .ks-property-actions{width:100%;justify-content:flex-end}
}

/* Native popover escapes image clipping and stays fully on-screen. The JS sets its viewport coordinates. */
.ks .ks-share-menu:popover-open{position:fixed!important;inset:auto;margin:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto;z-index:999999!important}
