/* 3D venture plot layout hero (estate3d layout). */
.lay-estate3d .pp-hero-grid { align-items: center; }
.e3 { --green: #1f5c3a; --gold: #c9a24a; --open: #3f9a5e; --hold: #e0a62a; --sold: #9aa1ab; position: relative; width: 100%; max-width: 600px; justify-self: end; user-select: none; }
.e3-ventures { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid #e3e6ec; box-shadow: 0 10px 24px -18px rgba(20,24,33,.4); position: relative; z-index: 6; }
.e3-ventures button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 600 13.5px system-ui, sans-serif; color: #4b5160; cursor: pointer; transition: background .2s, color .2s; }
.e3-ventures button[aria-pressed="true"] { background: var(--green); color: #fff; }
.e3-world { --rx: 0deg; --ry: 0deg; position: relative; height: 440px; transform-style: preserve-3d; perspective: 1400px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.e3-halo { position: absolute; left: 50%; top: 52%; width: 460px; height: 340px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--open) 22%, transparent), transparent 65%); transform: translateZ(-100px); }
/* The land board */
.e3-stage { --spin: -32deg; position: absolute; left: 45%; top: 54%; width: 360px; height: 270px; translate: -50% -50%; transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(var(--spin)); transition: transform .8s cubic-bezier(.22,1,.36,1); cursor: grab; touch-action: pan-y; z-index: 2; }
.is-drag .e3-stage { transition: none; cursor: grabbing; }
.e3-board { position: absolute; inset: 0; transform-style: preserve-3d; display: grid; grid-template-columns: repeat(3, 1fr) 30px repeat(3, 1fr); grid-template-rows: repeat(2, 1fr) 30px repeat(2, 1fr); gap: 6px; padding: 16px; border-radius: 14px;
    background: linear-gradient(135deg, #8fb874, #6f9e58); box-shadow: 0 0 0 6px #b98a5a, 0 0 0 7px #9c6f43, 0 50px 70px -20px rgba(20,40,24,.45); }
.e3-board::after { content: ""; position: absolute; inset: 0; border-radius: 14px; transform: translateZ(-14px); background: #8a5f3a; box-shadow: 0 30px 40px rgba(20,24,33,.3); }
.e3-road { position: absolute; background: #cfc6b0; transform: translateZ(1px); }
.e3-road-v { left: calc(50% - 15px); width: 30px; top: 10px; bottom: 10px; background: #cfc6b0 linear-gradient(#fff 50%, transparent 0) center / 2px 14px repeat-y; }
.e3-road-h { top: calc(50% - 15px); height: 30px; left: 10px; right: 10px; background: #cfc6b0 linear-gradient(90deg, #fff 50%, transparent 0) center / 14px 2px repeat-x; }
/* Plots: raised tiles with two visible side faces */
.e3-plot { --c: var(--open); --z: 6px; position: relative; padding: 0; border: 0; border-radius: 4px; background: var(--c); cursor: pointer; transform-style: preserve-3d;
    transform: translateZ(var(--z)); transition: transform .45s cubic-bezier(.22,1,.36,1), background .4s, opacity .3s, filter .3s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.e3-plot::before, .e3-plot::after { content: ""; position: absolute; background: var(--c); filter: brightness(.72); transition: background .4s; }
.e3-plot::before { left: 0; right: 0; bottom: 0; height: var(--z); transform-origin: bottom; transform: rotateX(-90deg); }
.e3-plot::after { top: 0; bottom: 0; right: 0; width: var(--z); transform-origin: right; transform: rotateY(90deg); filter: brightness(.58); }
.e3-plot span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.e3-plot.is-hold { --c: var(--hold); }
.e3-plot.is-sold { --c: var(--sold); }
.e3-plot:hover { --z: 12px; }
.e3-plot.is-picked { --z: 26px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--gold); }
.e3-plot:focus-visible { outline: 2px solid #141821; outline-offset: 2px; }
.e3.is-filter .e3-plot:not(.is-match) { opacity: .28; filter: grayscale(1); }
.e3-tree { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7fc58b, #2d6e41 70%); transform: translateZ(var(--h)); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* Floating pieces at depth */
.e3-card, .e3-photo, .e3-phone { position: absolute; transform: translateZ(var(--d)); z-index: 5; }
.e3-photo { margin: 0; width: 128px; padding: 6px 6px 8px; border-radius: 16px; background: #fff; box-shadow: 0 22px 40px -18px rgba(20,24,33,.45); animation: e3Bob 6s ease-in-out infinite; }
.e3-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; display: block; }
.e3-photo figcaption { margin-top: 6px; font: 600 11.5px/1.2 system-ui, sans-serif; color: #141821; text-align: center; }
.e3-photo.f0 { left: -6px; top: 26px; rotate: -7deg; }
.e3-photo.f1 { left: 10px; bottom: 20px; rotate: 5deg; animation-delay: -3s; }
@keyframes e3Bob { 50% { translate: 0 -10px; } }
.e3-card { right: -4px; top: 18px; width: 200px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -20px rgba(20,24,33,.45); display: grid; gap: 6px; font-family: system-ui, sans-serif; }
.e3-card small { font: 600 11px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
.e3-card b { font-size: 15px; color: #141821; }
.e3-badge { justify-self: start; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 system-ui, sans-serif; background: color-mix(in srgb, var(--open) 16%, #fff); color: #1f6b3c; }
.e3-badge.is-hold { background: #fdf0d3; color: #8a5a00; }
.e3-badge.is-sold { background: #eceef1; color: #4b5160; }
.e3-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 0; }
.e3-card dt { font-size: 10.5px; color: #6b7280; }
.e3-card dd { margin: 0; font-size: 12.5px; font-weight: 600; color: #141821; }
.e3-card strong { font-size: 20px; color: var(--green); }
.e3-card.bump strong { animation: e3Bump .5s ease; }
@keyframes e3Bump { 40% { transform: scale(1.08); color: var(--gold); } }
.e3-cta { justify-self: stretch; text-align: center; padding: 9px 10px; border-radius: 10px; background: var(--green); color: #fff; font: 600 12.5px/1 system-ui, sans-serif; }
.e3-cta.is-off { background: #e5e7eb; color: #6b7280; }
.e3-phone { right: 6px; bottom: -4px; width: 112px; padding: 5px; border-radius: 22px; background: #141821; box-shadow: 0 30px 50px -20px rgba(20,24,33,.55); rotate: 6deg; }
.e3-phone img { display: block; width: 100%; border-radius: 17px; }
/* Controls */
.e3-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; position: relative; z-index: 6; }
.e3-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.e3-legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3e6ec; background: #fff; font: 600 13px system-ui, sans-serif; color: #2b303b; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.e3-legend button[aria-pressed="true"] { border-color: #141821; box-shadow: 0 0 0 1px #141821; }
.e3-legend i { width: 12px; height: 12px; border-radius: 3px; }
.e3-legend i.is-open { background: var(--open); } .e3-legend i.is-hold { background: var(--hold); } .e3-legend i.is-sold { background: var(--sold); }
.e3-legend b { font-weight: 700; color: #6b7280; }
.e3-ventures button:focus-visible, .e3-legend button:focus-visible { outline: 3px solid #141821; outline-offset: 2px; }
.e3-hint { width: 100%; text-align: center; font: 600 12px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a909c; }
@media (max-width: 900px) {
    .e3 { justify-self: center; max-width: 440px; }
    .e3-world { height: 400px; transform: none !important; }
    .e3-stage { width: 290px; height: 220px; top: 44%; }
    .e3-board { padding: 12px; gap: 4px; grid-template-columns: repeat(3, 1fr) 22px repeat(3, 1fr); grid-template-rows: repeat(2, 1fr) 22px repeat(2, 1fr); }
    .e3-road-v { width: 22px; left: calc(50% - 11px); } .e3-road-h { height: 22px; top: calc(50% - 11px); }
    .e3-photo, .e3-phone { display: none; }
    .e3-card { left: 50%; right: auto; top: auto; bottom: 0; translate: -50% 0; width: min(300px, 92%); grid-template-columns: 1fr auto; }
    .e3-card dl, .e3-card .e3-cta { grid-column: 1 / -1; }
    .e3-card dl { grid-template-columns: 1fr 1fr; }
    .e3-ventures button, .e3-legend button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .e3-photo { animation: none; } .e3-world, .e3-stage, .e3-plot { transition: none; } }
@media (max-width: 900px) {
    .e3-world { height: auto; padding-top: 250px; }
    .e3-stage { top: 125px; left: 50%; width: 270px; height: 200px; }
    .e3-card { position: relative; left: auto; bottom: auto; translate: none; margin: 0 auto; transform: none; }
}

/* ---- Page polish (real estate) ---- */
/* Photo bento: real photos read clearly, green brand overlay, no clipped text */
body:has(.lay-estate3d) .pp-pb-card.size-big::before { background: linear-gradient(180deg, rgba(15,42,28,0) 35%, rgba(15,42,28,.6) 62%, rgba(15,42,28,.94) 100%) !important; }
body:has(.lay-estate3d) .pp-pb-card::before { background: linear-gradient(180deg, rgba(15,42,28,0) 25%, rgba(15,42,28,.7) 60%, rgba(15,42,28,.95) 100%) !important; }
body:has(.lay-estate3d) .pp-pb-card.size-big h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important; }
body:has(.lay-estate3d) .pp-pb-card.size-big .pp-pb-copy { max-width: 62%; padding: 26px; }
body:has(.lay-estate3d) .style-features .pp-pb { grid-auto-rows: minmax(260px, auto); }
body:has(.lay-estate3d) .pp-pb-card:not(.size-big) .pp-pb-copy { padding: 18px 20px; }
body:has(.lay-estate3d) .pp-pb-card:not(.size-big) h3 { font-size: 1.12rem !important; }
body:has(.lay-estate3d) .pp-pb-card p { font-size: .84rem; overflow: visible; display: block; -webkit-line-clamp: unset; }
body:has(.lay-estate3d) .pp-pb-eyebrow { background: rgba(201,162,74,.9) !important; color: #1b1405 !important; }
/* Venture cards with real photos */
.pp-listing-top:has(.pp-listing-img) { background: #0f2a1c; }
.pp-listing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.pp-listing-top:has(.pp-listing-img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 45%); pointer-events: none; }
.pp-listing-top:has(.pp-listing-img) > span { z-index: 1; }
.pp-listing:hover .pp-listing-img { transform: scale(1.06); }
.pp-listing { transition: transform .3s, box-shadow .3s; }
.pp-listing:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(15,42,28,.45); }
/* App proof: brand green stage instead of brown */
body:has(.lay-estate3d) .pp-show-media { background: radial-gradient(circle at 30% 20%, #2f7a4f, #0f2a1c 70%) !important; }
.pp-listing-top { overflow: hidden; }
body:has(.lay-estate3d) .style-features .pp-pb { grid-auto-rows: auto !important; } body:has(.lay-estate3d) .pp-pb-card { min-height: 250px !important; height: auto !important; } body:has(.lay-estate3d) .pp-pb-card.size-big { min-height: 520px !important; }
