/* ADU Configurator - front end styles */
#adu-configurator, #adu-configurator * { box-sizing: border-box; }
#adu-configurator {
	--adu-ink: #16181c;
	--adu-muted: #6b7280;
	--adu-border: #e6e6e6;
	--adu-bg: #ffffff;
	--adu-accent: #2563eb;
	--adu-accent-hover: #1d4ed8;
	--adu-radius: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--adu-ink);
	background: var(--adu-bg);
	position: relative;
}

/* ---------- top bar / model pill trigger ---------- */
.adu-topbar { display: flex; justify-content: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--adu-border); }
.adu-pill {
	font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px;
	border: 1px solid #d1d5db; background: #fff; color: var(--adu-ink); cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.adu-pill:hover { border-color: #9ca3af; }
.adu-pill.is-active { background: #111; color: #fff; border-color: #111; }

/* ---------- models popup ---------- */
.adu-modal-overlay {
	position: fixed; inset: 0; background: rgba(20,20,20,.55); display: flex;
	align-items: center; justify-content: center; z-index: 100000; padding: 20px;
}
.adu-modal-overlay[hidden] { display: none; }
.adu-modal {
	background: #fff; border-radius: 16px; max-width: 1080px; width: 100%;
	max-height: 88vh; overflow-y: auto; padding: 28px 32px 24px;
}
.adu-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.adu-modal-head h2 { font-size: 22px; margin: 0; font-weight: 700; }
.adu-modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #444; padding: 4px; }
.adu-models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .adu-models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adu-models-grid { grid-template-columns: 1fr; } }
.adu-model-card {
	border: 1px solid var(--adu-border); border-radius: 12px; padding: 18px 18px 16px;
	cursor: pointer; text-align: left; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
	display: flex; flex-direction: column;
}
.adu-model-card:hover { border-color: #9ca3af; }
.adu-model-card.is-selected { border-color: var(--adu-accent); box-shadow: 0 0 0 1px var(--adu-accent); }
.adu-model-card img { width: 100%; height: 130px; object-fit: contain; margin-bottom: 14px; }
.adu-model-card h3 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.adu-model-card .adu-model-layout { font-size: 13px; color: var(--adu-muted); margin-bottom: 6px; }
.adu-model-card .adu-model-price { font-size: 14px; font-weight: 600; }
.adu-modal-foot { color: var(--adu-muted); font-size: 13px; margin: 18px 2px 2px; }

/* ---------- main layout ---------- */
.adu-main { display: flex; min-height: 640px; }
@media (max-width: 880px) { .adu-main { flex-direction: column; } }

.adu-gallery { flex: 1.5; position: relative; background: #f4f4f2; min-height: 340px; }
.adu-gallery-pills {
	position: absolute; top: 20px; left: 20px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 40px);
}
.adu-gallery-image-wrap { width: 100%; height: 100%; min-height: 340px; overflow: hidden; }
.adu-gallery-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
@media (min-width: 881px) { .adu-gallery, .adu-gallery-image-wrap { height: 100%; position: sticky; top: 0; align-self: flex-start; } }

.adu-sidebar {
	flex: 1; max-width: 460px; display: flex; flex-direction: column;
	border-left: 1px solid var(--adu-border); background: #fff;
}
@media (max-width: 880px) { .adu-sidebar { max-width: none; } }
@media (min-width: 881px) { .adu-sidebar { height: 100%; max-height: 100vh; } }

.adu-sidebar-scroll { flex: 1; overflow-y: auto; padding: 28px 28px 12px; }
#adu-model-title { font-size: 30px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.01em; }

.adu-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 20px; }
.adu-stat-value { font-size: 16px; font-weight: 700; }
.adu-stat-label { font-size: 11px; color: var(--adu-muted); letter-spacing: .04em; margin-top: 2px; }

.adu-floorplan-box {
	border: 1px solid var(--adu-border); border-radius: var(--adu-radius); padding: 14px;
	display: flex; align-items: center; justify-content: center; margin-bottom: 24px; min-height: 200px;
}
.adu-floorplan-box img { max-width: 100%; max-height: 260px; object-fit: contain; }

/* ---------- upgrades accordion ---------- */
.adu-upgrades-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.adu-upgrades-heading h2 { font-size: 17px; font-weight: 700; margin: 0; }

.adu-bundle {
	border: 1px solid #111; border-radius: var(--adu-radius); padding: 16px 18px; margin-bottom: 18px;
	display: flex; align-items: flex-start; gap: 12px; background: #fafafa;
}
.adu-bundle input[type=checkbox] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--adu-accent); flex-shrink: 0; }
.adu-bundle-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.adu-bundle-desc { font-size: 13px; color: var(--adu-muted); margin-bottom: 6px; }
.adu-bundle-price { font-size: 14px; font-weight: 600; }
.adu-bundle-price .adu-strike { color: var(--adu-muted); text-decoration: line-through; font-weight: 500; margin-left: 6px; }

.adu-accordion-section { border-top: 1px solid var(--adu-border); }
.adu-accordion-section:last-child { border-bottom: 1px solid var(--adu-border); }
.adu-accordion-trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none;
	padding: 15px 2px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--adu-ink);
}
.adu-accordion-trigger .adu-chevron { transition: transform .15s ease; color: var(--adu-muted); }
.adu-accordion-section.is-open .adu-chevron { transform: rotate(180deg); }
.adu-accordion-body { padding: 0 2px 18px; display: none; }
.adu-accordion-section.is-open .adu-accordion-body { display: block; }

.adu-section-note { font-size: 14px; color: var(--adu-muted); padding: 2px 0 6px; }
.adu-field { margin-bottom: 12px; border: 1px solid var(--adu-border); border-radius: var(--adu-radius); padding: 12px 14px 6px; }
.adu-field:last-child { margin-bottom: 4px; }
.adu-field-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: #444; margin-bottom: 8px; text-transform: uppercase; }
.adu-option {
	display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px;
}
.adu-option input { accent-color: var(--adu-accent); width: 16px; height: 16px; flex-shrink: 0; }
.adu-option .adu-option-label { flex: 1; }
.adu-option .adu-option-price { color: var(--adu-muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.adu-option.is-included .adu-option-price { color: #16a34a; }
.adu-field.is-locked .adu-option { opacity: .55; pointer-events: none; }
.adu-option.is-locked { opacity: .8; }
.adu-option input:disabled { cursor: not-allowed; }

/* ---------- price breakdown ---------- */
.adu-price-breakdown { border-top: 1px solid var(--adu-border); padding: 14px 28px; max-height: 220px; overflow-y: auto; font-size: 13px; }
.adu-price-breakdown[hidden] { display: none; }
.adu-price-row { display: flex; justify-content: space-between; padding: 4px 0; color: #333; }
.adu-price-row.is-base { font-weight: 600; }
.adu-price-row .amt { font-weight: 600; }

/* ---------- sticky price bar ---------- */
.adu-price-bar {
	display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--adu-border);
	background: #fff;
}
.adu-price-toggle {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--adu-border); background: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer; color: #333; flex-shrink: 0;
}
.adu-price-info { flex: 1; }
.adu-price-amount { font-size: 22px; font-weight: 800; line-height: 1.1; }
.adu-price-label { font-size: 11px; color: var(--adu-muted); letter-spacing: .04em; margin-top: 2px; }
.adu-continue-btn {
	background: var(--adu-accent); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
	padding: 13px 26px; cursor: pointer; transition: background .15s ease; flex-shrink: 0;
}
.adu-continue-btn:hover { background: var(--adu-accent-hover); color: #fff; }
/* Continue is a real <a href> link now (so the URL shows on hover and it works without JS) */
a.adu-continue-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1.2; box-sizing: border-box; }
a.adu-continue-btn:visited, a.adu-continue-btn:focus { color: #fff; text-decoration: none; }

/* utility */
.adu-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
