/* Property density: retain the milky glass, use space for facts instead of placeholders. */
.cards .compact-card{border-radius:12px;background:rgba(248,252,255,.66);display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden}
.cards .compact-card.has-photo:not(.minimal-card){grid-template-columns:88px minmax(0,1fr)}
.cards .compact-card .photo-btn{width:88px;height:100%;min-height:140px;grid-column:1;grid-row:1;padding:0}
.cards .compact-card .photo-btn img{height:100%;min-height:140px;object-fit:cover}
.cards .compact-card .card-info{min-width:0;padding:10px 12px;background:transparent}
.cards .compact-card.has-photo:not(.minimal-card) .card-info{grid-column:2}
.cards .compact-card .heart{width:36px;height:36px;top:8px;inset-inline-end:8px;box-shadow:none;border:1px solid #ffffffa8;background:#f9fcffb8}
.card-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding-inline-end:36px;font-size:12px;line-height:1.4;color:#52677a;min-height:20px}
.card-kind{font-weight:600;border-radius:5px;padding:2px 6px;font-size:12px;white-space:nowrap;background:#e6effaaa;color:#235691}
.card-kind.badge-rent{background:#dcefe6aa;color:#146750}.card-kind.badge-sold{background:#ede1f8b0;color:#74469a}
.cards .compact-card .price{font-size:21px;line-height:1.35;margin-top:4px;padding:0;padding-inline-end:0;overflow-wrap:anywhere;text-align:start;letter-spacing:-.35px}
.cards .compact-card .card-address{font-size:16px;line-height:1.4;margin-top:2px;min-height:30px;width:100%;overflow-wrap:anywhere}
.cards .compact-card .specs{gap:5px 10px;font-size:14px;line-height:1.5;margin:3px 0 0;flex-wrap:wrap}
.cards .compact-card .specs span+span{padding-inline-start:0;border:0}
.cards .compact-card .card-bottom{margin-top:6px;padding-top:5px;gap:8px;font-size:13px;min-height:36px;border-color:#a9bbcc44}
.cards .compact-card .compare-check{min-height:34px;font-size:13px}
.cards .compact-card .insights-link{width:auto;min-height:34px;padding:5px 9px;border-radius:7px;background:#dceafa70;margin:0;font-size:13px}
.cards .compact-card .insights-link svg{width:16px;height:16px}
.card-nearby{font-size:12px;line-height:1.5;color:#216c54;margin-top:5px}
.explore-scene .cards{gap:9px}
.cards .minimal-card{border-radius:9px}
.cards .minimal-card .card-info{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;padding:9px 12px;padding-inline-end:53px}
.cards .minimal-card .card-address{grid-column:1;grid-row:1;margin:0;min-height:26px;align-self:center}
.cards .minimal-card .price{grid-column:2;grid-row:1;align-self:center;font-size:18px;line-height:1.35;margin:0;max-width:165px;white-space:normal}
.cards .minimal-card .specs{grid-column:1;grid-row:2;margin:0;font-size:13px}
.cards .minimal-card .card-summary{grid-column:1/-1;grid-row:3;padding:0;font-size:12px;min-height:18px}
.cards .minimal-card .card-kind{padding:0;background:transparent;font-size:12px}
.cards .minimal-card .heart{top:calc(50% - 18px)}
/* The density switch stays with the pinned drag/close controls. */
.explore-scene .results-controls{display:grid;grid-template-columns:32px minmax(0,1fr) 38px;grid-template-areas:'drag views close';height:52px;gap:8px;padding:5px 10px}
.results-controls>.panel-drag-handle{grid-area:drag;width:32px;height:40px;min-width:0}
.results-controls>.list-collapse{grid-area:close;position:static;width:38px;height:38px}
.results-view{grid-area:views;display:flex;gap:3px;padding:2px;justify-self:center;background:#ffffff56;border:1px solid #ffffff80;border-radius:9px}
.results-view button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:5px 9px;border-radius:6px;font-size:14px;color:#345370;white-space:nowrap}
.results-view button svg{width:16px;height:16px}
.results-view button[aria-pressed=true]{background:#175ce2;color:#fff;box-shadow:0 1px 4px #1a4d9b25}
/* Bottom-left is physical, in both Hebrew and English. Drag overrides the default. */
.browse-mode .explore-scene .map-top{top:auto;bottom:max(25px,env(safe-area-inset-bottom));left:16px;right:auto;width:max-content;max-width:calc(100vw - 32px);justify-content:flex-start}
.explore-scene .map-tools{max-width:calc(100vw - 32px);align-items:center}
@media(min-width:761px){html[dir=ltr] .explore-scene .results{bottom:100px}}
@media(max-width:760px){
 .cards .compact-card .heart{width:40px;height:40px;top:6px}
 .cards .compact-card.has-photo:not(.minimal-card){grid-template-columns:68px minmax(0,1fr)}
 .cards .compact-card .photo-btn{width:68px;min-height:130px}.cards .compact-card .photo-btn img{min-height:130px}
 .cards .compact-card .card-info{padding:9px 10px}
 .cards .compact-card .card-address{min-height:36px}.cards .compact-card .compare-check,.cards .compact-card .insights-link{min-height:40px}
 .cards .minimal-card .card-info{padding:8px 10px;padding-inline-end:50px;column-gap:8px;grid-template-columns:minmax(0,1fr)}
 .cards .minimal-card .card-address{grid-column:1;grid-row:1;min-height:30px}
 .cards .minimal-card .price{grid-column:1;grid-row:2;font-size:18px;max-width:none}
 .cards .minimal-card .specs{grid-column:1;grid-row:3;font-size:13px}
 .cards .minimal-card .card-summary{grid-column:1;grid-row:4}.cards .minimal-card .heart{top:calc(50% - 20px)}
 .explore-scene .results-controls{grid-template-columns:28px minmax(0,1fr) auto 38px;grid-template-areas:'drag views options close';gap:3px;padding-inline:6px;height:52px}
 .results-controls>.panel-drag-handle{width:28px}.results-controls>.mobile-results-options{position:static;grid-area:options;font-size:12px;padding:4px}
 .results-view{gap:1px}.results-view button{min-height:40px;padding:4px 7px;font-size:14px}.results-view button svg{display:none}
 .browse-mode .explore-scene .map-top{top:auto;left:8px;right:auto;bottom:max(25px,env(safe-area-inset-bottom));max-width:calc(100vw - 16px)}
 .browse-mode .explore-scene:not(.list-collapsed) .map-top{bottom:calc(46dvh + 16px)}
 .explore-scene .list-reopen{bottom:max(82px,calc(env(safe-area-inset-bottom) + 60px))}
 .explore-scene .map-tools{max-width:calc(100vw - 16px)}
 .basemap-note,.list-collapsed .basemap-note{bottom:142px}
}
.cards .compact-card:not(.minimal-card) .price{max-width:calc(100% - 42px)}

/* Keep the brand and its slogan in the existing compact header. */
.header .brand{gap:8px;flex-shrink:0;letter-spacing:0}
.header .brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.header .brand-name{font-size:25px;line-height:1.05;font-weight:800;letter-spacing:-.6px}
.header .brand .brand-slogan{display:block;border:0;padding:0;margin:0;font-size:12px;font-weight:500;line-height:1.25;letter-spacing:0;white-space:nowrap;color:inherit;direction:rtl}
html[dir=ltr] .header .brand .brand-slogan{direction:ltr}
@media(max-width:760px){.header .brand-name{font-size:20px}.header .brand{gap:5px}.header .brand-copy{align-items:center}.header .brand .brand-slogan{font-size:12px}}
/* One shared composer above a short, scrollable conversation. */
#search-dialogue{padding:7px 4px 0}
.search-chat{max-height:min(120px,22dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:2px;border-radius:9px;outline-offset:2px}
.search-chat .chat-line{display:flex;align-items:baseline;gap:8px;margin:0;padding:0 8px;font-size:14px;line-height:24px;overflow-wrap:anywhere}
.chat-line strong{flex:0 0 46px;font-size:12px;font-weight:600;text-align:start;direction:ltr}
.chat-line span{min-width:0;white-space:pre-wrap}
.chat-user{background:#e3efff91;color:#345879;border-radius:8px}
.chat-assistant{background:#175edee6;color:#fff;border-radius:8px}
.chat-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.chat-actions:empty{display:none}
.chat-actions button{min-height:34px;padding:4px 10px;border:1px solid #aac6e6;border-radius:16px;background:#ecf5ffad;color:#174c92;font-size:13px}
.chat-actions #dialog-skip{border-color:transparent;background:transparent}
.smart-dock #smart-feedback{max-height:min(260px,38dvh)}
@media(max-width:760px){#search-dialogue{padding:4px 1px 0}.search-chat .chat-line{padding-inline:5px;gap:6px}.chat-line strong{flex-basis:38px}.chat-actions button{min-height:40px}.smart-dock #smart-feedback{max-height:min(235px,34dvh)}}
.search-chat .chat-line{text-align:start}

/* Selection is consistently blue; listing badges keep their type colors. */
.explore-scene .results .chips .chip.active,
.explore-scene .list-layers button.active,
.explore-scene .map-layers button.active{background:#125bea;color:#fff;border-color:#125bea}
.explore-scene .list-layers button.active .layer-dot,
.explore-scene .map-layers button.active .layer-dot{background:currentColor}
.results-filter-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:8px 0;font-size:12px;line-height:1.6;color:#345370}
.results-filter-status[hidden]{display:none}.results-filter-status .soft{font-size:12px;min-height:32px;padding:4px 7px;color:#125bea}
