/* =========================================================
   Chandel Realty — Properties Archive
   ========================================================= */

.cr-properties-page {
	--cr-navy: #10243e;
	--cr-navy-dark: #09192d;
	--cr-gold: #c6943d;
	--cr-gold-light: #f3e4c5;
	--cr-ivory: #f8f5ef;
	--cr-white: #ffffff;
	--cr-text: #273444;
	--cr-muted: #6c7683;
	--cr-border: #e3ded4;

	background: var(--cr-ivory);
	color: var(--cr-text);
}

/* Archive hero */

.cr-properties-hero {
	padding: 65px 0 100px;
	background:
		linear-gradient(
			135deg,
			var(--cr-navy-dark),
			var(--cr-navy)
		);
	color: var(--cr-white);
}

.cr-properties-hero__content {
	max-width: 790px;
}

.cr-properties-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 30px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.cr-properties-breadcrumb a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.cr-properties-breadcrumb a:hover {
	color: var(--cr-gold-light);
}

.cr-properties-hero__eyebrow {
	display: block;
	margin-bottom: 15px;
	color: #dda948;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.cr-properties-hero h1 {
	margin: 0;
	color: var(--cr-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 5.4vw, 67px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -1px;
}

.cr-properties-hero p {
	max-width: 670px;
	margin: 21px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 16px;
	line-height: 1.8;
}

/* Filter form */

.cr-properties-search {
	position: relative;
	z-index: 5;
	margin-top: -45px;
}

.cr-properties-filter {
	display: grid;
	grid-template-columns:
		repeat(5, minmax(0, 1fr))
		auto;
	align-items: end;
	gap: 12px;
	padding: 23px;
	border: 1px solid var(--cr-border);
	border-radius: 14px;
	background: var(--cr-white);
	box-shadow: 0 16px 42px rgba(16, 36, 62, 0.12);
}

.cr-properties-filter__field label {
	display: block;
	margin-bottom: 7px;
	color: #6e7784;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.65px;
}

.cr-properties-filter__field select {
	width: 100%;
	height: 48px;
	padding: 0 35px 0 13px;
	border: 1px solid #ddd8cf;
	border-radius: 6px;
	outline: none;
	background-color: #fbfaf7;
	color: var(--cr-navy);
	font-family: inherit;
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.cr-properties-filter__field select:focus {
	border-color: var(--cr-gold);
	box-shadow: 0 0 0 3px rgba(198, 148, 61, 0.12);
}

.cr-properties-filter__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cr-properties-filter__actions button {
	min-height: 48px;
	padding: 12px 19px;
	border: 0;
	border-radius: 6px;
	background: var(--cr-navy);
	color: var(--cr-white);
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.cr-properties-filter__actions button:hover {
	transform: translateY(-2px);
	background: var(--cr-gold);
	color: var(--cr-navy);
}

.cr-properties-filter__actions a {
	color: #8a6a32;
	font-size: 11px;
	font-weight: 750;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Results */

.cr-properties-results {
	padding: 70px 0 90px;
}

.cr-properties-results__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 35px;
}

.cr-properties-results__heading > div > span {
	display: block;
	margin-bottom: 7px;
	color: var(--cr-gold);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.cr-properties-results__heading h2 {
	margin: 0;
	color: var(--cr-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 4vw, 45px);
	font-weight: 500;
	line-height: 1.15;
}

.cr-properties-results__heading > p {
	max-width: 430px;
	margin: 0 0 5px;
	color: var(--cr-muted);
	font-size: 13px;
	line-height: 1.65;
	text-align: right;
}

.cr-properties-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 27px;
}

/* Property card */

.cr-properties-card {
	overflow: hidden;
	border: 1px solid var(--cr-border);
	border-radius: 15px;
	background: var(--cr-white);
	box-shadow: 0 9px 30px rgba(16, 36, 62, 0.07);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.cr-properties-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 18px 42px rgba(16, 36, 62, 0.13);
}

.cr-properties-card__image {
	position: relative;
	display: block;
	height: 265px;
	overflow: hidden;
	background: #e8e4dc;
	text-decoration: none;
}

.cr-properties-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cr-properties-card:hover .cr-properties-card__image img {
	transform: scale(1.05);
}

.cr-properties-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#10243e,
			#1d3b5e
		);
	color: var(--cr-gold-light);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
}

.cr-properties-card__badges {
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.cr-properties-card__badges span {
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--cr-gold);
	color: var(--cr-navy-dark);
	font-size: 9px;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.45px;
}

.cr-properties-card__badges span:last-child:not(:first-child) {
	margin-left: auto;
	background: rgba(9, 25, 45, 0.88);
	color: var(--cr-white);
	backdrop-filter: blur(5px);
}

.cr-properties-card__content {
	padding: 24px;
}

.cr-properties-card__location {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	color: #ad7928;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.7px;
}

.cr-properties-card__location span {
	font-size: 7px;
}

.cr-properties-card h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.25;
}

.cr-properties-card h3 a {
	color: var(--cr-navy);
	text-decoration: none;
}

.cr-properties-card h3 a:hover {
	color: #ad7928;
}

.cr-properties-card__developer {
	margin: 7px 0 0;
	color: #808995;
	font-size: 12px;
	line-height: 1.5;
}

.cr-properties-card__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	margin-top: 20px;
	padding: 16px 0;
	border-top: 1px solid #ebe7df;
	border-bottom: 1px solid #ebe7df;
}

.cr-properties-card__details span,
.cr-properties-card__details strong {
	display: block;
}

.cr-properties-card__details span {
	margin-bottom: 5px;
	color: #8c949e;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.55px;
}

.cr-properties-card__details strong {
	color: var(--cr-navy);
	font-size: 13px;
	line-height: 1.45;
}

.cr-properties-card__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 19px;
	color: #ad7928;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
}

.cr-properties-card__button span {
	transition: transform 0.2s ease;
}

.cr-properties-card__button:hover {
	color: var(--cr-navy);
}

.cr-properties-card__button:hover span {
	transform: translateX(5px);
}

/* Pagination */

.cr-properties-pagination {
	margin-top: 50px;
}

.cr-properties-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-properties-pagination a,
.cr-properties-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--cr-border);
	border-radius: 6px;
	background: var(--cr-white);
	color: var(--cr-navy);
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.cr-properties-pagination a:hover,
.cr-properties-pagination .current {
	border-color: var(--cr-navy);
	background: var(--cr-navy);
	color: var(--cr-white);
}

/* Empty results */

.cr-properties-empty {
	padding: 65px 25px;
	border: 1px dashed #d4c8b5;
	border-radius: 15px;
	background: var(--cr-white);
	text-align: center;
}

.cr-properties-empty > div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--cr-gold-light);
	color: #936620;
	font-size: 31px;
}

.cr-properties-empty h2 {
	margin: 0;
	color: var(--cr-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 32px;
	font-weight: 500;
}

.cr-properties-empty p {
	max-width: 580px;
	margin: 13px auto 0;
	color: var(--cr-muted);
	font-size: 14px;
	line-height: 1.7;
}

.cr-properties-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 11px;
	margin-top: 25px;
}

.cr-properties-empty__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid var(--cr-navy);
	border-radius: 6px;
	background: var(--cr-navy);
	color: var(--cr-white);
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.cr-properties-empty__actions a:last-child {
	background: transparent;
	color: var(--cr-navy);
}

.cr-properties-empty__actions a:hover {
	border-color: var(--cr-gold);
	background: var(--cr-gold);
	color: var(--cr-navy);
}

/* Responsive */

@media (max-width: 1150px) {
	.cr-properties-filter {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cr-properties-filter__actions {
		align-self: end;
	}
}

@media (max-width: 960px) {
	.cr-properties-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.cr-properties-hero {
		padding: 48px 0 90px;
	}

	.cr-properties-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cr-properties-results__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.cr-properties-results__heading > p {
		max-width: 600px;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.cr-properties-hero {
		padding: 35px 0 82px;
	}

	.cr-properties-hero h1 {
		font-size: 43px;
	}

	.cr-properties-search {
		margin-top: -50px;
	}

	.cr-properties-filter {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.cr-properties-filter__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.cr-properties-filter__actions button {
		width: 100%;
	}

	.cr-properties-filter__actions a {
		text-align: center;
	}

	.cr-properties-results {
		padding: 50px 0 65px;
	}

	.cr-properties-grid {
		grid-template-columns: 1fr;
	}

	.cr-properties-card__image {
		height: 245px;
	}
}

@media (max-width: 400px) {
	.cr-properties-card__details {
		grid-template-columns: 1fr;
	}
}

/* Fix no-results action buttons */

.cr-properties-empty__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.cr-properties-empty__actions a {
	width: auto !important;
	min-width: 190px;
	min-height: 48px;
	padding: 12px 22px;
	white-space: nowrap;
	line-height: 1.2;
}

@media (max-width: 480px) {
	.cr-properties-empty__actions {
		flex-direction: column !important;
	}

	.cr-properties-empty__actions a {
		width: 100% !important;
		min-width: 0;
	}
}

.cr-properties-empty p {
	margin-bottom: 30px !important;
}