/* ---------- Before / After ---------- */
.hg-ba { --hg-ba-pos: 50%; --hg-ba-accent: #B49A63; position: relative; overflow: hidden; width: 100%; user-select: none; touch-action: pan-y; background: #0D0D0D; }
.hg-ba__after, .hg-ba__before { position: absolute; inset: 0; }
.hg-ba__before { clip-path: inset(0 calc(100% - var(--hg-ba-pos)) 0 0); }
.hg-ba__img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hg-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--hg-ba-pos); width: 2px; margin-left: -1px; background: var(--hg-ba-accent); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.hg-ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--hg-ba-accent); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.hg-ba__knob::before, .hg-ba__knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.hg-ba__knob::before { left: 12px; border-right-color: #F5F1EA; }
.hg-ba__knob::after { right: 12px; border-left-color: #F5F1EA; }
.hg-ba__label { position: absolute; top: 20px; padding: 7px 14px; font: 600 11px/1 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #F5F1EA; background: rgba(13,13,13,.62); pointer-events: none; transition: opacity .2s; }
.hg-ba__label--before { left: 20px; }
.hg-ba__label--after { right: 20px; }
.hg-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.hg-ba:has(.hg-ba__range:focus-visible) .hg-ba__knob { outline: 2px solid #F5F1EA; outline-offset: 3px; }
@media (max-width: 767px) { .hg-ba__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; } .hg-ba__label { top: 12px; } .hg-ba__label--before { left: 12px; } .hg-ba__label--after { right: 12px; } }

/* ---------- Exterior Customizer ---------- */
.hgc { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 40px; align-items: center; }
.hgc__stage { background: #fff; border: 1px solid #ECE6DB; padding: 18px; }
.hgc__svg { display: block; width: 100%; height: auto; }
.hgc__svg [style*="var(--hg-"], .hgc__svg rect, .hgc__svg path { transition: fill .35s ease; }
.hgc__note { margin: 12px 0 0; font: 400 12px/1.4 Montserrat, sans-serif; color: #6f6a62; }
.hgc__panel { display: flex; flex-direction: column; gap: 18px; }
.hgc__group { padding-bottom: 16px; border-bottom: 1px solid #ECE6DB; }
.hgc__group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hgc__group-label { font: 600 11px/1.2 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #B49A63; }
.hgc__choice { font: 400 italic 17px/1.2 "Playfair Display", serif; color: #0D0D0D; text-align: right; }
.hgc__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.hgc__swatch { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 3px #fff; transition: transform .15s, box-shadow .15s; }
.hgc__swatch:hover { transform: translateY(-2px); }
.hgc__swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #B49A63; }
.hgc__swatch:focus-visible { outline: 2px solid #0D0D0D; outline-offset: 3px; }
.hgc__reset { align-self: flex-start; margin-top: 4px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid #B49A63; font: 600 11px/1.4 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #0D0D0D; cursor: pointer; }
.hgc__reset:hover { color: #B49A63; }
@media (max-width: 1024px) { .hgc { grid-template-columns: 1fr; gap: 24px; } .hgc__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; } .hgc__reset { grid-column: 1 / -1; } }
@media (max-width: 600px) { .hgc__panel { grid-template-columns: 1fr; } .hgc__stage { padding: 10px; } }
/* Hello Elementor styles every <button> pink on hover/focus; keep ours on-brand. */
.hgc .hgc__swatch, .hgc .hgc__swatch:hover, .hgc .hgc__swatch:focus, .hgc .hgc__swatch:active { background: var(--sw); color: inherit; }
.hgc .hgc__reset, .hgc .hgc__reset:hover, .hgc .hgc__reset:focus, .hgc .hgc__reset:active { background: none; color: #0D0D0D; border-radius: 0; }
.hgc .hgc__reset:hover { color: #B49A63; }
/* Phones/tablets: keep the house in view while picking finishes; compact two-column controls. */
@media (max-width: 1024px) { .hgc__stage { position: sticky; top: 8px; z-index: 2; box-shadow: 0 10px 24px rgba(13,13,13,.08); } }
@media (max-width: 600px) {
	.hgc .hgc__panel { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
	.hgc__group-head { flex-direction: column; align-items: flex-start; gap: 3px; }
	.hgc__choice { font-size: 15px; text-align: left; }
	.hgc .hgc__swatch { width: 34px; height: 34px; }
	.hgc__swatches { gap: 8px; }
	.hgc__note { font-size: 11px; margin-top: 8px; }
}

/* ---------- Selections Explorer ---------- */
.hgs { --gold: #B49A63; --ink: #0D0D0D; --ivory: #F5F1EA; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.hgs__stage { position: relative; line-height: 0; }
.hgs__photo { width: 100%; height: auto; display: block; }
.hgs.has-active .hgs__photo { filter: brightness(.88); transition: filter .4s; }
.hgs .hgs__pin, .hgs .hgs__pin:hover, .hgs .hgs__pin:focus { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); font: 600 13px/34px Montserrat, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .25s, opacity .25s, box-shadow .25s; z-index: 2; }
.hgs.has-active .hgs__pin:not(.is-active) { opacity: .55; }
.hgs .hgs__pin.is-active { transform: translate(-50%, -50%) scale(1.18); opacity: 1; box-shadow: 0 0 0 4px rgba(245,241,234,.9), 0 6px 18px rgba(0,0,0,.45); z-index: 3; }
.hgs__pin.is-active::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: hgs-ring 1.6s ease-out infinite; }
@keyframes hgs-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.hgs__pin:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.hgs__callout { position: absolute; z-index: 4; width: 250px; display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--ivory); color: var(--ink); line-height: 1.35; box-shadow: 0 14px 32px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, left .3s, top .3s, bottom .3s; pointer-events: none; }
.hgs__callout.is-on { opacity: 1; transform: none; }
.hgs__callout::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: var(--ivory); transform: rotate(45deg); }
.hgs__callout.is-below::after { bottom: auto; top: -7px; }
.hgs__callout-swatch { width: 60px; height: 46px; object-fit: cover; flex: none; }
.hgs__callout-text { display: flex; flex-direction: column; gap: 3px; }
.hgs__callout-label { font: 600 10px/1.2 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hgs__callout-spec { font: 400 15px/1.3 "Playfair Display", serif; }
.hgs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hgs__li { margin: 0; }
.hgs .hgs__item, .hgs .hgs__item:hover, .hgs .hgs__item:focus { width: 100%; display: grid; grid-template-columns: 26px 54px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border: 0; border-left: 2px solid transparent; border-radius: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.hgs__item + * , .hgs__li + .hgs__li .hgs__item { border-top: 1px solid rgba(180,154,99,.18); }
.hgs .hgs__item.is-active { background: rgba(180,154,99,.14); border-left-color: var(--gold); }
.hgs__num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 600 11px/24px Montserrat, sans-serif; text-align: center; transition: background .2s, color .2s; }
.hgs__item.is-active .hgs__num { background: var(--gold); color: var(--ink); }
.hgs__swatch { width: 54px; height: 40px; object-fit: cover; display: block; background: rgba(180,154,99,.25); }
.hgs__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hgs__label { font: 600 10px/1.2 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hgs__spec { font: 400 15px/1.3 "Playfair Display", serif; }
.hgs--dark .hgs__spec { color: var(--ivory); }
.hgs--light .hgs__spec { color: var(--ink); }
.hgs__item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.hgs__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1024px) {
	.hgs { grid-template-columns: 1fr; gap: 18px; }
	.hgs__list { flex-direction: row; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.hgs__list::-webkit-scrollbar { display: none; }
	.hgs__li { flex: 0 0 min(78%, 300px); scroll-snap-align: center; }
	.hgs .hgs__item, .hgs .hgs__item:hover, .hgs .hgs__item:focus { height: 100%; border: 1px solid rgba(180,154,99,.3); border-left-width: 1px; }
	.hgs .hgs__item.is-active { border-color: var(--gold); }
	.hgs__li + .hgs__li .hgs__item { border-top: 1px solid rgba(180,154,99,.3); }
	.hgs .hgs__pin, .hgs .hgs__pin:hover, .hgs .hgs__pin:focus { width: 26px; height: 26px; font-size: 11px; line-height: 26px; }
	.hgs__callout { width: 210px; padding: 8px 10px 8px 8px; gap: 10px; }
	.hgs__callout-swatch { width: 48px; height: 38px; }
	.hgs__callout-spec { font-size: 13px; }
}
/* Elementor's `.elementor img { height:auto }` outranks single-class rules; pin our image sizes. */
.hgs .hgs__swatch { width: 54px; height: 40px; max-width: none; object-fit: cover; }
.hgs .hgs__callout-swatch { width: 60px; height: 46px; max-width: none; object-fit: cover; }
.hgs .hgs__item, .hgs .hgs__item:hover, .hgs .hgs__item:focus { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 1024px) { .hgs .hgs__callout-swatch { width: 48px; height: 38px; } }
.hgs .hgs__item, .hgs .hgs__item:hover, .hgs .hgs__item:focus { white-space: normal; }
.hgs__spec { overflow-wrap: anywhere; }
