/* Home page: photo tour, key facts, enquiry, call bar (JOB A). */
.tour { position: relative; background: #0d1f1c; color: #fff; }
.tour__stage { position: relative; overflow: hidden; height: min(72vh, 760px); min-height: 300px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.tour__stage:focus-visible { box-shadow: inset 0 0 0 3px var(--sand); }
.tour__track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform .55s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.tour__slide { flex: 0 0 100%; height: 100%; overflow: hidden; position: relative; }
.tour__zoom { width: 100%; height: 100%; transform-origin: center center; }
.tour__img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.tour:not(.is-full) .tour__slide.is-active .tour__img { animation: tour-kb 14s ease-out both; }
@keyframes tour-kb { from { transform: scale(1.08) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.tour__stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.tour__nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(251, 252, 251, .92); color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: transform .2s; }
.tour__nav:hover { transform: scale(1.06); }
.tour__nav:focus-visible, .tour__tool:focus-visible, .tour__tab:focus-visible, .tour__chip:focus-visible, .tour__thumb:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.tour__nav--prev { left: 1rem; }
.tour__nav--next { right: 1rem; }
.tour__nav span { margin-top: -4px; }
.tour__hud { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; display: flex; gap: .5rem; align-items: center; }
.tour__counter, .tour__room { padding: .25rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .9rem; font-weight: 600; }
.tour__tools { position: absolute; right: 1rem; bottom: 1rem; z-index: 4; display: flex; gap: .5rem; }
.tour__tool { min-height: 44px; min-width: 44px; padding: .4rem .9rem; border: 0; border-radius: 999px; background: rgba(251, 252, 251, .94); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; }
.tour__tool--360 { background: var(--sand); }
.tour__close { display: none; font-size: 1.8rem; line-height: 1; padding: 0; }
.tour__example { position: absolute; right: 1rem; top: 1rem; bottom: auto; z-index: 3; }
.tour__pano, .tour__pano.pnlm-container { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 2; background: #000; }
.tour__pano[hidden] { display: none; }
.tour.is-360 .tour__nav, .tour.is-360 .tour__hud { display: none; }
.tour__bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding-top: .9rem; padding-bottom: .4rem; }
.tour__tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tour__tab { min-height: 40px; padding: .3rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tour__tab[aria-pressed="true"] { background: #fff; color: var(--ink); }
.tour__rooms { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tour__rooms::-webkit-scrollbar { display: none; }
.tour__chip { flex: none; min-height: 40px; padding: .3rem .9rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .95rem; cursor: pointer; }
.tour__chip[aria-pressed="true"] { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.tour__thumbs-wrap { padding-bottom: 1rem; overflow-x: auto; scrollbar-width: thin; }
.tour__thumbs { display: flex; gap: .5rem; margin: 0; padding: .4rem 0; list-style: none; }
.tour__thumb { display: block; width: 96px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #234; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.tour__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour__thumb.is-active, .tour__thumb:hover { opacity: 1; border-color: var(--sand); }

/* Full screen */
html.tour-lock, html.tour-lock body { overflow: hidden; }
.tour.is-full { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #050b0a; }
.tour.is-full .tour__stage { flex: 1; height: auto; touch-action: none; }
.tour.is-full .tour__img { object-fit: contain; }
.tour.is-full .tour__stage::after { display: none; }
.tour.is-full .tour__close { display: inline-flex; }
.tour.is-full #tour-full { display: none; }
.tour.is-full .tour__tools { top: 1rem; bottom: auto; }
.tour.is-full .tour__example { top: auto; bottom: 1rem; right: 1rem; }
.tour.is-zoomed .tour__stage { cursor: grab; }
.tour.is-zoomed .tour__nav { opacity: .3; }

/* Head and layout */
.home__head { padding-top: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .4rem 2rem; }
.home__kicker { margin: 0; font-size: .95rem; color: var(--muted); }
.home__kicker a { color: var(--marsh); font-weight: 600; }
.home__title { margin: 0; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; }
.home__sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.home__price { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.home__fee { margin: .1rem 0 0; color: var(--muted); }
.home__badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; }
.lbadge--line { background: transparent; border: 1px solid var(--marsh); color: var(--marsh); }
.home__layout { display: grid; gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; }
.home__main > * + * { margin-top: 2.5rem; }
.home-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.home-facts__title { margin: 0 0 1rem; font-size: 1.6rem; }
.home-facts__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1rem 1.5rem; }
.home-facts__list dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.home-facts__list dd { margin: .1rem 0 0; font-size: 1.05rem; }
.home-features h2, .home-about h2, .home-similar h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 0 0 1rem; }
.home-features__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .55rem 1.5rem; }
.home-features__list li { position: relative; padding-left: 1.6rem; }
.home-features__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--marsh); border-bottom: 2px solid var(--marsh); transform: rotate(-45deg); }
.home-note { padding: .9rem 1rem; border-left: 3px solid var(--sand); background: var(--sand-soft); font-size: .95rem; }
.home-credit { font-size: .85rem; color: var(--muted); }
.home-credit a { color: var(--marsh); }
.home-enquire { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.home-enquire__title { margin: 0 0 .5rem; font-size: 1.6rem; }
.home-enquire__phone { margin: 0 0 1rem; }
.home-enquire__phone a { font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.home-enquire__phone span { font-size: .9rem; color: var(--muted); }
.home-similar { padding-bottom: var(--section, 5rem); }
.home-similar__all { margin-top: 1.5rem; }
.home-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1.6fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(251, 252, 251, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 48, 44, .12); }
.home-callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.home-callbar__call { background: var(--ink); color: var(--on-dark); }
.home-callbar__enq { border: 2px solid var(--ink); color: var(--ink); }
@media (max-width: 899px) {
	body.single-property { padding-bottom: 76px; }
	.tour__stage { height: 62vh; height: 62svh; }
	.tour__nav { width: 44px; height: 44px; margin-top: -22px; font-size: 1.9rem; }
	.tour__tool-text { display: none; }
	.tour.is-full .tour__nav { display: none; }
}
@media (min-width: 900px) {
	.home__head { grid-template-columns: 1fr auto; align-items: end; }
	.home__kicker, .home__title, .home__sub { grid-column: 1; }
	.home__pricebox { grid-column: 2; grid-row: 1 / span 3; text-align: right; }
	.home__badges { justify-content: flex-end; }
	.home__layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
	.home__aside { align-self: stretch; }
	.home-callbar { display: none; }
}
/* Wide screens (JOB F): the photo tour stays edge to edge and gets taller, the enquiry box grows,
   and key facts sit beside the cost calculator (features beside "About this home"). */
/* The cost calculator sits in a narrower column here than on the Finance page: stack the donut
   above its legend so the labels and amounts never overlap. */
@media (min-width: 900px) {
	.home__main .cglc-chart { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.home__main .cglc-donut { width: 9rem; }
	.home__main .cglc-legend { width: 100%; }
}
@media (min-width: 1440px) {
	.tour__stage { height: min(80vh, max(760px, 42vw)); }
	.tour__thumb { width: clamp(96px, 6vw, 160px); height: auto; aspect-ratio: 7 / 5; }
	.tour__bar.wrap, .tour__thumbs-wrap.wrap { width: var(--wrap-wide); }
	.home__title { font-size: var(--step-5); }
	.home__price { font-size: var(--step-4); }
	.home__layout { grid-template-columns: minmax(0, 1fr) clamp(380px, 22vw, 520px); gap: var(--space-l); padding-top: var(--space-l); }
	.home-facts__title, .home-enquire__title { font-size: var(--step-3); }
	.home-features h2, .home-about h2, .home-similar h2 { font-size: var(--step-4); }
}
@media (prefers-reduced-motion: reduce) {
	.tour__track, .tour__thumb { transition: none !important; }
	.tour .tour__slide.is-active .tour__img { animation: none !important; }
}

/* Page grid (owner fix 24 Oct): clean rows, nothing sticky over other content.
   Phones: one column. 900px+: content | enquiry. 1440px+: key facts | calculator | enquiry,
   then features | about, then finding us, credits full width. Only the enquiry box is sticky,
   and only inside its own column (its parent fills the grid area). */
.home-enquire { position: relative; z-index: 1; background: var(--surface); }
@media (min-width: 900px) {
	.home__aside .home-enquire { position: sticky; top: calc(var(--header-h, 96px) + 1rem); }
}
@media (min-width: 1440px) {
	.home__layout {
		grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) clamp(380px, 22vw, 520px);
		grid-template-areas:
			"facts calc enq"
			"feat  about enq"
			"find  find find"
			"credit credit credit";
		align-items: start;
	}
	.home__main { display: contents; }
	.home__main > * + * { margin-top: 0; }
	.home__main > .home-facts { grid-area: facts; }
	.home__main > .mcalc, .home__main > #cgl-calculator { grid-area: calc; }
	.home__main > .home-features { grid-area: feat; }
	.home__main > .home-about { grid-area: about; max-width: none; }
	.home__main > #cgl-park-finding { grid-area: find; }
	.home__main > #cgl-park-finding:empty { display: none; }
	.home__main > .home-credit { grid-area: credit; }
	.home__aside { grid-area: enq; }
	.home-facts__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
	/* Model page */
	.mpage .home__layout {
		grid-template-areas:
			"parks parks enq"
			"facts calc enq"
			"about about enq"
			"credit credit credit";
	}
	.mpage .home__main > .mparks { grid-area: parks; }
}

/* Tap targets of 44px or more (QA 24 Oct) */
.tour__tab, .tour__chip { min-height: 44px; }
.home__kicker a { display: inline-flex; align-items: center; min-height: 44px; }
.home-facts__list dd a { display: inline-flex; align-items: center; min-height: 44px; }
