/* BMX EasyBroker Sync — tokens from bajamxliving_com-DESIGN.md */
.bmx-eb {
	--bmx-primary: #1C3F6E;
	--bmx-deep: #061E56;
	--bmx-focus: rgba(13, 110, 253, 0.25);
	--bmx-canvas: #F4F4F4;
	--bmx-ink: #333333;
	--bmx-body: #666666;
	--bmx-hairline: #DEE2E6;
	--bmx-white: #FFFFFF;
	--bmx-serif: "Playfair Display", Georgia, serif;
	--bmx-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	box-sizing: border-box;
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 16px 80px;
	font-family: var(--bmx-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bmx-ink);
}
.bmx-eb *, .bmx-eb *::before, .bmx-eb *::after { box-sizing: inherit; }
.bmx-eb img { max-width: 100%; height: auto; display: block; }
.bmx-eb a { color: var(--bmx-primary); }
.bmx-eb a:focus-visible,
.bmx-eb button:focus-visible { outline: none; box-shadow: 0 0 0 0.25rem var(--bmx-focus); }

/* Type */
.bmx-eb .bmx-h1 {
	font-family: var(--bmx-serif);
	font-weight: 800;
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--bmx-ink);
	margin: 0 0 12px;
	padding: 0;
}
.bmx-eb .bmx-h2 {
	font-family: var(--bmx-serif);
	font-weight: 700;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.2;
	color: var(--bmx-ink);
	margin: 0 0 20px;
	padding: 0;
}
.bmx-eb .bmx-h3 {
	font-family: var(--bmx-serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--bmx-white);
	margin: 0 0 16px;
	padding: 0;
}
.bmx-eb p { margin: 0 0 16px; padding: 0; }
.bmx-lead { color: var(--bmx-body); max-width: 62ch; }
.bmx-count { font-family: var(--bmx-sans); font-size: 16px; font-weight: 400; color: var(--bmx-body); margin-left: 8px; }

/* Archive */
.bmx-archive-head { margin-bottom: 48px; max-width: 760px; }
.bmx-section + .bmx-section { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--bmx-hairline); }
.bmx-empty { padding: 24px; border: 1px solid var(--bmx-hairline); color: var(--bmx-body); }

/* Grid + cards */
.bmx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px 24px;
}
.bmx-card { border: 1px solid var(--bmx-hairline); background: var(--bmx-white); }
.bmx-eb .bmx-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.bmx-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--bmx-canvas); overflow: hidden; }
.bmx-eb .bmx-card__media img { width: 100%; height: 100%; object-fit: cover; }
a.bmx-card__link:hover .bmx-card__title { text-decoration: underline; text-underline-offset: 3px; }
.bmx-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.bmx-eb .bmx-card__price { font-family: var(--bmx-serif); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--bmx-primary); margin: 0 0 8px; }
.bmx-eb .bmx-card__title { font-family: var(--bmx-sans); font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--bmx-ink); margin: 0 0 6px; padding: 0; }
.bmx-eb .bmx-card__where { font-size: 15px; color: var(--bmx-body); margin: 0 0 16px; }
.bmx-card__facts { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--bmx-hairline); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--bmx-ink); }
.bmx-eb .bmx-card__facts li { margin: 0; padding: 0; }

.bmx-grid--sold .bmx-card__media img { filter: grayscale(0.35); }

/* Badges */
.bmx-badge {
	position: absolute; top: 0; left: 0;
	padding: 6px 12px;
	background: var(--bmx-primary); color: var(--bmx-white);
	font-size: 13px; font-weight: 700; line-height: 1.4;
}
.bmx-badge--sold { background: var(--bmx-deep); }
.bmx-badge--inline { position: static; display: inline-block; margin-bottom: 12px; }

/* Single */
.bmx-back { font-size: 15px; margin-bottom: 24px; }
.bmx-eb .bmx-back a { text-decoration: none; }
.bmx-eb .bmx-back a::before { content: "‹ "; }
.bmx-single__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 32px; }
.bmx-single__head > div:first-child { max-width: 760px; }
.bmx-eb .bmx-single__where { color: var(--bmx-body); margin: 0; }
.bmx-single__price { text-align: right; }
.bmx-eb .bmx-single__price p { font-family: var(--bmx-serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--bmx-primary); margin: 0; }

/* Gallery */
.bmx-gallery { margin-bottom: 48px; }
.bmx-gallery__stage { position: relative; background: var(--bmx-canvas); aspect-ratio: 3 / 2; max-height: 680px; width: 100%; overflow: hidden; border-radius: 4px; }
.bmx-eb .bmx-gallery__main { width: 100%; height: 100%; object-fit: cover; }
.bmx-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border: 0; border-radius: 0;
	background: var(--bmx-deep); color: var(--bmx-white);
	font-size: 30px; line-height: 1; cursor: pointer; opacity: 0.9;
}
.bmx-gallery__nav:hover { opacity: 1; }
.bmx-gallery__nav--prev { left: 0; }
.bmx-gallery__nav--next { right: 0; }
.bmx-eb .bmx-gallery__count { position: absolute; right: 0; bottom: 0; margin: 0; padding: 6px 12px; background: var(--bmx-deep); color: var(--bmx-white); font-size: 14px; }
.bmx-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: thin; }
.bmx-gallery__thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.7; border-radius: 0; }
.bmx-gallery__thumb.is-active { border-color: var(--bmx-primary); opacity: 1; }
.bmx-gallery__thumb:hover { opacity: 1; }
.bmx-eb .bmx-gallery__thumb img { width: 120px; height: 80px; object-fit: cover; }

/* Body layout */
.bmx-single__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 992px) {
	.bmx-single__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
}
.bmx-single__main > section { margin-top: 48px; }

.bmx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--bmx-hairline); border-left: 1px solid var(--bmx-hairline); }
.bmx-facts > div { padding: 16px; border-right: 1px solid var(--bmx-hairline); border-bottom: 1px solid var(--bmx-hairline); }
.bmx-eb .bmx-facts dt { font-size: 14px; color: var(--bmx-body); margin: 0 0 4px; font-weight: 400; }
.bmx-eb .bmx-facts dd { font-size: 16px; font-weight: 700; color: var(--bmx-ink); margin: 0; }

.bmx-description { max-width: 68ch; }
.bmx-eb .bmx-description p { line-height: 1.7; color: var(--bmx-ink); }

.bmx-features { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 32px; }
.bmx-eb .bmx-features li { break-inside: avoid; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--bmx-hairline); position: relative; margin: 0; }
.bmx-eb .bmx-features li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; background: var(--bmx-primary); }

.bmx-video { position: relative; aspect-ratio: 16 / 9; background: var(--bmx-deep); }
.bmx-video__facade { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; width: 100%; }
.bmx-eb .bmx-video__facade img { width: 100%; height: 100%; object-fit: cover; }
.bmx-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); background: var(--bmx-deep); opacity: 0.92; }
.bmx-video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--bmx-white); }
.bmx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bmx-eb .bmx-ref { margin-top: 48px; font-size: 14px; color: var(--bmx-body); }

/* Inquiry panel */
.bmx-inquiry { background: var(--bmx-deep); color: var(--bmx-white); padding: 32px 24px; }
.bmx-inquiry p { color: var(--bmx-white); }
.bmx-agent { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.bmx-eb .bmx-agent img { width: 56px; height: 56px; object-fit: cover; border-radius: 9999px; }
.bmx-eb .bmx-agent p { margin: 0; }
.bmx-inquiry__form { background: var(--bmx-white); color: var(--bmx-ink); padding: 16px; }
.bmx-inquiry__form p { color: var(--bmx-ink); }
.bmx-eb .bmx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 24px; width: 100%;
	background: var(--bmx-white); color: var(--bmx-primary);
	font-weight: 700; text-decoration: none; border-radius: 0;
}
.bmx-eb .bmx-btn:hover { opacity: 0.9; }

@media (max-width: 767px) {
	.bmx-eb { padding-top: 32px; }
	.bmx-single__price { text-align: left; }
	.bmx-gallery__nav { width: 40px; height: 40px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.bmx-eb * { scroll-behavior: auto !important; }
}
