/**
 * v2.2.9 — Property gallery controls (25 November 2026).
 *
 * The v5 property hero opens Fancybox 5.0.36 (not the Houzez Bootstrap
 * #property-lightbox) when a photo is clicked. Fancybox's default .f-button
 * controls are 40px squares with a light fill and no gold styling, so they
 * read as plain coloured blocks. This file restyles:
 *   1. Fancybox 5 lightbox prev/next arrows and the top-right toolbar
 *      (close, fullscreen, and any other .f-button).
 *   2. The Slick 1.8.1 arrows on the hero strip itself
 *      (.listing-slider-variable-width / .top-gallery-section).
 *   3. The Houzez #property-lightbox Slick arrows, .btn-expand and .btn-close,
 *      in case that modal is still used on another layout.
 *
 * Brand: dark translucent background, gold #C9A84C icon and border, gold hover,
 * circular 48px controls, icons drawn in CSS so they do not depend on the
 * Slick webfont. Loaded after houzez-child-style / rc-v227 so it wins.
 */

/* --------------------------------------------------------------------------
 * 1. Fancybox 5 (click a hero photo)
 * ----------------------------------------------------------------------- */
.fancybox__container {
	--f-button-width: 48px;
	--f-button-height: 48px;
	--f-button-border: 1px solid #c9a84c;
	--f-button-border-radius: 50%;
	--f-button-color: #c9a84c;
	--f-button-hover-color: #e0c56a;
	--f-button-bg: rgba(11, 11, 11, 0.82);
	--f-button-hover-bg: rgba(11, 11, 11, 0.95);
	--f-button-active-bg: rgba(20, 16, 8, 0.95);
	--f-button-svg-width: 22px;
	--f-button-svg-height: 22px;
	--f-button-svg-stroke-width: 1.75;
	--f-button-svg-fill: none;
	--f-button-svg-filter: none;
	--fancybox-color: #c9a84c;
	--fancybox-hover-color: #e0c56a;
}

.fancybox__toolbar {
	--f-button-width: 48px;
	--f-button-height: 48px;
	--f-button-border-radius: 50%;
	--f-button-color: #c9a84c;
	--f-button-hover-color: #e0c56a;
	--f-button-bg: rgba(11, 11, 11, 0.82);
	--f-button-hover-bg: rgba(11, 11, 11, 0.95);
	--f-button-active-bg: rgba(20, 16, 8, 0.95);
	--f-button-svg-filter: none;
}

.fancybox__container .f-button,
.fancybox__nav .f-button,
.fancybox__toolbar .f-button,
.fancybox__container .f-button.is-close-btn,
.fancybox__content > .f-button.is-close-btn,
.is-compact .fancybox__content > .f-button.is-close-btn {
	box-sizing: border-box !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px;
	min-height: 48px;
	padding: 0 !important;
	margin: 0;
	border-radius: 50% !important;
	border: 1px solid #c9a84c !important;
	background: rgba(11, 11, 11, 0.82) !important;
	color: #c9a84c !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	opacity: 1 !important;
}

.fancybox__container .f-button:hover:not([disabled]),
.fancybox__nav .f-button:hover:not([disabled]),
.fancybox__toolbar .f-button:hover:not([disabled]),
.fancybox__container .f-button.is-close-btn:hover,
.fancybox__content > .f-button.is-close-btn:hover {
	background: rgba(11, 11, 11, 0.95) !important;
	border-color: #e0c56a !important;
	color: #e0c56a !important;
}

.fancybox__container .f-button:focus-visible {
	outline: 2px solid #c9a84c;
	outline-offset: 3px;
}

.fancybox__container .f-button svg {
	stroke: currentColor !important;
	fill: none !important;
	filter: none !important;
}

/* Space the side arrows slightly in from the viewport edge. */
.fancybox__container .fancybox__nav .f-button.is-prev {
	left: 16px;
}
.fancybox__container .fancybox__nav .f-button.is-next {
	right: 16px;
}
.fancybox__container .fancybox__toolbar .f-button + .f-button {
	margin-left: 8px;
}

/* --------------------------------------------------------------------------
 * 2. Hero Slick arrows + Houzez property-lightbox Slick arrows
 * ----------------------------------------------------------------------- */
body.single-property .top-gallery-section .slick-arrow,
body.single-property .listing-slider-variable-width .slick-arrow,
body.single-property .lightbox-slider .slick-arrow,
body.single-property .property-lightbox .slick-arrow {
	box-sizing: border-box !important;
	width: 48px !important;
	min-width: 48px !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	border: 1px solid #c9a84c !important;
	background: rgba(11, 11, 11, 0.82) !important;
	color: #c9a84c !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: 0 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	z-index: 5;
	opacity: 1 !important;
}

body.single-property .top-gallery-section .slick-arrow:hover,
body.single-property .top-gallery-section .slick-arrow:focus-visible,
body.single-property .listing-slider-variable-width .slick-arrow:hover,
body.single-property .listing-slider-variable-width .slick-arrow:focus-visible,
body.single-property .lightbox-slider .slick-arrow:hover,
body.single-property .lightbox-slider .slick-arrow:focus-visible,
body.single-property .property-lightbox .slick-arrow:hover,
body.single-property .property-lightbox .slick-arrow:focus-visible {
	background: rgba(11, 11, 11, 0.95) !important;
	border-color: #e0c56a !important;
	color: #e0c56a !important;
}

/* CSS chevrons — do not rely on the Slick webfont. */
body.single-property .top-gallery-section .slick-arrow::before,
body.single-property .listing-slider-variable-width .slick-arrow::before,
body.single-property .lightbox-slider .slick-arrow::before,
body.single-property .property-lightbox .slick-arrow::before {
	display: block !important;
	position: static !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	font-family: inherit !important;
	content: "" !important;
	background: none !important;
	opacity: 1 !important;
	color: transparent !important;
	border-style: solid !important;
	border-color: #c9a84c !important;
	box-sizing: border-box !important;
}

body.single-property .top-gallery-section .slick-prev::before,
body.single-property .listing-slider-variable-width .slick-prev::before,
body.single-property .lightbox-slider .slick-prev::before,
body.single-property .property-lightbox .slick-prev::before {
	border-width: 0 0 2px 2px !important;
	transform: rotate(45deg);
	margin-left: 3px !important;
}

body.single-property .top-gallery-section .slick-next::before,
body.single-property .listing-slider-variable-width .slick-next::before,
body.single-property .lightbox-slider .slick-next::before,
body.single-property .property-lightbox .slick-next::before {
	border-width: 2px 2px 0 0 !important;
	transform: rotate(45deg);
	margin-right: 3px !important;
}

body.single-property .top-gallery-section .slick-arrow:hover::before,
body.single-property .listing-slider-variable-width .slick-arrow:hover::before,
body.single-property .lightbox-slider .slick-arrow:hover::before,
body.single-property .property-lightbox .slick-arrow:hover::before {
	border-color: #e0c56a !important;
}

/* --------------------------------------------------------------------------
 * 3. Houzez property-lightbox close + fullscreen (top-right)
 * ----------------------------------------------------------------------- */
body.single-property .property-lightbox .modal-header .btn-close,
body.single-property .property-lightbox .btn-close.btn-close-white {
	box-sizing: border-box !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 1px solid #c9a84c !important;
	background-color: rgba(11, 11, 11, 0.82) !important;
	background-image: none !important;
	opacity: 1 !important;
	filter: none !important;
	box-shadow: none !important;
	position: relative;
}

body.single-property .property-lightbox .modal-header .btn-close::before,
body.single-property .property-lightbox .modal-header .btn-close::after {
	content: "" !important;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 2px;
	background: #c9a84c;
	border-radius: 1px;
}

body.single-property .property-lightbox .modal-header .btn-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}
body.single-property .property-lightbox .modal-header .btn-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

body.single-property .property-lightbox .modal-header .btn-close:hover,
body.single-property .property-lightbox .btn-close.btn-close-white:hover {
	background-color: rgba(11, 11, 11, 0.95) !important;
	border-color: #e0c56a !important;
}
body.single-property .property-lightbox .modal-header .btn-close:hover::before,
body.single-property .property-lightbox .modal-header .btn-close:hover::after {
	background: #e0c56a;
}

body.single-property .lightbox-gallery-wrap .btn-expand {
	box-sizing: border-box !important;
	width: 44px !important;
	height: 44px !important;
	line-height: 44px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	border: 1px solid #c9a84c !important;
	background: rgba(11, 11, 11, 0.82) !important;
	color: #c9a84c !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	z-index: 6;
}

body.single-property .lightbox-gallery-wrap .btn-expand i {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	color: inherit !important;
}

body.single-property .lightbox-gallery-wrap .btn-expand:hover,
body.single-property .lightbox-gallery-wrap .btn-expand:focus-visible {
	background: rgba(11, 11, 11, 0.95) !important;
	border-color: #e0c56a !important;
	color: #e0c56a !important;
}
