/* B&B Base Realty. Barvy a rozměry přes proměnné, návrhy z Kreativity je přepisují. */
:root {
	--bbr-primary: #1f3a5f;
	--bbr-accent: #c8a45d;
	--bbr-text: #1d2430;
	--bbr-muted: #6b7380;
	--bbr-line: #e4e7ec;
	--bbr-bg: #ffffff;
	--bbr-soft: #f5f6f8;
	--bbr-radius: 10px;
	--bbr-gap: 24px;
	--bbr-max: 1240px;
	--bbr-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bbr-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--bbr-font); color: var(--bbr-text); background: var(--bbr-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--bbr-primary); }
.bbr-container { width: 100%; max-width: var(--bbr-max); margin-inline: auto; padding-inline: 20px; }
.bbr-main { padding-block: 32px 64px; }
.bbr-page-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin: 0 0 24px; }
.bbr-section-title { font-size: 1.25rem; margin: 0 0 16px; }
.bbr-skip { position: absolute; left: -9999px; }
.bbr-skip:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 8px 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bbr-noscroll { overflow: hidden; }
.bbr-empty { padding: 32px; text-align: center; color: var(--bbr-muted); background: var(--bbr-soft); border-radius: var(--bbr-radius); }

.bbr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--bbr-radius); background: var(--bbr-primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.bbr-btn:hover { filter: brightness(1.12); }
.bbr-btn:active { transform: translateY(1px); }
.bbr-btn:disabled { opacity: .6; cursor: progress; }
.bbr-btn--block { width: 100%; }

/* ---------- Hlavička a patička (výchozí, když není Elementor šablona) ---------- */
.bbr-site-header { border-bottom: 1px solid var(--bbr-line); background: var(--bbr-bg); position: sticky; top: 0; z-index: 50; }
.bbr-site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.bbr-site-header__name { font-weight: 700; font-size: 1.2rem; color: var(--bbr-text); text-decoration: none; }
.bbr-site-header .custom-logo { max-height: 48px; width: auto; }
.bbr-site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.bbr-site-nav a { color: var(--bbr-text); text-decoration: none; font-weight: 500; }
.bbr-site-nav a:hover, .bbr-site-nav .current-menu-item > a { color: var(--bbr-primary); }
.bbr-nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.bbr-nav-toggle span:first-child, .bbr-nav-toggle span:first-child::before, .bbr-nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--bbr-text); content: ""; }
.bbr-nav-toggle span:first-child { top: 21px; }
.bbr-nav-toggle span:first-child::before { top: -7px; left: 0; }
.bbr-nav-toggle span:first-child::after { top: 7px; left: 0; }
.bbr-site-footer { border-top: 1px solid var(--bbr-line); background: var(--bbr-soft); color: var(--bbr-muted); font-size: .9rem; }
.bbr-site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; }
.bbr-site-footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.bbr-site-footer a { color: inherit; }

@media (max-width: 860px) {
	.bbr-nav-toggle { display: block; }
	.bbr-site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bbr-bg); border-bottom: 1px solid var(--bbr-line); padding: 12px 20px 20px; }
	.bbr-nav-open .bbr-site-nav { display: block; }
	.bbr-site-nav ul { flex-direction: column; gap: 4px; }
	.bbr-site-nav a { display: block; padding: 10px 0; }
}

/* ---------- Štítky ---------- */
.bbr-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bbr-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; background: var(--bbr-primary); color: #fff; line-height: 1.4; }
.bbr-badge--label { background: var(--bbr-accent); }

/* ---------- Detail ---------- */
.bbr-prop-header { margin-bottom: 24px; }
.bbr-prop-header__title { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
.bbr-prop-header__address { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--bbr-muted); }
.bbr-prop-header__address svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.bbr-prop-header__ref { margin: 4px 0 0; font-size: .85rem; color: var(--bbr-muted); }

.bbr-property__layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 32px; }
.bbr-property__main > * + * { margin-top: 40px; }
.bbr-property__side { position: relative; }
.bbr-property__side > .bbr-agent { position: sticky; top: 96px; }
@media (max-width: 980px) { .bbr-property__layout { grid-template-columns: 1fr; } }

/* Galerie */
.bbr-gallery { position: relative; display: grid !important; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--bbr-radius); overflow: hidden; }
.bbr-gallery.is-single { grid-template-columns: 1fr; }
.bbr-gallery a { display: block; position: relative; overflow: hidden; background: var(--bbr-soft); }
.bbr-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bbr-gallery a:hover img { transform: scale(1.03); }
.bbr-gallery__main { aspect-ratio: 3 / 2; }
.bbr-gallery__thumbs { display: grid !important; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
.bbr-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 1.4rem; font-weight: 700; }
.bbr-gallery__all { position: absolute; right: 16px; bottom: 16px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--bbr-text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: var(--bbr-shadow); }
@media (max-width: 720px) {
	.bbr-gallery { grid-template-columns: 1fr; }
	.bbr-gallery__thumbs { display: none !important; }
}

/* Lightbox */
.bbr-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(10, 14, 22, .94); }
.bbr-lightbox.is-open { display: flex; }
.bbr-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.bbr-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.bbr-lightbox figcaption { color: #cbd2dc; font-size: .9rem; margin-top: 10px; }
.bbr-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.bbr-lightbox button:hover { background: rgba(255, 255, 255, .2); }
.bbr-lightbox__close { top: 20px; right: 20px; }
.bbr-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.bbr-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.bbr-lightbox.is-single .bbr-lightbox__prev, .bbr-lightbox.is-single .bbr-lightbox__next { display: none; }

/* Cena */
.bbr-price__main { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--bbr-primary); line-height: 1.2; }
.bbr-price__vat { font-size: .55em; font-weight: 500; color: var(--bbr-muted); }
.bbr-price__second { margin-top: 4px; color: var(--bbr-muted); }

/* Parametry */
.bbr-params__list { display: grid !important; grid-template-columns: repeat(var(--bbr-cols, 2), minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.bbr-params__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bbr-line); }
.bbr-params__row dt { color: var(--bbr-muted); }
.bbr-params__row dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 640px) { .bbr-params__list { grid-template-columns: 1fr; } }
.bbr-features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.bbr-features li { padding: 6px 12px; border-radius: 999px; background: var(--bbr-soft); font-size: .9rem; }

/* Popis */
.bbr-content > :first-child { margin-top: 0; }
.bbr-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 24px; border-radius: var(--bbr-radius); overflow: hidden; background: #000; }
.bbr-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mapa */
.bbr-map { width: 100%; border-radius: var(--bbr-radius); overflow: hidden; background: var(--bbr-soft); z-index: 0; }
.bbr-location__link { margin: 8px 0 0; font-size: .9rem; }
.bbr-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--bbr-primary); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.bbr-popup { display: block; width: 200px; color: var(--bbr-text); text-decoration: none; }
.bbr-popup img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.bbr-popup strong { display: block; font-size: .9rem; line-height: 1.3; }
.bbr-popup span { color: var(--bbr-primary); font-weight: 700; }

/* Makléř a poptávka */
.bbr-agent { padding: 24px; border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); background: var(--bbr-bg); box-shadow: var(--bbr-shadow); }
.bbr-agent__card { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.bbr-agent__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.bbr-agent__name { margin: 0; font-weight: 700; }
.bbr-agent__role { margin: 0; color: var(--bbr-muted); font-size: .9rem; }
.bbr-agent__line { display: block; font-size: .95rem; text-decoration: none; }
.bbr-inquiry { display: grid; gap: 12px; }
.bbr-inquiry__msg { margin: 0; font-size: .9rem; }
.bbr-inquiry__msg.is-ok { color: #157347; }
.bbr-inquiry__msg.is-error { color: #b42318; }
.bbr-hp { position: absolute !important; left: -9999px; }

/* ---------- Formulářová pole ---------- */
.bbr-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; border: 0; padding: 0; }
.bbr-field > span, .bbr-field > legend { font-size: .82rem; font-weight: 600; color: var(--bbr-muted); padding: 0; }
.bbr-field small { font-weight: 400; }
.bbr-field input, .bbr-field select, .bbr-field textarea, .bbr-results__sort select {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius);
	background: var(--bbr-bg); color: var(--bbr-text); font: inherit; font-size: 1rem;
}
.bbr-field textarea { min-height: 110px; resize: vertical; }
.bbr-field input:focus, .bbr-field select:focus, .bbr-field textarea:focus { outline: 2px solid var(--bbr-primary); outline-offset: 0; border-color: transparent; }
.bbr-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.bbr-range input { min-width: 0; width: 100%; }

/* ---------- Vyhledávací formulář ---------- */
.bbr-search-form { display: grid !important; gap: 16px; padding: 20px; border-radius: var(--bbr-radius); background: var(--bbr-soft); margin-bottom: 32px; }
.bbr-search-form--horizontal { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.bbr-search-form--horizontal .bbr-field--range { grid-column: span 2; min-width: 0; }
@media (max-width: 520px) { .bbr-search-form--horizontal .bbr-field--range { grid-column: auto; } }
.bbr-search-form--vertical { grid-template-columns: 1fr; }
.bbr-field--submit { flex-direction: row; align-items: center; gap: 14px; }
.bbr-search-form__reset { font-size: .85rem; color: var(--bbr-muted); white-space: nowrap; }

/* ---------- Výsledky ---------- */
.bbr-results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.bbr-results__count { margin: 0; font-weight: 600; }
.bbr-results__sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--bbr-muted); }
.bbr-results__sort select { width: auto; min-height: 40px; }
.bbr-results__layout { display: block; }
.bbr-results.has-map .bbr-results__layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 24px; align-items: start; }
.bbr-results__map { position: sticky; top: 96px; height: var(--bbr-map-h, 520px); border-radius: var(--bbr-radius); overflow: hidden; z-index: 0; }
.bbr-results.has-map .bbr-grid { --bbr-cols: 2 !important; }
.bbr-results__list { transition: opacity .2s; }
.bbr-results.is-loading .bbr-results__list { opacity: .45; pointer-events: none; }
@media (max-width: 980px) {
	.bbr-results.has-map .bbr-results__layout { grid-template-columns: 1fr; }
	.bbr-results__map { position: relative; top: 0; order: -1; height: 320px; }
}

/* Mřížka a karta */
.bbr-grid { display: grid !important; grid-template-columns: repeat(var(--bbr-cols, 3), minmax(0, 1fr)); gap: var(--bbr-gap); }
@media (max-width: 1024px) { .bbr-grid { grid-template-columns: repeat(min(var(--bbr-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .bbr-grid { grid-template-columns: 1fr !important; } }
.bbr-card { display: flex; flex-direction: column; border-radius: var(--bbr-radius); overflow: hidden; background: var(--bbr-bg); border: 1px solid var(--bbr-line); transition: box-shadow .2s, transform .2s; }
.bbr-card:hover { box-shadow: var(--bbr-shadow); transform: translateY(-2px); }
.bbr-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bbr-soft); overflow: hidden; }
.bbr-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bbr-card__noimg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bbr-soft), var(--bbr-line)); }
.bbr-card__media .bbr-badge { position: absolute; top: 12px; left: 12px; }
.bbr-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bbr-card__price { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--bbr-primary); }
.bbr-card__title { margin: 0; font-size: 1rem; line-height: 1.35; }
.bbr-card__title a { color: var(--bbr-text); text-decoration: none; }
.bbr-card__title a::after { content: ""; position: absolute; inset: 0; }
.bbr-card { position: relative; }
.bbr-card__address { margin: 0; font-size: .88rem; color: var(--bbr-muted); }
.bbr-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--bbr-line); font-size: .85rem; color: var(--bbr-muted); }
.bbr-card__meta:only-child { border: 0; }

/* Stránkování */
.bbr-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.bbr-pagination__item { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--bbr-radius); border: 1px solid var(--bbr-line); color: var(--bbr-text); text-decoration: none; font-weight: 600; }
.bbr-pagination__item:hover { border-color: var(--bbr-primary); color: var(--bbr-primary); }
.bbr-pagination__item.is-current { background: var(--bbr-primary); border-color: var(--bbr-primary); color: #fff; }
.bbr-pagination__gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--bbr-muted); }

@media (prefers-reduced-motion: reduce) {
	.bbr-card, .bbr-gallery img, .bbr-results__list { transition: none; }
	.bbr-card:hover { transform: none; }
}

/* ---------- PENB ---------- */
.bbr-energy__scale { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; max-width: 520px; }
.bbr-energy__step { display: flex; align-items: center; gap: 10px; }
.bbr-energy__bar { display: flex; align-items: center; gap: 8px; width: var(--bbr-w); min-height: 28px; padding: 0 12px; background: var(--bbr-e); color: #1d2430; font-size: .85rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); opacity: .45; }
.bbr-energy__bar b { font-size: 1rem; }
.bbr-energy__step.is-current .bbr-energy__bar { opacity: 1; min-height: 36px; font-weight: 600; }
.bbr-energy__mark { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; background: var(--bbr-text); color: #fff; font-weight: 700; border-radius: 4px; }
.bbr-energy__none { margin: 0 0 12px; color: var(--bbr-muted); }

/* ---------- Půdorysy ---------- */
.bbr-floorplan { border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); margin-bottom: 10px; background: var(--bbr-bg); }
.bbr-floorplan summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.bbr-floorplan summary::-webkit-details-marker { display: none; }
.bbr-floorplan summary::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--bbr-muted); }
.bbr-floorplan[open] summary::after { content: "\2212"; }
.bbr-floorplan__meta { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 400; color: var(--bbr-muted); font-size: .9rem; }
.bbr-floorplan__body { padding: 0 18px 18px; }
.bbr-floorplan__img { display: block; background: #fff; border-radius: 8px; overflow: hidden; }
.bbr-floorplan__img img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.bbr-floorplan__desc { margin: 12px 0 0; color: var(--bbr-muted); font-size: .92rem; }

/* ---------- Dokumenty ---------- */
.bbr-documents__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bbr-documents__list a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); color: var(--bbr-text); text-decoration: none; }
.bbr-documents__list a:hover { border-color: var(--bbr-primary); }
.bbr-documents__ext { display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 6px; border-radius: 6px; background: var(--bbr-primary); color: #fff; font-size: .75rem; font-weight: 700; }
.bbr-documents__name { flex: 1; font-weight: 500; }
.bbr-documents__size { color: var(--bbr-muted); font-size: .85rem; white-space: nowrap; }

/* ---------- Souhlas ve formuláři ---------- */
.bbr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--bbr-muted); }
.bbr-consent input { margin-top: 3px; }

/* ---------- Přepínače výpisu ---------- */
.bbr-results__tools { display: flex; align-items: center; gap: 16px; }
.bbr-view-toggle { display: inline-flex; border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); overflow: hidden; }
.bbr-view-toggle button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--bbr-bg); color: var(--bbr-muted); cursor: pointer; }
.bbr-view-toggle button + button { border-left: 1px solid var(--bbr-line); }
.bbr-view-toggle button[aria-pressed="true"] { background: var(--bbr-primary); color: #fff; }
.bbr-view-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* Seznam */
.bbr-results.is-list .bbr-grid { grid-template-columns: 1fr !important; }
.bbr-results.is-list .bbr-card { flex-direction: row; }
.bbr-results.is-list .bbr-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
.bbr-results.is-list .bbr-card__body { padding: 18px 22px; }
.bbr-results.is-list .bbr-card__title { font-size: 1.1rem; }
@media (max-width: 640px) {
	.bbr-results.is-list .bbr-card { flex-direction: column; }
	.bbr-results.is-list .bbr-card__media { flex-basis: auto; aspect-ratio: 3 / 2; min-height: 0; }
}

/* Skrytá mapa */
.bbr-results.has-map.is-map-hidden .bbr-results__layout { grid-template-columns: 1fr !important; }
.bbr-results.has-map.is-map-hidden .bbr-results__map { display: none; }
.bbr-results.has-map.is-map-hidden:not(.is-list) .bbr-grid { --bbr-cols: 3 !important; }

/* Půl na půl s mapou přes výšku okna */
.bbr-results--halfmap .bbr-results__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 0 !important; }
.bbr-results--halfmap .bbr-results__list { padding: 0 24px 24px 0; }
.bbr-results--halfmap .bbr-results__map { top: 0; height: 100vh; border-radius: 0; }
.admin-bar .bbr-results--halfmap .bbr-results__map { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 980px) {
	.bbr-results--halfmap .bbr-results__layout { grid-template-columns: 1fr !important; }
	.bbr-results--halfmap .bbr-results__list { padding: 0; }
	.bbr-results--halfmap .bbr-results__map { height: 320px; position: relative; }
}

/* ---------- 0.6: akce, oblíbené, sdílení ---------- */
.bbr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.bbr-action { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--bbr-line); border-radius: 999px; background: var(--bbr-bg); color: var(--bbr-text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s; }
.bbr-action:hover { border-color: var(--bbr-primary); color: var(--bbr-primary); }
.bbr-action:focus-visible, .bbr-card__fav:focus-visible, .bbr-tabs__list button:focus-visible, .bbr-save-search:focus-visible { outline: 2px solid var(--bbr-primary); outline-offset: 2px; }
.bbr-action svg, .bbr-card__fav svg, .bbr-save-search svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.bbr-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.bbr-fav.is-active { color: #c0392b; border-color: currentColor; }
.bbr-fav.is-active svg { fill: currentColor; }
.bbr-card__fav { position: absolute; top: 10px; right: 10px; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--bbr-text); cursor: pointer; box-shadow: var(--bbr-shadow); }
.bbr-card__fav:hover { color: #c0392b; }
.bbr-share { position: relative; }
.bbr-share__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--bbr-bg); border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); box-shadow: var(--bbr-shadow); }
.bbr-share__menu a, .bbr-share__menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--bbr-text); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.bbr-share__menu a:hover, .bbr-share__menu button:hover { background: var(--bbr-soft); }
.bbr-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100001; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--bbr-radius); background: var(--bbr-text); color: #fff; font-size: .92rem; box-shadow: var(--bbr-shadow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.bbr-toast.is-open { opacity: 1; transform: translate(-50%, 0); }
.bbr-toast.is-error { background: #b42318; }
.bbr-save-search { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--bbr-line); border-radius: var(--bbr-radius); background: var(--bbr-bg); color: var(--bbr-text); font: inherit; font-size: .9rem; cursor: pointer; }
.bbr-save-search:hover, .bbr-save-search.is-active { border-color: var(--bbr-primary); color: var(--bbr-primary); }

/* ---------- Formuláře ---------- */
.bbr-inquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bbr-inquiry__row { grid-template-columns: 1fr; } }
.bbr-consent a { color: inherit; }
.bbr-viewing { padding: 24px; border-radius: var(--bbr-radius); background: var(--bbr-soft); }

/* ---------- Hypoteční kalkulačka ---------- */
.bbr-mortgage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bbr-mortgage__inputs { display: grid; gap: 14px; }
.bbr-mortgage input[type=range] { width: 100%; accent-color: var(--bbr-primary); }
.bbr-mortgage__result { padding: 24px; border-radius: var(--bbr-radius); background: var(--bbr-primary); color: #fff; }
.bbr-mortgage__label { margin: 0; font-size: .9rem; opacity: .8; }
.bbr-mortgage__payment { margin: 4px 0 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bbr-mortgage__facts { margin: 0; display: grid; gap: 8px; }
.bbr-mortgage__facts div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; }
.bbr-mortgage__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bbr-mortgage__note { margin: 14px 0 0; font-size: .78rem; opacity: .75; }
@media (max-width: 720px) { .bbr-mortgage__grid { grid-template-columns: 1fr; } }

/* ---------- Záložky nemovitostí ---------- */
.bbr-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.bbr-tabs__list button { min-height: 42px; padding: 0 18px; border: 1px solid var(--bbr-line); border-radius: 999px; background: var(--bbr-bg); color: var(--bbr-text); font: inherit; font-weight: 600; cursor: pointer; }
.bbr-tabs__list button[aria-selected=true] { background: var(--bbr-primary); border-color: var(--bbr-primary); color: #fff; }
.bbr-tabs__more { margin: 28px 0 0; text-align: center; }

/* ---------- Makléři ---------- */
.bbr-team { display: grid; grid-template-columns: repeat(var(--bbr-cols, 4), minmax(0, 1fr)); gap: var(--bbr-gap); }
@media (max-width: 980px) { .bbr-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bbr-team { grid-template-columns: 1fr; } }
.bbr-team__card { text-align: center; }
.bbr-team__photo { display: block; aspect-ratio: 1; border-radius: var(--bbr-radius); overflow: hidden; background: var(--bbr-soft); margin-bottom: 14px; }
.bbr-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.bbr-team__name { margin: 0; font-size: 1.05rem; }
.bbr-team__name a { color: var(--bbr-text); text-decoration: none; }
.bbr-team__role { margin: 2px 0 8px; color: var(--bbr-muted); font-size: .9rem; }
.bbr-team__line { display: block; font-size: .9rem; text-decoration: none; }
.bbr-agent-profile__head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; }
.bbr-agent-profile__photo { width: 240px; height: 240px; border-radius: var(--bbr-radius); object-fit: cover; }
.bbr-agent-profile__name { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.bbr-agent-profile__role { margin: 4px 0 14px; color: var(--bbr-muted); }
.bbr-agent-profile__contacts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; font-size: 1.05rem; }
.bbr-agent-profile__contacts a { text-decoration: none; font-weight: 600; }
.bbr-agent-profile__facts { margin: 0 0 14px; display: grid; gap: 4px; font-size: .92rem; }
.bbr-agent-profile__facts div { display: flex; gap: 8px; }
.bbr-agent-profile__facts dt { color: var(--bbr-muted); }
.bbr-agent-profile__facts dd { margin: 0; }
.bbr-agent-profile__bio { margin-top: 32px; max-width: 72ch; }
.bbr-agent-profile__form { margin-top: 32px; max-width: 640px; }
.bbr-agent-listings { margin-top: 48px; }
.bbr-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.bbr-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bbr-soft); color: var(--bbr-text); }
.bbr-social a:hover { background: var(--bbr-primary); color: #fff; }
.bbr-social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 720px) {
	.bbr-agent-profile__head { grid-template-columns: 1fr; text-align: left; }
	.bbr-agent-profile__photo { width: 160px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	.bbr-toast, .bbr-action { transition: none; }
}

/* ---------- Tisk detailu ---------- */
@media print {
	@page { margin: 14mm; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.bbr-site-header, .bbr-site-footer, .bbr-actions, .bbr-inquiry, .bbr-viewing, .bbr-mortgage, .bbr-map, .bbr-location, .bbr-gallery__all, .bbr-gallery__more, .bbr-card__fav, .bbr-toast, .bbr-lightbox,
	.elementor-location-header, .elementor-location-footer, header.elementor, footer.elementor, #wpadminbar { display: none !important; }
	.bbr-container { max-width: none; padding: 0; }
	.bbr-property__layout { display: block !important; margin-top: 12px; }
	.bbr-property__side > .bbr-agent { position: static; box-shadow: none; border: 1px solid #ccc; margin-top: 16px; }
	.bbr-gallery { grid-template-columns: 2fr 1fr; break-inside: avoid; }
	.bbr-gallery__thumbs a:nth-child(n+3) { display: none; }
	.bbr-params, .bbr-energy, .bbr-floorplan { break-inside: avoid; }
	.bbr-floorplan:not([open]) > .bbr-floorplan__body { display: block; }
	a { color: #000; text-decoration: none; }
	.bbr-price__main { color: #000; }
}
