.adu-plans-wrapper {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	max-width: 1300px;
	margin: 0 auto;
	padding: 20px;
}

.adu-filters {
	flex: 0 0 260px;
	background: #f7f7f7;
	padding: 20px;
	border-radius: 8px;
	position: sticky;
	top: 20px;
}

.adu-filters h3 {
	margin-top: 0;
}

.adu-filter-group {
	margin-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 10px;
}

.adu-filter-group h4 {
	margin: 0 0 8px;
	font-size: 14px;
	text-transform: uppercase;
	color: #333;
}

.adu-filter-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 4px 0;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: #333;
	cursor: pointer;
	text-align: left;
}

.adu-filter-arrow {
	font-size: 12px;
	color: #666;
	transition: transform 0.2s ease;
}

.adu-filter-group.open .adu-filter-arrow {
	transform: rotate(180deg);
}

.adu-filter-content {
	display: none;
	padding-top: 10px;
}

.adu-filter-group.open .adu-filter-content {
	display: block;
}

.adu-checkbox-label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	cursor: pointer;
}

.adu-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.adu-range-inputs input {
	width: 90px;
	padding: 6px;
}

.adu-btn-apply,
.adu-btn-reset {
	width: 100%;
	padding: 10px;
	margin-top: 8px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.adu-btn-apply {
	background: #2563eb !important;
	color: #fff !important;
}

.adu-btn-reset {
	background: #fff !important;
	color: #333 !important;
	border: 1px solid #ccc !important;
}

.adu-results {
	flex: 1;
}

.adu-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.adu-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	min-height: 200px;
	transition: opacity 0.2s ease;
}

.adu-plans-grid.adu-loading {
	opacity: 0.4;
	pointer-events: none;
}

.adu-plan-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #eee;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.adu-plan-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.adu-card-image {
	position: relative;
}

.adu-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.adu-card-tags {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.adu-tag {
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
}

.adu-card-info {
	padding: 18px 20px 20px;
}

.adu-card-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #111;
}

.adu-card-sqft {
	font-size: 30px;
	font-weight: 800;
	color: #111;
	margin: 0 0 10px;
}

.adu-card-sqft span {
	font-size: 15px;
	font-weight: 400;
	color: #888;
	margin-left: 4px;
}

.adu-card-price {
	font-size: 17px;
	font-weight: 700;
	color: #c1531f;
	margin: 0 0 6px;
}

.adu-card-price span {
	font-size: 13px;
	font-weight: 400;
	color: #777;
	margin-left: 6px;
}

.adu-card-price-note {
	font-size: 12px;
	color: #888;
	line-height: 1.5;
	margin: 0 0 14px;
}

.adu-card-bedbath {
	font-size: 15px;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
}

.adu-card-dimensions {
	margin: 0;
	font-size: 13px;
	color: #888;
}

.adu-card-divider {
	border: none;
	border-top: 1px solid #eee;
	margin: 14px 0;
}

.adu-card-rooms {
	margin: 0;
	font-size: 13px;
	color: #777;
}

.adu-card-meta {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: #444;
}

.adu-pagination {
	display: flex;
	gap: 6px;
	margin-top: 24px;
	justify-content: center;
}

.adu-page-btn {
	padding: 8px 14px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
}

.adu-page-btn.active {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.adu-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
}

/* Single ADU plan detail page */
.adu-single-wrap {
	max-width: 1000px;
	margin: 0 auto 40px;
}

.adu-single-gallery {
	margin-bottom: 24px;
}

.adu-gallery-main img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.adu-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.adu-gallery-thumb-img {
	width: 90px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	flex-shrink: 0;
	opacity: 0.75;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.adu-gallery-thumb-img:hover,
.adu-gallery-thumb-img.active {
	opacity: 1;
	border-color: #2563eb;
}

.adu-single-infobar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 24px;
}

.adu-single-title {
	margin: 0 0 10px;
	font-size: 26px;
}

.adu-single-price {
	font-size: 18px;
	font-weight: 700;
	color: #c1531f;
	margin: 0 0 12px;
}

.adu-single-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.adu-single-badges span {
	background: #f4f4f4;
	color: #333;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
}

.adu-single-status {
	font-size: 13px;
	color: #666;
	margin: 0;
}

.adu-single-status span {
	display: inline-block;
	border: 1px solid #2563eb;
	color: #2563eb;
	border-radius: 20px;
	padding: 3px 10px;
	font-weight: 600;
	margin-left: 4px;
}

.adu-single-infobar-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 200px;
}

.adu-btn-primary,
.adu-btn-secondary {
	display: inline-block;
	text-align: center;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.adu-btn-primary {
	background: #16a34a;
	color: #fff !important;
}

.adu-btn-secondary {
	background: #fff;
	color: #16a34a !important;
	border: 1px solid #16a34a;
}

.adu-single-description {
	line-height: 1.7;
	color: #333;
	margin-bottom: 30px;
}

.adu-single-section {
	margin-bottom: 40px;
}

.adu-single-section-title {
	font-size: 20px;
	margin-bottom: 16px;
}

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

.adu-project-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.adu-project-caption {
	margin: 8px 0 0;
	font-size: 14px;
	color: #444;
}

.adu-related-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Inquire modal (custom, does not depend on Elementor's own popup JS) */
.adu-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.adu-modal-overlay.adu-modal-open {
	display: flex;
}

.adu-modal-box {
	background: #fff;
	border-radius: 10px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 40px 24px 24px;
}

.adu-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.adu-modal-close:hover {
	color: #111;
}

/* Elementor Popup templates are hidden by Elementor's own CSS until its
   popup JS toggles them open. Since we render the template via shortcode
   inside our own modal, force it visible here. */
.adu-modal-content [data-elementor-type="popup"],
.adu-modal-content .elementor-popup-modal,
.adu-modal-content .dialog-widget,
.adu-modal-content .dialog-widget-content,
.adu-modal-content .dialog-lightbox-widget-content,
.adu-modal-content .dialog-message {
	display: block !important;
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	inset: auto !important;
}

@media (max-width: 860px) {
	.adu-plans-wrapper {
		flex-direction: column;
	}
	.adu-filters {
		flex: none;
		width: 100%;
		position: static;
	}
	.adu-single-infobar {
		flex-direction: column;
	}
	.adu-single-infobar-buttons {
		width: 100%;
	}
}
