/* One continuous vector neighborhood; callouts and markers are independent layers. */
.tour{--map-opacity:.82;--rail:270px;position:relative;isolation:isolate;padding:72px max(24px,calc((100% - 1200px)/2)) 100px;overflow:hidden;background:#f7f7f5}
.tour::before{content:"";position:absolute;inset:0;z-index:-2;clip-path:inset(0 max(0px,calc((100% - 1200px)/2)));background:url(/tour/tour-map.svg) var(--map-x,0px) var(--map-y,0px)/var(--map-width,1440px) auto no-repeat;opacity:var(--map-opacity);mask-image:radial-gradient(ellipse 460px 280px at var(--watch-map-x,-1000px) var(--watch-map-y,-1000px),#000 35%,transparent 100%),radial-gradient(ellipse 180px 180px at var(--names-map-x,-1000px) var(--names-map-y,-1000px),#000 35%,transparent 100%),radial-gradient(ellipse 360px 300px at var(--property-map-x,-1000px) var(--property-map-y,-1000px),#000 20%,#000b 55%,transparent 100%),linear-gradient(to bottom,transparent,transparent calc(var(--map-focus-top,400px) - 100px),#000 var(--map-focus-top,400px),#000 var(--map-focus-bottom,900px),#0006 calc(var(--map-focus-bottom,900px) + 140px),#0006 calc(100% - 140px),transparent)}
.tour::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f7f7f550,transparent 35%,transparent 90%,#f7f7f520)}
.tour-intro{text-align:center;margin-bottom:64px}.tour-intro h2{font-size:var(--h2);line-height:1.12;letter-spacing:-.02em;margin:0}.tour-scenes{max-width:1200px;margin:auto}
.tour-scene{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);gap:50px;position:relative;min-height:650px;padding:50px 0 70px;align-items:start}.tour-scene+.tour-scene{margin-top:30px}.scene-copy{position:relative;padding-top:12px;z-index:3}.scene-number{display:block;color:var(--accent);font-size:.92rem;font-weight:700;letter-spacing:.06em;margin-bottom:16px}.scene-copy h3{font-size:var(--h3);line-height:1.09;letter-spacing:-.035em;margin:0 0 20px}.scene-copy p{font-size:1.08rem;line-height:1.5;color:var(--muted);margin:0}.scene-art{position:relative;min-width:0}
.glance-scene{display:block;isolation:isolate;min-height:0;padding:24px 0}.glance-scene .scene-copy{max-width:none;padding:0;margin-bottom:20px}.glance-scene .scene-number{margin-bottom:8px}.glance-scene h3{max-width:none;margin-bottom:10px}.glance-art{height:580px}.glance-map{position:absolute;width:100%;left:0;top:40px;aspect-ratio:1942/809;z-index:0;pointer-events:none}.addition-anchor{position:absolute;left:18.8%;top:68%;width:1px;height:1px}
.detail-card{background:#fff;border:1px solid #ffffff;border-radius:20px;box-shadow:0 6px 18px #0d1b2a10;padding:18px 20px;z-index:3}.detail-card h4{font-size:1.07rem;line-height:1.25;margin:0 0 5px;letter-spacing:-.025em}.detail-card p{font-size:.95rem;line-height:1.4;color:var(--muted);margin:0}
.search-callout{position:absolute;left:3%;top:0;width:36%}.map-search{position:absolute;left:6%;top:146px;width:36%;height:56px;background:white;border-radius:16px;display:flex;align-items:center;gap:12px;padding:0 18px;box-shadow:0 5px 12px #0d1b2a18;color:#7e8996;z-index:2;font-size:clamp(.82rem,1.18vw,1.08rem);white-space:nowrap}.map-search svg{width:22px;height:22px;flex-shrink:0;stroke:var(--muted);fill:none;stroke-width:1.7}
.activity-figure{display:contents}.activity-sheet{position:absolute;width:36%;right:0;top:0;z-index:2}.activity-sheet>img{width:100%;height:auto;display:block;filter:drop-shadow(0 8px 15px #0d1b2a14)}.activity-anchor{position:absolute;width:1px;height:1px;left:8%;top:34%}.activity-caption{position:absolute;right:0;top:440px;width:36%}.legend-callout{position:absolute;left:3%;top:440px;width:36%}.example-icons{display:grid;grid-template-columns:repeat(3,max-content);gap:10px 14px;margin-top:12px}.example-icons span{display:inline-flex;gap:6px;align-items:center;font-size:.88rem;white-space:nowrap}.example-icons i{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%}.permit{background:var(--permit)}.example-icons img{width:22px;height:22px;object-fit:contain}
.scene-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:2;pointer-events:none}.scene-leaders path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.rough-art{display:flex;justify-content:center;align-items:center;min-height:500px}.tour-phone{width:230px;max-width:70%;height:auto;filter:drop-shadow(0 12px 16px #0d1b2a15)}
/* Permit details share the full-width heading rhythm of the developed scenes. */
.permit-scene{display:block}.permit-scene .scene-copy{max-width:none;padding:0;margin-bottom:24px}.permit-scene .scene-number{margin-bottom:8px}.permit-scene .scene-copy h3{max-width:none;margin-bottom:10px}.permit-scene .scene-copy p{max-width:650px}
@media(max-width:700px){.permit-scene .scene-number{margin-bottom:12px}}

/* Names share the full-width heading rhythm of the developed map scenes. */
.names-scene{display:block}.names-scene .scene-copy{max-width:none;padding:0;margin-bottom:24px}.names-scene .scene-number{margin-bottom:8px}.names-scene .scene-copy h3{max-width:none;margin-bottom:10px}.names-scene .scene-copy p{max-width:650px}
@media(min-width:1500px){.tour{--rail:290px}.tour-scene{gap:70px}}
@media(max-width:1100px) and (min-width:701px){.glance-map{top:90px}.map-search{left:2%;top:132px;width:38%;font-size:clamp(.82rem,1.2vw,1.05rem)}.activity-sheet,.activity-caption{width:42%}.search-callout,.legend-callout{width:44%;left:0}}
@media(max-width:700px){.tour{padding:48px 20px 65px}.tour::after{background:linear-gradient(90deg,#f7f7f530,transparent 80%)}.tour-intro{margin-bottom:42px;text-align:left}.tour-scene{display:block;min-height:0;padding:28px 0 40px}.tour-scene+.tour-scene{margin-top:28px;border-top:1px solid #0f7a681a}.scene-copy{max-width:430px;padding:0}.scene-number{margin-bottom:12px}.scene-copy h3{max-width:14ch;margin-bottom:14px}
.glance-art{height:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:0;padding-bottom:0}.glance-map{position:absolute;top:160px;left:-20px;width:calc(100% + 40px);height:250px;aspect-ratio:auto;overflow:visible}.search-callout{position:relative;inset:auto;width:auto;order:0}.map-search{position:relative;inset:auto;justify-self:center;width:90%;height:52px;order:1;margin-bottom:200px;font-size:.94rem;padding:0 14px;gap:9px}.activity-sheet{position:relative;inset:auto;width:100%;order:3;margin-top:0}.activity-caption{position:relative;inset:auto;width:100%;order:4}.legend-callout{position:relative;inset:auto;width:100%;order:2}.detail-card{padding:18px}.example-icons{gap:10px 14px}.example-icons span{font-size:.9rem}.scene-leaders{display:none}.rough-art{min-height:0;padding:35px 0 12px}.tour-phone{width:210px}}

@media(max-width:700px){.glance-scene .scene-copy{margin-bottom:30px}.glance-scene h3{max-width:none}.glance-scene .scene-number{margin-bottom:12px}}
@media(max-width:700px){.names-scene .scene-number{margin-bottom:12px}}

.map-marker{position:absolute;width:44px;height:44px;transform:translate(-50%,-100%);filter:drop-shadow(0 3px 4px #0d1b2a24);pointer-events:none}.marker-badge{display:grid;place-items:center;width:100%;height:100%;border:2px solid white;border-radius:50%}.marker-badge img{display:block;width:26px;height:26px}.permit-badge{background:#FDC842}.sale-badge{background:#FF6B87}.example-icons .sale-badge{background:#FF6B87}.example-icons img{width:20px;height:20px}
@media(max-width:700px){.map-marker{width:34px;height:34px}.marker-badge img{width:20px;height:20px}}

/* Keep the neighborhood within the same centered canvas as the tour content. */
.tour-map-edge{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f7f7f5 0%,transparent 12%,transparent 95%,#f7f7f5 100%);width:min(1200px,100%);margin-inline:auto}

/* Property scene: keep one home as context; let the property sheet do the explaining. */
.property-scene{display:block;min-height:0;padding-top:50px;padding-bottom:60px}.property-scene .scene-copy{max-width:none;padding:0;margin-bottom:24px}.property-scene h3{max-width:none;margin-bottom:10px}.property-scene .scene-number{margin-bottom:8px}.property-scene .scene-copy p{max-width:650px}.property-art{height:660px}.property-detail{position:absolute;right:7%;top:0;width:40%;max-width:440px;margin:0;overflow:hidden;filter:drop-shadow(0 12px 20px #0d1b2a14)}.property-capture{position:relative;aspect-ratio:852/1250;overflow:hidden}.property-capture>img{display:block;width:100%;height:auto;transform:translateY(-5.42%)}.selected-home{position:absolute;width:44px;height:44px;border-radius:50%;background:var(--accent);border:3px solid white;display:grid;place-items:center;transform:translate(-50%,-50%);box-shadow:0 0 0 12px #a7e3d638,0 5px 12px #0d1b2a18;z-index:2}.selected-home img{width:27px;height:27px}.property-leader{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}.property-leader path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px) and (min-width:701px){.property-detail{width:52%;right:0}.property-art{height:550px}}
@media(max-width:700px){.property-scene{padding-top:32px;padding-bottom:40px}.property-scene h3{max-width:none}.property-scene .scene-number{margin-bottom:12px}.property-art{height:auto;padding-top:150px;margin-top:18px}.property-detail{position:relative;inset:auto;width:100%;max-width:380px;margin-inline:auto}.property-leader{display:none}.selected-home{width:38px;height:38px}.selected-home img{width:23px;height:23px}}

/* Property annotations point to the photo, summary facts, and tabs as a group. */
.property-detail{left:34%;right:auto;top:16px;width:36%;max-width:420px}
.property-callout{position:absolute;width:26%}
.street-callout{left:0;top:205px}
.facts-callout{right:0;top:155px}
.tabs-callout{right:0;top:390px}
@media(max-width:1000px) and (min-width:701px){
 .property-art{height:660px}.property-detail{left:34%;right:auto;top:16px;width:36%}
 .property-callout{padding:14px}.property-callout h4{font-size:1rem}.property-callout p{font-size:.9rem}
 .street-callout{top:150px}.facts-callout{top:105px}.tabs-callout{top:325px}
}
@media(max-width:700px){
 .property-art{display:flex;flex-direction:column;gap:18px}
 .property-detail{left:auto;top:auto;width:100%;max-width:380px;margin-bottom:8px}
 .property-callout{position:relative;inset:auto;width:100%}
}

/* Keep map context down the tour, with broad quiet bands behind section headings. */
.tour-scene:not(.glance-scene)::before{content:"";position:absolute;left:0;right:0;top:-18px;height:240px;pointer-events:none;background:linear-gradient(to bottom,transparent,#f7f7f5f5 35px,#f7f7f5f5 165px,transparent)}
.property-capture{mask-image:none}
.facts-focus,.tabs-focus{position:absolute;pointer-events:none;z-index:1;border:2px solid var(--accent)}
.facts-focus{left:50%;top:32.5%;height:19%;width:35%;border-radius:10px}
.tabs-focus{left:10.5%;top:54.3%;width:79%;height:7.4%;border-radius:7px}
@media(min-width:1001px){.property-detail{left:38%;top:-24px}.facts-callout,.tabs-callout{width:22%}.facts-callout{top:130px}.tabs-callout{top:355px}}

/* One shared exit into the quiet space before the next scene. The phone and map fade together. */
.property-scene::after{content:"";position:absolute;left:0;right:0;top:var(--property-exit-top,750px);bottom:-30px;z-index:2;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--bg) 44px,var(--bg))}
.property-scene + .tour-scene::before{background:linear-gradient(to bottom,var(--bg),#f7f7f5f5 165px,transparent)}
.property-detail{filter:none}
.tab-underline-cover{position:absolute;left:11.6%;top:60.5%;width:20.2%;height:.8%;background:#f5f5f5;pointer-events:none}
.tab-underline-cover::after{content:"";position:absolute;left:0;right:0;top:40%;height:1px;background:#ddd}
.selected-home-address{position:absolute;transform:translateX(-50%);padding:5px 11px;border:1px solid #fff;border-radius:9px;background:#fffffff2;color:var(--fg);font-size:.78rem;font-weight:600;white-space:nowrap;box-shadow:0 3px 10px #0d1b2a0d;z-index:3}
.property-leader .property-line{stroke-width:1.75;stroke-dasharray:4 6;opacity:.65}
.property-connection-dot{fill:var(--accent);stroke:white;stroke-width:2}

/* Fade the full map canvas, including the gutters on narrow screens. */
.tour-scene:not(.glance-scene)::before,.property-scene::after{left:50%;right:auto;width:min(1200px,100vw);transform:translateX(-50%)}
.property-leader{z-index:3}

/* Neighbor names belong directly to homes on the continuous map. */
#names-heading{scroll-margin-top:90px}
.names-scene{min-height:0;padding-bottom:45px}
.names-art{display:block;padding-top:8px}
.names-block-map{position:relative;height:310px;margin-bottom:24px}
.neighbor-label{position:absolute;transform:translate(-50%,-100%);background:#fff;border:1px solid #fff;border-radius:13px;padding:10px 14px;box-shadow:0 5px 18px #0d1b2a12;text-align:center;min-width:150px;z-index:2}
.neighbor-label[hidden]{display:none}
.neighbor-label>span{display:block;font-size:.7rem;color:var(--muted);letter-spacing:.01em}
.neighbor-label strong{display:block;font-size:1rem;color:var(--accent);font-weight:650;white-space:nowrap}
.neighbor-label::after{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;background:white;transform:translateX(-50%) rotate(45deg)}
.neighbor-label i{position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);width:12px;height:12px;border:3px solid white;background:var(--accent);border-radius:50%;box-shadow:0 0 0 5px #0f7a6815}
.names-block-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media(max-width:1000px) and (min-width:701px){
 .names-block-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .names-block-benefits>.detail-card:last-child{grid-column:1/-1}
}
@media(max-width:700px){
 .names-scene{padding-bottom:40px}
 .names-block-map{height:350px;margin-bottom:20px}
 .neighbor-label{min-width:140px;padding:9px 11px}
 .neighbor-label strong{font-size:.88rem}.neighbor-label>span{font-size:.65rem}
 .names-block-benefits{grid-template-columns:1fr;gap:16px}
}

/* Permit details: one readable capture with three annotations anchored to its content. */
.permit-scene{min-height:0;padding-bottom:50px}
.permit-art{padding:12px 0 26px}
.permit-detail{position:relative;width:34%;max-width:400px;margin:0 auto;filter:drop-shadow(0 12px 20px #0d1b2a14)}
.permit-detail>img{display:block;width:100%;height:auto}
.permit-focus{position:absolute;border:2px solid var(--accent);border-radius:10px;pointer-events:none}
.summary-focus{left:12%;top:35%;width:75%;height:21.2%}
.contractor-target{position:absolute;left:83%;top:64.7%;width:1px;height:1px;pointer-events:none}
.timeline-focus{left:11.5%;top:72.8%;width:77%;height:20.4%}
.permit-callout{position:absolute;width:26%}
.summary-callout{left:0;top:28%}
.contractor-callout{right:0;top:56%}
.timeline-callout{left:0;top:78%}
.permit-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.permit-leaders path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px) and (min-width:701px){
 .permit-detail{width:42%;max-width:380px}
 .permit-callout{width:24%;padding:14px}.permit-callout h4{font-size:1rem}.permit-callout p{font-size:.9rem}
 .summary-callout{top:26%}.contractor-callout{top:54%}.timeline-callout{top:77%}
}
@media(max-width:700px){
 .permit-scene{padding-bottom:40px}.permit-art{display:flex;flex-direction:column;gap:18px;padding:6px 0 0}
 .permit-detail{width:100%;max-width:350px;margin:0 auto 10px}
 .permit-callout{position:relative;inset:auto;width:100%}
 .permit-leaders{display:none}
}

/* Watch your block starts with the same full-width heading as the other scenes. */
.watch-scene{display:block}
.watch-scene .scene-copy{max-width:none;padding:0;margin-bottom:24px}
.watch-scene .scene-number{margin-bottom:8px}
.watch-scene .scene-copy h3{max-width:none;margin-bottom:10px}
.watch-scene .scene-copy p{max-width:650px}
@media(max-width:700px){.watch-scene .scene-number{margin-bottom:12px}}

/* Watch area and notification live directly on the continuous neighborhood map. */
.watch-scene{min-height:0;padding-bottom:30px}
.watch-art{height:520px}
.watch-map{position:absolute;left:0;top:10px;width:65%;height:360px}
.watch-boundary{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.watch-boundary path{fill:#a7e3d64d;stroke:var(--accent);stroke-width:2;vector-effect:non-scaling-stroke}
.watch-area-label{position:absolute;left:17%;top:26%;max-width:76%;padding:12px 16px;background:#fffffff5;border:1px solid #fff;border-radius:14px;box-shadow:0 4px 16px #0d1b2a0c;font-size:.95rem;z-index:2}
.watch-area-label strong{font-weight:650}.watch-area-label>span:last-child{display:block;color:var(--muted);font-size:.85rem;margin-top:3px}
.watch-label-dot{display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:50%;margin-right:8px}
.watch-permit{position:absolute;width:44px;height:44px;transform:translate(-50%,-100%);filter:drop-shadow(0 3px 4px #0d1b2a24);pointer-events:none;left:57%;top:70%;z-index:2}.watch-permit img{width:26px;height:26px}
.watch-notification-stack{position:absolute;right:2%;top:160px;width:36%;z-index:3;isolation:isolate}
.watch-notification-stack::before,.watch-notification-stack::after{content:"";position:absolute;border:1px solid #fff;border-radius:24px;box-shadow:0 5px 12px #0d1b2a0d;pointer-events:none}
.watch-notification-stack::before{inset:18px 20px -18px;background:#e7eeeb;z-index:-2}
.watch-notification-stack::after{inset:9px 10px -9px;background:#f0f4f1;z-index:-1}
.watch-notification{position:relative;display:flex;align-items:center;gap:14px;padding:20px;background:#ffffffed;border:1px solid white;border-radius:24px;box-shadow:0 12px 34px #0d1b2a1c;backdrop-filter:blur(12px)}
.watch-notification-icon{display:block;flex:none;width:48px;height:48px;border-radius:12px}
.watch-notification-copy{min-width:0;flex:1}
.watch-notification-meta{display:flex;align-items:center;gap:9px;margin:0;font-size:.82rem;line-height:1.2rem;color:var(--muted)}
.watch-notification-time{margin-left:auto;font-size:.75rem}
.watch-notification-copy>strong{display:block;font-size:1rem;line-height:1.2rem;white-space:nowrap}
.watch-notification-copy>p{margin:0;font-size:.82rem;line-height:1.2rem;color:var(--fg);white-space:nowrap}
.watch-leader{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
.watch-leader path{fill:none;stroke:var(--accent);stroke-width:1.75;stroke-dasharray:4 6;stroke-linecap:round}
.watch-leader circle{fill:var(--accent);stroke:#fff;stroke-width:2}
.watch-callouts{position:absolute;left:0;right:0;top:400px;display:grid;grid-template-columns:1fr 1fr;gap:28px}
@media(max-width:1000px) and (min-width:701px){.watch-notification-stack{width:44%;right:0}.watch-notification{padding:18px 14px;gap:12px}.watch-notification-icon{width:42px;height:42px;border-radius:10px}.watch-notification-copy>p{font-size:.75rem}.watch-map{width:67%}.watch-area-label{left:14%;padding:12px}.watch-callouts{gap:20px}}
@media(max-width:700px){
 .watch-art{height:auto;display:flex;flex-direction:column;gap:24px;padding-top:0}
 .watch-map{position:relative;inset:auto;width:100%;height:290px}
 .watch-area-label{left:13%;top:23%;padding:12px;max-width:80%}
 .watch-notification-stack{position:relative;inset:auto;width:100%;align-self:center;margin-top:-24px;margin-bottom:18px}.watch-notification{padding:17px 12px;gap:10px}.watch-notification-icon{width:40px;height:40px;border-radius:10px}.watch-notification-copy>p{font-size:.75rem}
 .watch-leader{display:none}
 .watch-callouts{position:relative;inset:auto;grid-template-columns:1fr;gap:16px}
}

/* 3→4: the exit fade already blanks the map below the phone, so drop the extra section padding/margin
   that the other (map-visible) transitions rely on. Desktop/tablet only; mobile spacing is unchanged. */
@media(min-width:701px){.property-scene{padding-bottom:0}.property-scene+.tour-scene{margin-top:0}}
