/* Shared listing cards and pagination for public pages and account panels. */
.bm-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;min-width:0;padding:15px 18px;border:1px solid #e4d8f5;border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(44,25,83,.07);font-family:Vazirmatn,sans-serif}
.bm-pagination__summary{margin:0;color:#625578;font-size:14px;line-height:1.8}.bm-pagination__summary strong{color:#281a4c;font-weight:900}
.bm-pagination__controls,.bm-pagination__pages{display:flex;align-items:center;gap:6px}.bm-pagination__controls{max-width:100%;overflow-x:auto;scrollbar-width:thin;padding:2px}
.bm-pagination__button,.bm-pagination__number{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:42px;min-height:42px;border:1px solid #ded0f0;border-radius:12px;background:#faf8ff;color:#4d287e;font:800 14px Vazirmatn,sans-serif;text-decoration:none;cursor:pointer;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}
.bm-pagination__button{padding:0 14px}.bm-pagination__button:hover,.bm-pagination__number:hover{transform:translateY(-2px);border-color:#a36be1;background:#f1e7ff;box-shadow:0 5px 12px rgba(82,37,144,.12)}
.bm-pagination__number--active{border-color:#772ed9;background:linear-gradient(135deg,#a65df3,#6d29cb);box-shadow:0 5px 14px rgba(115,45,203,.24);color:#fff;cursor:default}.bm-pagination__number--active:hover{transform:none;background:linear-gradient(135deg,#a65df3,#6d29cb);color:#fff}
.bm-pagination__button--disabled{opacity:.45;cursor:default}.bm-pagination__button--disabled:hover{transform:none;border-color:#ded0f0;background:#faf8ff;box-shadow:none}.bm-pagination__ellipsis{min-width:24px;color:#6f5b89;text-align:center;font-size:18px}
.bm-pagination a:focus-visible,.bm-pagination button:focus-visible{outline:3px solid #b77bfa;outline-offset:2px}

/* Compact cards shared by the home page, similar listings, agency and favorites. */
.bm-listing-card{border:1px solid #e9ddf8;border-radius:22px;box-shadow:0 12px 30px rgba(46,23,92,.1);transition:transform .2s,box-shadow .2s,border-color .2s}
.bm-listing-card:hover{transform:translateY(-4px);border-color:#bc91ee;box-shadow:0 19px 36px rgba(70,30,130,.17)}
.bm-listing-card .bm-listing-image{aspect-ratio:1.62}
.bm-listing-card .bm-listing-image>div[class*="top-1.5"]{top:12px}.bm-listing-card .bm-listing-image>div[class*="right-1.5"]{right:12px}.bm-listing-card .bm-listing-image>div[class*="left-1.5"]{left:12px}
.bm-listing-card .bm-listing-image [class*="text-[10px]"]{font-size:12px;line-height:1.45;padding:5px 10px}
.bm-listing-card>div.p-3{padding:17px 18px 18px}
.bm-listing-card>div.p-3>div:first-child{margin-bottom:8px;gap:8px}
.bm-listing-card>div.p-3>div:first-child span{font-size:11px;line-height:1.6;letter-spacing:0}
.bm-listing-card h3{display:-webkit-box;min-height:54px;overflow:hidden;margin-bottom:7px;color:#241743;font-size:17px;line-height:1.6;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal}
.bm-listing-card>div.p-3>div:nth-child(3){color:#665978;font-size:13px;line-height:1.7}.bm-listing-card>div.p-3>div:nth-child(3) svg{width:16px;height:16px}
.bm-listing-card>div.p-3>div:nth-child(4){margin-top:14px;padding-top:13px;border-color:#e9def5}.bm-listing-card>div.p-3>div:nth-child(4) span:first-child{font-size:21px;line-height:1.25}.bm-listing-card>div.p-3>div:nth-child(4) span:nth-child(2){font-size:12px}.bm-listing-card>div.p-3>div:nth-child(4)>div:last-child{font-size:12px;color:#675b78}
.bm-listing-card>div[class*="bg-gradient"]{padding:9px 16px;font-size:12px}

/* Search cards: fluid height prevents text and actions from escaping the card. */
.bm-search-property-card,.bm-search-property-card *{box-sizing:border-box}
.bm-search-property-card article{height:auto!important;min-height:232px;grid-template-columns:minmax(168px,38%) minmax(0,1fr);align-items:stretch;border-color:#e5d8f1;border-radius:20px;box-shadow:0 12px 30px rgba(44,23,83,.09)}
.bm-search-property-card:hover article{transform:translateY(-3px);border-color:#ba88ec;box-shadow:0 18px 38px rgba(67,31,121,.17)}
.bm-search-property-image{min-height:232px;height:auto!important;align-self:stretch}
.bm-search-property-image>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover}
.bm-search-property-body{min-height:232px;overflow:hidden;padding:16px 17px}.bm-search-property-location{gap:6px;min-width:0;color:#665977;font-size:11px;line-height:1.6}.bm-search-property-location>span{font-size:16px}
.bm-search-property-body h3{min-height:0;max-height:3.25em;margin:8px 0 9px;overflow:hidden;color:#251743;font-size:16px;line-height:1.62;-webkit-line-clamp:2}
.bm-search-property-facts{display:flex;flex-wrap:wrap;gap:7px 12px}.bm-search-property-facts span{gap:4px;white-space:nowrap}.bm-search-property-facts strong{color:#312248;font-size:12px}.bm-search-property-facts small{color:#70647e;font-size:10px}
.bm-search-property-tags{display:flex;flex-wrap:wrap;gap:5px;min-height:0;margin-top:8px;overflow:hidden}.bm-search-property-tags span{padding:3px 7px;color:#643393;font-size:9px;line-height:1.45}
.bm-search-property-price{display:flex;align-items:flex-end;gap:9px;min-width:0;margin-top:auto;padding-top:10px}.bm-search-property-price>div{min-width:0}.bm-search-property-price small{color:#665b70;font-size:10px}.bm-search-property-price strong{overflow-wrap:anywhere;color:#7131be;font-size:17px;line-height:1.35}.bm-search-property-price strong i{font-size:10px}.bm-search-property-price>b{flex:none;color:#5f348d;font-size:10px;white-space:nowrap}.bm-search-property-price>b span{font-size:13px}
.bm-search-property-deal{top:10px;right:10px;padding:5px 9px;font-size:11px}.bm-search-property-code{top:10px;left:10px;padding:5px 8px;font-size:9px}.bm-search-property-brand{right:10px;bottom:10px;font-size:10px}.bm-search-property-offer{left:10px;bottom:10px;padding:5px 8px;font-size:10px}

/* Older card markup still used by the alternate home template. */
.bm-property-card{border-radius:21px;box-shadow:0 12px 30px rgba(44,23,83,.1)}.bm-property-image{aspect-ratio:1.65}.bm-property-image span{font-size:12px}.bm-property-details{padding:16px 18px 18px}.bm-property-details h3{font-size:17px;line-height:1.55;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bm-property-details p{font-size:13px;line-height:1.7}.bm-property-meta{margin-top:13px}.bm-property-meta strong{font-size:16px}.bm-property-meta small{font-size:11px}

@media(max-width:900px){.bm-search-property-card article{min-height:220px;grid-template-columns:minmax(145px,37%) minmax(0,1fr)}.bm-search-property-image,.bm-search-property-body{min-height:220px}}
@media(max-width:680px){.bm-pagination{justify-content:center;padding:14px 10px}.bm-pagination__summary{width:100%;text-align:center;font-size:13px}.bm-pagination__controls{justify-content:space-between;width:100%;overflow:visible;gap:5px}.bm-pagination__pages{flex:1;justify-content:center;min-width:0;gap:4px}.bm-pagination__button,.bm-pagination__number{min-width:38px;min-height:40px;font-size:13px}.bm-pagination__button{padding:0 10px}.bm-search-property-card article{min-height:196px;grid-template-columns:minmax(120px,38%) minmax(0,1fr)}.bm-search-property-image,.bm-search-property-body{min-height:196px}.bm-search-property-body{padding:11px 12px}.bm-search-property-body h3{margin:6px 0 7px;font-size:14px}.bm-search-property-location{font-size:10px}.bm-search-property-facts{gap:5px 8px}.bm-search-property-facts strong{font-size:11px}.bm-search-property-facts small{font-size:9px}.bm-search-property-tags{margin-top:5px}.bm-search-property-tags span{font-size:8px;padding:2px 5px}.bm-search-property-price{padding-top:7px}.bm-search-property-price strong{font-size:15px}.bm-search-property-price strong i{font-size:9px}.bm-search-property-price>b{font-size:9px}.bm-search-property-deal{font-size:10px}.bm-search-property-code{font-size:8px}.bm-listing-card h3{font-size:16px}.bm-listing-card>div.p-3>div:nth-child(4) span:first-child{font-size:19px}.bm-property-details h3{font-size:16px}}
@media(max-width:390px){.bm-search-property-card article{min-height:188px;grid-template-columns:minmax(108px,36%) minmax(0,1fr)}.bm-search-property-image,.bm-search-property-body{min-height:188px}.bm-search-property-body{padding:10px}.bm-search-property-body h3{font-size:13px}.bm-search-property-tags{display:none}.bm-search-property-price>b{display:none}.bm-search-property-code{display:none}.bm-pagination__pages{gap:3px}.bm-pagination__number{min-width:34px}}
