/**
 * Styled to match the live Hompark theme (higueronwestpc.com): Poppins
 * typeface, #26282B headings / #555 body text, #D9B993 tan accent (pulled
 * from the theme's own button color), sharp corners (0 border-radius
 * throughout, matching the theme's square buttons/inputs), and the same
 * 1280px .container used site-wide so this content lines up with the nav
 * and footer instead of running edge-to-edge.
 */

.hwpc-ro-search,
.hwpc-ro-property {
	font-family: 'Poppins', sans-serif;
	color: #555555;
}

.hwpc-ro-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* ---------- Search form ---------- */

.hwpc-ro-search-form {
	background: #f8f6f3;
	border: 1px solid #ece6de;
	padding: 24px;
	margin: 30px auto;
}

.hwpc-ro-search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
}

.hwpc-ro-search-form__row > * {
	flex: 1 1 160px;
}

.hwpc-ro-search-form__row select,
.hwpc-ro-search-form__row input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d8d2c8;
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #26282b;
	box-sizing: border-box;
}

.hwpc-ro-search-form__row select:focus,
.hwpc-ro-search-form__row input:focus {
	outline: none;
	border-color: #d9b993;
}

.hwpc-ro-search-form__submit {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 32px;
	border: none;
	background: #d9b993;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hwpc-ro-search-form__submit:hover {
	background: #c7a179;
}

/* ---------- Results grid ---------- */

.hwpc-ro-results {
	margin: 0 auto 60px;
}

.hwpc-ro-results__count {
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9a9186;
	margin: 0 0 20px;
}

.hwpc-ro-results__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.hwpc-ro-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #ffffff;
	border: 1px solid #eee8df;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hwpc-ro-card:hover {
	box-shadow: 0 12px 28px rgba(38, 40, 43, 0.12);
	transform: translateY(-3px);
}

.hwpc-ro-card__image-wrap {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.hwpc-ro-card__image {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hwpc-ro-card:hover .hwpc-ro-card__image {
	transform: scale(1.06);
}

.hwpc-ro-card__body {
	padding: 20px;
}

.hwpc-ro-card__area {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #d9b993;
}

.hwpc-ro-card__title {
	margin: 8px 0 10px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	color: #26282b;
}

.hwpc-ro-card__meta {
	font-size: 13px;
	color: #8d8880;
	margin: 0 0 12px;
}

.hwpc-ro-card__price {
	font-size: 21px;
	font-weight: 600;
	color: #26282b;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #f0ece5;
}

.hwpc-ro-results__pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
}

.hwpc-ro-results__pagination a {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #26282b;
	text-decoration: none;
	border-bottom: 1px solid #d9b993;
	padding-bottom: 2px;
}

.hwpc-ro-results__pagination a:hover {
	color: #d9b993;
}

.hwpc-ro-results__note {
	margin-top: 16px;
	font-size: 13px;
	color: #9a9186;
	font-style: italic;
}

.hwpc-ro-search__error,
.hwpc-ro-search--unavailable {
	max-width: 1280px;
	margin: 40px auto;
	padding: 0 15px;
	text-align: center;
	color: #8d8880;
}

/* ---------- Property detail ---------- */

.hwpc-ro-property__hero {
	position: relative;
	max-height: 520px;
	overflow: hidden;
}

.hwpc-ro-property__hero img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.hwpc-ro-property__title-bar {
	max-width: 1280px;
	margin: 0 auto;
	padding: 30px 15px 0;
}

.hwpc-ro-property__title-bar h1 {
	font-size: 32px;
	font-weight: 500;
	color: #26282b;
	margin: 0;
}

.hwpc-ro-property__stats {
	max-width: 1280px;
	margin: 20px auto 0;
	padding: 22px 15px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	border-top: 1px solid #f0ece5;
	border-bottom: 1px solid #f0ece5;
}

.hwpc-ro-property__stats span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9a9186;
	margin-bottom: 4px;
}

.hwpc-ro-property__stats strong {
	font-size: 18px;
	font-weight: 600;
	color: #26282b;
}

.hwpc-ro-property__body {
	max-width: 1280px;
	margin: 40px auto;
	padding: 0 15px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 50px;
}

.hwpc-ro-property__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 30px;
}

.hwpc-ro-property__gallery a {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.hwpc-ro-property__gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hwpc-ro-property__gallery a:hover img {
	transform: scale(1.08);
}

.hwpc-ro-property__description {
	font-size: 15px;
	line-height: 1.75;
	color: #555555;
}

.hwpc-ro-property__description p {
	margin: 0 0 1em;
}

.hwpc-ro-property__features h2 {
	font-size: 22px;
	font-weight: 500;
	color: #26282b;
	margin: 40px 0 10px;
}

.hwpc-ro-property__features h3 {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #d9b993;
	margin: 24px 0 8px;
}

.hwpc-ro-property__features ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 20px;
}

.hwpc-ro-property__features li {
	font-size: 14px;
	color: #555555;
	padding-left: 18px;
	position: relative;
}

.hwpc-ro-property__features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	background: #d9b993;
}

.hwpc-ro-property__not-found {
	max-width: 1280px;
	margin: 60px auto;
	padding: 0 15px;
	text-align: center;
}

/* ---------- Lead form ---------- */

.hwpc-ro-lead-form {
	background: #f8f6f3;
	border: 1px solid #ece6de;
	padding: 30px;
	position: sticky;
	top: 20px;
}

.hwpc-ro-lead-form h3 {
	font-size: 18px;
	font-weight: 500;
	color: #26282b;
	margin: 0 0 20px;
}

.hwpc-ro-lead-form__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hwpc-ro-lead-form__form input,
.hwpc-ro-lead-form__form textarea {
	padding: 12px 14px;
	border: 1px solid #d8d2c8;
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #26282b;
	box-sizing: border-box;
}

.hwpc-ro-lead-form__form textarea {
	min-height: 90px;
	resize: vertical;
}

.hwpc-ro-lead-form__form label {
	font-size: 13px;
	color: #8d8880;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hwpc-ro-lead-form__form button {
	height: 46px;
	border: none;
	background: #d9b993;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hwpc-ro-lead-form__form button:hover {
	background: #c7a179;
}

.hwpc-ro-lead-form__form button:disabled {
	opacity: 0.6;
	cursor: default;
}

.hwpc-ro-lead-form__status {
	font-size: 13px;
	color: #9a9186;
	margin: 0;
}

/* ---------- Lightbox ---------- */

.hwpc-ro-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(38, 40, 43, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.hwpc-ro-lightbox-overlay img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
}

.hwpc-ro-lightbox-close,
.hwpc-ro-lightbox-prev,
.hwpc-ro-lightbox-next {
	position: absolute;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	padding: 10px;
}

.hwpc-ro-lightbox-close {
	top: 20px;
	right: 30px;
}

.hwpc-ro-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.hwpc-ro-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.hwpc-ro-property__body {
		grid-template-columns: 1fr;
	}

	.hwpc-ro-lead-form {
		position: static;
	}

	.hwpc-ro-property__features ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hwpc-ro-search-form__row > * {
		flex: 1 1 100%;
	}

	.hwpc-ro-property__gallery {
		grid-template-columns: repeat(2, 1fr);
	}

	.hwpc-ro-property__title-bar h1 {
		font-size: 24px;
	}
}
