/* Shared public cards: native links and independent controls, no click overlays. */
[data-mdre-card]:has(a[data-mdre-card-link]) { cursor:pointer; }
[data-mdre-card] a:focus-visible { outline:3px solid var(--mdre-color-primary);outline-offset:4px; }
[data-mdre-card]:focus-within { box-shadow:0 0 0 2px #c8101030; }
.mdre-landing .mdre-premium-card,.mdre-developments .mdre-premium-card { display:flex;flex-direction:column;height:100%;min-width:0;overflow:hidden;background:#fff;border:1px solid #e2e5e4;border-radius:18px;color:#171d20;box-shadow:0 5px 24px #15202508;transition:box-shadow .2s ease,border-color .2s ease; }
.mdre-landing .mdre-premium-card:hover,.mdre-developments .mdre-premium-card:hover { transform:none;box-shadow:0 10px 30px #15202514;border-color:#c8ceca; }
.mdre-developments .mdre-premium-card[hidden] { display:none; }
.mdre-premium-card__media { position:relative;aspect-ratio:16 / 10;overflow:hidden;background:#edf0ed;flex:none; }
.mdre-premium-card__media > img { width:100%;height:100%;object-fit:cover;display:block; }
.mdre-premium-card .mdre-premium-card__body { display:flex;flex-direction:column;flex:1;gap:12px;padding:22px; }
.mdre-premium-card__identity { display:flex;align-items:center;gap:12px; }
.mdre-premium-card .mdre-premium-card__title { margin:0;font-family:var(--aviva-font-secondary,Georgia,serif);font-size:clamp(1.35rem,2vw,1.7rem);line-height:1.2;font-weight:500;overflow-wrap:anywhere; }
.mdre-premium-card .mdre-premium-card__title a { color:inherit;text-decoration:none; }
.mdre-premium-card__logo { display:flex;flex:0 0 48px;height:48px;padding:3px;border:1px solid #eee;border-radius:8px;background:#fff; }
.mdre-premium-card__logo img { width:100%;height:100%;object-fit:contain; }
.mdre-premium-card p { margin:0; }
.mdre-premium-card .mdre-premium-card__location { font-size:.88rem;color:#52605c; }
.mdre-premium-card .mdre-premium-card__types { font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#7b2929; }
.mdre-premium-card .mdre-premium-card__description { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.9rem;line-height:1.5;color:#56615e; }
.mdre-premium-card__facts { display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.82rem;font-weight:600; }
.mdre-premium-card .mdre-premium-card__price { font-size:.95rem;color:#242a28; }
.mdre-premium-card .mdre-premium-card__amenities { display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0;list-style:none; }
.mdre-premium-card__amenities li { padding:4px 8px;background:#f2f4f2;color:#4f5b54;border-radius:5px;font-size:.72rem;line-height:1.4; }
.mdre-premium-card .mdre-premium-card__cta { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:16px;border-top:1px solid #eceeec;color:var(--mdre-color-primary);text-decoration:none;font-size:.88rem;font-weight:600; }
.mdre-premium-card__cta span { font-size:1.2rem; }
/* Slides crossfade in 600 ms; the rotation interval lives in data-mdre-interval
 * (seconds, default 300 s) and is independent from this fade duration. */
[data-mdre-slider] { position:relative; }
[data-mdre-slider] .mdre-slider__slide { position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity 600ms ease;pointer-events:none; }
[data-mdre-slider] .mdre-slider__slide.is-active { opacity:1; }
[data-mdre-slider] .mdre-slider__slide img { display:block;width:100%;height:100%;object-fit:cover; }
/* One global, out-of-card preference for the whole photo set. */
.mdre-motion-toggle { position:fixed;right:16px;bottom:16px;z-index:40;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d7dee7;border-radius:999px;background:#ffffff;color:#111519;font:400 13px/1.3 var(--mdre-font-primary,'Anta',Arial,sans-serif);box-shadow:0 10px 30px rgba(15,23,42,.15);cursor:pointer; }
.mdre-motion-toggle:hover { border-color:#9aa6b0; }
.mdre-motion-toggle:focus-visible { outline:3px solid var(--mdre-color-primary,#BE1212);outline-offset:3px; }
body:has(.mdre-compare-bar:not([hidden])) .mdre-motion-toggle { bottom:7rem; }
@media(max-width:640px) { .mdre-motion-toggle { right:12px;bottom:12px;padding:8px 12px;font-size:12px; } body:has(.mdre-compare-bar:not([hidden])) .mdre-motion-toggle { bottom:8.5rem; } }
.mdre-developments .mdre-developments__grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:24px; }
@media(max-width:1024px) { .mdre-developments .mdre-developments__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .mdre-developments .mdre-developments__grid { grid-template-columns:minmax(0,1fr); }.mdre-premium-card .mdre-premium-card__body { padding:18px; } }
@media(prefers-reduced-motion:reduce) { [data-mdre-slider] .mdre-slider__slide,.mdre-premium-card { transition:none !important; } }

/* One commercial CTA for every property-card renderer (not development/type links).
 * Explicit scope wins over legacy CTA skins, including late Elementor styles. */
[data-mdre-card] .mdre-property-cta.mdre-property-cta {
 display:flex;align-items:center;justify-content:space-between;gap:16px;align-self:stretch;
 margin-top:auto !important;min-height:54px;padding:14px 22px !important;
 background:#BE1212 !important;color:#fff !important;border:1px solid #BE1212 !important;
 border-radius:8px;font:400 13px/1.3 'Anta',Arial,sans-serif !important;
 text-decoration:none !important;box-sizing:border-box;white-space:normal;
 transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
[data-mdre-card] .mdre-property-cta.mdre-property-cta::after { content:none; }
[data-mdre-card] .mdre-property-cta > span { color:inherit;font:inherit; }
[data-mdre-card] .mdre-property-cta > [aria-hidden] { font-size:18px;flex:none; }
[data-mdre-card] .mdre-property-cta:hover,
.mdre-model-link:hover .mdre-property-cta { background:#9e1010 !important;border-color:#9e1010 !important;box-shadow:0 4px 12px #11151915; }
[data-mdre-card] .mdre-property-cta:focus-visible { outline:3px solid #111519;outline-offset:3px; }
.mdre-card--area-first .mdre-card__body { padding-bottom:22px; }
.mdre-card--area-first .mdre-card__body > .mdre-property-cta { width:100%; }
.mdre-model-card .mdre-card-body { flex:1; }
.mdre-model-card .mdre-card-body > .mdre-property-cta { width:100%; }
.mdre-card--area-first .mdre-card__body > .mdre-property-cta,
.mdre-model-card .mdre-card-body > .mdre-property-cta { position:relative; }
/* Body gaps provide breathing room; auto margin aligns the CTA across a row. */
@media(prefers-reduced-motion:reduce) { [data-mdre-card] .mdre-property-cta { transition:none; } }

/* Existing category text becomes a contextual link without changing the card layout. */
[data-mdre-card] a.mdre-card-context-link { color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:none; }
[data-mdre-card] a.mdre-card-context-link:hover { text-decoration:underline; }
[data-mdre-card] a.mdre-card-context-link:focus-visible { outline:2px solid currentColor;outline-offset:3px; }
