/* Den Finder Listings – inherits the theme's fonts; colors can be set with these variables in the theme's Additional CSS. */
.dfl {
	--dfl-accent: #2f5d50;
	--dfl-accent-text: #fff;
	--dfl-border: rgba(0, 0, 0, 0.12);
	--dfl-muted: rgba(0, 0, 0, 0.62);
	--dfl-surface: #fff;
	--dfl-radius: 10px;
	--dfl-gap: 24px;
	font-size: 1rem;
	line-height: 1.5;
}
.dfl *, .dfl *::before, .dfl *::after { box-sizing: border-box; }
.dfl img { max-width: 100%; height: auto; display: block; }

/* Filters */
.dfl-filters {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
	margin: 0 0 16px; padding: 16px; border: 1px solid var(--dfl-border); border-radius: var(--dfl-radius); background: var(--dfl-surface);
}
.dfl-filters label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; font-size: 0.875rem; color: var(--dfl-muted); margin: 0; }
.dfl-filters select, .dfl-filters input {
	font: inherit; font-size: 1rem; color: inherit; width: 100%; min-height: 44px; padding: 8px 10px;
	border: 1px solid var(--dfl-border); border-radius: 6px; background: #fff;
}
.dfl-filters__go, .dfl-button, .dfl-more {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	color: var(--dfl-accent-text); background: var(--dfl-accent); border: 1px solid var(--dfl-accent); border-radius: 6px;
}
.dfl-button--ghost { background: transparent; color: var(--dfl-accent); }
.dfl-filters__go:hover, .dfl-button:hover, .dfl-more:hover { filter: brightness(1.1); }
.dfl-filters__go:focus-visible, .dfl-button:focus-visible, .dfl-more:focus-visible, .dfl-card__link:focus-visible { outline: 3px solid var(--dfl-accent); outline-offset: 2px; }

.dfl-count { margin: 0 0 12px; color: var(--dfl-muted); }
.dfl-empty { padding: 24px; border: 1px dashed var(--dfl-border); border-radius: var(--dfl-radius); }

/* Cards */
.dfl-grid { display: grid; gap: var(--dfl-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 var(--dfl-gap); }
@media (max-width: 960px) { .dfl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dfl-grid { grid-template-columns: minmax(0, 1fr); } }
.dfl-card { border: 1px solid var(--dfl-border); border-radius: var(--dfl-radius); overflow: hidden; background: var(--dfl-surface); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.dfl-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.dfl-card[hidden] { display: none; }
.dfl-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.dfl-card__media { position: relative; aspect-ratio: 16 / 10; background: #eef0ee; }
.dfl-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dfl-card__body { padding: 14px 16px 16px; }
.dfl-card__body p, .dfl-card__body h3 { margin: 0; }
.dfl-card__price { font-size: 1.25rem; font-weight: 700; }
.dfl-card__address { font-size: 1rem; font-weight: 600; margin-top: 4px !important; line-height: 1.3; }
.dfl-card__city, .dfl-card__meta, .dfl-card__credit { color: var(--dfl-muted); font-size: 0.9375rem; }
.dfl-card__credit { margin-top: 8px !important; }

.dfl-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }
.dfl-card__media .dfl-badge { position: absolute; top: 10px; left: 10px; }
.dfl-badge--pending { background: #f2b33d; color: #2b1d00; }
.dfl-badge--active { background: #e3efe9; color: #1f4a3d; margin-left: 8px; }

.dfl-more-wrap { text-align: center; margin: 0 0 var(--dfl-gap); }
.dfl-more[hidden] { display: none; }

/* Credits */
.dfl-credit { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--dfl-border); font-size: 0.875rem; color: var(--dfl-muted); }
.dfl-credit__line { margin: 0 0 8px; }

/* Listing page */
.dfl-crumbs { font-size: 0.875rem; margin: 0 0 16px; color: var(--dfl-muted); }
.dfl-crumbs a { color: inherit; }
.dfl-crumbs__sep { margin: 0 6px; }

.dfl-gallery { position: relative; border-radius: var(--dfl-radius); overflow: hidden; background: #eef0ee; }
.dfl-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.dfl-gallery__track::-webkit-scrollbar { display: none; }
.dfl-gallery__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: center; }
.dfl-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.9); color: #111; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.dfl-gallery__prev { left: 12px; }
.dfl-gallery__next { right: 12px; }
.dfl-gallery__count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.875rem; }

/* Required: listing firm next to the main photo, at least as large as the property text. */
.dfl-attribution { margin: 10px 0 20px; font-size: 1rem; }

.dfl-headline { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dfl-headline p { margin: 0; }
.dfl-headline__price { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.dfl-headline__type { font-size: 1.125rem; }
.dfl-headline__name { color: var(--dfl-muted); }

.dfl-section { margin: 32px 0 0; }
.dfl-section h2 { font-size: 1.375rem; margin: 0 0 12px; }
.dfl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
@media (max-width: 600px) { .dfl-facts { grid-template-columns: minmax(0, 1fr); } }
.dfl-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--dfl-border); }
.dfl-facts dt { color: var(--dfl-muted); margin: 0; }
.dfl-facts dd { margin: 0; font-weight: 600; text-align: right; }
.dfl-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--dfl-radius); overflow: hidden; }
.dfl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dfl-contact { padding: 24px; border-radius: var(--dfl-radius); background: #f4f6f4; }
.dfl-contact__ways { display: flex; flex-wrap: wrap; gap: 12px; }
.dfl-back { margin-top: 24px; }

/* "For sale now" line */
.dfl-now { margin: 0 0 16px; font-size: 1.0625rem; }
.dfl-now strong { color: var(--dfl-accent); font-size: 1.25rem; }
.dfl-now__updated { color: var(--dfl-muted); font-size: 0.9375rem; }

/* Property-type buttons */
.dfl-types { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--dfl-gap); }
.dfl-type {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
	border: 1px solid var(--dfl-accent); border-radius: 999px; color: var(--dfl-accent); text-decoration: none; font-weight: 600;
}
.dfl-type:hover { background: var(--dfl-accent); color: var(--dfl-accent-text); }
.dfl-type:focus-visible { outline: 3px solid var(--dfl-accent); outline-offset: 2px; }
.dfl-type__count { display: inline-block; min-width: 1.75em; padding: 0 6px; border-radius: 999px; background: #e3efe9; color: #1f4a3d; font-size: 0.875rem; text-align: center; }

/* Market at a Glance */
.dfl-market__wrap { overflow-x: auto; margin: 0 0 var(--dfl-gap); }
.dfl-market { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.dfl-market caption { caption-side: bottom; text-align: left; padding-top: 8px; color: var(--dfl-muted); font-size: 0.875rem; }
.dfl-market th, .dfl-market td { padding: 10px 12px; border-bottom: 1px solid var(--dfl-border); text-align: left; white-space: nowrap; }
.dfl-market td { font-variant-numeric: tabular-nums; }
.dfl-market thead th { font-size: 0.8125rem; color: var(--dfl-muted); font-weight: 600; }
.dfl-market__total th, .dfl-market__total td { font-weight: 700; border-bottom: 0; }
.dfl-market__empty { color: var(--dfl-muted); }

/* About this property */
.dfl-about__links { margin: 12px 0 0; padding-left: 20px; }

/* Contact form */
.dfl-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; position: relative; }
.dfl-form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.dfl-form__row label { flex: 1 1 200px; }
.dfl .dfl-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 0.875rem; color: var(--dfl-muted); }
.dfl .dfl-form input, .dfl .dfl-form textarea {
	font: inherit; font-size: 1rem; color: inherit; width: 100%; max-width: none; min-height: 44px; padding: 8px 10px;
	border: 1px solid var(--dfl-border); border-radius: 6px; background: #fff;
}
.dfl-form .dfl-button { align-self: flex-start; }
.dfl-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dfl-form__notice { margin: 0; padding: 12px 16px; border-radius: 6px; }
.dfl-form__notice--ok { background: #e3efe9; color: #1f4a3d; }
.dfl-form__notice--error { background: #fbe9e7; color: #7a1d10; }
.dfl-about p { margin: 0 0 12px; }
/* CBA display rules (v0.3.0): logo + explanation at least as large as property text */
.dfl-cba-logo, .dfl-cba-text { display: inline-block; vertical-align: middle; margin-right: 6px; }
.dfl-cba-logo--small { height: 1.1em; width: auto; }
.dfl-cba-logo--large { height: 1.4em; width: auto; }
.dfl-cba-text { font-weight: 800; letter-spacing: .04em; border: 1px solid currentColor; padding: 0 5px; font-size: 0.8em; line-height: 1.5; }
.dfl-card__credit { font-size: 0.9375rem; color: var(--dfl-text, inherit); }
.dfl-cba-note { font-size: 1rem; margin: 0 0 14px; }
.dfl-credit { font-size: 1rem; }
.dfl-attribution { font-size: 1rem; }
.dfl-badge--featured { background: #111; color: #fff; }
.dfl-docs { margin: 0; padding-left: 1.2em; }
