/*
 * listing-card-v2.css
 * Shared listing card styles for the search page and the home page.
 * Moved verbatim from search-v2.cards.css (sections 2-7); only the scope changed.
 *
 * Every rule is scoped by :is(body.search-v2 #loadlist, body.home-v2 .hv2-cards).
 * :is() takes the specificity of its most specific argument (#loadlist), so the
 * search page cascade is unchanged and home cards get the same specificity.
 * Other pages that use partial/listing-card.html are untouched.
 *
 * Loaded on search.html directly after search-v2.cards.css (before
 * search-v2.map.css, which keeps its own map-view overrides), and on
 * index-new.html after search-v2.tokens.css.
 *
 * Never set `filter` here: blur.css must keep blurring img.blur,
 * .listing__item-price.blur/.blurPrice and .listing__item-specs.blur.
 *//* ------------------------------------------------------------------ *//* 2. Card shell                                                       *//* ------------------------------------------------------------------ */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item{/* resets style.css:978/1049 (width calc, margins, 1px black border) and mq:535/562 */width:auto;margin:0;position:relative;display:block;box-sizing:border-box;min-width:0;background-color:var(--sv2-color-surface);border:1px solid var(--sv2-color-border);border-radius:var(--sv2-radius-md);overflow:hidden;font-family:var(--sv2-font-ui);color:var(--sv2-color-text);transition:box-shadow var(--sv2-dur) var(--sv2-ease)/* container-type: inline-size from style.css:6899 is kept (open-house chip queries) */}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item:hover{box-shadow:var(--sv2-shadow-md)}/* Keyboard focus on the card link or the heart: ring on the card, not clipped by overflow */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item:has(:focus-visible){box-shadow:var(--sv2-shadow-focus)}/* ------------------------------------------------------------------ *//* 3. Photo                                                            *//* ------------------------------------------------------------------ */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-thumb{position:relative;overflow:hidden;max-height:none;/* resets mq:1697 (30vh) and mq:2046 (35vh) */background-color:var(--sv2-color-tint-2)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-thumb > a:not(.favourite-btn){display:block}/* the wrapper div (the img shares the .listing__image class, so target by structure) */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-thumb > a > div.listing__image{position:relative;width:100%;height:auto;/* resets mq:566 (275px on .listing--3 at <=1280) */aspect-ratio:3/2;background-color:var(--sv2-color-tint-2);transition:none}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-thumb > a > div.listing__image::after{display:none/* style.css:2899 padding-bottom spacer; aspect-ratio replaces it */}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-thumb > a > div.listing__image > img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center/* no `filter` here: blur.css .blur must still apply */}/* legacy hover dims the photo (style.css:1047/1118); the card shadow is the hover cue now */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item:hover .listing__item-thumb a img{opacity:1}/* ------------------------------------------------------------------ *//* 4. Badges on the photo                                              *//* ------------------------------------------------------------------ *//* Top-left sash: "New 3 hrs ago" style label (style.css:4118 put it bottom-left) */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .property-thumb-image-label{position:absolute;top:var(--sv2-space-3);left:var(--sv2-space-3);bottom:auto;z-index:22;max-width:calc(100% - 2 * var(--sv2-space-3) - 40px - var(--sv2-space-2));/* clears the heart */box-sizing:border-box;padding:var(--sv2-space-1) var(--sv2-space-3);border-radius:var(--sv2-radius-pill);background-color:var(--sv2-color-primary);color:var(--sv2-color-on-primary);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xs);font-weight:var(--sv2-fw-bold);line-height:var(--sv2-lh);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}/* Status label (thumbMode 'status'; not used by the search grid today). Inline
   background-color comes from data and is kept. */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .property-thumb-status-label{position:absolute;top:var(--sv2-space-3);left:var(--sv2-space-3);bottom:auto;z-index:22;max-width:calc(100% - 2 * var(--sv2-space-3) - 40px - var(--sv2-space-2))}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .property-thumb-status-label .label{display:inline-block;max-width:100%;box-sizing:border-box;padding:var(--sv2-space-1) var(--sv2-space-3);border-radius:var(--sv2-radius-pill);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xs);font-weight:var(--sv2-fw-bold);line-height:var(--sv2-lh);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}/* Home carousel badges + legacy thumbExtra spans — match the time sash above */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .badge-sale,:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .badge-featured,:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .badge-sold{position:absolute;top:var(--sv2-space-3);left:var(--sv2-space-3);right:auto;bottom:auto;z-index:22;display:inline-block;max-width:calc(100% - 2 * var(--sv2-space-3) - 40px - var(--sv2-space-2));box-sizing:border-box;padding:var(--sv2-space-1) var(--sv2-space-3);border-radius:var(--sv2-radius-pill);background-color:var(--sv2-color-primary);color:var(--sv2-color-on-primary);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xs);font-weight:var(--sv2-fw-bold);line-height:var(--sv2-lh);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}/* When both a time sash and a status badge are present, stack under the sash */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards)
  .listing__item-thumb:has(.property-thumb-image-label)
  :is(.badge-sale, .badge-featured, .badge-sold){top:calc(var(--sv2-space-3) + 28px)}/*
 * Open-house chip: bottom-left of the photo, so it never collides with the
 * top-left sash or the top-right heart, with or without a sash.
 * It is a child of .listing__item (not of the thumb), and .listing__item is an
 * inline-size container (style.css:6899), so 100cqw = card inner width and the
 * 3:2 photo bottom is at 100cqw * 2/3.
 * Which chip shows (.map "Open: …" on cards < 360px wide, .gallery "Open house: …"
 * on wider cards) stays with the legacy container queries (style.css:6990-7037).
 */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item .open-house-chip{position:absolute;top:calc(100cqw * 2 / 3 - var(--sv2-space-3));left:var(--sv2-space-3);transform:translateY(-100%);z-index:21;max-width:calc(100% - 2 * var(--sv2-space-3));box-sizing:border-box;padding:var(--sv2-space-1) var(--sv2-space-3);border-radius:var(--sv2-radius-pill);background:var(--sv2-color-surface);color:var(--sv2-color-primary);box-shadow:var(--sv2-shadow-sm);font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xs);font-weight:var(--sv2-fw-bold);line-height:var(--sv2-lh);letter-spacing:0.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}/* ------------------------------------------------------------------ *//* 5. Favourite                                                        *//* ------------------------------------------------------------------ *//* style.css:5044 uses a white love.svg on a dark circle; on a white circle a white
   icon is invisible, so the existing heart.svg / heart-filled.svg shapes are used
   as masks and painted with a token color. .favorited (JS-toggled) swaps the shape. */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn{position:absolute;top:var(--sv2-space-3);right:var(--sv2-space-3);bottom:auto;/* z-index: 20 !important from style.css:5048 is kept */width:40px;height:40px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:var(--sv2-color-surface);background-image:none;box-shadow:var(--sv2-shadow-sm);color:var(--sv2-color-text);cursor:pointer;transition:box-shadow var(--sv2-dur) var(--sv2-ease)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn::before{content:"";display:block;width:20px;height:18px;background-color:currentColor;-webkit-mask:url(../images/heart.svg) center/contain no-repeat;mask:url(../images/heart.svg) center/contain no-repeat}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn:hover{box-shadow:var(--sv2-shadow-md)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn.favorited{background-color:var(--sv2-color-surface);box-shadow:var(--sv2-shadow-sm);color:var(--sv2-color-primary)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn.favorited::before{-webkit-mask-image:url(../images/heart-filled.svg);mask-image:url(../images/heart-filled.svg)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn:focus-visible{outline:none;box-shadow:var(--sv2-shadow-focus)}/* ------------------------------------------------------------------ *//* 6. Content: visual order price -> specs -> street -> city/MLS -> estimate *//* ------------------------------------------------------------------ */:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-details{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--sv2-space-1);width:auto;/* resets style.css:997/1068 calc(100% - 40px) */box-sizing:border-box;padding:var(--sv2-space-3) var(--sv2-space-4) var(--sv2-space-4);min-width:0}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-details > div:first-child,:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-details > .listing__item-flex--stats{display:contents}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-price{order:1;margin:0;padding:0;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-xl);font-weight:var(--sv2-fw-bold);line-height:1.3;letter-spacing:0;text-align:left;white-space:nowrap;color:var(--sv2-color-text)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-specs{order:2;margin:0;flex:none;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-md);font-weight:var(--sv2-fw-regular);line-height:var(--sv2-lh);letter-spacing:0;color:var(--sv2-color-text)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-specs:empty{display:none/* JS renderer emits an empty <p>; server omits it */}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-title{order:3;margin:0;padding:0;min-width:0;font-family:var(--sv2-font-ui);/* was Cinzel (style.css:65/1000) */font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-regular);line-height:var(--sv2-lh);letter-spacing:0;/* h5 has 2px (style.css:80) */color:var(--sv2-color-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-city{order:4;margin:0;padding:0;min-width:0;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-sm);font-weight:var(--sv2-fw-regular);line-height:var(--sv2-lh);letter-spacing:0;color:var(--sv2-color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-estimate{order:5;margin:0;padding:var(--sv2-space-1) 0 0;width:auto;font-family:var(--sv2-font-ui);font-size:var(--sv2-fs-sm);line-height:var(--sv2-lh);letter-spacing:0;color:var(--sv2-color-text-muted)}:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item-estimate strong{color:var(--sv2-color-primary);font-weight:var(--sv2-fw-semibold)}/* ------------------------------------------------------------------ *//* 7. Motion                                                           *//* ------------------------------------------------------------------ */@media (prefers-reduced-motion: reduce){:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .listing__item,:is(body.search-v2 #loadlist, body.home-v2 .hv2-cards) .favourite-btn{transition:none}}