/* DBW ImmoSuite Frontend Styles */

:root {
	--dbw-primary: #2c3e50;
	--dbw-secondary: #34495e;
	--dbw-accent: #2573a7;
	--dbw-light: #ecf0f1;
	--dbw-text: #333;
	--dbw-gray: #5f6b6d;
	--dbw-white: #ffffff;
	--dbw-radius: 8px;
	--dbw-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--dbw-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
	--dbw-transition: all 0.3s ease;
	--dbw-border: #e0e0e0;
	--dbw-border-light: #f0f2f5;
	--dbw-bg-muted: #f0f2f5;
}

/* =========================================
   Reset & Scoped Inputs (High Specificity)
   ========================================= */
#dbw-immo-suite {
	box-sizing: border-box;
}

#dbw-immo-suite *,
#dbw-immo-suite *::before,
#dbw-immo-suite *::after {
	box-sizing: border-box;
}

/* Accessibility: visible focus for keyboard navigation */
#dbw-immo-suite a:focus-visible,
#dbw-immo-suite button:focus-visible,
#dbw-immo-suite input:focus-visible,
#dbw-immo-suite select:focus-visible,
#dbw-immo-suite textarea:focus-visible {
	outline: 2px solid var(--dbw-accent);
	outline-offset: 2px;
}

/* Overriding Theme Generics */
#dbw-immo-suite input[type="text"],
#dbw-immo-suite input[type="search"],
#dbw-immo-suite input[type="number"],
#dbw-immo-suite input[type="email"],
#dbw-immo-suite select,
#dbw-immo-suite textarea {
	border: 1px solid var(--dbw-border);
	/* Restore our border */
	border-radius: var(--dbw-radius);
	/* Restore our radius */
	padding: 10px 15px;
	max-width: 100%;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 1rem;
	line-height: normal;
	margin: 0;
}

/* Remove default focus outline if we have custom styles */
#dbw-immo-suite input:focus,
#dbw-immo-suite select:focus {
	outline: none;
	border-color: var(--dbw-accent);
}

/* Special case for Toolbar inputs which need no border */
#dbw-immo-suite .dbw-main-search-input {
	border: none !important;
	/* Force no border here inside the styled wrapper */
	padding: 4px 0;
	box-shadow: none;
	border-radius: 0;
}

#dbw-immo-suite .dbw-toolbar-select {
	border: none !important;
	background-color: transparent;
	padding-right: 1.5rem;
}

/* Grid Layout */
#dbw-immo-suite .dbw-property-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 2rem 0;
}

@media (max-width: 1024px) {
	#dbw-immo-suite .dbw-property-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	#dbw-immo-suite .dbw-property-grid {
		grid-template-columns: 1fr;
	}
}

/* Property Card */
#dbw-immo-suite .dbw-property-card {
	background: var(--dbw-white);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
}

#dbw-immo-suite .dbw-property-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--dbw-shadow-hover);
}

/* Entrance Animation */
@keyframes dbw-card-enter {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#dbw-immo-suite .dbw-property-card {
	opacity: 0;
}

#dbw-immo-suite .dbw-property-card.is-visible {
	animation: dbw-card-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delay for cards (set via JS inline style --delay) */
#dbw-immo-suite .dbw-property-card.is-visible {
	animation-delay: var(--stagger, 0ms);
}

/* Skip animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
	#dbw-immo-suite .dbw-property-card {
		opacity: 1;
	}
	#dbw-immo-suite .dbw-property-card.is-visible {
		animation: none;
	}
	/* Modal step transitions */
	.dbw-modal__step {
		animation: none !important;
	}
	.dbw-modal__progress-bar {
		transition: none;
	}
	/* Filter toggle */
	.dbw-filter-content {
		transition: none !important;
	}
	/* Lightbox fade */
	#dbwLightboxOverlay img {
		transition: none !important;
	}
	/* Intent card hover */
	.dbw-intent {
		transition: none !important;
	}
}

/* Lightbox button hover/focus (replaces inline JS handlers) */
.dbw-lightbox-btn:hover,
.dbw-lightbox-btn:focus-visible {
	background: rgba(255,255,255,0.2) !important;
}
.dbw-lightbox-btn--close:hover,
.dbw-lightbox-btn--close:focus-visible {
	background: rgba(255,255,255,0.1) !important;
}

/* Shimmer effect for image loading placeholder */
@keyframes dbw-shimmer {
	0% { background-position: -400px 0; }
	100% { background-position: 400px 0; }
}

#dbw-immo-suite .dbw-property-image {
	height: 280px;
	background: linear-gradient(90deg, var(--dbw-light) 25%, #e8ecef 50%, var(--dbw-light) 75%);
	background-size: 800px 100%;
	animation: dbw-shimmer 1.5s infinite linear;
	position: relative;
	display: block;
	text-decoration: none;
	overflow: hidden;
}

/* Stop shimmer once image has loaded */
#dbw-immo-suite .dbw-property-image:has(.dbw-card-img) {
	animation: none;
	background: var(--dbw-light);
}

/* Fallback for browsers without :has() — stop shimmer via JS class */
#dbw-immo-suite .dbw-property-image.has-image {
	animation: none;
	background: var(--dbw-light);
}

#dbw-immo-suite .dbw-property-image .dbw-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

#dbw-immo-suite .dbw-property-card:hover .dbw-card-img {
	transform: scale(1.04);
}

#dbw-immo-suite .dbw-card-img.dbw-grayscale {
	filter: grayscale(100%);
}

#dbw-immo-suite .dbw-property-image--placeholder {
	background-color: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#dbw-immo-suite .dbw-placeholder-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #999;
}

#dbw-immo-suite .dbw-placeholder-content svg {
	opacity: 0.4;
	color: #bbb;
}

#dbw-immo-suite .dbw-placeholder-content span {
	font-size: 0.85rem;
	font-weight: 500;
}

#dbw-immo-suite .dbw-property-tag {
	position: absolute;
	top: 20px;
	/* Moved to top */
	left: 20px;
	background: rgba(44, 62, 80, 0.85);
	/* Neutral Dark Blue */
	color: #fff;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
}

#dbw-immo-suite .dbw-property-tag.dbw-tag-buy {
	background: rgba(44, 62, 80, 0.9);
	/* Same premium dark, maybe slightly different tone if needed, but keeping neutral */
	color: #fff;
}

#dbw-immo-suite .dbw-property-tag.dbw-tag-rent {
	background: rgba(44, 62, 80, 0.9);
	color: #fff;
}

#dbw-immo-suite .dbw-property-tag.dbw-tag-sold {
	background: #e74c3c;
	color: #fff;
}

#dbw-immo-suite .dbw-property-tag.dbw-tag-reference {
	background: #27ae60;
	color: #fff;
}

#dbw-immo-suite .dbw-property-tag.dbw-tag-reserved {
	background: #f39c12;
	color: #fff;
}

#dbw-immo-suite .dbw-energy-flag {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	padding: 0 15px 0 10px;
	font-weight: bold;
	font-size: 14px;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
	z-index: 1;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#dbw-immo-suite .dbw-highlights-energy .dbw-energy-flag {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#dbw-immo-suite .dbw-sales-date {
	display: block;
	font-size: 0.85rem;
	color: #767676;
	margin-top: 5px;
	font-weight: 500;
}

#dbw-immo-suite .dbw-property-content {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

#dbw-immo-suite .dbw-card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

#dbw-immo-suite .dbw-property-title {
	font-size: 1.35rem;
	/* Larger title */
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
	color: var(--dbw-primary);
}

#dbw-immo-suite .dbw-property-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

#dbw-immo-suite .dbw-property-title a:hover {
	color: var(--dbw-accent);
}

#dbw-immo-suite .dbw-property-address {
	display: flex;
	align-items: center;
	color: #767676;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
	gap: 6px;
	font-weight: 500;
}

/* =========================================
   META GRID (2x2)
   ========================================= */
#dbw-immo-suite .dbw-card-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: auto;
	/* Push to bottom of body */
	padding-top: 1rem;
	border-top: 1px solid #f5f5f5;
	/* Subtle separation */
}

#dbw-immo-suite .dbw-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

#dbw-immo-suite .dbw-meta-icon {
	width: 36px;
	height: 36px;
	background: var(--dbw-bg-muted);
	border-radius: 8px;
	/* Softer shape */
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dbw-primary);
	flex-shrink: 0;
	transition: background 0.2s;
}

#dbw-immo-suite .dbw-property-card:hover .dbw-meta-icon {
	background: var(--dbw-bg-muted);
	color: var(--dbw-primary);
}

#dbw-immo-suite .dbw-meta-icon svg {
	width: 20px;
	height: 20px;
}

#dbw-immo-suite .dbw-meta-data {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

#dbw-immo-suite .dbw-meta-value {
	font-weight: 700;
	color: var(--dbw-text);
	font-size: 0.95rem;
}

#dbw-immo-suite .dbw-meta-label {
	font-size: 0.7rem;
	color: #767676;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

/* =========================================
   CARD FOOTER (Price & CTA)
   ========================================= */
/* =========================================
   CARD FOOTER (Price & CTA)
   ========================================= */
#dbw-immo-suite .dbw-card-footer {
	padding: 1.25rem 1.5rem;
	border-top: none;
	/* Removed border for cleaner look */
	background: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	position: relative;
}

/* Optional: Add a subtle gradient line at top */
#dbw-immo-suite .dbw-card-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 1.5rem;
	right: 1.5rem;
	height: 1px;
	background: #f0f0f0;
}

#dbw-immo-suite .dbw-property-price {
	display: flex;
	flex-direction: column;
}

#dbw-immo-suite .dbw-price-label {
	font-size: 0.7rem;
	color: #767676;
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#dbw-immo-suite .dbw-price-value {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--dbw-primary);
	line-height: 1;
}

#dbw-immo-suite .dbw-button-expose {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--dbw-primary);
	/* Solid Primary */
	border: 1px solid var(--dbw-primary);
	color: #fff;
	padding: 10px 20px;
	border-radius: 50px;
	/* Pill shape */
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

#dbw-immo-suite .dbw-button-expose:hover {
	background: var(--dbw-accent);
	border-color: var(--dbw-accent);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

#dbw-immo-suite .dbw-button-expose::after {
	content: '\f178';
	/* Long arrow right from dashicons/fa? Using simple Dashicon or similar? */
	/* Since we don't have FA loaded reliably, let's use a simple arrow char or leave mostly text */
	content: '→';
	margin-left: 6px;
	font-size: 1.1em;
	transition: margin-left 0.2s;
}

#dbw-immo-suite .dbw-button-expose:hover::after {
	margin-left: 10px;
}

/* Single Property */
/* Single Property */
#dbw-immo-suite.dbw-single-property-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
	box-sizing: border-box;
	overflow: visible;
}

#dbw-immo-suite .dbw-single-header {
	margin-bottom: 2rem;
}

#dbw-immo-suite .dbw-single-title {
	font-size: 2.5rem;
	color: var(--dbw-primary);
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

#dbw-immo-suite .dbw-single-address {
	color: var(--dbw-gray);
	font-size: 1.2rem;
}

#dbw-immo-suite .dbw-gallery-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1rem;
	height: 500px;
	margin-bottom: 3rem;
}

#dbw-immo-suite .dbw-gallery-main {
	background: var(--dbw-light);
	border-radius: var(--dbw-radius);
	overflow: hidden;
}

#dbw-immo-suite .dbw-gallery-side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#dbw-immo-suite .dbw-gallery-item {
	background: var(--dbw-light);
	border-radius: var(--dbw-radius);
	flex: 1;
}

#dbw-immo-suite .dbw-details-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3rem;
	align-items: start;
}

#dbw-immo-suite .dbw-main-col,
#dbw-immo-suite .dbw-sidebar {
	min-width: 0;
}

#dbw-immo-suite .dbw-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

#dbw-immo-suite .dbw-description img {
	max-width: 100%;
	height: auto;
}

#dbw-immo-suite .dbw-description table {
	max-width: 100%;
	overflow-x: auto;
	display: block;
}

/* Section Entrance Animation (Single Property — main column only, not sidebar) */
@keyframes dbw-fade-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#dbw-immo-suite .dbw-main-col .dbw-section {
	opacity: 0;
}

#dbw-immo-suite .dbw-main-col .dbw-section.is-visible {
	animation: dbw-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#dbw-immo-suite .dbw-section {
	margin-bottom: 3rem;
}

@media (prefers-reduced-motion: reduce) {
	#dbw-immo-suite .dbw-main-col .dbw-section {
		opacity: 1;
	}
	#dbw-immo-suite .dbw-main-col .dbw-section.is-visible {
		animation: none;
	}
}

#dbw-immo-suite .dbw-section-title {
	font-size: 1.5rem;
	border-bottom: 2px solid var(--dbw-light);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
	color: var(--dbw-secondary);
}

#dbw-immo-suite .dbw-features-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

#dbw-immo-suite .dbw-feature-item {
	background: #f8f9fa;
	padding: 1rem;
	border-radius: var(--dbw-radius);
}

#dbw-immo-suite .dbw-agent-card {
	background: var(--dbw-white);
	padding: 2rem;
	border-radius: var(--dbw-radius);
	box-shadow: var(--dbw-shadow);
	border: 1px solid var(--dbw-border-light);
}

@media (max-width: 768px) {
	#dbw-immo-suite .dbw-gallery-grid {
		grid-template-columns: 1fr;
		height: auto;
	}

	#dbw-immo-suite .dbw-details-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   List View Extensions
   ========================================= */

/* =========================================
   List View Extensions
   ========================================= */

/* Filter Container */
#dbw-immo-suite .dbw-filter-container {
	background: #fff;
	border-radius: var(--dbw-radius);
	margin-bottom: 2rem;
	border: 1px solid var(--dbw-border);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	overflow: visible;
	position: relative;
	transition: all 0.3s ease;
}

#dbw-immo-suite .dbw-filter-container.is-expanded {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* 1. Main Toolbar (Always Visible) */
#dbw-immo-suite .dbw-filter-toolbar {
	display: flex;
	align-items: stretch;
	/* Stretch items to full height */
	padding: 0.5rem;
	/* Reduced padding, using internal spacing */
	background: #fff;
	border-radius: var(--dbw-radius);
	/* gap: 0; No gap, we use dividers */
	flex-wrap: nowrap;
	/* Attempt to keep single line on desktop */
}

@media (max-width: 900px) {
	#dbw-immo-suite .dbw-filter-toolbar {
		flex-wrap: wrap;
		gap: 0.5rem;
		padding: 1rem;
	}

	#dbw-immo-suite .dbw-toolbar-divider {
		display: none;
	}

	#dbw-immo-suite .dbw-toolbar-item {
		flex-basis: 100%;
		border-bottom: 1px solid var(--dbw-border-light);
		padding-bottom: 0.5rem;
		margin-bottom: 0.5rem;
	}

	#dbw-immo-suite .dbw-toolbar-item:last-of-type {
		border-bottom: none;
		margin-bottom: 0;
	}
}

/* Expanded state needs bottom border on toolbar if content is visible */
#dbw-immo-suite .is-expanded .dbw-filter-toolbar {
	border-bottom: 1px solid var(--dbw-border-light);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Toolbar Items (Selects & Inputs) */
/* Toolbar Items (Selects & Inputs) */
#dbw-immo-suite .dbw-toolbar-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1rem;
	position: relative;
	flex-grow: 1;
	min-width: 120px;
}

#dbw-immo-suite .dbw-toolbar-label {
	font-size: 0.7rem;
	font-weight: 700;
	color: #767676;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

/* Custom Select Styling to look like text */
/* Custom Select Styling to look like text */
#dbw-immo-suite .dbw-toolbar-select {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background: transparent;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--dbw-text);
	width: 100%;
	cursor: pointer;
	padding-right: 1.5rem;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 12px;
}

#dbw-immo-suite .dbw-toolbar-select:focus {
	outline: none;
	color: var(--dbw-primary);
}

/* Divider */
/* Divider */
#dbw-immo-suite .dbw-toolbar-divider {
	width: 1px;
	background-color: #e0e0e0;
	margin: 10px 0;
}

/* Search Input Area */
#dbw-immo-suite .dbw-search-input-wrapper {
	flex: 2;
}

#dbw-immo-suite .dbw-input-inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

#dbw-immo-suite .dbw-input-inner .dashicons {
	color: var(--dbw-primary);
	font-size: 1.1rem;
	height: auto;
	width: auto;
}

#dbw-immo-suite .dbw-main-search-input {
	width: 100%;
	border: none;
	font-size: 1rem;
	color: var(--dbw-text);
	padding: 4px 0;
	outline: none;
	background: transparent;
	font-weight: 600;
}

#dbw-immo-suite .dbw-main-search-input::placeholder {
	color: #bdc3c7;
	font-weight: 400;
}

/* Toolbar Actions (Buttons) */
#dbw-immo-suite .dbw-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 1.5rem;
	border-left: 1px solid #f0f0f0;
	/* Clear separation for actions */
	margin-left: 0.5rem;
}

/* Filter Toggle Button (Secondary) - FIXED */
#dbw-immo-suite .dbw-filter-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #dfe6e9;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	/* Circle */
	cursor: pointer;
	color: var(--dbw-secondary);
	transition: all 0.2s ease;
	padding: 0;
	/* Reset padding for perfect centering */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#dbw-immo-suite .dbw-filter-toggle-btn:hover,
#dbw-immo-suite .is-expanded .dbw-filter-toggle-btn {
	background: #f8f9fa;
	border-color: var(--dbw-primary);
	color: var(--dbw-primary);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

#dbw-immo-suite .dbw-filter-toggle-btn .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	line-height: 1;
	transition: transform 0.3s ease;
	/* Animate rotation */
}

/* Rotate icon when expanded */
#dbw-immo-suite .is-expanded .dbw-filter-toggle-btn .dashicons {
	transform: rotate(180deg);
}


/* Suchen Button (Primary) */
#dbw-immo-suite .dbw-main-search-submit {
	background: var(--dbw-primary);
	color: #fff;
	border: none;
	height: 48px;
	padding: 0 32px;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#dbw-immo-suite .dbw-main-search-submit:hover {
	background: var(--dbw-secondary);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(44, 62, 80, 0.3);
}


/* 2. Collapsible Content (Advanced Filters) */
#dbw-immo-suite .dbw-filter-content {
	background: #fdfdfd;
	padding: 0 1.5rem;
	border-bottom-left-radius: var(--dbw-radius);
	border-bottom-right-radius: var(--dbw-radius);
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.25s ease,
	            padding 0.35s ease;
}

#dbw-immo-suite .dbw-filter-container.is-expanded .dbw-filter-content {
	max-height: 400px;
	opacity: 1;
	padding: 1.5rem;
}

#dbw-immo-suite .dbw-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	align-items: end;
	margin-bottom: 0;
}

#dbw-immo-suite .dbw-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

#dbw-immo-suite .dbw-filter-group label {
	font-size: 0.8rem;
	font-weight: 700;
	color: #767676;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#dbw-immo-suite .dbw-filter-double .dbw-input-group {
	display: flex;
	gap: 0.5rem;
}

#dbw-immo-suite .dbw-filter-double input {
	width: 50%;
}

#dbw-immo-suite .dbw-filter-select,
#dbw-immo-suite .dbw-filter-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--dbw-border);
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	transition: border 0.2s;
}

#dbw-immo-suite .dbw-filter-select:focus,
#dbw-immo-suite .dbw-filter-group input:focus {
	border-color: var(--dbw-accent);
	outline: none;
}

#dbw-immo-suite .dbw-filter-footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
	text-align: right;
}

#dbw-immo-suite .dbw-filter-reset {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--dbw-gray);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
}

#dbw-immo-suite .dbw-filter-reset:hover {
	color: var(--dbw-primary);
}


/* Archive Header */
#dbw-immo-suite .dbw-archive-header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--dbw-border-light);
}

#dbw-immo-suite .dbw-result-count {
	font-size: 1.1rem;
	color: var(--dbw-text);
}

/* View Switcher */
#dbw-immo-suite .dbw-view-switcher {
	display: flex;
	background: #f1f2f6;
	padding: 3px;
	border-radius: 6px;
	gap: 2px;
}

#dbw-immo-suite .dbw-view-btn {
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 4px;
	color: #767676;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

#dbw-immo-suite .dbw-view-btn:hover {
	color: var(--dbw-primary);
}

#dbw-immo-suite .dbw-view-btn.active {
	background: #fff;
	color: var(--dbw-primary);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dbw-immo-suite .dbw-view-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

#dbw-immo-suite .dbw-sort-select {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: white;
	color: var(--dbw-text);
}


/* Status Tags (Overlay) */
/* CSS Cleanup: Removed redundant status tags */


/* =========================================
   LIST VIEW OVERRIDES
   ========================================= */

/* Switch Grid to 1 Column */
#dbw-immo-suite .dbw-property-grid.is-list-view {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	/* Force full width on cross axis */
	gap: 1.5rem;
	width: 100% !important;
	/* Force full width */
	max-width: 100% !important;
}

/* Horizontal Card Layout */
#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-card {
	flex-direction: row;
	height: auto;
	/* Allow auto height */
	min-height: 220px;
	width: 100% !important;
	/* Force full width */
	max-width: none !important;
	/* Remove any max-width constraints */
}

#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-image {
	width: 40%;
	height: auto;
	min-height: 220px;
}

/* In list view, image must fill the container absolutely (not stretch the card) */
#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-image .dbw-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-content {
	width: 60%;
	padding: 0;
	justify-content: space-between;
	flex-direction: row;
	/* Horizontal split */
	flex-wrap: wrap;
	/* Allow wrapping */
}

/* Restructure Grid for List View */
#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-body {
	width: 65%;
	/* Main Content Left */
	border-right: 1px solid var(--dbw-border-light);
	/* Divider */
	padding: 2rem;
}

#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-footer {
	width: 35%;
	/* Price/Action on the right */
	border-top: none;
	flex-direction: column;
	justify-content: center;
	background: #fcfcfc;
	padding: 2rem;
	gap: 1rem;
	align-items: flex-start;
}

/* List View Title/Meta adjustments */
#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-meta-grid {
	grid-template-columns: 1fr 1fr 1fr 1fr;
	/* 4 columns for horizontal space */
	margin-top: 1.5rem;
}

/* List View Price/Btn adjustments */
#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-price-value {
	font-size: 1.6rem;
	margin-bottom: 0.5rem;
}

#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-button-expose {
	width: 100%;
	text-align: center;
}

/* Responsive adjustment for List View on mobile */
@media (max-width: 768px) {
	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-card {
		flex-direction: column;
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-image {
		width: 100%;
		height: 250px;
		aspect-ratio: auto;
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-property-content {
		width: 100%;
		flex-direction: column;
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-body {
		width: 100%;
		border-right: none;
		padding: 1.5rem;
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-footer {
		width: 100%;
		border-top: 1px solid var(--dbw-border-light);
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 1rem 1.5rem;
		background: #fff;
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-card-meta-grid {
		grid-template-columns: 1fr 1fr;
		/* Back to 2 columns on mobile */
	}

	#dbw-immo-suite .dbw-property-grid.is-list-view .dbw-button-expose {
		width: auto;
	}
}

/* Pagination */
#dbw-immo-suite .dbw-pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

#dbw-immo-suite .dbw-page-list {
	display: flex;
	list-style: none;
	padding: 0;
	gap: 0.5rem;
	margin: 0;
}

#dbw-immo-suite .dbw-page-item .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: white;
	border: 1px solid var(--dbw-border-light);
	color: var(--dbw-text);
	text-decoration: none;
	font-weight: 600;
	transition: var(--dbw-transition);
}

#dbw-immo-suite .dbw-page-item .page-numbers.current,
#dbw-immo-suite .dbw-page-item .page-numbers:hover {
	background: var(--dbw-primary);
	color: white;
	border-color: var(--dbw-primary);
}

/* =========================================
   SINGLE: Gallery Slider
   ========================================= */
#dbw-immo-suite .dbw-gallery-wrapper {
	position: relative;
	margin-bottom: 2rem;
	max-width: 100%;
	overflow: hidden;
}

#dbw-immo-suite .dbw-gallery-btn {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	transition: all 0.3s ease;
	color: #333;
}

#dbw-immo-suite .dbw-gallery-btn:hover {
	background: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
	color: var(--dbw-primary);
}

#dbw-immo-suite .dbw-gallery-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: var(--dbw-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	height: 500px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

#dbw-immo-suite .dbw-gallery-slider::-webkit-scrollbar {
	display: none;
}

#dbw-immo-suite .dbw-gallery-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
	background-color: #f0f0f0;
	cursor: pointer;
	border: none;
	padding: 0;
	font: inherit;
	text-align: left;
}

#dbw-immo-suite .dbw-gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#dbw-immo-suite .dbw-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.8);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 1;
	transition: background 0.2s;
}

#dbw-immo-suite .dbw-gallery-nav:hover {
	background: #fff;
}

#dbw-immo-suite .dbw-gallery-nav--prev {
	left: 20px;
}

#dbw-immo-suite .dbw-gallery-nav--next {
	right: 20px;
}

#dbw-immo-suite .dbw-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	overflow-x: auto;
	padding-bottom: 5px;
}

#dbw-immo-suite .dbw-gallery-thumb {
	flex: 0 0 80px;
	height: 60px;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	opacity: 0.7;
	transition: opacity 0.2s;
	border: none;
	padding: 0;
	background: none;
}

#dbw-immo-suite .dbw-gallery-thumb:hover {
	opacity: 1;
}

#dbw-immo-suite .dbw-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================
   SINGLE: Infrastructure List
   ========================================= */
#dbw-immo-suite .dbw-infra-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0;
	list-style: none;
}

#dbw-immo-suite .dbw-infra-item {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid var(--dbw-border-light);
	padding: 5px 0;
}

/* =========================================
   SINGLE: Feature Badges
   ========================================= */
#dbw-immo-suite .dbw-feature-badge {
	background: var(--dbw-bg-muted);
	color: var(--dbw-text);
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: background 0.2s;
}

#dbw-immo-suite .dbw-feature-badge:hover {
	background: #e8eaed;
}

/* =========================================
   SINGLE: Energy Scale
   ========================================= */
#dbw-immo-suite .dbw-energy-container {
	background: #f5f5f5;
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
	container-type: inline-size;
}

#dbw-immo-suite .dbw-energy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

#dbw-immo-suite .dbw-energy-item {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 8px;
}

#dbw-immo-suite .dbw-energy-item span {
	color: #666;
	font-size: 0.9rem;
}

#dbw-immo-suite .dbw-energy-item strong {
	color: #333;
	font-size: 0.95rem;
}

#dbw-immo-suite .dbw-scale-bar {
	display: flex;
	height: 28px;
	border-radius: 14px;
	overflow: hidden;
}

#dbw-immo-suite .dbw-scale-segment {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.9);
	font-weight: bold;
	font-size: 0.8rem;
	position: relative;
}

#dbw-immo-suite .dbw-scale-segment:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, 0.4);
}

#dbw-immo-suite .dbw-scale-indicator {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: left 0.3s ease;
}

#dbw-immo-suite .dbw-scale-indicator svg {
	width: 16px;
	height: 16px;
	fill: #333;
}

@container (max-width: 500px) {
	#dbw-immo-suite .dbw-energy-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* =========================================
   SINGLE: Energy Cost Estimation
   ========================================= */
#dbw-immo-suite .dbw-ecost-box {
	background: #fff;
	border: 1px solid var(--dbw-border, #e0e0e0);
	border-radius: var(--dbw-radius, 8px);
	padding: 1.5rem;
	margin-top: 1.5rem;
}

#dbw-immo-suite .dbw-ecost-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--dbw-primary, #2c3e50);
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--dbw-accent, #2573a7);
}

#dbw-immo-suite .dbw-ecost-icon {
	color: var(--dbw-accent, #2573a7);
	flex-shrink: 0;
}

#dbw-immo-suite .dbw-ecost-result {
	text-align: center;
	padding: 1rem 0;
}

#dbw-immo-suite .dbw-ecost-monthly {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--dbw-accent, #2573a7);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

#dbw-immo-suite .dbw-ecost-yearly {
	font-size: 0.95rem;
	color: var(--dbw-gray, #666);
	margin-top: 0.25rem;
	font-variant-numeric: tabular-nums;
}

#dbw-immo-suite .dbw-ecost-details {
	border-top: 1px solid var(--dbw-border-light, #f0f2f5);
	padding-top: 0.75rem;
	margin-top: 0.5rem;
}

#dbw-immo-suite .dbw-ecost-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
	font-size: 0.88rem;
	color: var(--dbw-text, #333);
}

#dbw-immo-suite .dbw-ecost-detail-row + .dbw-ecost-detail-row {
	border-top: 1px solid var(--dbw-border-light, #f0f2f5);
}

#dbw-immo-suite .dbw-ecost-detail-row strong {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

#dbw-immo-suite .dbw-ecost-note {
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--dbw-gray, #666);
}

/* Positive hint (only shown when below average — never negative framing) */
#dbw-immo-suite .dbw-ecost-positive-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #e8f5e9;
	border-radius: var(--dbw-radius, 8px);
	font-size: 0.85rem;
	font-weight: 600;
	color: #2e7d32;
}

#dbw-immo-suite .dbw-ecost-positive-hint svg {
	flex-shrink: 0;
	color: #2e7d32;
}

#dbw-immo-suite .dbw-ecost-solar-hint {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #e8f5e9;
	border-radius: var(--dbw-radius, 8px);
	font-size: 0.88rem;
	color: #2e7d32;
	font-weight: 600;
}

/* Slider */
#dbw-immo-suite .dbw-ecost-slider-group {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--dbw-border-light, #f0f2f5);
}

#dbw-immo-suite .dbw-ecost-slider-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
}

#dbw-immo-suite .dbw-ecost-slider-header label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--dbw-text, #333);
}

#dbw-immo-suite .dbw-ecost-output {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--dbw-accent, #2573a7);
	font-variant-numeric: tabular-nums;
}

#dbw-immo-suite .dbw-ecost-disclaimer {
	font-size: 0.78rem;
	color: var(--dbw-gray, #666);
	line-height: 1.5;
	margin: 1rem 0 0;
	text-align: center;
}

/* Responsive */
@container (max-width: 500px) {
	#dbw-immo-suite .dbw-ecost-monthly {
		font-size: 1.3rem;
	}

	#dbw-immo-suite .dbw-ecost-detail-row {
		font-size: 0.82rem;
	}
}

/* Print: hide energy calculator slider + interactive elements */
@media print {
	.dbw-ecost-slider-group,
	.dbw-ecost-disclaimer {
		display: none !important;
	}
}

/* =========================================
   SINGLE: Map
   ========================================= */
/* Map Consent Placeholder (DSGVO) */
#dbw-immo-suite .dbw-map-placeholder {
	height: 350px;
	border-radius: var(--dbw-radius);
	margin: 1.5rem 0;
	background: var(--dbw-bg-muted);
	border: 2px dashed var(--dbw-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

#dbw-immo-suite .dbw-map-placeholder__inner {
	text-align: center;
	padding: 2rem;
	color: var(--dbw-gray);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#dbw-immo-suite .dbw-map-placeholder__inner svg {
	color: var(--dbw-accent);
	margin-bottom: 0.75rem;
}

#dbw-immo-suite .dbw-map-placeholder__text {
	font-size: 1rem;
	margin: 0 0 1rem;
	color: var(--dbw-text);
}

#dbw-immo-suite .dbw-map-placeholder__btn {
	margin-bottom: 0.75rem;
}

#dbw-immo-suite .dbw-map-placeholder__hint {
	font-size: 0.78rem;
	color: var(--dbw-gray);
	margin: 0;
}

#dbw-immo-suite #dbw-map {
	height: 350px;
	border-radius: var(--dbw-radius);
	margin: 1.5rem 0;
	z-index: 0;
}

@media (max-width: 768px) {
	#dbw-immo-suite .dbw-map-placeholder,
	#dbw-immo-suite #dbw-map {
		height: 250px;
	}
}

/* =========================================
   SINGLE: CTA Buttons
   ========================================= */
#dbw-immo-suite .dbw-cta-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 1rem 0;
}

#dbw-immo-suite .dbw-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: var(--dbw-radius, 8px);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	transition: transform 0.1s, box-shadow 0.2s;
	line-height: 1.4;
}

#dbw-immo-suite .dbw-cta--primary {
	background: var(--dbw-accent, #3498db);
	color: #fff;
	box-shadow: 0 4px 14px rgba(52, 152, 219, 0.3);
}

#dbw-immo-suite .dbw-cta--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#dbw-immo-suite .dbw-cta--secondary {
	background: #fff;
	color: var(--dbw-text, #333);
	border: 1.5px solid #ddd;
}

#dbw-immo-suite .dbw-cta--secondary:hover {
	border-color: var(--dbw-accent, #3498db);
	color: var(--dbw-accent, #3498db);
}

#dbw-immo-suite .dbw-cta__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

#dbw-immo-suite .dbw-phone-link {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 768px) {
	#dbw-immo-suite .dbw-phone-link {
		text-decoration: underline;
		text-decoration-style: dotted;
		text-underline-offset: 3px;
	}
}

.dbw-cta-phone {
	display: block;
	text-align: center;
	margin-top: 4px;
	font-size: 0.85rem;
	color: #666;
	text-decoration: none;
}

.dbw-cta-phone:hover {
	color: var(--dbw-accent, #3498db);
	text-decoration: underline;
}

/* =========================================
   WhatsApp Button
   ========================================= */
#dbw-immo-suite .dbw-cta--whatsapp {
	background: #25D366;
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

#dbw-immo-suite .dbw-cta--whatsapp:hover {
	background: #1DA851;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

#dbw-immo-suite .dbw-cta--icon-only {
	flex: 0 0 auto;
	width: 44px;
	padding: 10px;
}

/* Floating Button */
.dbw-whatsapp-floating {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
	text-decoration: none;
	animation: dbw-wa-entrance 0.4s ease-out 1s both;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dbw-whatsapp-floating:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
	color: #fff;
}

.dbw-whatsapp-floating::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(37, 211, 102, 0.4);
	animation: dbw-wa-pulse 2s ease-out infinite;
}

@keyframes dbw-wa-entrance {
	from { transform: scale(0); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes dbw-wa-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.dbw-whatsapp-floating {
		animation: none;
	}
	.dbw-whatsapp-floating::after {
		animation: none;
		display: none;
	}
}

/* Hide floating button when modal is open */
body:has(dialog[open]) .dbw-whatsapp-floating {
	display: none;
}

/* Mobile: shift above sticky bar */
@media (max-width: 768px) {
	.dbw-whatsapp-floating {
		bottom: 80px;
	}
}

/* Success screen link */
.dbw-whatsapp-success-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #25D366;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	margin-top: 6px;
}

.dbw-whatsapp-success-link:hover {
	text-decoration: underline;
}

/* =========================================
   Contact Modal (native <dialog>)
   ========================================= */
.dbw-modal {
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	border: none;
	padding: 0;
	border-radius: 16px;
	max-width: 560px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.dbw-modal::backdrop {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.dbw-modal__form {
	display: flex;
	flex-direction: column;
	max-height: 90vh;
}

/* Header */
.dbw-modal__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--dbw-border-light);
	position: relative;
}

.dbw-modal__thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.dbw-modal__header-text {
	flex: 1;
	min-width: 0;
}

.dbw-modal__eyebrow {
	font-size: 0.75rem;
	color: #888;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dbw-modal__title {
	font-size: 1.05rem;
	margin: 2px 0 0;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dbw-modal__quickfacts {
	margin: 4px 0 0;
	font-size: 0.82rem;
	color: #888;
}

.dbw-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.8rem;
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	line-height: 1;
}

.dbw-modal__close:hover {
	background: #f5f5f5;
}

.dbw-modal__close:focus-visible {
	outline: none;
	background: #eee;
}

/* Progress Bar */
.dbw-modal__progress {
	height: 3px;
	background: var(--dbw-border-light);
}

.dbw-modal__progress-bar {
	height: 100%;
	background: var(--dbw-accent, #3498db);
	border-radius: 3px;
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dbw-modal__progress-bar[data-step="1"] { width: 50%; }
.dbw-modal__progress-bar[data-step="2"] { width: 100%; }
.dbw-modal__progress-bar[data-step="3"] { width: 100%; }

/* Steps Container */
.dbw-modal__steps {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.dbw-modal__step {
	display: none;
	flex-direction: column;
	height: 100%;
	animation: dbw-step-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dbw-modal__step.is-active {
	display: flex;
}

@keyframes dbw-step-enter {
	from { opacity: 0; transform: translateX(30px); }
	to { opacity: 1; transform: translateX(0); }
}

.dbw-step__content {
	padding: 24px 32px 16px;
	overflow-y: auto;
	flex: 1;
}

.dbw-step__title {
	font-size: 1.2rem;
	margin: 0 0 4px;
	color: var(--dbw-primary);
}

.dbw-step__subtitle {
	font-size: 0.88rem;
	color: #888;
	margin: 0 0 20px;
}

.dbw-step__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	padding: 4px 0;
	margin-bottom: 12px;
	font-size: 0.85rem;
	font-family: inherit;
	transition: color 0.15s;
	outline: none;
}

.dbw-step__back:hover {
	color: var(--dbw-text);
}

.dbw-step__back:focus-visible {
	color: var(--dbw-text);
}

/* Body (legacy compat) */
.dbw-modal__body {
	padding: 18px 24px 8px;
	overflow-y: auto;
	flex: 1;
}

/* Fieldsets */
.dbw-field {
	border: 0;
	padding: 0;
	margin: 0 0 20px;
}

.dbw-field legend {
	font-size: 0.78rem;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 10px;
	padding: 0;
}

.dbw-field__label {
	display: block;
	margin-bottom: 14px;
}

.dbw-field__label > span {
	display: block;
	font-size: 0.88rem;
	color: #444;
	margin-bottom: 4px;
}

.dbw-modal .dbw-input,
.dbw-modal input[type="text"],
.dbw-modal input[type="email"],
.dbw-modal input[type="tel"],
.dbw-modal input[type="date"],
.dbw-modal textarea,
.dbw-modal select {
	width: 100% !important;
	max-width: 100% !important;
	padding: 11px 14px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: #fff;
	box-sizing: border-box;
}

.dbw-modal input:focus,
.dbw-modal textarea:focus,
.dbw-modal select:focus {
	outline: none;
	border-color: var(--dbw-accent, #3498db);
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dbw-field textarea {
	resize: vertical;
}

/* Intent Cards (Typeform-style) */
.dbw-intent-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.dbw-intent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 20px 12px 16px;
	border: 2px solid #eee;
	border-radius: 14px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
	text-align: center;
	font-family: inherit;
	font-size: inherit;
	background: #fff;
	position: relative;
}

.dbw-intent input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dbw-intent:hover {
	border-color: var(--dbw-accent, #3498db);
	background: #f8fbff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dbw-intent.is-selected,
.dbw-intent:has(input:checked) {
	border-color: var(--dbw-accent, #3498db);
	background: #f0f7fe;
	box-shadow: 0 0 0 1px var(--dbw-accent, #3498db) inset;
	transform: scale(0.97);
}

.dbw-intent__icon {
	color: var(--dbw-accent, #3498db);
	margin-bottom: 2px;
}

.dbw-intent__icon svg {
	width: 32px;
	height: 32px;
}

.dbw-intent__label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--dbw-text, #333);
}

.dbw-intent__desc {
	font-size: 0.78rem;
	color: #999;
	font-weight: 400;
}

/* Pill group (financing options) */
.dbw-pill-group {
	display: flex;
	gap: 8px;
}

.dbw-pill {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border: 1.5px solid #e5e5e5;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.15s;
	text-align: center;
}

.dbw-pill input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dbw-pill:has(input:checked) {
	border-color: var(--dbw-accent, #3498db);
	background: #f0f7fe;
	font-weight: 600;
}

.dbw-pill:hover {
	border-color: var(--dbw-accent, #3498db);
	background: #f8fbff;
}

/* Context fields (intent-specific, animated reveal) */
.dbw-field--context:not([hidden]) {
	animation: dbw-slide-in 0.25s ease;
}

@keyframes dbw-slide-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.dbw-context-row {
	display: flex;
	gap: 8px;
}

.dbw-context-row > * {
	flex: 1;
}

/* Privacy checkbox */
.dbw-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.82rem;
	color: #555;
	margin: 4px 0 18px;
	cursor: pointer;
}

.dbw-privacy input {
	margin-top: 3px;
}

.dbw-privacy a {
	color: var(--dbw-accent, #3498db);
}

/* Honeypot */
.dbw-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit area */
.dbw-modal__submit {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 32px;
	border-top: 1px solid var(--dbw-border-light);
	background: #fafafa;
	position: sticky;
	bottom: 0;
}

.dbw-modal__submit .dbw-btn--primary {
	flex: 1;
}

.dbw-phone-fallback {
	font-size: 0.85rem;
	color: #666;
	text-decoration: none;
	white-space: nowrap;
}

.dbw-phone-fallback:hover {
	color: var(--dbw-accent, #3498db);
}

/* Buttons */
.dbw-btn {
	padding: 11px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	transition: all 0.15s;
}

.dbw-btn--primary {
	background: var(--dbw-accent, #3498db);
	color: #fff;
}

.dbw-btn--primary:hover {
	filter: brightness(1.1);
}

.dbw-btn--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dbw-btn--ghost {
	background: transparent;
	color: #555;
}

.dbw-btn--ghost:hover {
	background: #eee;
}

/* Error message */
.dbw-modal__error {
	background: #f8d7da;
	color: #721c24;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.9rem;
	margin-bottom: 10px;
}

/* Success state */
.dbw-success {
	text-align: center;
	padding: 16px 8px;
}

.dbw-success__check {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
}

.dbw-success__check svg {
	width: 100%;
	height: 100%;
}

.dbw-success__check circle {
	stroke-dasharray: 157;
	stroke-dashoffset: 157;
	animation: dbw-circle 0.6s ease forwards;
}

.dbw-success__check path {
	stroke-dasharray: 60;
	stroke-dashoffset: 60;
	animation: dbw-check 0.4s 0.5s ease forwards;
}

@keyframes dbw-circle {
	to { stroke-dashoffset: 0; }
}

@keyframes dbw-check {
	to { stroke-dashoffset: 0; }
}

.dbw-success__title {
	font-size: 1.4rem;
	margin: 0 0 8px;
}

.dbw-success__title span {
	color: var(--dbw-accent, #3498db);
}

.dbw-success__msg {
	color: #555;
	line-height: 1.5;
	margin: 0 0 20px;
}

/* Agent card */
.dbw-success__agent {
	background: #f8fafe;
	border: 1px solid #e0eaff;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 18px;
	text-align: left;
}

.dbw-success__agent-hint {
	margin: 0 0 8px;
	font-size: 0.85rem;
	color: #666;
}

.dbw-success__agent-card {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dbw-success__agent-card img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.dbw-success__agent-card div {
	display: flex;
	flex-direction: column;
}

.dbw-success__agent-card strong {
	font-size: 0.95rem;
}

.dbw-success__agent-card a {
	color: var(--dbw-accent, #3498db);
	text-decoration: none;
	font-size: 0.85rem;
	margin-top: 2px;
}

.dbw-success__agent-card a:hover {
	text-decoration: underline;
}

/* Next steps */
.dbw-success__next {
	text-align: left;
	margin-bottom: 18px;
}

.dbw-success__next-title {
	font-size: 0.85rem;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 8px;
}

.dbw-success__steps {
	margin: 0;
	padding-left: 20px;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.6;
}

.dbw-success__steps li {
	margin-bottom: 4px;
}

/* Mobile: bottom sheet */
@media (max-width: 600px) {
	.dbw-modal {
		max-width: 100%;
		width: 100%;
		max-height: 85vh;
		border-radius: 16px 16px 0 0;
		margin: 0;
		margin-top: auto;
		position: fixed;
		inset: auto 0 0 0;
		animation: dbw-slide-up 0.3s ease-out;
	}

	@keyframes dbw-slide-up {
		from { transform: translateY(100%); }
		to { transform: translateY(0); }
	}

	.dbw-modal__submit {
		flex-direction: column-reverse;
		gap: 8px;
	}

	.dbw-modal__submit .dbw-btn--primary {
		width: 100%;
	}
}

/* Mobile sticky CTA bar */
.dbw-sticky-cta-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 12px 16px;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	gap: 10px;
	align-items: center;
	z-index: 100;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.dbw-sticky-cta-bar.is-visible {
	transform: translateY(0);
}

.dbw-sticky-cta-bar__price {
	font-weight: 700;
	font-size: 1.1rem;
	white-space: nowrap;
}

.dbw-sticky-cta-bar .dbw-cta {
	flex: 1;
}

.dbw-sticky-cta-bar .dbw-cta--compact {
	padding: 10px 14px;
	font-size: 0.95rem;
}

@media (min-width: 769px) {
	.dbw-sticky-cta-bar {
		display: none !important;
	}
}

/* =========================================
   SINGLE: Sidebar Sticky
   ========================================= */
#dbw-immo-suite .dbw-sidebar {
	position: sticky;
	top: 120px;
}

@media (max-width: 768px) {
	#dbw-immo-suite .dbw-sidebar {
		position: static;
	}

	#dbw-immo-suite .dbw-gallery-slider {
		height: 300px;
	}

	#dbw-immo-suite .dbw-infra-list {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   SINGLE: Similar Properties
   ========================================= */
#dbw-immo-suite .dbw-similar-properties {
	margin: 4rem auto 2rem;
	padding-top: 3rem;
}

#dbw-immo-suite .dbw-similar-properties .dbw-section-title {
	margin-bottom: 2rem;
	font-size: 1.5rem;
}

#dbw-immo-suite .dbw-similar-properties .dbw-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

/* =========================================
   SINGLE: Finance Calculator
   ========================================= */
.dbw-finance-calculator {
	scroll-margin-top: 100px;
}

/* Two-column card grid */
.dbw-calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

/* Cards */
.dbw-calc-card {
	background: #fff;
	border: 1px solid var(--dbw-border, #e0e0e0);
	border-radius: var(--dbw-radius, 8px);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
}

.dbw-calc-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--dbw-primary, #2c3e50);
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--dbw-accent, #2573a7);
}

.dbw-calc-card-header svg {
	color: var(--dbw-accent, #2573a7);
	flex-shrink: 0;
}

/* Nebenkosten rows */
.dbw-calc-rows {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.dbw-calc-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	font-size: 0.92rem;
	color: var(--dbw-text, #333);
	border-bottom: 1px solid var(--dbw-border-light, #f0f2f5);
}

.dbw-calc-row:last-child {
	border-bottom: none;
}

.dbw-calc-val {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: right;
}

.dbw-calc-pct {
	font-size: 0.78rem;
	color: var(--dbw-gray, #666);
	margin-left: 4px;
}

/* Total row */
.dbw-calc-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: auto;
	padding-top: 12px;
	border-top: 2px solid var(--dbw-primary, #2c3e50);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--dbw-primary, #2c3e50);
}

.dbw-calc-total-row span:last-child {
	font-variant-numeric: tabular-nums;
}

/* Sliders */
.dbw-calc-sliders {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.dbw-calc-slider-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dbw-calc-slider-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.dbw-calc-slider-header label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dbw-text, #333);
}

.dbw-calc-output {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--dbw-accent, #2573a7);
	font-variant-numeric: tabular-nums;
}

/* Range slider */
.dbw-calc-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 3px;
	outline: none;
	cursor: pointer;
	background: linear-gradient(
		to right,
		var(--dbw-accent, #2573a7) 0%,
		var(--dbw-accent, #2573a7) var(--fill, 20%),
		var(--dbw-border, #e0e0e0) var(--fill, 20%),
		var(--dbw-border, #e0e0e0) 100%
	);
}

.dbw-calc-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dbw-accent, #2573a7);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.dbw-calc-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dbw-accent, #2573a7);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

.dbw-calc-range:focus-visible {
	outline: 2px solid var(--dbw-accent);
	outline-offset: 4px;
}

/* Result box */
.dbw-calc-result {
	background: var(--dbw-bg-muted, #f0f2f5);
	border-radius: var(--dbw-radius, 8px);
	padding: 1.25rem;
	margin-top: auto;
}

.dbw-calc-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0;
	font-size: 0.92rem;
}

.dbw-calc-result-row + .dbw-calc-result-row {
	border-top: 1px solid var(--dbw-border-light, #e0e0e0);
}

.dbw-calc-result-row strong {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.dbw-calc-result-highlight {
	font-size: 1.05rem;
}

.dbw-calc-result-highlight strong {
	color: var(--dbw-accent, #2573a7);
	font-size: 1.1rem;
}

/* Disclaimer */
.dbw-calc-hinweis {
	font-size: 0.8rem;
	color: var(--dbw-gray, #666);
	line-height: 1.5;
	margin: 1rem 0 0;
	text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.dbw-calc-range,
	.dbw-calc-range::-webkit-slider-thumb,
	.dbw-calc-range::-moz-range-thumb {
		transition: none;
	}
}

/* Tablet: stack cards */
@media (max-width: 900px) {
	.dbw-calc-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.dbw-calc-card {
		padding: 1.25rem 1rem;
	}

	.dbw-calc-row {
		font-size: 0.85rem;
	}

	.dbw-calc-pct {
		display: block;
		margin-left: 0;
		margin-top: 1px;
	}

	.dbw-calc-result-row {
		font-size: 0.85rem;
	}

	.dbw-calc-result-highlight {
		font-size: 0.95rem;
	}
}

/* Print: hide calculator */
@media print {
	.dbw-finance-calculator {
		display: none !important;
	}
}

/* ==========================================================================
   Print Styles (Exposé Layout)
   ========================================================================== */
@media print {

	/* 1. Hide non-print elements */
	header, footer, nav,
	.site-header, .site-footer, #masthead, #colophon, .wpadminbar,
	.dbw-gallery-btn, .dbw-gallery-nav,
	.dbw-gallery-thumbs,
	.dbw-cta-stack,
	.dbw-modal,
	.dbw-sticky-cta-bar,
	.dbw-whatsapp-floating,
	.dbw-similar-properties,
	#dbw-map, .leaflet-container,
	#dbwLightboxOverlay,
	.dbw-filter-container, .dbw-archive-header-bar,
	.dbw-view-switcher, .dbw-sort-control,
	iframe, script {
		display: none !important;
	}

	/* 2. Reset page */
	body, html, #page, .site-main {
		background: #fff !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
	}

	@page {
		margin: 1.5cm;
		size: A4 portrait;
	}

	/* 3. Container reset */
	#dbw-immo-suite {
		width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* 4. Gallery → print grid */
	.dbw-gallery-wrapper {
		margin-bottom: 1.5cm !important;
	}

	.dbw-gallery-slider {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
		box-shadow: none !important;
	}

	.dbw-gallery-slide:first-child {
		height: 14cm !important;
		margin-bottom: 1.5rem !important;
		page-break-inside: avoid;
	}

	.dbw-gallery-slide:not(:first-child) {
		display: inline-block !important;
		width: 48% !important;
		height: 5.5cm !important;
		margin-right: 2% !important;
		margin-bottom: 0.5rem !important;
		vertical-align: top;
		page-break-inside: avoid;
	}

	.dbw-gallery-slide:nth-child(even):not(:first-child) {
		margin-right: 0 !important;
	}

	/* Only show first 5 images to avoid excessive pages */
	.dbw-gallery-slide:nth-child(n+6) {
		display: none !important;
	}

	/* 5. Linearize layout */
	.dbw-details-grid {
		display: block !important;
	}

	.dbw-main-col {
		width: 100% !important;
	}

	.dbw-sidebar {
		width: 100% !important;
		position: static !important;
		margin-top: 1.5rem !important;
	}

	/* 6. Typography */
	body {
		font-size: 11pt !important;
		color: #000 !important;
		line-height: 1.5 !important;
	}

	.dbw-single-title {
		font-size: 22pt !important;
		page-break-after: avoid;
	}

	.dbw-single-address {
		font-size: 11pt !important;
		margin-bottom: 1rem !important;
	}

	/* 7. Sections */
	.dbw-section {
		page-break-inside: avoid;
		border: 1px solid #ddd !important;
		padding: 1.2rem !important;
		margin-bottom: 1.2rem !important;
		box-shadow: none !important;
		border-radius: 0 !important;
	}

	.dbw-section-title {
		font-size: 13pt !important;
		page-break-after: avoid;
	}

	/* 8. Highlights & Agent card */
	.dbw-highlights-card {
		box-shadow: none !important;
		border: 2px solid #333 !important;
		page-break-inside: avoid;
		background: #f5f5f5 !important;
		color: #000 !important;
		border-radius: 0 !important;
	}

	.dbw-highlights-card *,
	.dbw-highlights-card ul li span,
	.dbw-highlights-card ul li strong {
		color: #000 !important;
	}

	.dbw-agent-card {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		page-break-inside: avoid;
		background: #fff !important;
		border-radius: 0 !important;
	}

	/* 9. Feature badges for print */
	.dbw-feature-badge {
		border: 1px solid #999 !important;
		background: #fff !important;
		padding: 2px 8px !important;
		font-size: 9pt !important;
		border-radius: 3px !important;
	}

	/* 10. Energy scale colors */
	.dbw-energy-container {
		background: #f9f9f9 !important;
		border: 1px solid #ddd !important;
		border-radius: 0 !important;
	}

	.dbw-energy-grid {
		grid-template-columns: 1fr 1fr !important;
	}

	/* 11. Key facts */
	.dbw-features-list {
		border: 1px solid #ddd !important;
		border-radius: 0 !important;
	}

	.dbw-feature-item {
		page-break-inside: avoid;
	}

	/* 12. Links don't need underlines in print */
	a {
		text-decoration: none !important;
		color: inherit !important;
	}

	/* 13. Force exact colors for energy badges */
	* {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	/* 14. Infrastructure Score print */
	.dbw-infra-ring-progress {
		transition: none !important;
	}
	.dbw-infra-cat-bar {
		transition: none !important;
	}
	.dbw-infra-score {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}
}

/* =========================================
   Infrastructure Score
   ========================================= */
.dbw-infra-score {
	scroll-margin-top: 100px;
}

.dbw-infra-score-layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* Ring */
.dbw-infra-ring-wrap {
	flex-shrink: 0;
	text-align: center;
}

.dbw-infra-ring-progress {
	transition: stroke-dashoffset 1.2s ease-out;
}

.dbw-infra-ring-score {
	font-size: 28px;
	font-weight: 800;
}

.dbw-infra-ring-max {
	font-size: 11px;
	fill: #888;
}

.dbw-infra-ring-label {
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: 0.25rem;
}

/* Categories */
.dbw-infra-categories {
	flex: 1;
	min-width: 0;
}

.dbw-infra-cat {
	border-bottom: 1px solid var(--dbw-border-light, #f0f2f5);
}

.dbw-infra-cat:last-child {
	border-bottom: none;
}

.dbw-infra-cat-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.65rem 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--dbw-text, #333);
	text-align: left;
}

.dbw-infra-cat-header:hover {
	color: var(--dbw-accent, #2573a7);
}

.dbw-infra-cat-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--dbw-gray, #5f6b6d);
}

.dbw-infra-cat-label {
	width: 100px;
	flex-shrink: 0;
	font-weight: 600;
}

.dbw-infra-cat-bar-wrap {
	flex: 1;
	height: 8px;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.dbw-infra-cat-bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width 0.8s ease-out;
}

.dbw-infra-cat-score {
	flex-shrink: 0;
	width: 42px;
	text-align: right;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--dbw-gray, #5f6b6d);
}

.dbw-infra-cat-toggle {
	flex-shrink: 0;
	color: var(--dbw-gray, #5f6b6d);
	transition: transform 0.2s ease;
}

.dbw-infra-cat-header[aria-expanded="true"] .dbw-infra-cat-toggle {
	transform: rotate(180deg);
}

/* Detail rows */
.dbw-infra-cat-details {
	padding: 0 0 0.5rem 2.6rem;
}

.dbw-infra-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 0.25rem 0;
	font-size: 0.85rem;
	color: var(--dbw-gray, #5f6b6d);
}

.dbw-infra-detail-dist {
	font-weight: 600;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
	.dbw-infra-score-layout {
		flex-direction: column;
		align-items: center;
	}

	.dbw-infra-ring-wrap {
		margin-bottom: 0.5rem;
	}

	.dbw-infra-categories {
		width: 100%;
	}

	.dbw-infra-cat-label {
		width: 80px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.dbw-infra-ring-progress,
	.dbw-infra-cat-bar {
		transition: none !important;
	}
}

/* =========================================
   Price per m² Comparison
   ========================================= */

/* -- Single View Widget -- */
.dbw-price-sqm-card {
	background: #fff;
	border: 1px solid var(--dbw-border, #e0e0e0);
	border-radius: var(--dbw-radius, 8px);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.dbw-price-sqm-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.6rem;
}

.dbw-price-sqm-label {
	font-size: 0.85rem;
	color: var(--dbw-gray, #5f6b6d);
	font-weight: 500;
}

.dbw-price-sqm-value {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--dbw-primary, #2c3e50);
}

/* Badge */
.dbw-price-sqm-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 0.8rem;
}

.dbw-price-sqm-arrow {
	font-size: 0.7rem;
}

.dbw-price-sqm-below {
	background: rgba(40, 167, 69, 0.1);
	color: #1a7a3a;
}

.dbw-price-sqm-above {
	background: rgba(230, 126, 34, 0.1);
	color: #b5631a;
}

.dbw-price-sqm-neutral {
	background: var(--dbw-bg-muted, #f0f2f5);
	color: var(--dbw-gray, #5f6b6d);
}

/* Comparison Bar */
.dbw-price-sqm-bar-wrap {
	margin-bottom: 0.6rem;
}

.dbw-price-sqm-bar {
	position: relative;
	height: 8px;
	background: var(--dbw-bg-muted, #f0f2f5);
	border-radius: 4px;
	overflow: visible;
}

.dbw-price-sqm-bar-fill {
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, #28a745, #e67e22);
	opacity: 0.25;
}

.dbw-price-sqm-bar-avg {
	position: absolute;
	top: -3px;
	width: 2px;
	height: 14px;
	background: var(--dbw-gray, #5f6b6d);
	border-radius: 1px;
	transform: translateX(-50%);
}

.dbw-price-sqm-bar-marker {
	position: absolute;
	top: -4px;
	width: 16px;
	height: 16px;
	background: var(--dbw-accent, #2573a7);
	border: 2px solid #fff;
	border-radius: 50%;
	transform: translateX(-50%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dbw-price-sqm-bar-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.72rem;
	color: var(--dbw-gray, #5f6b6d);
	margin-top: 4px;
}

/* Disclaimer */
.dbw-price-sqm-disclaimer {
	font-size: 0.72rem;
	color: #999;
	line-height: 1.4;
}

/* -- Archive Badge -- */
.dbw-price-sqm-archive-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
	line-height: 1;
	backdrop-filter: blur(4px);
}

.dbw-price-sqm-badge-neutral {
	background: rgba(255, 255, 255, 0.9);
	color: var(--dbw-gray, #5f6b6d);
}

.dbw-price-sqm-badge-below {
	background: rgba(40, 167, 69, 0.9);
	color: #fff;
}

.dbw-price-sqm-badge-above {
	background: rgba(230, 126, 34, 0.9);
	color: #fff;
}

/* Print */
@media print {
	.dbw-price-sqm-card {
		border: 1px solid #ccc;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	.dbw-price-sqm-bar-fill,
	.dbw-price-sqm-bar-marker,
	.dbw-price-sqm-badge-below,
	.dbw-price-sqm-badge-above {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
}