/* M07/UX shared announcement framing. Profile photos keep their existing shape. */
:root { --mh-announcement-radius:6px; }
:root .mh-listing-visual,:root .mh-compact-visual,:root .m10-listing-preview,
:root .mh-detail-main-visual,:root .mh-detail-thumb,:root .mh-media-enlarge,
:root .mh-media-dialog>img,:root .mh-video-preview>video { border-radius:var(--mh-announcement-radius);overflow:hidden; }
:root .mh-listing-visual img,:root .mh-compact-visual img,:root .m10-listing-preview img,
:root .mh-detail-main-visual img,:root .mh-detail-main-visual video,:root .mh-detail-thumb img { border-radius:var(--mh-announcement-radius);object-fit:contain; }
:root .mh-listing-visual { margin:10px 10px 0;min-width:0; }
:root .mh-card-labels { display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;min-width:0; }
:root .mh-offer-label,:root .mh-card-fact { display:inline-flex;align-items:center;justify-self:start;align-self:flex-start;width:fit-content;max-width:100%;box-sizing:border-box;margin:0;padding:4px 8px;font-size:12px;line-height:1.4;font-weight:600;border-radius:6px;background:var(--color-bg-secondary);border:1px solid var(--color-border);color:var(--color-heading);overflow-wrap:anywhere; }
:root .mh-card-fact { font-weight:400;color:var(--color-text-secondary); }
:root .mh-listing-card .mh-card-contact { min-height:44px;padding:10px 16px;font-size:14px;line-height:1.4;white-space:nowrap; }
:root .mh-compact-card { gap:12px;min-width:0;box-sizing:border-box; }
:root .mh-compact-card>.mh-compact-visual { grid-column:1;grid-row:1/span 2;min-height:0;align-self:start;aspect-ratio:4/3; }
:root .mh-compact-card>.mh-compact-visual img { display:block;width:100%;height:100%;min-height:0; }
:root .mh-compact-content { min-width:0;align-content:start;gap:8px; }
:root .mh-compact-title { line-height:1.4;overflow-wrap:anywhere; }
:root .mh-compact-location,:root .mh-compact-seller { font-size:13px;line-height:1.5;color:var(--color-text-secondary); }
:root .mh-compact-aside { grid-column:2;display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:8px; }
:root .mh-compact-price { font-size:17px;font-weight:700;color:var(--color-heading);line-height:1.45;overflow-wrap:anywhere; }
:root .mh-compact-action { min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px;font-size:14px; }
:root .mh-compact-list>.mh-compact-card { grid-template-columns:var(--mh-card-image-width,220px) minmax(0,1fr) minmax(140px,180px);padding:14px;gap:20px;align-items:start; }
:root .mh-compact-list>.mh-compact-card>.mh-compact-visual { width:var(--mh-card-image-width,220px);height:var(--mh-card-image-height,150px);aspect-ratio:auto;grid-row:1; }
:root .mh-compact-list>.mh-compact-card>.mh-compact-aside { grid-column:3;grid-row:1;align-items:flex-end;text-align:right;justify-content:space-between;min-height:var(--mh-card-image-height,150px); }
:root .mh-compact-list>.mh-compact-card .mh-compact-title { font-size:18px; }
:root .m10-listing-info { display:flex;flex-direction:column;gap:8px; }
:root .m10-listing-info .m10-listing-title { margin:0; }
:root .m10-listing-info .m10-listing-offer { font-size:12px; }
@media(min-width:701px) and (max-width:999px){
 :root .mh-compact-list>.mh-compact-card { grid-template-columns:160px minmax(0,1fr) 128px;gap:14px;padding:12px; }
 :root .mh-compact-list>.mh-compact-card>.mh-compact-visual { width:160px;height:120px; }
 :root .mh-compact-list>.mh-compact-card>.mh-compact-aside { min-height:120px; }
 :root .mh-compact-list>.mh-compact-card .mh-compact-title { font-size:16px; }
}
@media(max-width:700px){
 :root .home-module-slot { padding:20px 12px;border-left-width:3px; }
 :root .home-card-row { gap:12px;padding:14px 0 8px; }
 :root .home-card-row>.mh-listing-card { flex:0 0 100%; }
 :root .mh-listing-card { display:flex;grid-template-columns:none;flex-direction:column; }
 :root .mh-listing-card>.mh-listing-visual { width:calc(100% - 20px);height:auto;min-height:0;aspect-ratio:4/3;grid-row:auto;box-sizing:border-box; }
 :root .mh-listing-card>.mh-listing-visual img { height:100%;width:100%;min-height:0; }
 :root .mh-listing-card .mh-listing-body { padding:14px;gap:10px; }
 :root .mh-listing-title,:root .mh-compact-title { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:17px;line-height:1.4; }
 :root .mh-listing-card .mh-listing-price { font-size:20px; }
 :root .mh-compact-list>.mh-compact-card,:root .mh-discovery-row>.mh-compact-card { grid-template-columns:minmax(0,1fr);gap:12px;padding:10px; }
 :root .mh-compact-list>.mh-compact-card>.mh-compact-visual { width:100%;height:auto;aspect-ratio:16/9;grid-column:1;grid-row:auto; }
 :root .mh-discovery-row>.mh-compact-card>.mh-compact-visual { width:100%;height:auto;min-height:0;aspect-ratio:4/3;grid-column:1;grid-row:auto; }
 :root .mh-compact-list>.mh-compact-card>.mh-compact-content,:root .mh-discovery-row>.mh-compact-card>.mh-compact-content { display:contents; }
 :root .mh-compact-list .mh-compact-title,:root .mh-discovery-row .mh-compact-title { grid-row:2; }
 :root .mh-compact-list .mh-card-labels,:root .mh-discovery-row .mh-card-labels { grid-row:4; }
 :root .mh-compact-list .mh-compact-location,:root .mh-discovery-row .mh-compact-location { grid-row:5; }
 :root .mh-compact-list .mh-compact-seller,:root .mh-discovery-row .mh-compact-seller { grid-row:6; }
 :root .mh-compact-list>.mh-compact-card>.mh-compact-aside,:root .mh-discovery-row>.mh-compact-card>.mh-compact-aside { display:contents;min-height:0;text-align:left; }
 :root .mh-compact-list .mh-compact-price,:root .mh-discovery-row .mh-compact-price { grid-row:3;grid-column:1;font-size:20px; }
 :root .mh-compact-list .mh-compact-action,:root .mh-discovery-row .mh-compact-action { grid-row:7;grid-column:1; }
 :root .mh-discovery-row>.mh-compact-card { flex-basis:min(340px,92%); }
}

/* M07 vertical discovery feed, shared by mobile and desktop. */
.mh-feed-list { width:100%; max-width:680px; margin-inline:auto; gap:24px; }
.mh-search-results .mh-listing-card.mh-feed-card { width:100%; min-width:0; overflow:hidden; padding:0; }
.mh-feed-card .mh-listing-body { padding:16px; }
.mh-feed-card .mh-listing-title { font-size:1.15rem; }
.mh-feed-card .mh-listing-price { font-size:1.3rem; font-weight:700; }
.mh-search-results .mh-feed-card .mh-feed-media { display:block; height:auto; min-height:0; aspect-ratio:auto; padding:0; position:relative; }
.mh-feed-photos { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; aspect-ratio:4/3; align-items:center; background:var(--color-bg-secondary); }
.mh-feed-card .mh-feed-photos img { display:block; width:100%; height:100%; flex:0 0 100%; object-fit:contain; scroll-snap-align:start; }
.mh-feed-photos:focus-visible { outline:3px solid var(--color-link); outline-offset:-3px; }
.mh-feed-photo-controls { display:flex; justify-content:center; align-items:center; background:var(--color-surface); }
.mh-feed-card .mh-feed-photo-controls button { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; font-size:20px; line-height:1; }
.mh-feed-dots { display:flex; }
.mh-feed-dots button { background:none; border:0; color:var(--color-text-muted); cursor:pointer; position:relative; }
.mh-feed-dots button::before { content:''; display:block; width:8px; height:8px; border:1px solid currentColor; border-radius:50%; margin:auto; }
.mh-feed-dots button[aria-pressed=true]::before { background:var(--color-link); border-color:var(--color-link); transform:scale(1.2); }
.mh-feed-description { overflow-wrap:anywhere; white-space:pre-line; font-size:.9rem; }
.mh-feed-description p { margin:8px 0 0; }
.mh-feed-expand { color:var(--color-link); min-height:44px; padding-inline:0; }
@media(max-width:700px){.mh-feed-card .mh-listing-body{padding:12px}.mh-feed-list{gap:16px}}
.mh-feed-photos.mh-feed-empty { aspect-ratio:auto; height:120px; justify-content:center; }
