/* Design options v2, part 6 (DBP-558): big figures and amenity icon cards in the house section, every layout.
   Linked only when a page renders cards (house-details.mjs). Immutable once released: change it by adding
   house-cards.2.css, so pages from either release keep matching styles.

   Styled through design tokens only (DECISIONS item 19). A style's token file sets any of these on :root:
     --font-display, --font-body, --font-label, --color-ink, --color-ink-muted, --color-accent,
     --color-accent-soft, --color-surface, --color-line, --radius-card, --radius-tile, --shadow-card
   Without them, each layout falls back to its own look below: the first property site's original house section
   first (the default), then compact and editorial. --layout-accent is the property's accent colour,
   which compact and editorial pages set. */
.house-has-cards{
  --_hc-display:Spectral,Georgia,"Times New Roman",serif;--_hc-body:inherit;
  --_hc-label:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --_hc-ink:#241f18;--_hc-muted:#7a6a4f;--_hc-accent:#265a4e;--_hc-accent-soft:#dcebe5;--_hc-surface:#fff;
  --_hc-line:#e9ddc8;--_hc-radius:16px;--_hc-tile-radius:10px;--_hc-shadow:none;--_hc-figure-weight:500;
  --_hc-label-case:uppercase;--_hc-label-size:.72rem;--_hc-label-track:.1em}
.compact .house-has-cards{
  --_hc-display:inherit;--_hc-label:inherit;--_hc-ink:#172523;--_hc-muted:#5b6461;
  --_hc-accent:var(--layout-accent,#2f5d50);--_hc-accent-soft:color-mix(in srgb,var(--layout-accent,#2f5d50) 13%,#fff);
  --_hc-line:#d9d7cf;--_hc-radius:8px;--_hc-tile-radius:6px;--_hc-figure-weight:700;--_hc-label-case:none;
  --_hc-label-size:.85rem;--_hc-label-track:0}
.editorial .house-has-cards{
  --_hc-display:Georgia,"Times New Roman",serif;--_hc-label:inherit;--_hc-ink:#172523;--_hc-muted:#5b6461;
  --_hc-accent:var(--layout-accent,#2f5d50);--_hc-accent-soft:transparent;--_hc-surface:transparent;
  --_hc-line:#cfccc2;--_hc-radius:0;--_hc-tile-radius:0;--_hc-figure-weight:400;--_hc-label-size:.75rem;--_hc-label-track:.14em}

.house-has-cards .house-figures{display:flex;flex-wrap:wrap;gap:1.1rem 1.9rem;margin:1.6rem 0 2.4rem;padding:0;list-style:none;
  font:inherit}
.house-has-cards .house-figures li{display:flex;flex-direction:column;min-width:0;max-width:100%}
.house-figure{font-family:var(--font-display,var(--_hc-display));font-weight:var(--_hc-figure-weight);
  font-size:clamp(1.9rem,3.2vw,2.35rem);line-height:1;color:var(--color-accent,var(--_hc-accent));letter-spacing:-.01em}
.house-figure-label{font-family:var(--font-label,var(--_hc-label));font-size:var(--_hc-label-size);
  text-transform:var(--_hc-label-case);letter-spacing:var(--_hc-label-track);color:var(--color-ink-muted,var(--_hc-muted));
  margin-top:.45rem;line-height:1.3;overflow-wrap:anywhere}
.house-has-cards .house-chip{align-self:flex-end;font-family:var(--font-body,var(--_hc-body));font-size:.95rem;
  color:var(--color-ink,var(--_hc-ink));border:1px solid var(--color-line,var(--_hc-line));border-radius:999px;padding:.3rem .8rem}

.house-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem;margin:0;padding:0;list-style:none}
.house-cards li{background:var(--color-surface,var(--_hc-surface));border:1px solid var(--color-line,var(--_hc-line));
  border-radius:var(--radius-card,var(--_hc-radius));box-shadow:var(--shadow-card,var(--_hc-shadow));padding:1.35rem 1.25rem;
  min-width:0;overflow-wrap:anywhere;font-family:var(--font-body,var(--_hc-body))}
.house-card-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-tile,var(--_hc-tile-radius));
  background:var(--color-accent-soft,var(--_hc-accent-soft));color:var(--color-accent,var(--_hc-accent))}
.house-card-icon svg{display:block;width:22px;height:22px}
.house-cards strong{display:block;margin-top:1rem;font-weight:700;font-size:1rem;line-height:1.35;color:var(--color-ink,var(--_hc-ink))}
.house-cards strong+span{display:block;margin-top:.25rem;font-size:.875rem;line-height:1.45;color:var(--color-ink-muted,var(--_hc-muted))}
.editorial .house-cards li{border-width:1px 0 0;padding:1.1rem 0 .4rem}
.editorial .house-card-icon{width:auto;height:auto;justify-content:start}
@media(max-width:560px){.house-cards{gap:.75rem}.house-cards li{padding:1.1rem 1rem}}
@media(prefers-reduced-motion:no-preference){.house-cards li{transition:border-color .2s}}
