/**
 * Single Property (v2 layout) styles.
 *
 * Loaded only on `properties` singular pages — see
 * ds_single_property_assets() in functions.php.
 */

/* ---------------------------------------------------------
 * Header
 * --------------------------------------------------------- */

.single-property-header {
	position: relative;
	max-width: 100%;
	margin: 0 0 1.5rem;
	padding: 2.75rem 1rem 2.25rem;
	background-color: #0a1f3d;
	background-image: url("../images/property-hero-bg.jpg");
	background-size: cover;
	background-position: center;
	overflow: hidden;
	border-radius: 0 0 20px 20px;
}

.single-property-header__inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
}

.single-property-header__tags {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 1.1rem;
}

.single-property-header__tags .single-property-tag {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: #1652c9;
	color: #fff;
}

.single-property-header__tags .single-property-tag--for {
	background: #1c6b34;
}

.single-property-header__title {
	font-size: 2.75rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.1;
	margin: 0 0 0.9rem;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	max-width: 70%;
}

.single-property-header__location {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #dde5f2;
	font-size: 1.05rem;
	margin: 0 0 1.75rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.single-property-header__location i {
	color: #6ea8fe;
}

.single-property-header__divider {
	max-width: 480px;
	margin: 0 0 1.75rem;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.single-property-header__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-property-header__stat {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: rgba(13, 34, 66, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
	backdrop-filter: blur(6px);
	flex: 1 1 190px;
}

.single-property-header__stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	background: rgba(110, 168, 254, 0.16);
	flex-shrink: 0;
}

.single-property-header__stat-icon i {
	font-size: 1.2rem;
	color: #6ea8fe;
}

.single-property-header__stat-value {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.1rem;
}

.single-property-header__stat-label {
	font-size: 0.78rem;
	color: #a9b8cf;
	margin: 0;
}

.single-property-tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #0d6efd;
}

.single-property-tag--for {
	color: #198754;
}

.single-property-tag--muted {
	background: #f1f3f5;
	color: #495057;
}

/* ---------------------------------------------------------
 * Video
 * --------------------------------------------------------- */

.single-property-video {
	max-width: 1140px;
	margin: 0 auto 1.5rem;
	padding: 0 1rem;
}

.single-property-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 640px;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 14px 32px rgba(4, 44, 83, 0.18);
}

.single-property-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------
 * Layout
 * --------------------------------------------------------- */

.single-property-layout {
	max-width: 1140px;
	margin: 0 auto 2rem;
}

.single-property-main {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* ---------------------------------------------------------
 * Section cards
 * --------------------------------------------------------- */

.single-property-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.85rem 2rem;
}

.single-property-card__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 1.4rem;
}

.single-property-card__title i {
	color: #0d6efd;
}

.single-property-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.65rem 1.5rem;
}

.single-property-detail {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.single-property-detail--full {
	grid-column: 1 / -1;
}

.single-property-detail__icon {
	font-size: 1.4rem;
	color: #0a58ca;
	margin-top: 0.1rem;
}

.single-property-detail__icon--img {
	width: 1.6rem;
	height: 1.6rem;
	object-fit: contain;
	margin-top: 0;
}

.single-property-detail__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #868e96;
	margin: 0 0 0.25rem;
}

.single-property-detail__value {
	font-size: 1rem;
	font-weight: 600;
	color: #212529;
	margin: 0;
}

.single-property-description {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e9ecef;
}

.single-property-description p:last-child {
	margin: 0;
	color: #495057;
	line-height: 1.7;
}

/* ---------------------------------------------------------
 * Property Features
 * --------------------------------------------------------- */

.single-property-features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.single-property-feature {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: #212529;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
}

.single-property-feature i {
	color: #0d6efd;
}

.single-property-feature--legacy {
	background: #fff;
}

.single-property-feature__icon {
	width: 1.1rem;
	height: 1.1rem;
	object-fit: contain;
}

/* ---------------------------------------------------------
 * Property Overview
 * --------------------------------------------------------- */

.single-property-overview-content {
	font-size: 0.95rem;
	line-height: 1.8;
	color: #495057;
}

.single-property-overview-content p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------
 * Media gallery
 * --------------------------------------------------------- */

.single-property-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.single-property-gallery__item {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}

.single-property-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.single-property-gallery__item:hover img {
	transform: scale(1.04);
}

/* ---------------------------------------------------------
 * Sidebar
 * --------------------------------------------------------- */

.single-property-sidebar {
	position: sticky;
	top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.single-property-sidebar__card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
}

.single-property-sidebar__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.single-property-sidebar__subtitle {
	font-size: 0.85rem;
	color: #868e96;
	margin: 0 0 1.25rem;
}

.single-property-sidebar__disclaimer {
	font-size: 0.75rem;
	color: #adb5bd;
	text-align: center;
	margin: 0.75rem 0 0;
}

.single-property-inquiry-form .form-control {
	font-size: 0.9rem;
}

.single-property-inquiry-form__submit {
	background: #0d6efd;
	border-color: #0d6efd;
}

.single-property-share {
	display: flex;
	gap: 0.6rem;
}

.single-property-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	color: #fff;
	font-size: 1.1rem;
}

.single-property-share__btn--whatsapp {
	background: #25d366;
}

.single-property-share__btn--facebook {
	background: #1877f2;
}

.single-property-share__btn--email {
	background: #6c757d;
}

.single-property-share__btn--copy {
	background: #495057;
}

.single-property-similar-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.single-property-similar-item {
	display: flex;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}

.single-property-similar-item__thumb {
	flex: 0 0 4.5rem;
	height: 3.5rem;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f3f5;
}

.single-property-similar-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-property-similar-item__title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #212529;
	margin: 0 0 0.2rem;
}

.single-property-similar-item__meta {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.78rem;
	color: #868e96;
	margin: 0 0 0.35rem;
}

.single-property-similar-item__tags {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.single-property-similar-item__tags .single-property-tag {
	font-size: 0.68rem;
	padding: 0.15rem 0.55rem;
}

/* ---------------------------------------------------------
 * Responsive
 * --------------------------------------------------------- */

@media (max-width: 991.98px) {

	.single-property-header__title {
		max-width: 100%;
		font-size: 2.1rem;
	}

	.single-property-header__divider {
		max-width: 100%;
	}

	.single-property-detail-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.single-property-sidebar {
		position: static;
		margin-top: 1.5rem;
	}
}

@media (max-width: 575.98px) {

	.single-property-header {
		padding: 2rem 1rem 1.5rem;
	}

	.single-property-header__title {
		font-size: 1.6rem;
	}

	.single-property-header__stat {
		flex: 1 1 100%;
	}

	.single-property-detail-grid {
		grid-template-columns: 1fr;
	}

	.single-property-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------
 * CTA Banner
 * --------------------------------------------------------- */

.cta-banner {
	max-width: 1140px;
	margin: 0 auto 2.5rem;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(4, 20, 40, 0.18);
}

.cta-banner__hero {
	position: relative;
	background: linear-gradient(120deg, #0a1f3d 0%, #123a7a 55%, #1652c9 100%);
	padding: 3rem;
	overflow: hidden;
}

.cta-banner__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 16px 16px;
	pointer-events: none;
}

.cta-banner__hero::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	width: 46%;
	height: 100%;
	opacity: 0.16;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260'%3E%3Cg fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M40 260 L40 120 L200 30 L360 120 L360 260 Z'/%3E%3Cline x1='40' y1='120' x2='360' y2='120'/%3E%3Crect x='90' y='150' width='40' height='60'/%3E%3Crect x='150' y='150' width='40' height='60'/%3E%3Crect x='210' y='150' width='40' height='60'/%3E%3Crect x='270' y='150' width='40' height='60'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.cta-banner__content {
	position: relative;
	z-index: 1;
	max-width: 620px;
}

.cta-banner__eyebrow {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.cta-banner__eyebrow span:first-child {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff8a3d;
}

.cta-banner__eyebrow-rule {
	width: 36px;
	height: 3px;
	background: #ff8a3d;
}

.cta-banner__title {
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	margin: 0 0 1rem;
}

.cta-banner__highlight {
	color: #ff8a3d;
}

.cta-banner__subtitle {
	font-size: 0.95rem;
	color: #c7d3e8;
	line-height: 1.65;
	margin: 0 0 1.75rem;
	max-width: 520px;
}

.cta-banner__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.cta-banner__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
}

.cta-banner__btn--solid {
	background: #ff7a1a;
	color: #fff;
	border-color: #ff7a1a;
}

.cta-banner__btn--solid:hover {
	background: #ec6c0f;
	color: #fff;
}

.cta-banner__btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.cta-banner__btn--outline:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.cta-banner__features {
	background: #fff;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-banner__feature {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.75rem 1.5rem;
	border-right: 1px solid #eef0f3;
}

.cta-banner__feature:last-child {
	border-right: none;
}

.cta-banner__feature-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: #e9f0fd;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cta-banner__feature-icon i {
	font-size: 1.3rem;
	color: #0d6efd;
}

.cta-banner__feature h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.25rem;
}

.cta-banner__feature p {
	font-size: 0.82rem;
	color: #6c757d;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 991.98px) {

	.cta-banner__hero {
		padding: 2.25rem;
	}

	.cta-banner__hero::after {
		width: 60%;
		opacity: 0.1;
	}

	.cta-banner__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cta-banner__feature:nth-child(2) {
		border-right: none;
	}

	.cta-banner__feature:nth-child(1),
	.cta-banner__feature:nth-child(2) {
		border-bottom: 1px solid #eef0f3;
	}
}

@media (max-width: 575.98px) {

	.cta-banner {
		border-radius: 14px;
	}

	.cta-banner__hero {
		padding: 1.75rem 1.25rem;
	}

	.cta-banner__hero::after {
		display: none;
	}

	.cta-banner__title {
		font-size: 1.4rem;
	}

	.cta-banner__features {
		grid-template-columns: 1fr;
	}

	.cta-banner__feature {
		border-right: none;
		border-bottom: 1px solid #eef0f3;
	}

	.cta-banner__feature:last-child {
		border-bottom: none;
	}
}