/* ==========================================================================
   Bentlaire - Single property page extras.
   Feature icons row (Beds / Baths / Garage) shown under the main listing
   photo, reusing the exact icon set from the modernized search bar for
   visual consistency (navy #294356 outline icons).
   ========================================================================== */

.bentlaire-property-features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	padding: 18px 0;
	margin: 0 0 10px;
	border-bottom: 1px solid #E1E5E9;
	font-family: 'Work Sans', sans-serif;
}

.bentlaire-property-feature {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.98rem;
	font-weight: 500;
	color: #294356;
}

.bentlaire-property-feature .epl-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	display: inline-block;
}

.bentlaire-property-feature .epl-icon-bed {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23294356' stroke-width='2' stroke-miterlimit='10'%3E%3Cpath d='M28,16V9c0-1.1-0.9-2-2-2H6C4.9,7,4,7.9,4,9v7'/%3E%3Cpath d='M8,16v-2c0-1.1,0.9-2,2-2h4c1.1,0,2,0.9,2,2v2'/%3E%3Cpath d='M16,16v-2c0-1.1,0.9-2,2-2h4c1.1,0,2,0.9,2,2v2'/%3E%3Cpath d='M3,18v8h3v-2h20v2h3v-8c0-1.1-0.9-2-2-2H5C3.9,16,3,16.9,3,18z'/%3E%3C/svg%3E");
}

.bentlaire-property-feature .epl-icon-bath {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294356' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M4 12V7a2 2 0 0 1 2-2c.9 0 1.7.5 2 1.3'/%3E%3Cpath d='M8 19v2'/%3E%3Cpath d='M16 19v2'/%3E%3Cpath d='M4 12H2'/%3E%3C/svg%3E");
}

.bentlaire-property-feature .epl-icon-car {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294356' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11l1.5-4.5A2 2 0 0 1 8.4 5h7.2a2 2 0 0 1 1.9 1.5L19 11'/%3E%3Crect x='3' y='11' width='18' height='6' rx='2'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
	.bentlaire-property-features {
		gap: 18px;
		padding: 14px 0;
	}
}

/* Featured image gallery (arrows + dots), no gallery plugin - just the
   images already attached to the listing, swapped client-side. */
.bentlaire-gallery {
	position: relative;
}

.bentlaire-gallery-slides {
	position: relative;
	width: 100%;
}

.bentlaire-gallery-slide {
	display: none;
}

.bentlaire-gallery-slide.is-active {
	display: block;
}

.bentlaire-gallery-slide img {
	width: 100%;
	height: auto;
	display: block;
}

.bentlaire-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(17, 23, 29, 0.45);
	color: #FFFFFF;
	font-size: 1.4rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
	z-index: 2;
	padding: 0;
}

.bentlaire-gallery-arrow:hover {
	background: #294356;
}

.bentlaire-gallery-arrow:focus-visible {
	outline: 3px solid #FFE91E;
	outline-offset: 2px;
}

.bentlaire-gallery-prev {
	left: 16px;
}

.bentlaire-gallery-next {
	right: 16px;
}

.bentlaire-gallery-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.bentlaire-gallery-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.55);
	padding: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.bentlaire-gallery-dot.is-active {
	background: #FFE91E;
	transform: scale(1.2);
}

@media (max-width: 640px) {
	.bentlaire-gallery-arrow {
		width: 36px;
		height: 36px;
		font-size: 1.1rem;
	}
}

/* ==========================================================================
   Widen the property gallery within its own column.
   The gallery lives inside #left-area, which sits beside #sidebar (the
   author widget) in a classic Divi two-column layout. An earlier version
   of this rule broke the gallery out to full viewport width (100vw +
   negative margins) to match the site's "section width" elsewhere, but
   that technique assumes a centered single-column layout - here it
   overshot to the right and covered the sidebar's author info. Instead,
   just fill #left-area's own full content width (reclaiming its own
   padding-right, the gutter normally reserved before the sidebar) so the
   gallery is as wide as possible without ever overlapping #sidebar.
   ========================================================================== */
.bentlaire-gallery-fullbleed {
	width: auto;
	position: static;
	margin-left: 0;
	margin-right: -5.5%;
}

.bentlaire-gallery-fullbleed-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

.single-property .container {
	width: 100%;
	max-width: 1400px; /* adjust to whatever width you want */
}
/* ==========================================================================
   Property title shown as a normal heading directly above the main image
   on single property pages (bentlaire_property_image_title_above() in
   functions.php).
   ========================================================================== */
.bentlaire-image-title {
	font-family: 'Aboreto', serif;
	font-weight: 400;
	color: #294356;
	margin: 0 0 16px;
	font-size: clamp(1.3rem, 2.6vw, 2rem);
	line-height: 1.2;
}

@media (max-width: 640px) {
	.bentlaire-image-title {
		margin: 0 0 12px;
	}
}

/* ==========================================================================
   View all photos button + full-screen lightbox.
   Markup output by bentlaire_property_gallery_lightbox_button() in
   functions.php; interactivity in property-gallery.js.
   ========================================================================== */
.bentlaire-view-photos-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 10px 20px;
	background: #294356;
	color: #FFFFFF;
	border: none;
	border-radius: 999px;
	font-family: 'Work Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bentlaire-view-photos-btn:hover {
	background: #1c3040;
}

.bentlaire-view-photos-btn svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.bentlaire-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 14, 18, 0.94);
	display: none;
	flex-direction: column;
	z-index: 9999;
}

.bentlaire-lightbox-overlay.is-open {
	display: flex;
}

.bentlaire-lightbox-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	color: #FFFFFF;
	font-family: 'Work Sans', sans-serif;
}

.bentlaire-lightbox-counter {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
}

.bentlaire-lightbox-close {
	background: none;
	border: none;
	color: #FFFFFF;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.bentlaire-lightbox-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 0;
	padding: 0 70px;
}

.bentlaire-lb-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.bentlaire-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #FFFFFF;
	font-size: 1.6rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bentlaire-lightbox-arrow:hover {
	background: rgba(255, 255, 255, 0.28);
}

.bentlaire-lightbox-prev {
	left: 16px;
}

.bentlaire-lightbox-next {
	right: 16px;
}

.bentlaire-lightbox-thumbs {
	display: flex;
	gap: 10px;
	padding: 18px 24px 24px;
	overflow-x: auto;
	justify-content: center;
}

.bentlaire-lightbox-thumbs img {
	width: 84px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.55;
	border: 2px solid transparent;
	transition: opacity 0.15s ease, border-color 0.15s ease;
	flex: 0 0 auto;
}

.bentlaire-lightbox-thumbs img.is-active {
	opacity: 1;
	border-color: #FFE91E;
}

@media (max-width: 640px) {
	.bentlaire-lightbox-main {
		padding: 0 50px;
	}
	.bentlaire-lightbox-arrow {
		width: 38px;
		height: 38px;
		font-size: 1.3rem;
	}
	.bentlaire-lightbox-thumbs img {
		width: 60px;
		height: 44px;
	}
}
