/* WP Property Listings Frontend Styles */

/* --- Variables --- */
:root {
	--spre-primary: #bb8c58;
	--spre-bg: #fff;
	--spre-bg-alt: #f9f9f9;
	--spre-border: #eaeaea;
	--spre-text: #1c2430;
	--spre-text-light: #282828;
	--spre-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
	--spre-radius: 0;
}

/* --- Shortcode Grid --- */
.spre-listings-container {
	margin: 0 auto;
}

.spre-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.spre-filter-btn {
	background: #fff;
	padding: 10px 20px;
	border: 1px solid #e2e2e2;
	border-radius: 0;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
	font-family: 'Space Grotesk', Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
}

.spre-filter-btn:hover,
.spre-filter-btn.active {
	background: var(--spre-primary);
	color: #fff;
	border-color: var(--spre-primary);
}

.spre-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
}

.spre-grid-item {
	display: flex;
	background: var(--spre-bg);
	border: 1px solid var(--spre-border);
	border-radius: var(--spre-radius);
	overflow: hidden;
	box-shadow: var(--spre-shadow);
	transition: transform 0.3s ease;
}

.spre-grid-item:hover {
	transform: translateY(-3px);
}

.spre-item-images {
	width: 45%;
	position: relative;
	background: #eee;
}

.spre-slider {
	height: 100%;
	width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
	color: #1c2430 !important;
	width: 30px !important;
}

.swiper-pagination-bullet-active {
	background: var(--spre-primary) !important;
}

.spre-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spre-item-details {
	width: 55%;
	padding: 40px 20px 20px 30px;
	display: flex;
	flex-direction: column;
}

.spre-item-title {
	margin: 0 0 10px;
	font-size: 1.3rem;
	line-height: 1;
	font-weight: 600;
}

.spre-item-title a {
	color: var(--spre-text);
	text-decoration: none;
}

.spre-item-price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--spre-primary);
	margin-bottom: 15px;
}

.spre-item-address {
	font-size: 0.9rem;
	color: var(--spre-text-light);
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 5px;
}

.spre-item-specs {
	display: flex;
	gap: 15px;
	font-size: 0.9rem;
	margin-bottom: 15px;
	color: var(--spre-text-light);
}

.spre-item-specs span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.spre-item-excerpt {
	font-size: 0.9rem;
	color: var(--spre-text);
	margin-bottom: 20px;
	min-height: 5rem;
	line-height: 1.5;
	flex-grow: 1;
}

.spre-read-more {
	display: inline-block;
	margin-top: auto;
	padding: 8px 16px;
	background: var(--spre-bg-alt);
	border: 1px solid var(--spre-border);
	border-radius: var(--spre-radius);
	text-align: center;
	text-decoration: none;
	color: var(--spre-text);
	font-weight: 500;
	transition: background 0.3s;
}

.spre-read-more:hover {
	background: var(--spre-primary);
	color: #fff;
	border-color: var(--spre-primary);
}

/* --- Mobile Grid --- */
@media(max-width: 980px) {
	.spre-grid {
		grid-template-columns: 1fr;
	}

	.spre-grid-item {
		flex-direction: column;
	}

	.spre-item-images {
		width: 100%;
		height: 250px;
	}

	.spre-item-details {
		width: 100%;
	}

	.spre-item-excerpt {
		min-height: auto;
	}
}


/* --- Single Property View --- */
.spre-single-container {
	margin: 40px auto;
	max-width: 1360px;
	width: 90%;
}

/* Mosaic Gallery */
.spre-single-gallery {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	height: 400px;
	border-radius: var(--spre-radius);
	overflow: hidden;
}

.spre-gallery-main {
	width: 60%;
	height: 100%;
	overflow: hidden;
}

.spre-gallery-main a {
	display: block;
	width: 100%;
	height: 100%;
}


.spre-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s;
}

.spre-gallery-grid {
	width: 40%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	position: relative;
}

.spre-gallery-grid a {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.spre-gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s;
}

.spre-gallery-main img:hover,
.spre-gallery-grid img:hover {
	transform: scale(1.05);
}

.spre-gallery-more {
	position: absolute;
	bottom: 0px;
	right: 0px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 10px 15px;
	font-weight: bold;
	border-top-left-radius: var(--spre-radius);
	pointer-events: none;
}

/* Single Content Area */
.spre-single-content-wrapper {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.spre-single-main {
	flex: 1;
}

.spre-single-sidebar {
	width: 350px;
	position: sticky;
	top: 40px;
}

.spre-single-title {
	margin: 0 0 10px;
	font-size: 2rem;
	font-weight: 600;

}

.spre-single-price {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--spre-primary);
	margin-bottom: 10px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 20px;
}

.spre-single-address {
	font-size: 1rem;
	color: var(--spre-text-light);
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Sections */
.spre-section {
	margin-bottom: 40px;
	margin-top: 60px;
}

.spre-section h2 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--spre-border);
}

/* Specification Table */
.spre-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.spre-specs-table th,
.spre-specs-table td {
	padding: 12px 15px;
	border-bottom: 1px solid var(--spre-border);
	text-align: left;
}

.spre-specs-table th {
	width: 40%;
	color: var(--spre-text-light);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 14px;
}

.spre-specs-table td {
	font-weight: 600;
}

.spre-specs-table tr:nth-child(even) {
	background-color: var(--spre-bg-alt);
}

/* Sidebar Contact Box */
.spre-contact-box {
	background: #f7f7f7;
	border: 1px solid var(--spre-border);
	border-radius: var(--spre-radius);
	padding: 25px;
	box-shadow: var(--spre-shadow);
}

.spre-contact-box h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.5rem;
	font-weight: 600;
	border-bottom: 1px solid #ddd;
	padding-bottom: 20px;
}

.spre-phone,
.spre-email {
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.spre-contact-form {
	margin-top: 25px;
}

.spre-form-group {
	margin-bottom: 15px;
}

.spre-form-group input,
.spre-form-group textarea {
	width: 100%;
	padding: 10px 12px !important;
	border: 1px solid var(--spre-border);
	border-radius: 0;
	font-family: inherit;
}

.spre-submit-btn {
	width: 100%;
	padding: 12px;
	background: var(--spre-primary);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s;
}

.spre-submit-btn:hover {
	background: #004494;
}

.spre-form-response {
	margin-top: 15px;
	font-size: 0.9rem;
}

/* --- Lightbox --- */
.spre-lightbox-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.spre-lightbox-content {
	display: block;
	max-width: 90%;
	max-height: 80vh;
	object-fit: contain;
	animation-name: zoom;
	animation-duration: 0.3s;
}

@keyframes zoom {
	from {
		transform: scale(0)
	}

	to {
		transform: scale(1)
	}
}

.spre-lightbox-close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	cursor: pointer;
}

.spre-lightbox-prev,
.spre-lightbox-next {
	cursor: pointer;
	position: absolute;
	top: 50%;
	width: auto;
	padding: 16px;
	margin-top: -50px;
	color: white;
	font-weight: bold;
	font-size: 30px;
	transition: 0.3s;
	user-select: none;
	background-color: rgba(0, 0, 0, 0.5);
}

.spre-lightbox-prev {
	left: 0;
	border-radius: 0 4px 4px 0;
}

.spre-lightbox-next {
	right: 0;
	border-radius: 4px 0 0 4px;
}

.spre-lightbox-prev:hover,
.spre-lightbox-next:hover,
.spre-lightbox-close:hover {
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
}

/* Mobile Single Prop */
@media (max-width: 980px) {
	.spre-single-content-wrapper {
		flex-direction: column;
	}

	.spre-single-sidebar {
		width: 100%;
		position: static;
	}

	.spre-single-gallery {
		flex-direction: column;
		height: auto;
	}

	.spre-gallery-main,
	.spre-gallery-grid {
		width: 100%;
	}

	.spre-gallery-main img {
		height: 250px;
	}

	.spre-single-title {

		font-size: 1.4rem;


	}

	.spre-item-details {
		padding: 20px;
	}

	.spre-specs-table th {
		font-size: 12px;
		line-height: 1.1;
	}

	.spre-description {
		font-size: 14px;
		line-height: 1.5;
	}

	.spre-single-address {
		font-size: 14px;
		line-height: 1.1;
	}

	.spre-gallery-grid {
		/* display: none; */
		/* simple fallback for mobile, show only main or slider */
	}
}