.cm-property-search{box-sizing:border-box;background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:20px;box-shadow:0 8px 25px #092d6209;margin:24px 0;color:#092d62}
.search-shell .cm-property-search{margin:0}
.cm-operation-tabs{display:flex;gap:8px;margin-bottom:15px}
.cm-operation-tabs label{position:relative;cursor:pointer}
.cm-operation-tabs input{position:absolute;opacity:0;width:1px;height:1px}
.cm-operation-tabs span{display:block;border-radius:8px;padding:9px 18px;background:#f0f4f9;font-size:14px;font-weight:500}
.cm-operation-tabs input:checked+span{background:#092d62;color:white}
.cm-operation-tabs input:focus-visible+span{outline:3px solid #ec1838;outline-offset:2px}
.cm-search-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 50px;gap:12px}
.cm-search-fields select{width:100%;min-width:0;height:48px;background-color:white;border:1px solid #dbe3ee;border-radius:8px;padding:10px 28px 10px 12px;color:#334155;font-size:14px;box-sizing:border-box}
.cm-search-fields button{width:50px;height:48px;display:grid;place-items:center;border:0;border-radius:8px;background:#ec1838;color:white;cursor:pointer;padding:0}
.cm-query-note{font-size:13px;margin-bottom:14px;color:#64748b}.cm-query-note a{padding:4px 10px;font-size:20px;color:#092d62}
.property-card .cm-card-facts,.catalog-card>div:last-child>.cm-card-facts{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between;align-items:center;gap:8px!important;border-top:1px solid #e4e9f0;margin-top:auto!important;padding-top:13px!important;font-size:12px!important;color:#44546c}
.cm-card-facts>span{display:inline-flex!important;align-items:center;gap:5px!important;white-space:nowrap;min-width:0}
.cm-card-facts svg{display:block;width:21px!important;height:21px!important;flex-shrink:0}
.cm-card-facts>span>span{font-size:12px;white-space:nowrap}
.catalog-card>div:last-child>div.text-sm{padding-bottom:14px}
.property-card .photo,.catalog-card>div:first-child{min-height:240px}
.property-card .photo>.price,.catalog-card>div:first-child>.catalog-price{position:absolute!important;top:auto!important;bottom:12px!important;left:12px!important;right:auto!important;z-index:2;max-width:calc(100% - 24px)!important;box-sizing:border-box;font-size:18px!important;line-height:1.3;background:white!important;color:#092d62!important;padding:9px 12px!important;border-radius:8px!important;white-space:normal;overflow-wrap:anywhere;box-shadow:0 3px 12px #0002}
/* One ribbon occupies the top; price occupies the bottom; badges are in normal flow. */
.property-card .photo>.ribbon,.catalog-card>div:first-child>.catalog-ribbon{position:absolute!important;top:12px!important;right:0!important;left:auto!important;bottom:auto!important;transform:none!important;width:auto!important;max-width:calc(100% - 24px)!important;max-height:120px;overflow:auto;box-sizing:border-box;padding:9px 14px 9px 22px!important;clip-path:polygon(10px 0,100% 0,100% 100%,10px 100%,0 50%)!important;border-radius:0!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;text-align:right!important}
.property-card .card-body>.card-badges,.catalog-card>div:last-child>.catalog-badges{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important;margin:0 0 10px!important;padding:0!important;background:transparent!important}
.card-body>.card-badges:empty{display:none!important}
.card-body>.card-badges span,.catalog-card .catalog-badges span{display:inline-block;color:white;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:600;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box}
@media(max-width:1000px){.cm-search-fields{grid-template-columns:repeat(2,minmax(0,1fr)) 50px}.cm-search-fields button{grid-column:3;grid-row:1 / span 2;height:100%}}
@media(max-width:520px){.cm-property-search{padding:14px}.cm-search-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-search-fields button{grid-column:1 / -1;grid-row:auto;width:100%;height:44px}.cm-operation-tabs span{padding:9px 12px}.cm-card-facts svg{width:19px!important;height:19px!important}}

/* v58: diagonal ribbon, badges on photo, stable price at the bottom. */
.cm-search-fields{grid-template-columns:repeat(3,minmax(0,1fr)) 50px}
.property-card .photo>.ribbon,.catalog-card>div:first-child>.catalog-ribbon{top:38px!important;right:-62px!important;left:auto!important;width:248px!important;max-width:none!important;max-height:58px!important;padding:12px 54px!important;transform:rotate(45deg)!important;clip-path:none!important;overflow:hidden!important;line-height:1.3!important;font-size:11px!important;text-align:center!important;z-index:1}
.property-card .photo>.card-badges,.catalog-card>div:first-child>.catalog-badges{position:absolute!important;top:12px!important;left:12px!important;right:155px!important;bottom:auto!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:6px!important;max-width:none!important;max-height:138px;overflow:auto;padding:0!important;margin:0!important;background:transparent!important;z-index:2}
.photo>.card-badges span,.catalog-card>div:first-child>.catalog-badges span{display:block;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;color:white;border-radius:20px;padding:5px 9px;font-size:10px;line-height:1.3;font-weight:600}
.photo>.card-badges:empty{display:none!important}
@media(max-width:1000px){.cm-search-fields{grid-template-columns:repeat(3,minmax(0,1fr)) 50px}.cm-search-fields button{grid-column:auto;grid-row:auto;height:48px}}
@media(max-width:600px){.cm-search-fields{grid-template-columns:1fr}.cm-search-fields button{grid-column:auto;grid-row:auto;width:100%;height:44px}}
