.marketplace-filters{display:grid;grid-template-columns:2fr 1.3fr 1fr 1.4fr auto auto;gap:10px;align-items:end;margin:16px 0;padding:14px;background:#fff;border:1px solid #dbe4e5;border-radius:14px}.marketplace-filters label{display:grid;gap:5px;font-size:14px;margin:0}.marketplace-filters input,.marketplace-filters select{width:100%;min-width:0;min-height:44px;height:44px;padding:8px;border:1px solid #c6d3d5;border-radius:7px;font:inherit;font-size:16px}.marketplace-filters a{padding:12px 0}.results .card>a{display:block;text-decoration:none;color:inherit}.marketplace-benefits{color:#735216;font-weight:700;font-size:14px;line-height:1.6}.marketplace-details{display:block;font-weight:700;margin-top:15px}.al-offer-benefits{font-weight:700}.pagination{align-items:center}@media(max-width:1000px){.marketplace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.marketplace-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.marketplace-filters a{text-align:center}}

.marketplace-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px}.compare-toggle{margin:0 18px 18px}.card-media{position:relative}.yield-badge{position:absolute;bottom:12px;left:12px;background:#123e40;color:white;padding:8px 12px;border-radius:5px;font-weight:700}#comparisonDialog{max-width:95vw;width:1100px;border:1px solid #a88d59;padding:25px}#comparisonTable{overflow:auto}#comparisonTable table{border-collapse:collapse;width:100%;margin-top:20px}#comparisonTable th,#comparisonTable td{text-align:start;padding:14px;border-bottom:1px solid #d7e0e1;min-width:170px;vertical-align:top}.marketplace-filters{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.marketplace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.marketplace-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.property-map{height:300px}}

.results .card{display:flex;flex-direction:column}.results .card>a{height:auto}.compare-toggle{align-self:flex-start}.advanced-marketplace{grid-column:1/-1;margin:0}.advanced-marketplace summary{padding:6px 0}.advanced-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px 0}@media(max-width:900px){.advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Property marketplace results only. */
.marketplace-results-shell{margin:28px 0}.marketplace-results-summary{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px 24px;padding:18px 20px;border:1px solid #dbe4e5;border-inline-start:3px solid #a88d59;background:#fff}.marketplace-results-summary h2{margin:0;font-size:clamp(24px,2.4vw,34px);line-height:1.15}.marketplace-results-summary p{margin:0;color:#51646b}.marketplace-results-shell .marketplace-filters{margin:18px 0}.marketplace-results-shell .advanced-marketplace summary{font-weight:700;cursor:pointer}.marketplace-results-shell .advanced-marketplace[open] summary{margin-bottom:4px}.marketplace-results-shell .marketplace-tools{padding:0 2px;margin-bottom:20px}.marketplace-results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.marketplace-results-grid .marketplace-result-card{min-width:0;overflow:hidden;border-color:#dbe4e5;border-radius:14px;box-shadow:0 8px 22px rgba(21,48,57,.06)}.marketplace-results-grid .marketplace-result-card>a{display:block}.marketplace-results-grid .marketplace-result-card .card-media{aspect-ratio:16/10;background:#edf2f3;overflow:hidden}.marketplace-results-grid .marketplace-result-card .card-media img{width:100%;height:100%;object-fit:cover}.marketplace-result-card .marketplace-card-body{display:block;padding:18px}.marketplace-result-card .marketplace-card-source{margin:0 0 7px}.marketplace-result-card h2{margin:0;font-size:clamp(21px,1.8vw,27px);line-height:1.18}.marketplace-card-location{margin:9px 0 0;color:#51646b}.marketplace-result-card .price{margin:16px 0 0;font-size:24px;line-height:1.15}.marketplace-card-facts{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 0;padding:0;list-style:none}.marketplace-card-facts li{padding:5px 8px;border:1px solid #dbe4e5;border-radius:999px;color:#395057;font-size:13px;line-height:1.25}.marketplace-card-availability{min-height:36px;margin:15px 0 0}.marketplace-result-card .marketplace-benefits{margin:15px 0 0}.marketplace-result-card .marketplace-details{margin-top:12px;padding-top:0}.marketplace-results-grid .compare-toggle{margin:0 20px 20px}.marketplace-results-shell .pagination{margin-top:26px}@media(max-width:1000px){.marketplace-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.marketplace-results-shell{margin:22px 0}.marketplace-results-summary{padding:16px}.marketplace-results-summary p{width:100%}.marketplace-results-grid{grid-template-columns:1fr;gap:18px}.marketplace-result-card .marketplace-card-body{padding:18px}.marketplace-results-grid .compare-toggle{margin:0 18px 18px}.marketplace-results-shell .marketplace-tools{gap:10px}.marketplace-results-shell .marketplace-tools>*{max-width:100%}}
/* Small screens retain all comparisons and pagination without page overflow. */
.marketplace-results-shell .pagination{display:flex;flex-wrap:wrap;gap:10px;max-width:100%;box-sizing:border-box}
#comparisonDialog{box-sizing:border-box;max-height:90dvh;overflow:auto}
#comparisonTable{overscroll-behavior-inline:contain}
@media(max-width:600px){#comparisonDialog{padding:16px;width:calc(100% - 24px);max-width:calc(100% - 24px)}#comparisonTable th,#comparisonTable td{min-width:120px;padding:10px;font-size:13px}#comparisonTable th:first-child{position:sticky;inset-inline-start:0;z-index:1;background:#f6f8f7;min-width:96px;max-width:110px;white-space:normal}}
.marketplace-results-shell .pagination{margin-inline:0;width:100%}
@media(max-width:600px){#comparisonTable th,#comparisonTable td{min-width:100px;box-sizing:border-box;padding:8px;font-size:12px;overflow-wrap:anywhere}#comparisonTable th:first-child{min-width:84px;max-width:90px}}
.gold-gift-card-badge{position:absolute;inset-inline-end:12px;bottom:12px;z-index:3;max-width:min(58%,210px);padding:8px 11px;border:1px solid #d8b86f;border-radius:6px;background:#183233ed;color:#fff2cc;font-size:14px;font-weight:700;line-height:1.35;text-align:center;box-shadow:0 3px 12px #0005}
.marketplace-result-card .yield-badge{max-width:38%}
@media(max-width:400px){.gold-gift-card-badge{font-size:13px;padding:6px 8px}}

/* Marketplace mobile tools retain the account link beside the locale and currency controls. */
@media(max-width:760px){body:has(.marketplace-results-shell) .sales-ui-header .sales-tools .al-currency-picker{width:4.5rem}}

/* Keep Arabic marketplace header rows stable while the local font loads. */
@media(max-width:760px){html[lang="ar"] body:has(.marketplace-results-shell) .sales-ui-header nav{column-gap:8px}}
@media(max-width:385px){html[lang="ar"] body:has(.marketplace-results-shell) .sales-ui-header nav a:last-child{flex-basis:100%}}
@media(max-width:760px){html[lang="ar"] body:has(.marketplace-results-shell) .sales-ui-header .sales-tools{width:220px;flex-shrink:0}}
