/* Pattern: luxe/home-collection — install photo + hotspots, door rail, door dialog. */

.luxe-collection > .luxe-actions {
	margin-top: 28px;
}

/* — Install photo — */
.luxe-collection > .luxe-install {
	position: relative;
	margin-top: 48px;
}

.luxe-install > .luxe-install__photo {
	margin: 0;
}

.luxe-install__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: center 42%;
	box-sizing: border-box;
	border-radius: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) 0 0;
}

.luxe-install > .luxe-install__card {
	position: absolute;
	left: clamp(20px, 4%, 56px);
	bottom: clamp(20px, 4%, 48px);
	max-width: 400px;
	margin: 0;
	padding: clamp(20px, 2.5vw, 32px) clamp(22px, 2.5vw, 36px);
	background: rgb(246 244 241 / 0.93);
	backdrop-filter: blur(6px);
	border: 1px solid rgb(24 22 20 / 0.12);
	border-radius: 22px;
}

.luxe-install__card > .luxe-kicker {
	font-size: 11.5px;
	line-height: 13px;
	letter-spacing: 0.14em;
	margin: 0;
}

.luxe-install__card > .luxe-install__card-title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	margin: 12px 0 0;
}

.luxe-install__card > .luxe-install__card-hint {
	font-size: 13.5px;
	line-height: 21px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 80%, transparent);
	margin: 12px 0 0;
}

/* Hotspot notes: a simple list by default (no JS, small screens, editor). */
.luxe-install > .luxe-hotspots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px 32px;
	margin: 28px 0 0;
}

.luxe-hotspot > p,
.luxe-hotspot__panel > p {
	margin: 0;
}

.luxe-hotspot > .luxe-hotspot__title,
.luxe-hotspot__panel > .luxe-hotspot__title {
	font-size: 11.5px;
	line-height: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}

.luxe-hotspot > .luxe-hotspot__text,
.luxe-hotspot__panel > .luxe-hotspot__text {
	font-size: 13.5px;
	line-height: 21px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 84%, transparent);
	margin-top: 10px;
}

.luxe-hotspot__button {
	display: none;
}

@media (max-width: 781px) {
	.luxe-install__photo img {
		aspect-ratio: 4 / 3;
	}

	.luxe-install > .luxe-install__card {
		position: static;
		max-width: none;
		margin-top: 16px;
	}

	.luxe-install__card > .luxe-install__card-hint {
		display: none;
	}
}

/* Pinned hotspots on wide screens once hotspots.js has run. */
@media (min-width: 782px) {
	.luxe-js .luxe-install > .luxe-hotspots.is-enhanced {
		position: absolute;
		inset: 0 0 auto;
		aspect-ratio: 21 / 9;
		display: block;
		margin: 0;
		pointer-events: none;
	}

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot {
		position: absolute;
		transform: translate(-50%, -50%);
		pointer-events: auto;
		margin: 0;
	}

	.luxe-hotspot--1 { left: 76%; top: 47%; }
	.luxe-hotspot--2 { left: 80%; top: 68%; }
	.luxe-hotspot--3 { left: 73.5%; top: 85%; }
	.luxe-hotspot--4 { left: 66%; top: 55%; }

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot__button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		padding: 0;
		border-radius: 50%;
		border: 1px solid var(--wp--preset--color--accent-1);
		background: rgb(246 244 241 / 0.94);
		color: var(--wp--preset--color--accent-3);
		font: 17px/1 var(--wp--preset--font-family--lora);
		box-shadow: 0 1px 6px rgb(24 22 20 / 0.25);
		cursor: pointer;
		transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
	}

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot__button:hover {
		transform: scale(1.12);
	}

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot.is-open .luxe-hotspot__button {
		background: var(--wp--preset--color--accent-3);
		color: var(--wp--preset--color--cream);
	}

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot__panel {
		position: absolute;
		bottom: calc(100% + 14px);
		left: 50%;
		z-index: 5;
		width: 264px;
		transform: translateX(-50%);
		padding: 18px 20px;
		background: var(--wp--preset--color--base);
		border: 1px solid var(--luxe-divider);
		box-shadow: var(--luxe-shadow-md);
	}

	.luxe-js .luxe-hotspots.is-enhanced .luxe-hotspot:not(.is-open) .luxe-hotspot__panel {
		display: none;
	}
}

/* — Caption under the install photo — */
.luxe-collection > .luxe-install__caption {
	gap: 12px;
	margin-top: 0;
	padding: 12px 2px 14px;
	border-bottom: 1px solid var(--luxe-divider);
	font-size: 14px;
	letter-spacing: 0.04em;
	font-feature-settings: "tnum" 1;
	color: var(--luxe-muted);
}

.luxe-install__caption > p {
	margin: 0;
}

/* — Door rail — */
.luxe-doors-wrap {
	position: relative;
	margin-top: 56px;
}

.luxe-collection > .luxe-doors {
	margin-top: 56px;
}

.luxe-doors {
	display: flex;
	gap: clamp(24px, 3vw, 40px);
	overflow-x: auto;
	padding-bottom: 8px;
}

.luxe-js .luxe-doors {
	scrollbar-width: none;
}

.luxe-js .luxe-doors::-webkit-scrollbar {
	display: none;
}

.luxe-doors-wrap > .luxe-doors {
	margin-top: 0;
}

.luxe-doors > .luxe-door {
	flex: 0 0 auto;
	width: clamp(180px, 18vw, 230px);
	margin: 0;
}

.luxe-door > .wp-block-image {
	margin: 0;
}

/* Door specs: listed under each card without JS; moved into the dialog with it. */
.luxe-door__specs,
.luxe-door > .luxe-door__specs {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 19px;
	color: var(--luxe-muted);
}

.luxe-door__specs li + li {
	margin-top: 4px;
}

.luxe-door__specs strong {
	display: block;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
}

.luxe-js .luxe-doors .luxe-door__specs {
	display: none;
}

.luxe-door img {
	display: block;
	width: 100%;
	aspect-ratio: 10 / 26;
	object-fit: cover;
	box-sizing: border-box;
}

.luxe-door .wp-element-caption {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--luxe-divider);
	font-size: 14px;
	letter-spacing: 0.06em;
	font-feature-settings: "tnum" 1;
	text-align: left;
	color: var(--luxe-muted);
}

.luxe-door .wp-element-caption strong {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0;
	color: var(--wp--preset--color--contrast);
}

.luxe-doors > .luxe-door {
	transition: transform 700ms var(--luxe-ease);
}

.luxe-door[role="button"] {
	cursor: pointer;
}

.luxe-door[role="button"]:hover {
	transform: translateY(-6px);
}

.luxe-doors__prev,
.luxe-doors__next {
	position: absolute;
	top: 38%;
	z-index: 2;
}

.luxe-doors__prev { left: -18px; }
.luxe-doors__next { right: -18px; }

@media (max-width: 600px) {
	.luxe-doors__prev { left: -8px; }
	.luxe-doors__next { right: -8px; }
}

/* — "Every door includes": inline without JS, moved into the dialog with it — */
.luxe-collection > .luxe-door-details {
	margin-top: 40px;
}

/* Only once door-dialog.js has built the dialog (it adds .has-door-dialog); otherwise they stay visible. */
.has-door-dialog .luxe-collection > .luxe-door-details {
	display: none;
}

.luxe-door-details > .luxe-kicker {
	margin: 0 0 12px;
}

.luxe-door-details > .luxe-door-details__list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14.5px;
	line-height: 24px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent);
}

.luxe-door-details > .luxe-actions {
	margin-top: 24px;
}

/* — Door dialog (built by door-dialog.js) — */
.luxe-dialog__body {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 3vw, 36px);
}

.luxe-dialog__media {
	flex: 0 0 auto;
	width: min(190px, 38vw);
	margin: 0;
}

.luxe-dialog__media img {
	display: block;
	width: 100%;
	aspect-ratio: 10 / 26;
	object-fit: cover;
	box-sizing: border-box;
	filter: sepia(0.22) saturate(0.82) contrast(1.05);
	border: 6px solid var(--wp--preset--color--surface);
	outline: 1px solid var(--luxe-divider);
}

.luxe-dialog__info {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.luxe-dialog__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--luxe-divider);
}

.luxe-dialog__model {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.1;
	margin: 0;
}

.luxe-dialog__price {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 600;
	font-size: 24px;
	font-feature-settings: "tnum" 1;
}

.luxe-dialog__specs .luxe-door__specs {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--luxe-divider);
	font-size: 14px;
	line-height: 22px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent);
}

.luxe-dialog__specs .luxe-door__specs li + li {
	margin-top: 0;
}

.luxe-dialog .luxe-door-details .luxe-actions {
	margin-top: 24px;
}

.luxe-dialog__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.luxe-dialog__close {
	min-height: 54px;
	padding: 0 36px;
	margin-left: auto;
	border-radius: 999px;
	border: 1px solid var(--luxe-divider);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: 12.5px/1 var(--wp--preset--font-family--lora);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
}

.luxe-dialog__close:hover {
	border-color: var(--wp--preset--color--contrast);
}

/* On wide screens the prev/next arrows sit at the viewport edges, as in the design. */
@media (min-width: 900px) {
	.luxe-dialog__prev,
	.luxe-dialog__next {
		position: fixed;
		top: 50%;
		transform: translateY(-50%);
		width: 48px;
		height: 48px;
	}

	.luxe-dialog__prev { left: clamp(10px, 2.5vw, 36px); }
	.luxe-dialog__next { right: clamp(10px, 2.5vw, 36px); }
}
