/* One compact project card across cities, catalog, collections, areas and developers. */
.merade-project-grid.merade-directory-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 align-items: stretch;
 grid-auto-rows: auto;
 width: 100%; max-width: 1328px; margin-inline: auto;
 gap: 24px;
 font-family: var(--merade-font-body);
}
.merade-project-grid .merade-project-card {
 display: flex; flex-direction: column; min-width: 0; padding: 0;
 overflow: hidden; border: 1px solid #d1d2d3; border-radius: 22px;
 box-shadow: 0 3px 12px rgb(16 27 44 / 3%);
 transition: border-color 200ms ease, box-shadow 200ms ease;
 --project-blue: #234464;
 background: var(--merade-white); color: var(--merade-navy);
}
.merade-project-grid .merade-project-card *,
.merade-project-grid .merade-project-card *::before,
.merade-project-grid .merade-project-card *::after { box-sizing: border-box; }
.merade-project-grid .merade-project-card a,
.merade-project-grid .merade-project-card a:visited { color: inherit; text-decoration: none; }
.merade-project-grid .merade-project-card a:focus-visible { outline: 2px solid var(--merade-navy); outline-offset: -3px; border-radius: 3px; }
.merade-project-grid .merade-project-card-link { display: block; }
.merade-project-grid .merade-project-card .merade-card-media {
 display: block; position: relative; overflow: hidden; aspect-ratio: 1.65; margin: 0;
 background: var(--merade-surface); border-radius: 0 0 3px 3px;
}
.merade-project-grid .merade-project-card .merade-card-media img {
 display: block; width: 100%; height: 100%; margin: 0; object-fit: cover;
 transition: transform 250ms var(--ease-out, cubic-bezier(.23, 1, .32, 1));
}
.merade-project-grid .merade-project-card h3 {
 margin: 0; padding: 18px 20px 16px; font: 500 30px/1.1 var(--merade-font-heading);
 font-optical-sizing: auto;
 letter-spacing: -.02em; overflow-wrap: anywhere;
}
.merade-project-card-body { display: flex; flex-direction: column; flex: 1; padding: 0 20px 20px; min-width: 0; }
.merade-project-card-context { display: grid; gap: 5px; margin: 0; font-size: 13px; line-height: 1.5; }
.merade-project-card-context > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.merade-project-card-context dt { color: var(--merade-muted); font-size: 12px; font-weight: 400; }
.merade-project-card-context dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.merade-project-card-context a { display: inline-block; padding-block: 2px; }
.merade-project-card-offers { margin-top: 18px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--merade-surface); border-radius: 0; background: transparent; }
.merade-project-card-offers h4 { margin: 0 0 6px; color: var(--merade-muted); font: 500 12px/1.5 var(--merade-font-body); }
.merade-project-card-offers ul { list-style: none; margin: 0; padding: 0; }
.merade-project-card-offers li { margin: 0; }
.merade-project-card-offers li + li { border-top: 1px solid rgb(16 27 44 / 6%); }
.merade-project-card-offers a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 7px 0; font: 500 14px/1.5 var(--merade-font-body); }
.merade-project-card-offers a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.merade-project-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 16px; }
.merade-project-grid .merade-project-card-call {
 display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
 gap: 6px; min-width: 0; margin: 0; padding: 10px 8px; border: 0; border-radius: 6px;
 background: var(--project-blue); color: var(--merade-white);
 font: 500 14px/1.5 var(--merade-font-body); opacity: 1; box-shadow: none;
}
.merade-project-grid .merade-project-card-brochure {
 display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; margin: 0; padding: 10px 8px;
 border: 1px solid #d1d2d3; border-radius: 6px; background: var(--merade-white); color: var(--merade-muted);
 font: 500 12px/1.5 var(--merade-font-body); text-align: center; text-transform: none; text-decoration: none; overflow-wrap: anywhere;
 cursor: pointer; touch-action: manipulation;
}
/* Subtle pointer feedback; the overlay fades without moving the button label. */
.merade-project-grid .merade-project-card-actions > button {
 position: relative; isolation: isolate; cursor: pointer; touch-action: manipulation;
 transition: transform 120ms var(--ease-out, cubic-bezier(.23, 1, .32, 1));
}
.merade-project-card-actions > button::before {
 content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
 opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.merade-project-card-actions > .merade-project-card-brochure::before { background: #f1f5f8; box-shadow: 0 3px 10px rgb(35 68 100 / 8%); }
.merade-project-card-actions > .merade-project-card-call::before { background: #193650; box-shadow: 0 4px 12px rgb(35 68 100 / 20%); }
.merade-project-grid .merade-project-card-actions > button:active:not(:disabled):not(:focus-visible) { transform: scale(.98); }
.merade-project-grid .merade-project-card-actions > button:focus-visible { transition: none; }
@media (hover: hover) and (pointer: fine) {
 .merade-project-card-actions > button:hover:not(:disabled)::before { opacity: 1; }
 .merade-project-grid .merade-project-card-brochure:hover:not(:disabled) { color: var(--project-blue); border-color: #9baebe; }
}
@media (prefers-reduced-motion: reduce) {
 .merade-project-grid .merade-project-card-actions > button:active:not(:disabled):not(:focus-visible) { transform: none; }
 .merade-project-grid .merade-project-card-actions > button { transition: none; }
}
.merade-project-card-actions .merade-symbol { flex-shrink: 0; font-size: 20px; }
.merade-project-card-actions :is(a,button):focus-visible { outline: 2px solid var(--merade-navy); outline-offset: 3px; }
.merade-project-grid .merade-project-card-call:disabled { cursor: default; opacity: 1; }
.merade-project-offer-arrow { flex-shrink: 0; font-size: 18px; color: var(--merade-muted); }
@media (hover: hover) and (pointer: fine) {
 .merade-project-grid .merade-project-card:hover { border-color: #b8ae99; box-shadow: 0 8px 24px rgb(16 27 44 / 7%); }
 .merade-project-grid a.merade-project-card-link:hover h3,
 .merade-project-grid .merade-project-card-context a:hover,
 .merade-project-grid .merade-project-card-offers a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
 .merade-project-grid a.merade-project-card-link:hover img { transform: scale(1.035); }
 .merade-project-grid .merade-project-card-offers a:hover .merade-project-offer-arrow { color: var(--merade-navy); }
}
@media (max-width: 1000px) {
 .merade-project-grid.merade-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
 .merade-project-grid.merade-directory-grid { grid-template-columns: minmax(0, 1fr); }
 .merade-project-card-context { gap: 0; }
 .merade-project-card-context a { display: inline-flex; align-items: center; min-height: 44px; }
 .merade-project-card-offers a { min-height: 44px; }
}
@media (pointer: coarse) {
 .merade-project-card-context a, .merade-project-card-offers a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
 .merade-project-grid .merade-project-card, .merade-project-grid .merade-project-card .merade-card-media img { transition: none; }
 .merade-project-grid a.merade-project-card-link:hover img { transform: none; }
}

/* Shared quick offer list on cards and in the project hero. */
.merade-quick-properties {
 display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 7px 8px; margin: 18px 0 0; padding: 14px 0 0;
 border-top: 1px solid var(--merade-surface); list-style: none;
 color: var(--merade-navy); font: 400 14px/1.5 var(--merade-font-body);
}
.merade-quick-properties > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; min-width: 0; margin: 0; padding: 0; }
.merade-quick-property-name { display: flex; justify-content: space-between; gap: 6px; min-width: 0; font-weight: 500; }
.merade-quick-property-name > .merade-quick-property-dash { flex-shrink: 0; }
.merade-quick-property-name > :first-child { min-width: 0; overflow-wrap: anywhere; }
.merade-project-grid .merade-project-card .merade-quick-property-name a { text-decoration: underline; text-underline-offset: 3px; }
.merade-quick-property-price { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.merade-quick-properties .merade-check-price {
 display: inline-block; justify-self: start; min-height: 0; max-width: 100%; margin: 0; padding: 0;
 border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit;
 font: inherit; line-height: inherit; text-align: left; text-transform: none;
 text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation;
}
.merade-quick-properties .merade-check-price:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.merade-project-summary .merade-quick-properties { margin: 0 0 20px; padding: 0; border: 0; font-size: 16px; }

/* Two usable offers and a faded preview; the full list stays available without JS. */
.merade-quick-properties-card {
 display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); column-gap: 8px;
 margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--merade-surface);
}
.merade-quick-properties-card > .merade-quick-properties { grid-column: 1 / -1; grid-row: 2; grid-template-columns: subgrid; margin: 0; padding: 0; border: 0; }
.merade-quick-properties-heading { display: grid; grid-column: 1 / -1; grid-row: 1; grid-template-columns: subgrid; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--merade-muted); }
.merade-quick-properties-card .merade-quick-properties-heading :is(h4,span) { min-width: 0; margin: 0; font: 400 12px/1.4 var(--merade-font-body); overflow-wrap: anywhere; }
.merade-quick-properties-disclosure [hidden] { display: none !important; }
.merade-quick-properties-disclosure[data-expanded="false"] .merade-quick-properties > li:nth-child(3) { min-height: 24px; opacity: .35; pointer-events: none; user-select: none; }
.merade-quick-properties-disclosure[data-expanded="false"] > .merade-quick-properties-toggle { grid-row: 2; align-self: end; margin-top: 0; }
.merade-quick-properties-disclosure .merade-quick-properties-toggle {
 display: block; grid-column: 2; grid-row: 3; justify-self: end; width: fit-content; max-width: 100%; min-height: 24px; margin: 8px 0 0; padding: 2px 10px;
 border: 1px solid #d1d2d3; border-radius: 6px; background: transparent; box-shadow: none;
 color: var(--merade-muted); font: 400 12px/1.5 var(--merade-font-body); text-transform: none;
 cursor: pointer; touch-action: manipulation;
}
.merade-quick-properties-toggle:focus-visible { outline: 2px solid var(--merade-navy); outline-offset: 3px; }
.merade-quick-properties-toggle:active { transform: scale(.97); }
