/* ==========================================================================
   Burton MLS Connector — public listing styles
   Brand: gold #C7A249 · text #444 · dark #1F1F1F · border #D3D3D3
   Everything is scoped under .bmc so it never leaks into the theme.
   ========================================================================== */

.bmc {
	--bmc-gold: #C7A249;
	--bmc-gold-dark: #a9873a;
	--bmc-dark: #1F1F1F;
	--bmc-text: #444444;
	--bmc-muted: #7a7a7a;
	--bmc-border: #D3D3D3;
	--bmc-bg-soft: #f7f5f0;
	--bmc-radius: 6px;
	--bmc-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.06);
	--bmc-shadow-hover: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.12);
	color: var(--bmc-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.bmc *, .bmc *::before, .bmc *::after { box-sizing: border-box; }
.bmc img { max-width: 100%; height: auto; display: block; }
.bmc a { color: var(--bmc-dark); text-decoration: none; }
.bmc a:hover { color: var(--bmc-gold-dark); }
.bmc h1, .bmc h2, .bmc h3 { color: var(--bmc-dark); margin: 0 0 .4em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.bmc h2 { font-size: 1.5rem; }
.bmc h3 { font-size: 1.125rem; }
.bmc ul { list-style: none; margin: 0; padding: 0; }
.bmc p { margin: 0 0 1em; }

.bmc-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bmc-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bmc-gold); font-weight: 600; margin-bottom: .75rem; }
.bmc-section-title { margin-bottom: 1.25rem; }

/* --- Buttons --------------------------------------------------------------- */
.bmc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.5rem; border-radius: var(--bmc-radius); font-weight: 600; font-size: .9375rem;
	line-height: 1; cursor: pointer; border: 2px solid transparent; transition: all .18s ease; white-space: nowrap;
	text-decoration: none; font-family: inherit;
}
/* !important + element-qualified selectors: the Elementor kit styles every
   <button> globally with higher specificity and was flipping these colors. */
.bmc a.bmc-btn--primary, .bmc button.bmc-btn--primary, .bmc .bmc-btn--primary {
	background: var(--bmc-gold) !important; border-color: var(--bmc-gold) !important; color: #fff !important;
}
.bmc a.bmc-btn--primary:hover, .bmc button.bmc-btn--primary:hover, .bmc .bmc-btn--primary:hover {
	background: var(--bmc-gold-dark) !important; border-color: var(--bmc-gold-dark) !important; color: #fff !important;
}
.bmc a.bmc-btn--outline, .bmc button.bmc-btn--outline, .bmc .bmc-btn--outline {
	background: #ffffff !important; border-color: var(--bmc-border) !important; color: var(--bmc-dark) !important;
}
.bmc a.bmc-btn--outline:hover, .bmc button.bmc-btn--outline:hover, .bmc .bmc-btn--outline:hover {
	background: var(--bmc-dark) !important; border-color: var(--bmc-dark) !important; color: #fff !important;
}
.bmc-btn--block { width: 100%; }

/* --- Hero (archive) -------------------------------------------------------- */
.bmc-hero { background: var(--bmc-dark); color: #fff; padding: 64px 0 56px; margin-bottom: 32px; }
.bmc .bmc-hero__title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.bmc-hero__sub { color: rgba(255,255,255,.75); max-width: 640px; font-size: 1.0625rem; margin: 0; }

/* --- Search / filter bar -------------------------------------------------- */
.bmc-search {
	background: #fff; border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius);
	padding: 18px 20px; margin-bottom: 28px; box-shadow: var(--bmc-shadow);
}
.bmc-search__row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
/* Desktop: the whole primary row (search + city + category + type + buttons)
   stays on ONE line; fields shrink instead of wrapping. */
@media (min-width: 1025px) {
	.bmc-search__row:not(.bmc-search__more) { flex-wrap: nowrap; }
	.bmc-search__row:not(.bmc-search__more) .bmc-field { min-width: 0; flex: 0 1 170px; }
	.bmc-search__row:not(.bmc-search__more) .bmc-field--grow { flex: 1 1 220px; min-width: 160px; }
	.bmc-search__row:not(.bmc-search__more) .bmc-btn { flex: 0 0 auto; padding-left: 1.1rem; padding-right: 1.1rem; }
}
.bmc-search__more { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--bmc-border); display: none; }
.bmc-search__more[data-open="1"] { display: flex; }
.bmc-search__toggle[aria-expanded="true"] { background: var(--bmc-dark) !important; border-color: var(--bmc-dark) !important; color: #fff !important; }
.bmc-search__clear { align-self: center; font-size: .875rem; color: var(--bmc-muted); text-decoration: underline; margin-left: auto; }
.bmc-search__count { margin: 14px 0 0; font-size: .9375rem; color: var(--bmc-muted); }
.bmc-search__count strong { color: var(--bmc-dark); }

.bmc-field { display: flex; flex-direction: column; gap: 5px; min-width: 130px; font-size: .9375rem; }
.bmc-field--grow { flex: 1 1 260px; }
.bmc-field > span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bmc-muted); }
.bmc input[type="text"], .bmc input[type="search"], .bmc input[type="email"], .bmc input[type="tel"], .bmc select, .bmc textarea {
	width: 100%; padding: .7rem .85rem; font: inherit; color: var(--bmc-dark); background: #fff;
	border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius); transition: border-color .15s, box-shadow .15s; margin: 0;
}
.bmc select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.6'/></svg>");
	background-repeat: no-repeat; background-position: right .9rem center; }
.bmc input:focus, .bmc select:focus, .bmc textarea:focus { outline: none; border-color: var(--bmc-gold); box-shadow: 0 0 0 3px rgba(199,162,73,.2); }

/* --- Grid & cards ----------------------------------------------------------- */
.bmc-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 36px; }
.bmc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bmc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bmc-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bmc-border);
	border-radius: var(--bmc-radius); overflow: hidden; box-shadow: var(--bmc-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.bmc-card:hover { transform: translateY(-3px); box-shadow: var(--bmc-shadow-hover); }
.bmc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece9e2; }
.bmc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bmc-card:hover .bmc-card__media img { transform: scale(1.04); }
.bmc-badge {
	position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: .72rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; color: #fff; background: rgba(31,31,31,.85); backdrop-filter: blur(4px);
}
.bmc-badge--status { top: 12px; left: 12px; background: var(--bmc-gold); }
.bmc-status--pending .bmc-badge--status, .bmc-status--under-contract .bmc-badge--status, .bmc-status--contingent .bmc-badge--status { background: #6b6b6b; }
.bmc-badge--photos { bottom: 12px; right: 12px; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.bmc-card__body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bmc-card__price { font-size: 1.375rem; font-weight: 700; color: var(--bmc-dark); }
.bmc-card__title { font-size: 1.0625rem; margin: 0; font-weight: 600; }
.bmc-card__title a { color: var(--bmc-dark); }
.bmc-card__location { font-size: .9rem; color: var(--bmc-muted); }
.bmc-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .9rem; color: var(--bmc-muted); }
.bmc-specs strong { color: var(--bmc-dark); font-weight: 600; }
.bmc-specs--lg { font-size: 1rem; gap: 8px 22px; margin-top: 12px; }
.bmc-specs--lg strong { font-size: 1.15rem; }
.bmc-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid #eee; font-size: .8125rem; }
.bmc-card__mls { color: var(--bmc-muted); }
.bmc-card__more { color: var(--bmc-gold-dark); font-weight: 600; }
.bmc-card__office { font-size: .75rem; color: #999; margin-top: 2px; }

.bmc-empty { text-align: center; padding: 60px 20px; background: var(--bmc-bg-soft); border-radius: var(--bmc-radius); margin-bottom: 36px; }
.bmc-empty p { max-width: 460px; margin: 0 auto 20px; color: var(--bmc-muted); }

/* --- Pagination ------------------------------------------------------------ */
.bmc-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 48px; }
.bmc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--bmc-border); border-radius: var(--bmc-radius); color: var(--bmc-dark); font-weight: 600; font-size: .9rem;
}
.bmc-pagination .page-numbers:hover { border-color: var(--bmc-gold); color: var(--bmc-gold-dark); }
.bmc-pagination .page-numbers.current { background: var(--bmc-dark); border-color: var(--bmc-dark); color: #fff; }
.bmc-pagination .page-numbers.dots { border: 0; }

/* --- CTA & disclaimer ----------------------------------------------------- */
.bmc-cta {
	display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
	background: var(--bmc-dark); color: #fff; padding: 40px; border-radius: var(--bmc-radius); margin-bottom: 32px;
}
.bmc-cta h2 { color: #fff; margin-bottom: .3em; }
.bmc-cta p { color: rgba(255,255,255,.75); margin: 0; max-width: 560px; }
.bmc-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bmc-cta .bmc-btn--outline { border-color: #fff; color: #fff !important; }
.bmc-cta .bmc-btn--outline:hover { background: #fff; color: var(--bmc-dark) !important; }
.bmc-disclaimer { font-size: .78rem; color: #888; margin: 8px 0 48px; line-height: 1.5; }
.bmc-disclaimer p { margin: 0 0 6px; }
.bmc-details--compact { grid-template-columns: 1fr; }
.bmc-details--compact .bmc-details__row { padding: 7px 0; border-color: #e6e2d8; }

/* --- Single listing --------------------------------------------------------- */
.bmc-single { padding-top: 28px; }
.bmc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--bmc-muted); margin-bottom: 20px; }
.bmc-breadcrumb a { color: var(--bmc-muted); }
.bmc-breadcrumb a:hover { color: var(--bmc-gold-dark); }
.bmc-breadcrumb [aria-current] { color: var(--bmc-dark); }

/* Gallery */
.bmc-gallery { position: relative; display: grid; gap: 10px; margin-bottom: 32px; border-radius: var(--bmc-radius); overflow: hidden; }
.bmc-gallery--multi { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; height: 520px; }
.bmc-gallery--single { height: 520px; }
.bmc-gallery__main { position: relative; display: block; height: 100%; overflow: hidden; background: #ece9e2; }
.bmc-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.bmc-gallery__main .bmc-badge--status { top: 16px; left: 16px; font-size: .8rem; }
.bmc-gallery__side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.bmc-gallery__thumb { position: relative; display: block; overflow: hidden; background: #ece9e2; }
.bmc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bmc-gallery__thumb:hover img { transform: scale(1.05); }
.bmc-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(31,31,31,.55); color: #fff; font-size: 1.5rem; font-weight: 700; }
.bmc-gallery__all {
	position: absolute; bottom: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
	background: #fff; color: var(--bmc-dark); border: 0; border-radius: var(--bmc-radius); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: var(--bmc-shadow);
}
.bmc-gallery__all:hover { background: var(--bmc-dark); color: #fff; }

/* Head */
.bmc-single__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--bmc-border); }
.bmc-single__title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .2em; }
.bmc-single__type { color: var(--bmc-gold-dark); font-weight: 600; font-size: .95rem; letter-spacing: .02em; margin: 0 0 4px; }
.bmc-single__location { color: var(--bmc-muted); font-size: 1.05rem; margin: 0; }
.bmc-buyer { background: var(--bmc-bg-soft); border-left: 4px solid var(--bmc-gold); padding: 26px 28px; border-radius: var(--bmc-radius); }
.bmc-buyer p { max-width: 640px; }
.bmc-buyer__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bmc-single__pricebox { text-align: right; flex-shrink: 0; }
.bmc-single__price { font-size: 2rem; font-weight: 700; color: var(--bmc-dark); line-height: 1.1; }
.bmc-single__mls { color: var(--bmc-muted); font-size: .85rem; margin: 6px 0 14px; }

/* Layout */
.bmc-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.bmc-single__side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.bmc-block { margin-bottom: 40px; }
.bmc-block--muted { background: var(--bmc-bg-soft); padding: 24px; border-radius: var(--bmc-radius); }
.bmc-block--muted h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bmc-muted); }
.bmc-remarks { font-size: 1.0625rem; line-height: 1.7; }
.bmc-courtesy { margin: 0; }

.bmc-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.bmc-details__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #eee; }
.bmc-details dt { color: var(--bmc-muted); font-size: .9rem; }
.bmc-details dd { margin: 0; font-weight: 600; color: var(--bmc-dark); text-align: right; }

.bmc-map { border-radius: var(--bmc-radius); overflow: hidden; border: 1px solid var(--bmc-border); }
.bmc-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.bmc-map__link { display: inline-block; margin-top: 10px; font-size: .875rem; color: var(--bmc-gold-dark); font-weight: 600; }

/* Sidebar: inquiry + broker */
.bmc-inquire { background: #fff; border: 1px solid var(--bmc-border); border-top: 4px solid var(--bmc-gold); border-radius: var(--bmc-radius); padding: 26px; box-shadow: var(--bmc-shadow); }
.bmc-inquire h3 { margin-bottom: .3em; }
.bmc-inquire > p { color: var(--bmc-muted); font-size: .9375rem; }
.bmc-lead-form { display: flex; flex-direction: column; gap: 14px; }
.bmc-lead-form textarea { resize: vertical; min-height: 96px; }
.bmc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bmc-inquire__alt { text-align: center; margin-top: 14px; font-size: .9rem; }
.bmc-inquire__alt a { color: var(--bmc-gold-dark); font-weight: 600; }
.bmc-notice { padding: 12px 14px; border-radius: var(--bmc-radius); font-size: .9375rem; margin-bottom: 14px; }
.bmc-notice--success { background: #eaf6ec; color: #1f6b30; border: 1px solid #bfe3c6; }
.bmc-broker { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--bmc-bg-soft); border-radius: var(--bmc-radius); }
.bmc-broker img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bmc-broker div { display: flex; flex-direction: column; font-size: .875rem; color: var(--bmc-muted); }
.bmc-broker strong { color: var(--bmc-dark); font-size: 1rem; }
.bmc-stale { font-size: .85rem; color: #8a6d1d; background: #fdf6e3; border: 1px solid #f1e0a8; padding: 10px 14px; border-radius: var(--bmc-radius); margin-bottom: 32px; }

.bmc-similar { padding-top: 32px; border-top: 1px solid var(--bmc-border); }
.bmc-similar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.bmc-similar__head a { color: var(--bmc-gold-dark); font-weight: 600; }

/* --- Off-market notice page ------------------------------------------------- */
.bmc-offmarket { padding: 36px 0 20px; }
.bmc-offmarket__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.bmc-offmarket__head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.bmc-offmarket__notice { display: inline-block; background: #fdf6e3; border: 1px solid #f1e0a8; color: #8a6d1d; padding: 8px 16px; border-radius: var(--bmc-radius); font-size: .95rem; margin: 8px 0 18px; }
.bmc-offmarket__sub { font-size: 1.25rem; color: var(--bmc-text); font-weight: 500; }

/* --- Lightbox ---------------------------------------------------------------- */
.bmc-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; }
.bmc-lightbox[hidden] { display: none; }
.bmc-lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.bmc-lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.bmc-lightbox figcaption { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 12px; }
.bmc-lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.bmc-lightbox button:hover { background: var(--bmc-gold); }
.bmc-lightbox__close { top: 20px; right: 20px; }
.bmc-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.bmc-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
body.bmc-lightbox-open { overflow: hidden; }

/* --- Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.bmc-grid, .bmc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bmc-single__layout { grid-template-columns: 1fr; }
	.bmc-single__side { position: static; }
	.bmc-gallery--multi, .bmc-gallery--single { height: 420px; }
}
@media (max-width: 640px) {
	.bmc-container { padding: 0 16px; }
	.bmc-hero { padding: 44px 0 36px; }
	.bmc-grid, .bmc-grid--2, .bmc-grid--4 { grid-template-columns: 1fr; gap: 20px; }
	.bmc-search__row .bmc-btn { flex: 1 1 auto; }
	.bmc-field { min-width: calc(50% - 7px); flex: 1 1 calc(50% - 7px); }
	.bmc-field--grow { flex-basis: 100%; }
	.bmc-gallery--multi { grid-template-columns: 1fr; height: auto; }
	.bmc-gallery__main { height: 260px; }
	.bmc-gallery__side { grid-template-columns: repeat(4, 1fr); grid-template-rows: 70px; }
	.bmc-single__head { flex-direction: column; gap: 16px; }
	.bmc-single__pricebox { text-align: left; }
	.bmc-details { grid-template-columns: 1fr; }
	.bmc-cta { padding: 28px 22px; }
	.bmc-lightbox button { width: 42px; height: 42px; font-size: 1.5rem; }
	.bmc-lightbox__prev { left: 8px; } .bmc-lightbox__next { right: 8px; }
}
