
/* Article archive cards */
.bbt-archive-shell--articles .bbt-listing-grid {
	align-items: start;
	gap: 32px;
}

.bbt-archive-shell--articles .ast-article-post:not(.bbt-card),
.bbt-archive-shell--articles .ast-article-single:not(.bbt-card) {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Shared card owns the article card box.
   Article block only owns article-specific differences. */
.bbt-archive-shell--articles .bbt-card--article .bbt-card__image {
	margin: 0 0 16px;
}

.bbt-archive-shell--articles .bbt-card--article .bbt-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.bbt-archive-shell--articles .bbt-article-card__excerpt {
	margin: 0 0 22px;
	color: inherit;
	font-size: 1rem;
	line-height: 1.65;
}

.bbt-archive-shell--articles .bbt-article-card__cta {
	margin: auto 0 0;
	padding-top: 4px;
}

.bbt-archive-shell--articles .bbt-article-card__cta a {
	font-weight: 600;
	text-decoration: none;
}

/* Archive card edge fix */
.bbt-archive-shell--articles .bbt-listing-grid > article.bbt-card--article,
.bbt-archive-shell--community-type .bbt-listing-grid > article.bbt-card--community {
	border: 1px solid var(--bbt-border);
	box-sizing: border-box;
}


/* ----------------------------------
QUOTE ARCHIVE
---------------------------------- */

.bbt-archive-shell--quote {
	position: relative;
}

.bbt-archive-shell--quote > .bbt-archive-hero {
	margin-bottom: 0 !important;
}

.bbt-archive-content--quote {
	position: relative;
	overflow: hidden;
	padding-top: 40px;
	padding-bottom: 56px;
}

/* fixed background behind quote section */
.bbt-archive-content--quote::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url('/wp-content/uploads/background-waves-1.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -2;
}

.bbt-archive-content--quote::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
}

.bbt-quotes-list {
	display: flex;
	flex-direction: column;
	gap: 34px;
}

/* ----------------------------------
QUOTE ROW
---------------------------------- */

.bbt-quote-row {
	display: grid;
	align-items: center;
	column-gap: 28px;
	margin: 0;
}

/* LEFT ROW: quote mark on left, card pushed right */
.bbt-quote-row.is-left {
	grid-template-columns: 120px minmax(0, 980px) 1fr;
}

.bbt-quote-row.is-left .bbt-quote-row__mark--open {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bbt-quote-row.is-left .bbt-quote-card {
	grid-column: 2;
	width: 100%;
}

.bbt-quote-row.is-left .bbt-quote-row__mark--close {
	display: none;
}

/* RIGHT ROW: card pushed left, quote mark on right */
.bbt-quote-row.is-right {
	grid-template-columns: 1fr minmax(0, 980px) 120px;
}

.bbt-quote-row.is-right .bbt-quote-card {
	grid-column: 2;
	width: 100%;
}

.bbt-quote-row.is-right .bbt-quote-row__mark--close {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bbt-quote-row.is-right .bbt-quote-row__mark--open {
	display: none;
}

.bbt-quote-row {
	position: relative;
}

.bbt-quote-row.has-hero-quote::before {
	content: "“";
	display: block;
	position: absolute;
	top: 50%;
	left: 1.25rem;
	transform: translateY(-50%);
	font-family: "Times New Roman", Times, serif;
	font-size: 12rem !important;
	font-weight: 900;
	line-height: 1;
	color: rgba(255, 255, 255, 0.96);
	z-index: 2;
	pointer-events: none;
	height: auto;
}

/* ----------------------------------
QUOTE CARD (REFINED)
---------------------------------- */

.bbt-quote-card__inner {
	background: var(--bbt-surface-soft);
	border: 1px solid var(--bbt-border-strong);
	border-radius: var(--bbt-radius-quote);

	/* reduced horizontal padding */
	padding: 24px 26px 20px;

	text-align: center;
}

.bbt-quote-card__quote p {
	margin: 0 auto;

	/* slightly larger text */
	font-size: clamp(1.1rem, 1.35vw, 1.45rem);
	line-height: 1.42;

	/* slightly tighter measure so it feels more premium */
	max-width: 900px;

	font-weight: 400;
	color: var(--ast-global-color-3);
}

.bbt-quote-card__author {
	margin: 14px 0 0;

	font-size: clamp(1rem, 1.05vw, 1.15rem);
	line-height: 1.3;

	color: var(--ast-global-color-3);
    opacity: 0.85;
    font-style: italic;
}


/* ----------------------------------
QUOTE PAGINATION
---------------------------------- */

.bbt-archive-shell--quote .bbt-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.bbt-archive-shell--quote .bbt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 1rem;
	margin: 0 0.3rem;
	border-radius: var(--bbt-radius-pill);
	background: var(--bbt-surface-overlay-90);
	color: var(--ast-global-color-2);
	text-decoration: none;
	font-weight: 500;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.bbt-archive-shell--quote .bbt-pagination .page-numbers:hover {
	background: var(--bbt-surface-overlay-100);
	transform: translateY(-1px);
}

.bbt-archive-shell--quote .bbt-pagination .page-numbers.current {
	background: var(--bbt-surface);
	font-weight: 700;
}

.bbt-archive-shell--quote .bbt-pagination .page-numbers.prev,
.bbt-archive-shell--quote .bbt-pagination .page-numbers.next {
	padding: 0 1.2rem;
}


/* ----------------------------------
TABLET
---------------------------------- */

@media (max-width: 1024px) {
	.bbt-archive-content--quote {
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.bbt-quotes-list {
		gap: 28px;
	}

	.bbt-quote-row.is-left {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.bbt-quote-row.is-right {
		grid-template-columns: minmax(0, 1fr) 90px;
	}

	.bbt-quote-row.is-left .bbt-quote-card {
		grid-column: 2;
	}

	.bbt-quote-row.is-right .bbt-quote-card {
		grid-column: 1;
	}

	.bbt-quote-row.is-right .bbt-quote-row__mark--close {
		grid-column: 2;
	}

	.bbt-quote-row__glyph {
		font-size: 5rem;
	}

	.bbt-quote-card__inner {
		padding: 22px 24px 20px;
		border-radius: var(--bbt-radius-quote-tablet);
	}

	.bbt-quote-card__quote p {
		max-width: 680px;
	}
}

/* ----------------------------------
MOBILE
---------------------------------- */

@media (max-width: 767px) {
	.bbt-archive-content--quote {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.OLD-bbt-archive-content--quote::before,
	.OLD-bbt-archive-content--quote::after {
		position: absolute;
	}

    .bbt-archive-content--quote::before,
    .bbt-archive-content--quote::after {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

	.bbt-quotes-list {
		gap: 22px;
	}

	.bbt-quote-row,
	.bbt-quote-row.is-left,
	.bbt-quote-row.is-right {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.OLD-bbt-quote-row .bbt-quote-row__mark--open,
	.OLD-bbt-quote-row .bbt-quote-row__mark--close {
		display: none;
	}

	/* show only one top quote mark on mobile */
	.OLD-bbt-quote-row .bbt-quote-row__mark--open {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.OLD-bbt-quote-row__glyph {
		font-size: 3.5rem;
		line-height: 1;
	}

    .bbt-quote-row.has-hero-quote::before {
        display:none;
    }

	.bbt-quote-row .bbt-quote-card {
		width: 100%;
		max-width: none;
	}

	.bbt-quote-card__inner {
		padding: 18px 18px 16px;
		border-radius: var(--bbt-radius-quote-mobile);
	}

	.bbt-quote-card__quote p {
		max-width: none;
		font-size: 1rem;
		line-height: 1.42;
	}

	.bbt-quote-card__author {
		margin-top: 12px;
		font-size: 0.95rem;
	}
}

/* Community archive cards images */


.bbt-archive-shell--community-type .bbt-community-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.bbt-archive-shell--community-type .bbt-community-card__image img {
	width: 100% !important;
	height: 260px;
	object-fit: cover;
}


/* ==================================
MODULES
================================== */

/* Archive and category full-width layout reset */
:is(
	.post-type-archive-sale,
	.post-type-archive-rental,
	.post-type-archive-market-report,
	.tax-sale-status,
	.tax-rental-status,
	.tax-community-type
) .site-main {
	display: block !important;
}

:is(
	.post-type-archive-sale,
	.post-type-archive-rental,
	.post-type-archive-market-report,
	.tax-sale-status,
	.tax-rental-status,
	.tax-community-type,
	.category
) .ast-container {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

:is(
	.post-type-archive-sale,
	.post-type-archive-rental,
	.post-type-archive-market-report,
	.tax-sale-status,
	.tax-rental-status,
	.tax-community-type,
	.category
) :is(#primary, .site-content, #main) {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ==================================
GLOBAL CARD RESET (ASTRA OVERRIDE)
================================== */

.bbt-archive-shell .ast-article-post,
.bbt-archive-shell article.ast-article-post {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Only strip Astra chrome when it is NOT one of our cards */
.bbt-archive-shell .ast-article-post:not(.bbt-card),
.bbt-archive-shell article.ast-article-post:not(.bbt-card) {
	box-shadow: none !important;
	border: 0 !important;
}

.bbt-archive-shell .bbt-card {
	width: 100%;
	margin: 0;
	padding: 0;
}


/* Archive header inner spacing */
:is(
	.post-type-archive-sale,
	.post-type-archive-rental,
	.post-type-archive-market-report,
	.tax-sale-status,
	.tax-rental-status,
	.tax-community-type,
	.category
) .ast-builder-grid-row {
	padding-left: 35px;
	padding-right: 35px;
}

.post-type-archive-sale :is(.site-content, #content),
.tax-sale-status :is(.site-content, #content) {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

@media (max-width: 768px) {
	:is(
		.post-type-archive-sale,
		.post-type-archive-rental,
		.post-type-archive-market-report,
		.tax-sale-status,
		.tax-rental-status,
		.tax-community-type,
		.category
	) .ast-builder-grid-row {
		padding-left: 0px;
		padding-right: 0px;
	}
}

/* ==================================
FULL-BLEED FIX: QUOTES ARCHIVE
================================== */

.bbt-archive-shell--quote {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.bbt-archive-shell--quote .bbt-archive-hero {
	width: 100%;
	max-width: none;
	margin: 0;
}

.bbt-archive-shell--quote .bbt-archive-content {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.bbt-archive-shell--quote .ast-container {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}