/*
 * Property grid block — scoped styles
 *
 * Whyso Design System — auto-generated from the Whyso hub.
 * Project: Marcus & Marcus
 * Generated: 2026-06-04T22:25:13+00:00
 *
 * Scoped to .property-grid — relies on tokens.css being loaded.
 * One breakpoint maximum (structural layout shifts only — never size or
 * colour, those come from the fluid scales in tokens.css).
 */

.property-grid {
    padding-block: var(--space-2xl);
    /* Surface default — overridden by [data-surface] variants below */
    background: var(--color-bg);
    color: var(--color-text);
}

.property-grid__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Surface variants */

.property-grid[data-bg="light"] {
    background: var(--color-bg);
    color: var(--color-text);
}

.property-grid[data-bg="alt"] {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.property-grid[data-bg="dark"] {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

/* Columns (driven by --columns inline style on the section) */
.property-grid .property-grid__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

/* Responsive layout — structural only, single breakpoint */
@media (min-width: 48rem) {
    .property-grid .property-grid__inner { grid-template-columns: repeat(var(--columns, 1), 1fr); }
}


/* ------------------------------------------------------------------
 * Block polish — from preview_sample.extra_css
 * Plus CSS for every component + animation the block references.
 * Matches byte-for-byte what /library preview inlines, so the
 * deployed block renders the same on a real WordPress site.
 * ------------------------------------------------------------------ */

/* --- preview_sample.extra_css --- */
.property-grid__inner > * + * { margin-top: var(--space-xl); }
.property-grid__header { max-width: 60ch; }
.property-grid__heading { font-size: var(--text-3xl); margin: 0 0 var(--space-xs); }
.property-grid__intro { color: var(--color-text-muted); margin: 0; }
.property-grid__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.property-grid__item { background: var(--color-bg, #fff); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.property-grid__item-media { position: relative; aspect-ratio: 16 / 10; background: var(--color-bg-alt); }
.property-grid__item-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.property-grid__item-tag { position: absolute; top: var(--space-xs); left: var(--space-xs); z-index: 1; background: var(--color-accent); color: var(--color-text-inverse, #fff); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.4em 0.9em; border-radius: var(--radius-pill, 100px); }
.property-grid__item-tag:empty, .property-grid__item-locality:empty, .property-grid__item-text:empty, .property-grid__item-img[src=""] { display: none; }
.property-grid__item-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs, 4px); }
.property-grid__item-title { font-size: var(--text-xl); margin: 0; }
.property-grid__item-locality { color: var(--color-accent); font-weight: 700; font-size: var(--text-sm); margin: 0 0 var(--space-xs); }
.property-grid__item-text { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }
.property-grid[data-surface="dark"] { background: var(--color-bg-dark); color: var(--color-text-inverse, #fff); }

/* --- Animations used — fade-up, reveal-stagger --- */
@keyframes wy-fade-up {
  from { opacity: 0; transform: translateY(var(--anim-distance, 20px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: wy-fade-up var(--anim-duration, 400ms) var(--anim-easing, cubic-bezier(.16, 1, .3, 1)) both;
}

@keyframes wy-stagger-up {
  from { opacity: 0; transform: translateY(var(--anim-distance, 20px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-stagger {
    > * {
    animation: wy-stagger-up var(--anim-duration, 400ms) var(--anim-easing, cubic-bezier(.16, 1, .3, 1)) both;
    animation-delay: calc(var(--i, 0) * var(--anim-stagger-step, 80ms));
    }
}

