/*
 Theme Name:   Endora Child
 Theme URI:    https://themes.hibootstrap.com/endora/
 Description:  Endora Child Theme
 Author:       HiBootstrap
 Author URI:   https://hibootstrap.com/
 Template:     endora
 Version:      1.6
 Text Domain:  endora-child
*/

/* Custom styles for Banner Two - Left text section */
.banner-text-content {
	padding: 40px 0;
	margin-top: -160px;
	margin-left: -220px;
}

.banner-text-content h2 {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text-content p {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
	.banner-text-content {
		text-align: center;
		margin-bottom: 30px;
		margin-top: -180px;
		margin-left: -20px;
	}
	
	.banner-text-content h2 {
		font-size: 2rem !important;
	}
	
	.banner-text-content p {
		font-size: 1rem !important;
	}
}

/*
Custom styles to make single listing layout resemble the reference (gallery left, details/actions right,
larger cover image, sticky action block). Tweak colors/spacing as needed.
*/

/* Image slider: large cover images */
.property-details-image-slider {
	position: relative;
}

.property-details-image-slider .swiper {
	/* control total slider height; images constrained inside */
	height: 450px; /* optimized height for better proportions with text box */
	max-height: 600px;
}

.property-details-image-slider .swiper-wrapper,
.property-details-image-slider .swiper-slide {
	height: 100%;
}

.property-details-image-slider .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa; /* subtle background for empty space */
}

.property-details-image-slider .swiper-slide img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	/* actual fit is driven by classes set from JS: .img-contain or .img-cover */
	object-fit: contain; /* default (fallback) */
	display: block;
}

/* explicit fit modes toggled by JS for best readable presentation */
.property-details-image-slider .swiper-slide img.img-contain {
	object-fit: contain;
	max-width: 100%;
	max-height: 100%;
}
.property-details-image-slider .swiper-slide img.img-cover {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* Zoom state when image opened in lightbox (no visual change here, but reserve class) */
.property-details-image-slider .swiper-slide img.zoomed {
	cursor: zoom-out;
}

/* Navigation buttons (prev/next) size & style */
.property-details-button-prev,
.property-details-button-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	/* Make background more transparent so underlying image remains visible */
	background: rgba(16,185,129,0.08);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	/* reduce shadow so it doesn't obscure the image */
	box-shadow: 0 4px 10px rgba(0,0,0,0.06);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 30;
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	border: 1px solid rgba(255,255,255,0.08);
}

.property-details-button-prev { left: 10px; }
.property-details-button-next { right: 10px; }

.property-details-button-prev i,
.property-details-button-next i {
	font-size: 18px;
	line-height: 1;
	color: #fff;
}

/* Hover/focus state: slightly stronger background so control is visible on hover */
.property-details-button-prev:hover,
.property-details-button-next:hover,
.property-details-button-prev:focus,
.property-details-button-next:focus {
	background: rgba(16,185,129,0.18);
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Make sure buttons don't cover important parts on small screens */
@media (max-width: 991px) {
	.property-details-image-slider .swiper { height: 360px; }
	.property-details-button-prev,
	.property-details-button-next { width: 40px; height: 40px; }
	.property-details-button-prev i,
	.property-details-button-next i { font-size: 16px; }
}

@media (max-width: 575px) {
	.property-details-image-slider .swiper { height: 300px; }
}

/* Two-column ratio: ~60/40 on large screens */
@media (min-width: 992px) {
	.property-details-desc .row .col-lg-7 {
		flex: 0 0 60%;
		max-width: 60%;
	}
	.property-details-desc .row .col-lg-5 {
		flex: 0 0 40%;
		max-width: 40%;
	}

	/* Align columns to the top instead of center */
	.property-details-desc .row {
		align-items: flex-start !important;
	}

	/* Make right column sticky to keep actions visible */
	.property-details-desc .right-content {
		position: -webkit-sticky;
		position: sticky;
		top: 110px;
	}
}

/* Price and action styling */
.right-content .price {
	background: #ffffff;
	border: 1px solid rgba(0,0,0,0.06);
	padding: 18px 20px;
	border-radius: 8px;
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 14px;
	text-align: center;
}

.link-btn {
	background: #0d6efd;
	color: #ffffff !important;
	padding: 10px 16px;
	border-radius: 6px;
	display: inline-block;
	text-decoration: none;
}

/* Info list (beds/baths/area) inline */
.info-list {
	/* display: flex; */
	gap: 18px;
	padding: 0;
	list-style: none;
	margin-top: 12px;
}
.info-list li {
	/* display: flex; */
	gap: 8px;
	align-items: center;
	color: #6b7280;
}

/* Share/save area alignment */
.tag-sheare .share-save {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Constrain content width for better reading */
.listing-main-details-content,
.listing-details-content .container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Better spacing for the description text next to slider */
.left-content .listing-main-details-content {
	margin-top: 20px;
	padding: 20px;
	background: transparent;
	border-radius: 8px;
	line-height: 1.6;
	font-size: 15px;
	color: #4b5563;
}

.left-content .listing-main-details-content p {
	margin-bottom: 12px;
}

.left-content .listing-main-details-content p:last-child {
	margin-bottom: 0;
}

/* Smaller screens: stack columns and reduce image height */
@media (max-width: 991px) {
	.property-details-image-slider .swiper { 
		height: 400px; 
	}
	.property-details-image-slider .swiper-slide img {
		height: auto;
		max-height: 400px;
		object-fit: contain;
	}
	.property-details-desc .row .col-lg-7,
	.property-details-desc .row .col-lg-5 {
		flex: 0 0 100%;
		max-width: 100%;
	}
	.property-details-desc .right-content {
		position: relative;
		top: unset;
		margin-top: 20px;
	}
	.left-content .listing-main-details-content {
		margin-top: 15px;
		padding: 15px;
	}
}

@media (max-width: 575px) {
	.property-details-image-slider .swiper { 
		height: 350px; 
	}
	.left-content .listing-main-details-content {
		font-size: 14px;
		padding: 12px;
	}
}

/* Small visual polish */
.property-details-content .title {
	text-align: center;
}

.property-details-content .title h2 {
	font-size: 28px;
	margin-bottom: 8px;
	line-height: 1.3;
}

.property-details-content .title .featured-btn{
	background:#111827;color:#fff;padding:6px 10px;border-radius:20px;font-size:13px;margin-left:10px;
}

/* Better spacing for left content area */
.left-content {
	padding-right: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* Move title down to be right above description */
.left-content .title {
	margin-bottom: 12px;
	order: 3; /* Position title after address and info-list */
}

.left-content .address {
	order: 1;
}

.left-content .info-list {
	order: 2;
}

.left-content .listing-main-details-content {
	order: 4; /* Description comes after title */
}

.left-content .address {
	display: inline-block;
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 15px;
}

.left-content .info-list {
	margin-bottom: 20px;
}

/* Top action buttons (Back / Share / Bookmark / Report) - keep in one row with equal gaps */
.directorist-single-listing-top .directorist-single-listing-quick-action {
	display: flex !important;
	align-items: center;
	justify-content: center; /* center under slider */
	gap: 14px; /* equal spacing between buttons */
	flex-wrap: nowrap; /* prevent wrapping */
}

.directorist-single-listing-top .directorist-single-listing-quick-action .directorist-single-listing-action {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	min-width: 110px; /* keep buttons similar width */
	box-sizing: border-box;
}

/* Ensure the standalone 'Back' button matches the size/spacing of other quick actions */
.directorist-single-listing-top > .directorist-single-listing-action {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	min-width: 110px;
	box-sizing: border-box;
	margin-right: 12px; /* small gap between back and other actions */
}

/* Allow horizontal scroll on very narrow screens instead of wrapping */
@media (max-width: 480px) {
	.directorist-single-listing-top .directorist-single-listing-quick-action {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	.directorist-single-listing-top .directorist-single-listing-quick-action .directorist-single-listing-action {
		min-width: 96px;
	}
}

/* Hide the standalone "Back" button so only the 3 quick actions remain */
.directorist-return-back {
	display: none !important;
}

/* Houses card - make entire card clickable */
.houses-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease;
}

.houses-card-link:hover {
	transform: translateY(-5px);
}

.houses-card-link .houses-card .content h3 {
	color: #000000 !important;
	transition: color 0.3s ease;
}

.houses-card-link:hover .houses-card .content h3 {
	color: #5a8546 !important;
	opacity: 0.9;
}

.houses-card {
	cursor: pointer;
}

/* Remove houses-card gradient overlay */
.houses-card::before {
	display: none !important;
}

/* List view - table layout */
.list-view-table {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 15px;
	padding: 20px;
	transition: box-shadow 0.3s ease;
}

.list-view-table:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-table-row {
	display: grid;
	grid-template-columns: 2.5fr 1fr 2fr 1.2fr 1fr;
	gap: 20px;
	align-items: center;
}

.list-table-cell {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.list-table-title h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 5px 0;
}

.list-table-title h3 a {
	color: #1f2937;
	text-decoration: none;
	transition: color 0.3s ease;
}

.list-table-title h3 a:hover {
	color: #2563eb;
}

.list-table-title .location {
	color: #6b7280;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.list-table-title .location i {
	color: #2563eb;
}

.list-table-status {
	justify-content: center;
	align-items: center;
}

.list-table-details {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
}

.list-table-details .detail-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 6px;
	font-size: 14px;
	color: #374151;
	white-space: nowrap;
}

.list-table-details .detail-item i {
	color: #2563eb;
	font-size: 16px;
}

.list-table-price {
	text-align: right;
	font-size: 20px;
	font-weight: 700;
	color: #2563eb;
}

.list-table-category {
	text-align: center;
}

.list-table-category .link-btn {
	display: inline-block;
	padding: 6px 16px;
	background: #2563eb;
	color: #ffffff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.3s ease;
}

.list-table-category .link-btn:hover {
	background: #1d4ed8;
}

/* Responsive - mobile */
@media (max-width: 991px) {
	.list-table-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.list-table-cell {
		text-align: left !important;
	}
	
	.list-table-price {
		text-align: left;
		font-size: 18px;
	}
	
	.list-table-category {
		text-align: left;
	}
	
	.list-table-status {
		align-items: flex-start;
	}
}
