/* Luxury Real Estate Core — front-end blocks (matches the Domantalya palette) */
.lrec-block-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.1; color: #0B2036; margin: 0 0 18px; }

/* Specs table */
.lrec-specs { margin: 0; font-family: "Manrope", sans-serif; }
.lrec-specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #DDE5EF; }
.lrec-specs__row:first-child { padding-top: 0; }
.lrec-specs dt { font-size: 13px; color: #55657B; margin: 0; }
.lrec-specs dd { font-size: 14px; font-weight: 700; color: #0B2036; margin: 0; text-align: right; }

/* Features */
.lrec-features-title { font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #385879; margin: 0 0 12px; }
.lrec-features-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: "Manrope", sans-serif; font-size: 14px; color: #0F2440; }
.lrec-features-list li { position: relative; padding-left: 24px; list-style: none; margin: 0; }
.lrec-features-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 6px; border-left: 2px solid #173A60; border-bottom: 2px solid #173A60; transform: rotate(-45deg); }

/* Gallery (small thumbnails, opens the lightbox) */
.lrec-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.lrec-gallery-grid__item { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #E7EEF6; }
.lrec-gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s ease; }
.lrec-gallery-grid__item:hover img { transform: scale(1.05); opacity: .9; }

/* ------------------------------------------------------------------
 * Photo slider: large photo, glass arrows, photo-stack badge, counter
 * ------------------------------------------------------------------ */
.lrec-pb { position: relative; width: 100%; font-family: "Manrope", sans-serif; }
.lrec-pb__stage {
	position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(74vh, 660px); min-height: 280px;
	overflow: hidden; background: #10294A; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.lrec-pb__stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(6, 17, 30, .38) 0%, rgba(6, 17, 30, 0) 24%, rgba(6, 17, 30, 0) 72%, rgba(6, 17, 30, .42) 100%); }
.lrec-pb__slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .6s cubic-bezier(.4, 0, .2, 1); }
.lrec-pb__slide.is-active { z-index: 1; opacity: 1; }
.lrec-pb .lrec-pb__slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; -webkit-user-drag: none; transform: scale(1.035); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.lrec-pb .lrec-pb__slide.is-active img { transform: scale(1); }

/* Whole photo = "open full screen" */
.lrec-pb button.lrec-pb__zoom,
.lrec-pb button.lrec-pb__zoom:hover,
.lrec-pb button.lrec-pb__zoom:focus { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: zoom-in; }
.lrec-pb button.lrec-pb__zoom:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* Glass controls (same language as the glass header) */
.lrec-pb button.lrec-pb__nav,
.lrec-pb button.lrec-pb__stack,
.lrec-pb .lrec-pb__count {
	color: #fff; background: rgba(11, 32, 54, .30); border: 1px solid rgba(255, 255, 255, .36);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 10px 30px rgba(0, 0, 0, .18);
	-webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
}
.lrec-pb button.lrec-pb__nav {
	position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; min-height: 0; margin: -27px 0 0; padding: 0;
	display: grid; place-items: center; border-radius: 50%; cursor: pointer; line-height: 1;
	transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.lrec-pb button.lrec-pb__nav--prev { left: 22px; }
.lrec-pb button.lrec-pb__nav--next { right: 22px; }
.lrec-pb button.lrec-pb__nav:hover,
.lrec-pb button.lrec-pb__nav:focus { color: #fff; background: rgba(255, 255, 255, .20); border-color: rgba(255, 255, 255, .6); }
.lrec-pb button.lrec-pb__nav--prev:hover { transform: translateX(-2px); }
.lrec-pb button.lrec-pb__nav--next:hover { transform: translateX(2px); }
.lrec-pb button.lrec-pb__nav:active { transform: scale(.94); }
.lrec-pb button.lrec-pb__nav svg { display: block; width: 24px; height: 24px; }

.lrec-pb .lrec-pb__count {
	position: absolute; left: 22px; bottom: 20px; z-index: 3; padding: 8px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none;
}

/* Photo stack (top-right) → opens the gallery */
.lrec-pb button.lrec-pb__stack {
	position: absolute; top: 20px; right: 22px; z-index: 3; min-height: 0; margin: 0; padding: 9px 18px 9px 12px;
	display: flex; align-items: center; gap: 14px; border-radius: 18px; cursor: pointer; text-align: left; line-height: 1;
	transition: background-color .25s ease, border-color .25s ease;
}
.lrec-pb button.lrec-pb__stack:hover,
.lrec-pb button.lrec-pb__stack:focus { color: #fff; background: rgba(11, 32, 54, .52); border-color: rgba(255, 255, 255, .6); }
.lrec-pb__cards { position: relative; flex: 0 0 auto; width: 74px; height: 54px; }
.lrec-pb .lrec-pb__card {
	position: absolute; left: 4px; top: 4px; width: 64px; height: 46px; max-width: none; object-fit: cover; display: block; margin: 0;
	border: 2px solid #fff; border-radius: 6px; background: #173A60; box-shadow: 0 6px 16px rgba(0, 0, 0, .32);
	transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2, .75, .2, 1);
}
/* back → front */
.lrec-pb__stack--3 .lrec-pb__card:nth-child(1) { transform: translate(8px, -3px) rotate(10deg); }
.lrec-pb__stack--3 .lrec-pb__card:nth-child(2) { transform: translate(3px, -1px) rotate(4deg); }
.lrec-pb__stack--3 .lrec-pb__card:nth-child(3) { transform: translate(-2px, 2px) rotate(-3deg); }
.lrec-pb__stack--2 .lrec-pb__card:nth-child(1) { transform: translate(6px, -2px) rotate(8deg); }
.lrec-pb__stack--2 .lrec-pb__card:nth-child(2) { transform: translate(-2px, 2px) rotate(-3deg); }
.lrec-pb button.lrec-pb__stack:hover .lrec-pb__card:nth-child(1) { transform: translate(13px, -5px) rotate(15deg); }
.lrec-pb__stack--3:hover .lrec-pb__card:nth-child(2) { transform: translate(5px, -2px) rotate(6deg); }
.lrec-pb button.lrec-pb__stack:hover .lrec-pb__card:last-child { transform: translate(-5px, 3px) rotate(-6deg); }
.lrec-pb__stack-text { display: flex; flex-direction: column; gap: 4px; }
.lrec-pb__stack-text b { font-size: 20px; font-weight: 750; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.lrec-pb__stack-text span { font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; opacity: .86; }

.lrec-pb button.lrec-pb__nav:focus-visible,
.lrec-pb button.lrec-pb__stack:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ------------------------------------------------------------------
 * Full-screen gallery (lightbox)
 * ------------------------------------------------------------------ */
.lrec-lb {
	position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column;
	background: #06101C; color: #fff; font-family: "Manrope", sans-serif; opacity: 0; transition: opacity .3s ease;
}
.lrec-lb[hidden] { display: none; }
.lrec-lb.is-open { opacity: 1; }
.lrec-lb__bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 8px 28px; }
.lrec-lb__count { font-size: 12px; font-weight: 700; letter-spacing: .16em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .82); }
.lrec-lb__stage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; }
.lrec-lb .lrec-lb__img {
	position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: calc(100% - 192px); max-height: 100%;
	object-fit: contain; display: block; border: 0; border-radius: 0; -webkit-user-drag: none; opacity: 1; transition: opacity .3s ease;
}
.lrec-lb .lrec-lb__img.is-loading { opacity: 0; }
.lrec-lb--single .lrec-lb__img { max-width: calc(100% - 48px); }
.lrec-lb button.lrec-lb__btn,
.lrec-lb button.lrec-lb__btn:hover,
.lrec-lb button.lrec-lb__btn:focus {
	width: 52px; height: 52px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: center; line-height: 1;
	color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .30); border-radius: 50%; box-shadow: none; cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease;
}
.lrec-lb button.lrec-lb__btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
.lrec-lb button.lrec-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lrec-lb button.lrec-lb__btn svg { display: block; }
.lrec-lb button.lrec-lb__nav { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; }
.lrec-lb button.lrec-lb__nav--prev { left: 24px; }
.lrec-lb button.lrec-lb__nav--next { right: 24px; }
.lrec-lb__thumbs { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 20px; justify-content: safe center; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.lrec-lb button.lrec-lb__thumb,
.lrec-lb button.lrec-lb__thumb:hover,
.lrec-lb button.lrec-lb__thumb:focus {
	flex: 0 0 auto; width: 88px; height: 62px; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 6px;
	background: #10294A; box-shadow: none; cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 2px;
	transition: opacity .25s ease, outline-color .25s ease;
}
.lrec-lb button.lrec-lb__thumb:hover { opacity: .8; }
.lrec-lb button.lrec-lb__thumb.is-active { opacity: 1; outline-color: #fff; }
.lrec-lb button.lrec-lb__thumb:focus-visible { opacity: 1; outline-color: #7FB2EA; }
.lrec-lb .lrec-lb__thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; -webkit-user-drag: none; }

/* ------------------------------------------------------------------
 * Sticky inquiry card (single property, desktop two-column layout only)
 * ------------------------------------------------------------------ */
@media (min-width: 1025px) {
	/* Solace's .wrapper has overflow:hidden, which would make it the sticky scroll box; clip keeps the crop without that. */
	html body.single-property > .wrapper { overflow: visible; overflow: clip; }
	.single-property .lrec-aside { position: sticky; top: var(--lrec-aside-top, 24px); align-self: flex-start; }
}

/* Video */
.lrec-video { position: relative; aspect-ratio: 16 / 9; background: #0B2036; }
.lrec-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1024px) {
	.lrec-pb__stage { aspect-ratio: 3 / 2; }
}
@media (max-width: 767px) {
	.lrec-block-title { font-size: 28px; }
	.lrec-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
	.lrec-pb__stage { aspect-ratio: 4 / 3; min-height: 0; }
	.lrec-pb button.lrec-pb__nav { width: 44px; height: 44px; margin-top: -22px; }
	.lrec-pb button.lrec-pb__nav--prev { left: 10px; }
	.lrec-pb button.lrec-pb__nav--next { right: 10px; }
	.lrec-pb button.lrec-pb__nav svg { width: 20px; height: 20px; }
	.lrec-pb .lrec-pb__count { left: 12px; bottom: 12px; padding: 7px 11px; font-size: 11px; }
	.lrec-pb button.lrec-pb__stack { top: 12px; right: 12px; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 14px; }
	.lrec-pb__cards { width: 56px; height: 42px; }
	.lrec-pb .lrec-pb__card { width: 48px; height: 34px; border-width: 1.5px; border-radius: 5px; }
	.lrec-pb__stack-text b { font-size: 17px; }
	.lrec-pb__stack-text span { font-size: 9px; letter-spacing: .12em; }
	.lrec-lb__bar { padding: 10px 12px 6px 18px; }
	.lrec-lb button.lrec-lb__btn, .lrec-lb button.lrec-lb__btn:hover, .lrec-lb button.lrec-lb__btn:focus { width: 44px; height: 44px; }
	.lrec-lb .lrec-lb__img { max-width: 100%; }
	.lrec-lb button.lrec-lb__nav { top: auto; bottom: 12px; margin-top: 0; background: rgba(6, 15, 27, .55); }
	.lrec-lb button.lrec-lb__nav--prev { left: 12px; }
	.lrec-lb button.lrec-lb__nav--next { right: 12px; }
	.lrec-lb__thumbs { gap: 6px; padding: 10px 12px 16px; justify-content: flex-start; scrollbar-width: none; }
	.lrec-lb__thumbs::-webkit-scrollbar { display: none; }
	.lrec-lb button.lrec-lb__thumb, .lrec-lb button.lrec-lb__thumb:hover, .lrec-lb button.lrec-lb__thumb:focus { width: 64px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.lrec-pb__slide, .lrec-pb .lrec-pb__slide img, .lrec-pb .lrec-pb__card, .lrec-lb, .lrec-lb .lrec-lb__img { transition: none; }
	.lrec-pb .lrec-pb__slide img { transform: none; }
}
