/* DDF Listings — neutral styles that inherit the theme's fonts. Override in Appearance → Customize → Additional CSS. */
.ddfl-wrap, .ddfl-single {
	--ddfl-accent: #1f5f8b;
	--ddfl-border: rgba(0, 0, 0, .12);
	--ddfl-muted: rgba(0, 0, 0, .6);
	--ddfl-bg: #fff;
	--ddfl-radius: 10px;
}

/* Search form */
.ddfl-search {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 0 0 20px;
	padding: 14px;
	border: 1px solid var(--ddfl-border, rgba(0,0,0,.12));
	border-radius: var(--ddfl-radius, 10px);
}
.ddfl-search input, .ddfl-search select {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--ddfl-border, rgba(0,0,0,.12));
	border-radius: 6px;
	background: #fff;
	font: inherit;
	box-sizing: border-box;
}
.ddfl-search input[type="search"] { grid-column: span 2; }
@media (max-width: 520px) { .ddfl-search input[type="search"] { grid-column: auto; } }

/* Buttons */
.ddfl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid var(--ddfl-accent, #1f5f8b);
	border-radius: 6px;
	background: transparent;
	color: var(--ddfl-accent, #1f5f8b);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.ddfl-btn-primary { background: var(--ddfl-accent, #1f5f8b); color: #fff; }
.ddfl-btn:hover { opacity: .9; }

/* Grid */
.ddfl-found { margin: 0 0 10px; color: var(--ddfl-muted, rgba(0,0,0,.6)); font-size: .9em; }
.ddfl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.ddfl-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ddfl-border, rgba(0,0,0,.12));
	border-radius: var(--ddfl-radius, 10px);
	background: var(--ddfl-bg, #fff);
	transition: box-shadow .15s ease, transform .15s ease;
}
.ddfl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.ddfl-card-img { display: block; aspect-ratio: 4 / 3; background: #eef1f4; overflow: hidden; }
.ddfl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddfl-noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--ddfl-muted, rgba(0,0,0,.6)); }
.ddfl-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.ddfl-card-title { color: inherit; text-decoration: none; font-weight: 500; line-height: 1.35; }
.ddfl-card-title:hover { text-decoration: underline; }
.ddfl-card-meta, .ddfl-card-office { font-size: .8em; color: var(--ddfl-muted, rgba(0,0,0,.6)); }

.ddfl-price { font-size: 1.35em; font-weight: 700; line-height: 1.2; }
.ddfl-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 4px 0; padding: 0; font-size: .95em; }
.ddfl-stats li { margin: 0; }

/* Pagination */
.ddfl-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.ddfl-pagination a, .ddfl-pagination span {
	min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ddfl-border, rgba(0,0,0,.12)); border-radius: 6px; text-decoration: none; color: inherit;
}
.ddfl-pagination .is-current { background: var(--ddfl-accent, #1f5f8b); border-color: var(--ddfl-accent, #1f5f8b); color: #fff; }
.ddfl-pagination .ddfl-gap { border: 0; }
.ddfl-empty { padding: 30px 0; text-align: center; color: var(--ddfl-muted, rgba(0,0,0,.6)); }

/* Single listing */
.ddfl-single { margin-bottom: 30px; }
.ddfl-gallery { margin-bottom: 20px; }
.ddfl-gallery-main { position: relative; aspect-ratio: 3 / 2; background: #eef1f4; border-radius: var(--ddfl-radius, 10px); overflow: hidden; }
.ddfl-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddfl-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.ddfl-prev { left: 12px; }
.ddfl-next { right: 12px; }
.ddfl-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; font-size: .8em; }
.ddfl-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.ddfl-thumb { flex: 0 0 88px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .75; }
.ddfl-thumb.is-active { border-color: var(--ddfl-accent, #1f5f8b); opacity: 1; }
.ddfl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ddfl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ddfl-single .ddfl-price { font-size: 1.9em; }
.ddfl-address { font-size: 1.1em; color: var(--ddfl-muted, rgba(0,0,0,.6)); }
.ddfl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ddfl-section { margin-bottom: 26px; }
.ddfl-section h2 { font-size: 1.25em; margin: 0 0 10px; }
.ddfl-facts { width: 100%; border-collapse: collapse; }
.ddfl-facts th, .ddfl-facts td { padding: 9px 10px; border-bottom: 1px solid var(--ddfl-border, rgba(0,0,0,.12)); text-align: left; vertical-align: top; }
.ddfl-facts th { width: 40%; font-weight: 600; }

.ddfl-attribution { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--ddfl-border, rgba(0,0,0,.12)); font-size: .9em; }
.ddfl-powered { font-weight: 600; color: #d52b1e; text-decoration: none; }
.ddfl-powered:hover { text-decoration: underline; }

/* Footer notice */
.ddfl-notice { max-width: 1100px; margin: 20px auto; padding: 0 16px; font-size: 11px; line-height: 1.5; color: rgba(0,0,0,.55); }
.ddfl-notice p { margin: 0 0 6px; }
