/**
 * Brabco Single Project — one self-contained page widget.
 * All rules scoped under .brabco-project-single to avoid theme/Elementor conflicts.
 */

.brabco-project-single.brabco-project-widget {
	--brabco-background: #0a0f14;
	--brabco-foreground: #f5f5f5;
	--brabco-card: #1a1f26;
	--brabco-primary: #e68940;
	--brabco-primary-foreground: #000000;
	--brabco-muted: #2a3240;
	--brabco-muted-foreground: #a0a0a0;
	--brabco-accent: #e68940;
	--brabco-border: #2a3240;
	--brabco-green-500: #22c55e;
	--brabco-content-max-width: 1600px;
	--brabco-content-gap: 4rem;
	--brabco-sidebar-gap: 2rem;
	--brabco-nav-height: 5rem;

	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background-color: var(--brabco-background);
	color: var(--brabco-foreground);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

.brabco-project-single *,
.brabco-project-single *::before,
.brabco-project-single *::after {
	box-sizing: border-box;
}

.brabco-project-single img {
	max-width: 100%;
	display: block;
}

.brabco-project-single a {
	text-decoration: none;
	color: inherit;
}

.brabco-project-single button {
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

.brabco-project-single h1,
.brabco-project-single h2,
.brabco-project-single h3,
.brabco-project-single h4,
.brabco-project-single h5,
.brabco-project-single h6 {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
}

/* —— Navigation —— */
.brabco-project-single__nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background-color: rgba(10, 15, 20, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(42, 50, 64, 0.5);
	padding: 1rem 1.5rem;
}

.brabco-project-single__nav-inner {
	max-width: var(--brabco-content-max-width);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.brabco-project-single__back {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--brabco-muted-foreground);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: color 0.3s ease;
}

.brabco-project-single__back:hover {
	color: var(--brabco-primary);
}

.brabco-project-single__back-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.brabco-project-single__back-icon svg,
.brabco-project-single__back-icon i {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.brabco-project-single__enquire {
	display: inline-block;
	background-color: var(--brabco-primary);
	color: var(--brabco-primary-foreground);
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: background-color 0.3s ease;
}

.brabco-project-single__enquire:hover {
	background-color: rgba(230, 137, 64, 0.9);
}

/* —— Gallery —— */
.brabco-project-single__gallery {
	width: 100%;
	padding-top: var(--brabco-nav-height);
}

.brabco-project-single__gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.brabco-project-single__gallery-grid--has-thumbs {
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.brabco-project-single__gallery-grid--has-thumbs {
		grid-template-columns: 2fr 1fr;
	}
}

.brabco-project-single__gallery-main {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
	.brabco-project-single__gallery-grid--has-thumbs .brabco-project-single__gallery-main {
		aspect-ratio: auto;
		height: 80vh;
	}
}

.brabco-project-single__gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brabco-project-single__corner {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border-color: var(--brabco-primary);
	pointer-events: none;
}

.brabco-project-single__corner--top-left {
	top: 2rem;
	left: 2rem;
	border-top: 2px solid;
	border-left: 2px solid;
}

.brabco-project-single__corner--bottom-right {
	bottom: 2rem;
	right: 2rem;
	border-bottom: 2px solid;
	border-right: 2px solid;
}

.brabco-project-single__thumbs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
	.brabco-project-single__thumbs {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(2, 1fr);
	}
}

.brabco-project-single__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(42, 50, 64, 0.3);
}

@media (min-width: 1024px) {
	.brabco-project-single__thumb {
		aspect-ratio: auto;
	}
}

.brabco-project-single__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* —— Content layout —— */
.brabco-project-single__content {
	padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
	.brabco-project-single__content {
		padding: 5rem 3rem;
	}
}

.brabco-project-single__content-inner {
	max-width: var(--brabco-content-max-width);
	margin: 0 auto;
}

.brabco-project-single__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--brabco-content-gap);
}

@media (min-width: 1024px) {
	.brabco-project-single__grid {
		grid-template-columns: 1fr 2fr;
	}
}

.brabco-project-single__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--brabco-sidebar-gap);
}

.brabco-project-single__sidebar.is-sticky {
	position: sticky;
	top: 8rem;
	align-self: start;
}

.brabco-project-single__main {
	display: flex;
	flex-direction: column;
	gap: var(--brabco-content-gap);
}

/* —— Sidebar header (matches single-project.html .sidebar-content) —— */
.brabco-project-single__header {
	display: block;
	width: 100%;
}

.brabco-project-single__location-label {
	color: var(--brabco-primary);
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1rem;
	padding: 0;
	line-height: 1.4;
}

.brabco-project-single__title {
	font-size: 2.25rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
	padding: 0;
	color: var(--brabco-foreground);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.brabco-project-single__title {
		font-size: 3rem;
	}
}

.brabco-project-single__status {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	border: 1px solid;
	margin: 0;
}

.brabco-project-single__status.status-coming_soon {
	background-color: rgba(230, 137, 64, 0.2);
	color: var(--brabco-primary);
	border-color: rgba(230, 137, 64, 0.3);
}

.brabco-project-single__status.status-under_construction {
	background-color: rgba(230, 137, 64, 0.2);
	color: var(--brabco-accent);
	border-color: rgba(230, 137, 64, 0.3);
}

.brabco-project-single__status.status-completed {
	background-color: rgba(34, 197, 94, 0.2);
	color: var(--brabco-green-500);
	border-color: rgba(34, 197, 94, 0.3);
}

.brabco-project-single__status.status-sold_out {
	background-color: rgba(42, 50, 64, 0.5);
	color: var(--brabco-muted-foreground);
	border-color: var(--brabco-muted);
}

/* —— Key details (matches single-project.html .key-details-box) —— */
.brabco-project-single__key-details {
	width: 100%;
	padding: 2rem;
	border: 1px solid var(--brabco-border);
	background-color: transparent;
}

.brabco-project-single__key-details-title {
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1.5rem;
	color: var(--brabco-foreground);
	line-height: 1.2;
}

.brabco-project-single__detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.brabco-project-single__detail-icon {
	width: 2.5rem;
	height: 2.5rem;
	min-width: 2.5rem;
	background-color: rgba(230, 137, 64, 0.1);
	color: var(--brabco-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.brabco-project-single__detail-icon svg,
.brabco-project-single__detail-icon .brabco-project-single__icon-svg,
.brabco-project-single__detail-icon i,
.brabco-project-single__detail-icon .brabco-project-icon {
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.25rem;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.brabco-project-single__detail-icon svg,
.brabco-project-single__detail-icon .brabco-project-single__icon-svg {
	stroke: currentColor;
	fill: none;
	color: var(--brabco-primary);
}

.brabco-project-single__icon-svg {
	display: block;
	flex-shrink: 0;
}

.brabco-project-single__detail-text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.brabco-project-single__detail-label {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--brabco-muted-foreground);
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.brabco-project-single__detail-value {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	padding: 0;
	color: var(--brabco-foreground);
	line-height: 1.3;
}

/* —— CTA (matches single-project.html .contact-agent-btn) —— */
.brabco-project-single__cta {
	display: block;
	width: 100%;
	background-color: var(--brabco-primary);
	color: var(--brabco-primary-foreground);
	text-align: center;
	padding: 1rem 2rem;
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.4;
	border: none;
	border-radius: 0;
	transition: background-color 0.3s ease;
}

.brabco-project-single__cta:hover,
.brabco-project-single__cta:focus {
	background-color: rgba(230, 137, 64, 0.9);
	color: var(--brabco-primary-foreground);
	text-decoration: none;
}

/* —— Main content blocks —— */
.brabco-project-single__block-heading {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
	color: var(--brabco-foreground);
}

.brabco-project-single__overview-content {
	color: var(--brabco-muted-foreground);
	font-size: 1.125rem;
	line-height: 1.8;
}

.brabco-project-single__overview-content p {
	margin: 0 0 1rem;
}

.brabco-project-single__overview-content p:last-child {
	margin-bottom: 0;
}

.brabco-project-single__location-box {
	padding: 2rem;
	border: 1px solid var(--brabco-border);
}

.brabco-project-single__location-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.brabco-project-single__location-icon svg,
.brabco-project-single__location-icon i {
	width: 1.5rem;
	height: 1.5rem;
	font-size: 1.5rem;
	color: var(--brabco-primary);
	flex-shrink: 0;
}

.brabco-project-single__location-text {
	font-size: 1.125rem;
	margin: 0;
	color: var(--brabco-foreground);
}

.brabco-project-single__floor-plans-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.brabco-project-single__floor-plans-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.brabco-project-single__floor-plan-image {
	width: 100%;
	height: auto;
	border: 1px solid var(--brabco-border);
}

.brabco-project-single__floor-plans-placeholder {
	aspect-ratio: 16 / 9;
	border: 1px solid var(--brabco-border);
	background-color: var(--brabco-card);
	display: flex;
	align-items: center;
	justify-content: center;
}

.brabco-project-single__floor-plans-placeholder p {
	color: var(--brabco-muted-foreground);
	margin: 0;
}

.brabco-project-single .brabco-project-placeholder {
	padding: 2rem;
	text-align: center;
	color: var(--brabco-muted-foreground);
	border: 1px dashed var(--brabco-border);
}

/* —— Responsive —— */
@media (max-width: 768px) {
	.brabco-project-single__nav-inner {
		flex-direction: column;
	}

	.brabco-project-single__title {
		font-size: 1.75rem;
	}

	.brabco-project-single__content {
		padding: 3rem 1rem;
	}
}

/* Admin bar offset when logged in */
body.admin-bar .brabco-project-single__nav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .brabco-project-single__nav {
		top: 46px;
	}
}

/* Elementor: prevent parent containers from constraining layout */
.elementor-widget-brabco-project-single .elementor-widget-container {
	max-width: none;
	padding: 0;
	margin: 0;
}

body.brabco-single-project .elementor-widget-brabco-project-single {
	width: 100%;
	max-width: none;
}

/* —— WordPress / Hello / Elementor conflict resets (sidebar) —— */
.elementor-widget-brabco-project-single .brabco-project-single__sidebar h1,
.elementor-widget-brabco-project-single .brabco-project-single__sidebar h2,
.elementor-widget-brabco-project-single .brabco-project-single__sidebar h3,
.elementor-widget-brabco-project-single .brabco-project-single__sidebar h4,
.elementor-widget-brabco-project-single .brabco-project-single__sidebar p,
.elementor-widget-brabco-project-single .brabco-project-single__sidebar span {
	font-family: inherit;
}

.elementor-widget-brabco-project-single .brabco-project-single__sidebar p {
	margin-block: 0;
}

.elementor-widget-brabco-project-single .brabco-project-single__key-details-title {
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1.5rem;
	padding: 0;
	color: var(--brabco-foreground);
	line-height: 1.2;
}

.elementor-widget-brabco-project-single a.brabco-project-single__cta,
.elementor-widget-brabco-project-single a.brabco-project-single__cta:visited {
	color: var(--brabco-primary-foreground);
	text-decoration: none;
	box-shadow: none;
}

.elementor-widget-brabco-project-single .brabco-project-single__location-icon svg,
.elementor-widget-brabco-project-single .brabco-project-single__location-icon .brabco-project-single__icon-svg {
	width: 1.5rem;
	height: 1.5rem;
	stroke: currentColor;
	fill: none;
	color: var(--brabco-primary);
}

.elementor-widget-brabco-project-single .brabco-project-single__detail-icon .brabco-project-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}
