/* Reference layout: compact filters, edge-to-edge map, price-first property cards. */
.re-area-marker { background: none; border: 0; text-align: center; pointer-events: none; }
.realestate-map .re-city-area { pointer-events: all; cursor: pointer; }
.wc-theme .re-area-link { display: inline-block; max-width: 130px; white-space: nowrap; padding: 5px 10px; border: 1px solid #a57bdc; border-radius: 7px; color: #6b32bf; background: #fff; box-shadow: 0 2px 7px #49316924; font: 500 12px/1.5 Rubik, sans-serif; text-decoration: none; pointer-events: auto; }
.wc-theme .re-area-link:is(:hover, :focus-visible, .is-previewed), .wc-theme .re-area-link.is-selected { color: #fff; background: #763ae4; border-color: #763ae4; }
.realestate-map .re-area-tooltip, .realestate-map .re-area-tooltip * { pointer-events: none !important; }
.re-area-tooltip { color: #622dab; border-color: #b99bdf; font-family: Rubik, sans-serif; }
.realestate-map.is-city-overview .realestate-price-marker { display: none; }
.wc-theme.page-category-realestate {
    --re-accent: #00aeef;
    --re-line: #e2e2e5;
    --re-header-height: 76px;
    --re-workspace-height: calc(100dvh - 140px);
    background: #fff;
}
.wc-theme.page-category-realestate main { padding: 0 !important; }
.wc-theme.page-category-realestate .category-page-shell { max-width: none; width: 100%; padding: 0 !important; }
.wc-theme.page-category-realestate :is(.category-hero, .category-breadcrumb) { display: none; }
/* Keep filters above the map but below the main navigation and its dropdowns. */
.re-discovery { position: sticky; top: var(--re-header-height); z-index: 1020; margin: 0; background: #fff; border-bottom: 1px solid var(--re-line); }
.re-primary-filters { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0; }
.re-location-field { position: relative; flex: 0 1 260px; min-width: 170px; display: flex; align-items: center; height: 40px; border: 1px solid #cbcbcf; border-radius: 8px; background: #fff; padding: 0 10px; gap: 8px; }
.re-location-field > i { color: #aaa; font-size: 13px; }
.re-location-field > input { flex: 1; min-width: 0; width: 0; border: 0; outline: none; background: none; color: #303036; font: inherit; font-size: 13px; }
.re-location-field > button { border: 0; background: none; color: #74747c; padding: 6px 2px; font-size: 12px; }
.re-location-field:focus-within { border-color: var(--re-accent); box-shadow: 0 0 0 2px #00aeef14; }
.re-deal-tabs { display: flex; flex-shrink: 0; overflow: hidden; border: 1px solid var(--re-line); border-radius: 8px; }
.re-deal-tabs a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; font-size: 13px; color: #606068; background: #fff; text-decoration: none; font-weight: 500; }
.re-deal-tabs a + a { border-inline-start: 1px solid var(--re-line); }
.re-deal-tabs a.is-active { color: var(--re-accent); background: #f9fdff; box-shadow: inset 0 0 0 1px #a0daef; }
.re-deal-tabs a:hover { background: #f5fafc; }
.re-filter-popover { position: relative; flex-shrink: 0; }
.re-filter-popover summary, .re-more-filters { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid var(--re-line); border-radius: 8px; background: #fff; color: #5f6065; font: inherit; font-size: 13px; font-weight: 500; list-style: none; white-space: nowrap; cursor: pointer; }
.re-filter-popover summary::-webkit-details-marker { display: none; }
.re-filter-popover summary i { font-size: 10px; }
.re-filter-popover summary.is-active, .re-filter-popover[open] summary { color: var(--re-accent); border-color: #a0daef; background: #fafeff; }
.re-filter-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--re-accent); }
.re-more-filters { flex-shrink: 0; background: #fafafa; color: #222; border-color: #c6c6cb; }
.re-popover-content { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 1110; width: 285px; padding: 18px; border: 1px solid var(--re-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #20303620; }
.re-popover-content > strong { display: block; margin-bottom: 15px; font-size: 14px; font-weight: 600; color: #27272c; }
.re-range-pair { display: flex; gap: 10px; margin-bottom: 16px; }
.re-range-pair > label { flex: 1; min-width: 0; font-size: 12px; color: #707078; }
.re-range-pair .form-control { width: 100%; min-width: 0; height: 40px; padding: 8px; margin-top: 6px; border-radius: 6px; border-color: #d8d8df; background: #fff; font-size: 13px; box-shadow: none; }
.wc-theme .re-popover-content .btn-primary { width: 100%; padding: 9px; border: 1px solid var(--re-accent); border-radius: 6px; background: var(--re-accent); color: #fff; font-size: 13px; font-weight: 500; box-shadow: none; }
.wc-theme.page-category-realestate :is(.re-popover-content, .filter-sidebar) .btn-primary { background-color: var(--re-accent) !important; border-color: var(--re-accent); }
.wc-theme.page-category-realestate :is(.re-popover-content, .filter-sidebar) .btn-primary:hover { background-color: #008bc2 !important; }
.re-feature-option { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13px; color: #45454e; }
.re-feature-option input { width: 16px; height: 16px; accent-color: var(--re-accent); }
.re-feature-option:last-of-type { margin-bottom: 12px; }
.re-property-types { padding: 8px; }
.re-property-types a { display: block; padding: 10px; color: #474750; border-radius: 5px; text-decoration: none; font-size: 13px; }
.re-property-types a:hover, .re-property-types a[aria-current] { background: #f3fcff; color: var(--re-accent); }
.wc-theme.page-category-realestate .category-results-layout { margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
.wc-theme.page-category-realestate .category-results-area { width: 100%; flex: 0 0 100%; margin: 0; padding: 0; }
.wc-theme.page-category-realestate .realestate-map-layout { display: grid; direction: ltr; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 0; height: var(--re-workspace-height); align-items: stretch; }
.wc-theme.page-category-realestate .realestate-map-panel { position: relative; top: 0; height: 100%; min-width: 0; }
.wc-theme.page-category-realestate .realestate-map { width: 100%; height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
.wc-theme.page-category-realestate .realestate-map-results { min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 24px; scrollbar-width: thin; background: #fff; }
.wc-theme.page-category-realestate .category-results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 34px; padding: 0; margin: 0 0 18px; border: 0; background: none; box-shadow: none; }
.wc-theme.page-category-realestate .category-results-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.wc-theme.page-category-realestate .category-results-summary h1, .re-empty-heading { margin: 0; color: #17171c; font-size: 16px !important; line-height: 1.5; font-weight: 650; }
.wc-theme.page-category-realestate .category-results-summary > strong { color: #97979d; font-size: 11px; font-weight: 400; }
.wc-theme.page-category-realestate .category-results-summary > span { display: none; }
.re-results-sort { display: flex; margin-inline-start: auto; align-items: center; }
.re-results-sort label { display: none; }
.wc-theme.page-category-realestate .re-results-sort select { width: 110px; min-height: 28px; padding-block: 3px; border: 0; border-radius: 0; font-size: 11px; color: #7a7a82; background-color: #fff; box-shadow: none; }
.wc-theme.page-category-realestate .category-results-toolbar .view-toggle { border: 0; padding: 0; background: none; }
.wc-theme.page-category-realestate .category-results-toolbar .view-toggle a { min-width: 0; min-height: 28px; padding: 4px 7px; font-size: 10px; font-weight: 400; color: #888890; background: transparent; }
.wc-theme.page-category-realestate .category-results-toolbar .view-toggle a.active { color: var(--re-accent); background: #f3fcff; }
.wc-theme.page-category-realestate .realestate-results-head { display: none; }
.wc-theme.page-category-realestate .realestate-results-head.is-filtered { display: flex; margin-bottom: 12px; padding: 8px 10px; border-radius: 6px; box-shadow: none; font-size: 11px; }
.wc-theme.page-category-realestate .realestate-map-strip { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 500; padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
.wc-theme.page-category-realestate .realestate-map-strip > div { display: none; }
.wc-theme.page-category-realestate .realestate-map-caption { position: absolute; bottom: 26px; left: 12px; right: 12px; z-index: 500; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 6px 10px; border-radius: 6px; color: #5f5f67; background: #fffffff2; font-size: 10px; box-shadow: 0 1px 6px #00000012; pointer-events: none; }
.wc-theme.page-category-realestate .realestate-map-results .category-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; margin: 0; }
.wc-theme.page-category-realestate .realestate-map-results .category-listings-grid > .listing-col-5 { width: 100% !important; min-width: 0; max-width: 100%; flex: none; padding: 0; margin: 0; }
.wc-theme.page-category-realestate .realestate-map .realestate-price-marker { pointer-events: auto; }
.wc-theme.page-category-realestate .realestate-map.is-zoomed-out .realestate-price-marker { width: 14px !important; height: 14px !important; margin-left: -7px !important; margin-top: -7px !important; }
.wc-theme.page-category-realestate .realestate-map.is-zoomed-out .realestate-price-marker::after { content: ''; position: absolute; inset: 0; border: 2px solid #fff; border-radius: 50%; background: var(--re-accent); box-shadow: 0 1px 4px #0004; }
.wc-theme.page-category-realestate .realestate-map.is-zoomed-out .realestate-price-marker span { position: absolute; bottom: 18px; left: 50%; pointer-events: none; }
.wc-theme.page-category-realestate .realestate-map.is-zoomed-out .realestate-price-marker:is(:hover, .is-hovered) span { opacity: 1; transform: translateX(-50%); }
.wc-theme.page-category-realestate .realestate-map .realestate-price-marker.is-hovered span { opacity: 1; transform: translateY(-5px); background: var(--re-accent); color: #fff; }
.wc-theme.page-category-realestate .listing-card.re-property-card {
    display: grid !important; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "price" "specs" "address";
    grid-template-rows: auto auto 1fr auto;
    padding: 0; overflow: hidden; border: 1px solid #dddde1; border-radius: 18px;
    background: #fff; box-shadow: 0 2px 5px #0000000b;
}
.wc-theme.page-category-realestate .listing-card.re-property-card:hover { border-color: #c1bacf; box-shadow: 0 4px 12px #00000012; transform: none; }
.wc-theme.page-category-realestate .listing-card.re-property-card .img-wrap { grid-area: photo; width: 100%; height: auto; aspect-ratio: 5 / 3; margin: 0; border: 0; border-radius: 17px 17px 0 0; }
.wc-theme.page-category-realestate .listing-card.re-property-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.wc-theme.page-category-realestate .listing-card.re-property-card .body { display: contents; }
.wc-theme.page-category-realestate .listing-card.re-property-card .price { grid-area: price; width: 100%; margin: 0; padding: 13px 16px 9px; border: 0; color: #15151b; text-align: right; font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -.3px; }
.wc-theme.page-category-realestate .listing-card.re-property-card .meta { grid-area: specs; min-height: 34px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; padding: 0 16px 12px; margin: 0; color: #676772; font-size: 12px; font-weight: 400; line-height: 1.5; }
.wc-theme.page-category-realestate .listing-card.re-property-card .meta.specs span:not(:last-child)::after { margin-inline-start: 8px; }
.wc-theme.page-category-realestate .listing-card.re-property-card .title { grid-area: address; display: flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 10px 16px; border-top: 1px solid #e3e3e6; color: #3d3d46; font-size: 12px; line-height: 1.5; font-weight: 600; }
.wc-theme.page-category-realestate .listing-card.re-property-card .title i { flex-shrink: 0; font-size: 11px; color: #656570; }
.wc-theme.page-category-realestate .listing-card.re-property-card .title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wc-theme.page-category-realestate .listing-card.re-property-card .fav-btn { inset-inline-start: auto; right: auto; left: 10px; top: 10px; width: 33px; height: 33px; border-radius: 50%; border: 1px solid #dedee3; color: #55555c; background: #fff; box-shadow: 0 1px 3px #00000012; }
.wc-theme.page-category-realestate .listing-card.re-property-card .fav-btn.active { color: #dc4665; }
.wc-theme.page-category-realestate .category-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; margin: 0; border: 0; border-bottom: 1px solid var(--re-line); border-radius: 0; background: #fafafa; box-shadow: none; }
.wc-theme.page-category-realestate .category-active-filters-label { display: none; }
.wc-theme.page-category-realestate .active-filter-chip { background: #fff; border-color: #d6e5eb; color: #528395; font-size: 11px; }
.wc-theme.page-category-realestate #filterSidebar { display: none; }
.wc-theme.page-category-realestate #filterSidebar.is-open { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: stretch; justify-content: flex-start; width: 100%; height: 100dvh; padding: 0; margin: 0; background: #17172066; }
.wc-theme.page-category-realestate #filterSidebar.is-open .filter-sidebar { position: relative; inset: auto; width: 390px; max-width: 100%; height: 100%; max-height: 100%; overflow-y: auto; padding: 22px; border-radius: 0; margin: 0; }
.wc-theme.page-category-realestate #filterSidebar.is-open .filter-sheet-head { position: sticky; top: -22px; z-index: 6; padding-top: 15px; background: #fff; }
.wc-theme.page-category-realestate .filter-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f3f5; color: #656570; font-size: 24px; }
.wc-theme.page-category-realestate .category-filter-actions { position: sticky; bottom: -22px; padding: 12px 0 16px; border-top: 1px solid #e3e3e6; background: #fff; z-index: 6; }
.wc-theme.page-category-realestate .category-filter-actions .btn-primary { margin-top: 0; }
.wc-theme.page-category-realestate .filter-sidebar .btn-primary { background: var(--re-accent); border-color: var(--re-accent); }
.re-mobile-view-switch { display: none; }
.wc-theme.page-category-realestate .realestate-map-toggle { display: inline-flex !important; }
.wc-theme.page-category-realestate .category-seo-text { margin: 28px 24px; }
.wc-theme.page-category-realestate .category-results-area > .category-results-toolbar { padding: 18px 24px 0; }
.wc-theme.page-category-realestate .category-results-area > .category-listings-grid { margin: 0; padding: 0 24px; }
.wc-theme.page-category-realestate .category-empty-state { margin: 24px; }
.re-empty-heading { padding: 20px 24px 0; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .re-primary-filters { gap: 7px; padding-inline: 10px; }
    .re-location-field { flex-basis: 180px; }
    .re-filter-popover summary, .re-more-filters { padding-inline: 10px; font-size: 12px; }
    .re-deal-tabs a { padding-inline: 10px; }
    .wc-theme.page-category-realestate .realestate-map-results { padding: 14px; }
    .wc-theme.page-category-realestate .realestate-map-results .category-listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 991.98px) {
    .wc-theme.page-category-realestate { --re-header-height: 60px; }
    .re-primary-filters { flex-wrap: wrap; gap: 8px; }
    .re-location-field { flex: 1 1 220px; }
    .re-discovery { position: relative; top: auto; }
    .wc-theme.page-category-realestate .realestate-map-layout { display: block; height: auto; direction: rtl; }
    .wc-theme.page-category-realestate .realestate-map-panel { display: none !important; height: 65dvh; min-height: 360px; }
    .wc-theme.page-category-realestate .realestate-map-layout.re-show-map .realestate-map-panel { display: block !important; }
    .wc-theme.page-category-realestate .realestate-map-layout.re-show-map .realestate-map-results { display: none; }
    .wc-theme.page-category-realestate .realestate-map-results { height: auto; overflow: visible; padding: 14px; }
    .re-mobile-view-switch { display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 10px 12px 0; width: fit-content; border: 1px solid var(--re-line); border-radius: 8px; background: #fff; }
    .re-mobile-view-switch button { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 24px; border: 0; border-radius: 5px; color: #676770; background: none; font-size: 12px; }
    .re-mobile-view-switch button.is-active { background: #f1fbff; color: var(--re-accent); }
    .wc-theme.page-re-map-mode .category-results-toolbar .view-toggle { display: none; }
}
@media (max-width: 575.98px) {
    .re-primary-filters { gap: 7px; padding: 10px; }
    .re-location-field { flex: 1 1 calc(100% - 175px); min-width: 140px; }
    .re-deal-tabs a { padding-inline: 10px; font-size: 12px; }
    .re-filter-popover summary, .re-more-filters { min-height: 36px; padding-inline: 10px; gap: 6px; font-size: 11px; }
    .re-more-filters { width: 36px; padding-inline: 0; }
    .re-more-filters > span { display: none; }
    .re-filter-popover { position: static; }
    .re-popover-content { position: absolute; inset-inline: 10px; top: calc(100% - 3px); width: auto; max-height: 60dvh; overflow-y: auto; }
    .wc-theme.page-category-realestate .category-results-summary { gap: 5px; }
    .wc-theme.page-category-realestate .category-results-summary h1 { font-size: 14px !important; }
    .wc-theme.page-category-realestate .category-results-toolbar { gap: 8px; margin-bottom: 14px; }
    .re-results-sort select { width: 95px; }
    .wc-theme.page-category-realestate .realestate-map-results .category-listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card { border-radius: 12px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .img-wrap { border-radius: 11px 11px 0 0; aspect-ratio: 4 / 3; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .price { font-size: 17px; padding: 10px 10px 7px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .meta { font-size: 10px; padding: 0 10px 9px; gap: 3px 5px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .meta.specs span:not(:last-child)::after { margin-inline-start: 5px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .title { padding: 9px 10px; font-size: 10px; min-height: 38px; }
    .wc-theme.page-category-realestate .listing-card.re-property-card .fav-btn { width: 29px; height: 29px; top: 7px; left: 7px; }
    .wc-theme.page-category-realestate #filterSidebar.is-open { align-items: flex-end; }
    .wc-theme.page-category-realestate #filterSidebar.is-open .filter-sidebar { width: 100%; height: auto; max-height: 90dvh; border-radius: 16px 16px 0 0; }
}
@media (max-width: 359.98px) {
    .re-location-field { flex-basis: 100%; }
    .wc-theme.page-category-realestate .realestate-map-results .category-listings-grid { grid-template-columns: 1fr; }
}
