/* Real estate page: booking road map, module photo accordion, launch-path flip card (estate-sections.js). */

/* ===== Booking journey as a road map ===== */
body:has(.lay-estate3d) .oj { position: relative; padding: 28px 28px 30px; border-radius: 28px;
    background: #fff radial-gradient(circle at 50% 120%, rgba(31,92,58,.07), transparent 60%); }
body:has(.lay-estate3d) .oj::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; border-radius: inherit;
    background: repeating-radial-gradient(circle at 85% -20%, transparent 0 22px, rgba(31,92,58,.06) 22px 23px); }
body:has(.lay-estate3d) .oj > * { position: relative; }
body:has(.lay-estate3d) .oj-head { margin-bottom: 84px; }
body:has(.lay-estate3d) .oj-head small { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: #1f5c3a; }
body:has(.lay-estate3d) .oj-track { height: 22px; margin: 0 calc(50% / var(--n)) 34px; border-radius: 22px; background: #3b4a40;
    box-shadow: inset 0 2px 0 rgba(0,0,0,.25), 0 2px 0 #c9b38a, 0 4px 0 #b39a6e; }
body:has(.lay-estate3d) .oj-track::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; translate: 0 -50%;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 12px, transparent 12px 24px); }
body:has(.lay-estate3d) .oj-fill { background: linear-gradient(90deg, #1f5c3a, #3f9a5e) !important; z-index: 0; }
body:has(.lay-estate3d) .oj-parcel { z-index: 2; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; rotate: -45deg; translate: -50% -78%;
    background: #c9a24a !important; color: #1b1405 !important; box-shadow: 0 10px 20px -6px rgba(0,0,0,.4); }
body:has(.lay-estate3d) .oj-parcel svg { rotate: 45deg; }
.oj-toast { position: absolute; z-index: 3; bottom: calc(100% + 40px); left: calc(var(--p) * 100%); translate: calc(-50% - (var(--p) - .5) * 70%) 0; width: 230px; padding: 10px 14px; border-radius: 14px;
    background: #0f2a1c; color: #fff; box-shadow: 0 18px 30px -14px rgba(15,42,28,.6); transition: left .6s cubic-bezier(.22,1,.36,1); font-family: system-ui, sans-serif; }
.oj-toast::after { content: ""; position: absolute; left: calc(50% + (var(--p) - .5) * 70%); top: 100%; border: 7px solid transparent; border-top-color: #0f2a1c; translate: -50% 0; }
.oj-toast b { display: block; font-size: 13.5px; color: #e9d29a; }
.oj-toast span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.85); }
.oj-toast.pop { animation: ojPop .45s cubic-bezier(.34,1.5,.64,1); }
@keyframes ojPop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
body:has(.lay-estate3d) .oj-steps { gap: 14px; }
body:has(.lay-estate3d) .oj-steps li { position: relative; text-align: center; justify-items: center; padding: 16px 12px; border: 1px dashed #d7dccf; background: #fbfaf6; }
body:has(.lay-estate3d) .oj-steps li::before { content: ""; position: absolute; left: 50%; top: -34px; height: 34px; width: 2px; background: repeating-linear-gradient(#c9b38a 0 4px, transparent 4px 8px); }
body:has(.lay-estate3d) .oj-steps li:nth-child(even) { margin-top: 26px; }
body:has(.lay-estate3d) .oj-steps li:nth-child(even)::before { top: -60px; height: 60px; }
body:has(.lay-estate3d) .oj-steps li small { display: none; }
body:has(.lay-estate3d) .oj-steps li.done { border-style: solid; border-color: #cfe3d4; background: #f3f9f4; }
body:has(.lay-estate3d) .oj-steps li.done .oj-dot { background: #1f5c3a; color: #fff; }
body:has(.lay-estate3d) .oj-steps li.now { border-style: solid; border-color: #c9a24a; background: #fffaf0; transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(201,162,74,.8); }
body:has(.lay-estate3d) .oj-steps li.now .oj-dot { background: #c9a24a !important; color: #1b1405 !important; box-shadow: 0 0 0 6px rgba(201,162,74,.22) !important; }
@media (max-width: 760px) {
    body:has(.lay-estate3d) .oj-steps { grid-template-columns: 1fr; }
    body:has(.lay-estate3d) .oj-steps li { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; margin-top: 0 !important; }
    body:has(.lay-estate3d) .oj-steps li::before { display: none; }
    body:has(.lay-estate3d) .oj-head { margin-bottom: 100px; }
    .oj-toast { width: 190px; }
}

/* ===== Modules as an expanding photo accordion ===== */
.mx-on > :not(.mx), .mx-on .sv-ttabs-nav, .mx-on .sv-ftabs-panel { display: none !important; }
.mx { display: flex; gap: 12px; height: 440px; margin-top: 10px; }
.mx-card { --bg: none; position: relative; flex: 1; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 24px; cursor: pointer; text-align: left; color: #fff; isolation: isolate;
    background: #0f2a1c var(--bg) center / cover; transition: flex .7s cubic-bezier(.22,1,.36,1), box-shadow .4s; font-family: inherit; }
.mx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,42,28,.4), rgba(15,42,28,.9) 70%); transition: background .5s; }
.mx-card.is-open { flex: 4.2; box-shadow: 0 30px 60px -30px rgba(15,42,28,.7); }
.mx-card.is-open::before { background: linear-gradient(180deg, rgba(15,42,28,.05) 10%, rgba(15,42,28,.6) 50%, rgba(15,42,28,.95)); }
.mx-card:focus-visible { outline: 3px solid #c9a24a; outline-offset: 3px; }
.mx-no { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font: 700 13px/1 system-ui, sans-serif; transition: background .4s, color .4s; }
.mx-card.is-open .mx-no { background: #c9a24a; color: #1b1405; }
.mx-side { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; font-weight: 600; font-size: 1rem; letter-spacing: .02em; transition: opacity .3s; }
.mx-card.is-open .mx-side { opacity: 0; }
.mx-body { position: absolute; left: 0; bottom: 0; width: max(100%, 380px); padding: 26px 28px; display: grid; gap: 6px; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .5s; pointer-events: none; }
.mx-card.is-open .mx-body { opacity: 1; transform: none; transition-delay: .25s; }
.mx-body b { font-size: 1.5rem; line-height: 1.2; }
.mx-body em { font-style: normal; font-size: .95rem; color: rgba(255,255,255,.82); }
.mx-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-body li { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); font-size: .85rem; }
.mx-timer { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #c9a24a; }
.mx-card.is-open .mx-timer { animation: mxTimer 5s linear forwards; }
.mx.is-paused .mx-timer { animation-play-state: paused; }
@keyframes mxTimer { to { width: 100%; } }
@media (max-width: 760px) {
    .mx { flex-direction: column; height: auto; }
    .mx-card { flex: none; height: 64px; transition: height .6s cubic-bezier(.22,1,.36,1); }
    .mx-card.is-open { flex: none; height: 330px; }
    .mx-no { top: 13px; }
    .mx-side { writing-mode: horizontal-tb; rotate: none; left: 70px; bottom: auto; top: 22px; translate: none; }
    .mx-body { width: 100%; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mx-card, .mx-body { transition: none; } .mx-timer { display: none; } }

/* ===== Launch paths: switch + 3D flip card ===== */
.pp-dual.lx-on { display: block !important; }
.lx-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(420px, 100%); margin: 0 auto 26px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid #e3e6ec; box-shadow: 0 12px 26px -20px rgba(20,24,33,.45); }
.lx-switch button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; font: 700 12.5px system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #4b5160; cursor: pointer; transition: color .3s; }
.lx-switch button[aria-pressed="true"] { color: #fff; }
.lx-switch i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #1f5c3a; transition: translate .5s cubic-bezier(.22,1,.36,1), background .5s; }
.is-b .lx-switch i { translate: 100% 0; background: #141821; }
.lx-switch button:focus-visible { outline: 3px solid #c9a24a; outline-offset: 2px; }
.lx-stage { perspective: 1600px; max-width: 940px; margin: 0 auto; }
.lx-flip { display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.is-b .lx-flip { transform: rotateY(180deg); }
.pp-dual .lx-face { grid-area: 1 / 1; display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 36px; align-content: start; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    margin: 0 !important; padding: 34px 38px !important; border-radius: 28px !important; border: 1px solid #e3e6ec !important; background: #fff !important; box-shadow: 0 40px 70px -45px rgba(15,42,28,.55) !important; }
.pp-dual .lx-face::before, .pp-dual .lx-face::after { display: none !important; }
.pp-dual .lx-back { transform: rotateY(180deg); }
.lx-face > .pp-panel-eyebrow, .lx-face > h3, .lx-face > p, .lx-face > a { grid-column: 1; }
.pp-dual .lx-face > ul { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: grid; gap: 10px; margin: 0 !important; padding: 0; list-style: none; }
.pp-dual .lx-face > ul li { position: relative; padding: 12px 14px 12px 44px !important; border-radius: 14px; background: #f6f7f4; font-size: .93rem; }
.pp-dual .lx-face > ul li::before { content: "\2713" !important; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #1f5c3a; color: #fff; font: 700 11px/1 system-ui, sans-serif; }
.pp-dual .lx-back > ul li::before { background: #141821; }
.pp-dual .lx-face h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important; margin: 4px 0 6px !important; }
.pp-dual .lx-face > a { justify-self: start; margin-top: 8px; }
@media (max-width: 760px) {
    .pp-dual .lx-face { grid-template-columns: 1fr; padding: 24px 20px !important; }
    .pp-dual .lx-face > ul { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .lx-flip { transition: none; } }
@media (max-width: 760px) { .oj-toast { left: 0; right: 0; width: auto; translate: none !important; transition: none; } .oj-toast::after { left: calc(var(--p) * 100%); } }

/* ---- Live proof: aerial case-study panel ---- */
.pp-show.lp { position: relative; isolation: isolate; overflow: hidden; border: 0; border-radius: 22px; padding: 28px; gap: 36px; align-items: center;
  background: linear-gradient(100deg, rgba(8,32,21,.62) 0%, rgba(8,32,21,.9) 45%, #0b2419 100%), var(--lp-bg) center/cover, #0d2a1d; box-shadow: 0 30px 60px -30px rgba(10,40,25,.55); color: #e8f2ec; }
.pp-show.lp::before, .pp-show.lp::after { display: none !important; }
.lp .pp-show-media, .lp .pp-show-media::before, .lp .pp-show-media::after { background: none !important; box-shadow: none; padding: 0; min-height: 0; }
.lp .pp-show-stage { position: relative; display: grid; place-items: center; padding: 26px 0; }
.lp .pp-show-stage::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,85,.32), transparent 65%); filter: blur(10px); }
.lp .pp-show-screen { position: relative; width: min(270px, 70%); border-radius: 30px; border: 7px solid #10150f;
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-3deg); }
.lp-note { position: absolute; right: 2%; top: 22%; display: flex; gap: 10px; align-items: center; max-width: 230px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.95); color: #12261b;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); font-size: 13px; line-height: 1.3; }
.lp-note.in { animation: lpIn .5s cubic-bezier(.2,.8,.2,1); }
.lp-note b { display: block; font-weight: 600; }
.lp-note small { color: #5b6b62; font-size: 12px; }
.lp-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #1f7a4c; color: #fff; font-size: 14px; }
.lp-badge { position: absolute; left: 4%; bottom: 14%; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  background: rgba(8,32,21,.75); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 12.5px; color: #e8f2ec; }
.lp-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: lpPulse 1.8s infinite; }
@keyframes lpIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes lpPulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.lp .pp-eyebrow { color: #d4af55; letter-spacing: .08em; font-size: 11.5px; line-height: 1.6; }
.lp .pp-eyebrow::before { background: #d4af55; }
.lp h3 { color: #fff; font-size: 26px; margin: 6px 0 10px; }
.lp .pp-show-text { color: rgba(232,242,236,.78); font-size: 15px; line-height: 1.65; }
.lp .pp-show-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; padding: 0; }
.lp .pp-show-points li { list-style: none; padding: 10px 12px 10px 34px; border-radius: 11px; position: relative; font-size: 13.5px; line-height: 1.4;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e8f2ec; transition: background .2s, border-color .2s; }
.lp .pp-show-points li:hover { background: rgba(255,255,255,.11); border-color: rgba(212,175,85,.5); }
.lp .pp-show-points li::before { content: "" !important; position: absolute; left: 12px; top: 14px; width: 12px; height: 7px; background: none !important;
  border: solid #4ade80; border-width: 0 0 2px 2px; transform: rotate(-45deg); border-radius: 0; }
.lp .pp-show-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; margin: 0; padding: 0; }
.lp .pp-show-metrics li { list-style: none; padding: 14px 16px; border: 0 !important; border-radius: 13px; background: rgba(212,175,85,.1); border-top: 2px solid #d4af55 !important; }
.lp .pp-show-metrics strong { color: #fff; font-size: 26px; font-variant-numeric: tabular-nums; }
.lp .pp-show-metrics span { color: rgba(232,242,236,.7); font-size: 12.5px; }
.lp .pp-show-note { color: rgba(232,242,236,.5); font-size: 11.5px; margin: 10px 0 16px; }
.lp .pp-play { background: #fff; color: #10150f; }
@media (max-width: 860px) {
  .pp-show.lp { padding: 18px; gap: 18px; }
  .lp .pp-show-points { grid-template-columns: 1fr; }
  .lp .pp-show-metrics strong { font-size: 21px; }
  .lp-note { right: 0; top: 8%; max-width: 200px; }
}
body:has(.lay-estate3d) main .pp-show.lp { background: linear-gradient(100deg, rgba(8,32,21,.62) 0%, rgba(8,32,21,.9) 45%, #0b2419 100%), var(--lp-bg) center/cover, #0d2a1d !important;
  border: 0 !important; padding: 28px !important; border-radius: 22px !important; }
body:has(.lay-estate3d) main .lp .pp-show-media { background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body:has(.lay-estate3d) main .lp .pp-show-media::before, body:has(.lay-estate3d) main .lp .pp-show-media::after { display: none !important; }
@media (max-width: 860px) { body:has(.lay-estate3d) main .pp-show.lp { padding: 18px !important; } }
body:has(.lay-estate3d) main .lp h3 { color: #fff !important; }
body:has(.lay-estate3d) main .lp .pp-eyebrow { color: #d4af55 !important; opacity: 1 !important; }
body:has(.lay-estate3d) main .lp .pp-show-metrics span { line-height: 1.35; display: block; margin-top: 4px; }
@media (max-width: 860px) {
  body:has(.lay-estate3d) main .lp .pp-show-stage { padding: 14px 0 54px; }
  body:has(.lay-estate3d) main .lp .pp-show-screen { width: 62%; margin: 0 auto; transform: none; }
  body:has(.lay-estate3d) main .lp-note { top: auto; bottom: 0; right: 50%; transform: translateX(50%); max-width: 260px; z-index: 2; }
  body:has(.lay-estate3d) main .lp-note.in { animation: none; }
  body:has(.lay-estate3d) main .lp-badge { left: 0; top: 4px; bottom: auto; }
  body:has(.lay-estate3d) main .lp .pp-show-metrics li { padding: 12px; }
}
body:has(.lay-estate3d) main .lp .pp-show-screen { position: relative; left: auto; top: auto; translate: none; animation: none; }
@media (max-width: 860px) {
  body:has(.lay-estate3d) main .lp .pp-show-screen { width: 64%; }
  body:has(.lay-estate3d) main .lp-note { max-width: none; width: 82%; }
}
/* the stacked step list already shows each step's detail on phones */
@media (max-width: 760px) { .oj-toast { display: none !important; } }
@media (max-width: 760px) {
  body:has(.lay-estate3d) .oj-head { margin-bottom: 28px !important; }
}
@media (max-width: 860px) { body:has(.lay-estate3d) main .lp .pp-show-stage { padding-bottom: 78px; } }
body:has(.lay-estate3d) main .lp .pp-show-screen { z-index: 1 !important; }
body:has(.lay-estate3d) main .lp-note, body:has(.lay-estate3d) main .lp-badge { z-index: 5; }
@media (max-width: 860px) {
  body:has(.lay-estate3d) main .lp .pp-show-media { padding-bottom: 64px !important; position: relative; }
  body:has(.lay-estate3d) main .lp-badge { left: 50%; top: 0; transform: translateX(-50%); }
  body:has(.lay-estate3d) main .lp .pp-show-stage { padding: 44px 0 0; }
  body:has(.lay-estate3d) main .lp-note { bottom: -58px; }
}
