/* CREA DDF Lite — front-end styles */
.ddf-wrap { max-width: 1200px; margin: 0 auto; }

/* ---- Search bar (pill style) ------------------------------------------- */
.ddf-search {
	--ddf-brand: #6b0013;
	--ddf-brand-dark: #500010;
	margin-bottom: 28px;
}
.ddf-search-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
	padding: 10px 10px 10px 20px;
}
.ddf-search .ddf-field {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6px 18px;
	min-width: 0;
}
/* Vertical dividers between fields */
.ddf-search .ddf-field + .ddf-field {
	border-left: 1px solid #e8e8ea;
}
.ddf-search .ddf-field label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9098a3;
	margin: 0 0 3px;
	white-space: nowrap;
}
.ddf-search .ddf-field input,
.ddf-search .ddf-field select {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 16px;
	color: #2b2f36;
	font-family: inherit;
	line-height: 1.3;
	outline: none;
	box-shadow: none;
	width: 100%;
	cursor: pointer;
}
.ddf-search .ddf-field input { cursor: text; }
.ddf-search .ddf-field input::placeholder { color: #aeb4bd; }

/* Custom chevron for selects */
.ddf-search .ddf-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b0013' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
}

/* Keyword field with search icon */
.ddf-search .ddf-field-kw {
	flex: 1 1 260px;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	padding-left: 0;
}
.ddf-search .ddf-field-kw .ddf-search-icon {
	width: 22px;
	height: 22px;
	color: #9098a3;
	flex: 0 0 auto;
}
.ddf-search .ddf-field-kw input { font-size: 17px; }
.ddf-search .ddf-field-price { max-width: 130px; }

/* Search button in the site brand colour */
.ddf-search .ddf-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	padding: 0 26px;
	height: 60px;
	background: var(--ddf-brand);
	color: #fff;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: .01em;
	transition: background .15s ease;
	flex: 0 0 auto;
}
.ddf-search .ddf-search-btn:hover { background: var(--ddf-brand-dark); }
.ddf-search .ddf-search-btn svg { width: 19px; height: 19px; }

/* Responsive: stack fields on narrow screens */
@media (max-width: 900px) {
	.ddf-search-bar { border-radius: 14px; padding: 8px; }
	.ddf-search .ddf-field {
		flex: 1 1 44%;
		border-left: 0 !important;
		padding: 8px 12px;
	}
	.ddf-search .ddf-field-kw { flex: 1 1 100%; }
	.ddf-search .ddf-field-price { max-width: none; }
	.ddf-search .ddf-search-btn { flex: 1 1 100%; margin: 6px 0 0; justify-content: center; }
}

.ddf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.ddf-card {
	display: block;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow .15s ease, transform .15s ease;
}
/* No underlines anywhere inside the cards (override theme link styles). */
.ddf-card,
.ddf-card:hover,
.ddf-card:focus,
.ddf-card * {
	text-decoration: none !important;
}
.ddf-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	transform: translateY(-2px);
}

.ddf-card-img {
	height: 190px;
	background-size: cover;
	background-position: center;
	background-color: #eef1f4;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ddf-noimg { color: #9aa5b1; font-size: 13px; }

.ddf-card-body { padding: 14px 16px 18px; }
.ddf-price { font-size: 19px; font-weight: 700; color: #1a5d99; margin-bottom: 4px; }
.ddf-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.ddf-meta { display: flex; gap: 14px; font-size: 13px; color: #4a5568; margin-bottom: 4px; }
.ddf-meta span { white-space: nowrap; }
.ddf-city { font-size: 13px; color: #718096; }

.ddf-empty { padding: 40px 0; text-align: center; color: #718096; }

.ddf-pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.ddf-page {
	padding: 7px 13px;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-decoration: none;
	color: #1a5d99;
	font-size: 14px;
}
.ddf-page.current { background: #1a5d99; color: #fff; border-color: #1a5d99; }

/* MLS tag on cards */
.ddf-mls-tag { margin-top: 6px; font-size: 11px; color: #9aa5b1; letter-spacing: .02em; }

/* ---- Single listing: back link, section title, map, CTA ---------------- */
.ddf-back { margin: 0 0 16px; }
.ddf-back a {
	color: #6b0013 !important;
	text-decoration: none !important;
}
.ddf-back a:hover { opacity: .8; }

.ddf-section-title {
	margin: 28px 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #2b2f36;
}
.ddf-single-map {
	width: 100%;
	height: 340px;
	border-radius: 12px;
	overflow: hidden;
	z-index: 0;
}

.ddf-cta {
	margin: 28px 0 8px;
	padding: 26px 28px;
	background: #f7f3f0;
	border: 1px solid #ece4df;
	border-radius: 14px;
	text-align: center;
}
.ddf-cta-heading {
	font-size: 22px;
	font-weight: 700;
	color: #2b2f36;
	margin-bottom: 6px;
}
.ddf-cta-text { color: #5a6270; font-size: 15px; margin-bottom: 16px; }
.ddf-cta-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.ddf-cta-btn {
	display: inline-block;
	background: #6b0013;
	color: #fff !important;
	text-decoration: none !important;
	padding: 13px 30px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	transition: background .15s ease;
}
.ddf-cta-btn:hover { background: #500010; }
.ddf-cta-phone {
	font-size: 17px;
	font-weight: 600;
	color: #6b0013 !important;
	text-decoration: none !important;
}

/* ---- Single listing: photo gallery + quick facts ----------------------- */
.ddf-gallery { margin: 0 0 22px; }
.ddf-gallery-main {
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #eef1f4;
	border-radius: 12px;
	overflow: hidden;
}
.ddf-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ddf-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.ddf-gallery-thumbs .ddf-thumb {
	width: 96px;
	height: 66px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 auto;
	opacity: .65;
	border: 2px solid transparent;
	transition: opacity .15s ease, border-color .15s ease;
}
.ddf-gallery-thumbs .ddf-thumb:hover { opacity: 1; }
.ddf-gallery-thumbs .ddf-thumb.is-active { opacity: 1; border-color: #6b0013; }

.ddf-single-facts {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0 0 20px;
}
.ddf-single-price {
	font-size: 26px;
	font-weight: 700;
	color: #6b0013;
}
.ddf-single-meta {
	font-size: 15px;
	color: #4a5568;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ddf-single-meta .ddf-dot { color: #c3c9d2; }

/* Attribution block on single listing pages */
.ddf-attribution {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
	font-size: 12px;
	color: #718096;
	line-height: 1.5;
}
.ddf-attribution .ddf-mls { font-weight: 600; color: #4a5568; margin: 0 0 6px; }
.ddf-attribution .ddf-credit { margin: 0; }

/* Map */
.ddf-map {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	z-index: 0;
}
