/* Byvaj – Ponuka nehnuteľností
 * Farby a písma preberá z globálneho nastavenia Elementoru (Site Settings).
 * Ak by sa vzhľad nezhodoval s webom, upravte iba hodnoty v bloku :root nižšie. */

:root {
	--bv-primary: var(--e-global-color-primary, #1d4e5f);
	--bv-accent: var(--e-global-color-accent, #c8933a);
	--bv-text: var(--e-global-color-text, #2b3440);
	--bv-dark: color-mix(in srgb, var(--bv-primary) 50%, #0c1622);
	--bv-muted: #5d6b79;
	--bv-bg: #f4f6f8;
	--bv-line: #e1e6eb;
	--bv-radius: 18px;
	--bv-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .07);
}

.bv-i { flex: none; vertical-align: -3px; }
.bv-is-hidden { display: none !important; }
html.bv-lock { overflow: hidden; }

/* ---------- Tlačidlá ---------- */
.bv-btn.bv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border-radius: 12px; border: 1px solid var(--bv-dark);
	background: var(--bv-dark); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.bv-btn.bv-btn:hover { background: var(--bv-primary); border-color: var(--bv-primary); color: #fff; }
.bv-btn--ghost.bv-btn--ghost { background: transparent; color: var(--bv-dark); border-color: var(--bv-line); }
.bv-btn--ghost.bv-btn--ghost:hover { background: var(--bv-bg); border-color: var(--bv-dark); color: var(--bv-dark); }
.bv-chipbtn.bv-chipbtn {
	display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
	background: #fff; color: var(--bv-dark); border: 1px solid var(--bv-line); font-size: .9rem; font-weight: 600;
	text-decoration: none; cursor: pointer; line-height: 1.2;
}
.bv-chipbtn.bv-chipbtn:hover { border-color: var(--bv-dark); background: #fff; color: var(--bv-dark); }
.bv-btn:focus-visible, .bv-chipbtn:focus-visible, .bv-filter select:focus-visible, .bv-filter input:focus-visible,
.bv-calc input:focus-visible, .bv-lightbox button:focus-visible { outline: 3px solid var(--bv-accent); outline-offset: 2px; }
.bv-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--bv-dark); }

/* ---------- Odznaky, cena, parametre ---------- */
.bv-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--bv-dark); font-size: .78rem; font-weight: 700; line-height: 1.2; }
.bv-badge--deal { background: var(--bv-dark); color: #fff; }
.bv-badge--new { background: var(--bv-accent); color: #1a1a1a; }
.bv-badge--tip { background: #fff; color: var(--bv-dark); }
.bv-badge--reserved { background: #f7c948; color: #3d2f00; }
.bv-badge--sold { background: #3b4450; color: #fff; }

.bv-price { font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--bv-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-ref { display: block; margin-top: 6px; font-size: .85rem; color: var(--bv-muted); }
.bv-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--bv-muted); font-size: .92rem; }
.bv-params { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--bv-text); font-size: .93rem; }
.bv-params li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.bv-params .bv-i { color: var(--bv-muted); width: 16px; height: 16px; }

/* ---------- Karta nehnuteľnosti (Elementor loop item aj PHP verzia) ---------- */
.bv-item { display: flex; }
.bv-item > .bv-card { flex: 1 1 auto; }
.bv-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.bv-card:hover { box-shadow: var(--bv-shadow); border-color: transparent; transform: translateY(-3px); }
.bv-card .e-con, .bv-card .elementor-widget { position: static; }
.bv-card .bv-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bv-bg); width: 100%; }
.bv-card__media .elementor-widget-image, .bv-card__media .elementor-widget-container, .bv-card__media a { height: 100%; display: block; }
.bv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bv-card:hover .bv-card__media img { transform: scale(1.04); }
.bv-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bv-bg), var(--bv-line)); }
.bv-card .bv-card__media .bv-card__badges, .bv-card__media > .bv-card__badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; pointer-events: none; width: auto; }
.bv-card.is-sold .bv-card__media img, .bv-card.is-sold.bv-item .bv-card__media img { filter: grayscale(1); opacity: .7; }
.bv-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1 1 auto; }
.bv-card__title, .bv-card__title .elementor-heading-title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.bv-card__title a { color: inherit; text-decoration: none; }
.bv-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bv-line); }
.bv-card__more, .bv-card__foot .elementor-button { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bv-dark); }
.bv-card__foot .elementor-button { background: transparent; padding: 0; border: 0; font-size: .95rem; }
.bv-card .elementor-widget-container { margin: 0; }
.bv-grid .elementor-loop-container { gap: 28px; align-items: stretch; }

/* ---------- Stránka Ponuka nehnuteľností ---------- */
.bv-hero { color: #fff; background: linear-gradient(135deg, var(--bv-dark) 0%, color-mix(in srgb, var(--bv-primary) 72%, #0c1622) 100%); }
.bv-hero .elementor-heading-title, .bv-hero h1 { color: #fff; margin: 0; letter-spacing: -.01em; }
.bv-hero p, .bv-hero .elementor-widget-text-editor { color: rgba(255, 255, 255, .86); }
.bv-hero .bv-lead { max-width: 56ch; font-size: 1.125rem; line-height: 1.6; }
.bv-hero .bv-count { margin: 0; color: rgba(255, 255, 255, .86); }
.bv-hero .bv-count strong { color: #fff; font-size: 1.15rem; }
.bv-hero .bv-btn--ghost.bv-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.bv-hero .bv-btn--ghost.bv-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.bv-hero .bv-btn.bv-btn:not(.bv-btn--ghost) { background: #fff; color: var(--bv-dark); border-color: #fff; }

.bv-hero .bv-hbtn--solid .elementor-button { background: #fff; color: var(--bv-dark); border: 1px solid #fff; border-radius: 12px; font-weight: 600; }
.bv-hero .bv-hbtn--solid .elementor-button:hover { background: rgba(255, 255, 255, .88); color: var(--bv-dark); }
.bv-hero .bv-hbtn--ghost .elementor-button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; font-weight: 600; }
.bv-hero .bv-hbtn--ghost .elementor-button:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.bv-filter-wrap { position: relative; z-index: 3; margin-top: -72px; }
.bv-filter { background: #fff; border: 1px solid var(--bv-line); border-radius: 22px; padding: 22px; box-shadow: var(--bv-shadow); width: 100%; }
.bv-filter__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.bv-filter__f { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bv-filter__f span { font-size: .82rem; font-weight: 600; color: var(--bv-muted); }
.bv-filter select, .bv-filter input[type="number"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--bv-line); border-radius: 12px; background-color: #fff; color: var(--bv-text); font-size: 1rem; }
.bv-filter__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 28px; }
.bv-filter__count { margin: 0; color: var(--bv-muted); font-size: .95rem; }
.bv-filter__reset.bv-filter__reset { padding: 6px 2px; border: 0; background: none; color: var(--bv-dark); font-weight: 600; text-decoration: underline; cursor: pointer; }
.bv-empty { margin-top: 16px; padding: 24px; border-radius: 14px; background: var(--bv-bg); }
.bv-empty[hidden] { display: none; }
.bv-empty p { margin: 6px 0 16px; color: var(--bv-muted); }

.bv-soft { background: var(--bv-bg); }
.bv-value .elementor-icon-box-title { font-size: 1.2rem; }
.bv-value .elementor-icon { color: var(--bv-dark); }
.bv-value .elementor-icon-box-wrapper { text-align: left; }
.bv-cta-panel { border-radius: 22px; padding: 32px; background: #fff; border: 1px solid var(--bv-line); }
.bv-cta-panel--dark { background: var(--bv-dark); border-color: var(--bv-dark); color: #fff; }
.bv-cta-panel--dark .elementor-heading-title, .bv-cta-panel--dark p { color: #fff; }
.bv-cta-panel--dark .elementor-button { background: #fff; color: var(--bv-dark); }

/* ---------- Detail nehnuteľnosti ---------- */
.bv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--bv-muted); }
.bv-crumbs a { color: var(--bv-muted); text-decoration: none; }
.bv-crumbs a:hover { color: var(--bv-dark); text-decoration: underline; }
.bv-title .elementor-heading-title, .bv-title h1 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
.bv-title-price { text-align: right; }
.bv-title-price .bv-price { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.bv-gallery { position: relative; display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 16 / 7; border-radius: 22px; overflow: hidden; background: var(--bv-bg); }
.bv-gallery__item { display: block; overflow: hidden; position: relative; }
.bv-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; }
.bv-gallery__item:hover img { transform: scale(1.03); filter: brightness(.92); }
.bv-gallery__item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.bv-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 8; }
.bv-gallery--1 .bv-gallery__item:first-child { grid-column: 1; grid-row: 1; }
.bv-gallery--2 .bv-gallery__item:first-child { grid-column: 1 / 4; }
.bv-gallery--2 .bv-gallery__item:nth-child(2) { grid-column: 4; grid-row: 1 / 3; }
.bv-gallery--3 .bv-gallery__item:nth-child(n+2) { grid-column: 3 / 5; }
.bv-gallery__tools { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bv-gallery--empty { display: grid; place-items: center; color: var(--bv-muted); }

.bv-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(8, 12, 18, .94); }
.bv-lightbox.is-open { display: flex; }
.bv-lightbox__fig { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; }
.bv-lightbox__fig img { display: block; max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.bv-lightbox__close, .bv-lightbox__nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; padding: 0; }
.bv-lightbox__close:hover, .bv-lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.bv-lightbox__close { top: 18px; right: 18px; }
.bv-lightbox__nav { top: 50%; transform: translateY(-50%); }
.bv-lightbox__nav--prev { left: 18px; }
.bv-lightbox__nav--next { right: 18px; }
.bv-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; }

.bv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
.bv-fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--bv-bg); }
.bv-fact__v { font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--bv-dark); font-variant-numeric: tabular-nums; }
.bv-fact__l { font-size: .85rem; color: var(--bv-muted); }
.bv-energy { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 1.05rem; font-weight: 700; }
.bv-energy--a { background: #1a9e55; } .bv-energy--b { background: #55b04a; } .bv-energy--c { background: #a7c43b; color: #1f2a00; }
.bv-energy--d { background: #f2c230; color: #3d2f00; } .bv-energy--e { background: #f29a2e; } .bv-energy--f { background: #e8601c; } .bv-energy--g { background: #d13b2f; }

.bv-block { margin-top: 44px; }
.bv-h2 { margin: 0 0 18px; font-size: 1.5rem; line-height: 1.25; }
.bv-desc .elementor-widget-theme-post-content { line-height: 1.75; }
.bv-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bv-chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border: 1px solid var(--bv-line); border-radius: 999px; font-size: .95rem; }
.bv-chips .bv-i { color: var(--bv-dark); width: 16px; height: 16px; }
.bv-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.bv-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--bv-line); }
.bv-table dt { color: var(--bv-muted); margin: 0; }
.bv-table dd { margin: 0; font-weight: 600; text-align: right; }
.bv-map { aspect-ratio: 16 / 8; border-radius: 18px; overflow: hidden; border: 1px solid var(--bv-line); background: var(--bv-bg); }
.bv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.bv-calc { padding: 28px; border-radius: 22px; background: var(--bv-bg); }
.bv-calc .bv-h2 { margin-bottom: 20px; }
.bv-calc__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.bv-calc__inputs { display: flex; flex-direction: column; gap: 18px; }
.bv-calc label { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bv-calc label > span { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; color: var(--bv-muted); }
.bv-calc label output { color: var(--bv-dark); font-weight: 700; }
.bv-calc input[type="number"] { min-height: 46px; padding: 8px 14px; border: 1px solid var(--bv-line); border-radius: 12px; background: #fff; font-size: 1rem; }
.bv-calc input[type="range"] { width: 100%; accent-color: var(--bv-dark); }
.bv-calc__result { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 18px; background: var(--bv-dark); color: #fff; }
.bv-calc__lbl { font-size: .92rem; opacity: .8; }
.bv-calc__month { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bv-calc__result dl { margin: 0; }
.bv-calc__result dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .93rem; }
.bv-calc__result dt { opacity: .8; margin: 0; }
.bv-calc__result dd { margin: 0; font-weight: 600; }
.bv-calc__result .bv-btn.bv-btn { margin-top: auto; background: #fff; color: var(--bv-dark); border-color: #fff; }
.bv-note { margin: 16px 0 0; font-size: .85rem; color: var(--bv-muted); }

.bv-sticky { position: sticky; top: 110px; align-self: flex-start; }
.bv-panel { padding: 26px; border: 1px solid var(--bv-line); border-radius: 22px; background: #fff; box-shadow: var(--bv-shadow); }
.bv-agent { display: flex; align-items: center; gap: 14px; }
.bv-agent__av { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--bv-dark); color: #fff; font-weight: 700; font-size: 1.1rem; }
.bv-agent__name { display: block; line-height: 1.25; }
.bv-agent__role { display: block; font-size: .85rem; color: var(--bv-muted); }
.bv-agent__btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bv-contact .bv-h3 { margin: 24px 0 12px; font-size: 1.15rem; }
.bv-contact .elementor-field-textual { padding: 12px 14px; border: 1px solid var(--bv-line); border-radius: 10px; background: #fff; }
.bv-contact .elementor-button { width: 100%; border-radius: 12px; background: var(--bv-dark); color: #fff; font-weight: 600; }
.bv-contact .elementor-button:hover { background: var(--bv-primary); }
.bv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.bv-share > span { width: 100%; font-size: .85rem; color: var(--bv-muted); }

.bv-similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bv-similar .bv-card__title { font-size: 1.2rem; }
.bv-similar__all { margin: 28px 0 0; text-align: center; }

.bv-sticky-cta { display: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1024px) {
	.bv-sticky { position: static; }
	.bv-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.bv-filter-wrap { margin-top: -56px; }
	.bv-filter { padding: 16px; border-radius: 18px; }
	.bv-title-price { text-align: left; }
	.bv-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; border-radius: 16px; }
	.bv-gallery .bv-gallery__item { display: none; }
	.bv-gallery .bv-gallery__item:first-child { display: block; grid-column: 1; grid-row: 1; }
	.bv-gallery__tools { left: 12px; right: 12px; bottom: 12px; justify-content: flex-start; }
	.bv-table { grid-template-columns: 1fr; }
	.bv-similar { grid-template-columns: 1fr; }
	.bv-calc { padding: 20px; }
	.bv-panel { padding: 20px; }
	.bv-lightbox__nav { width: 40px; height: 40px; }
	.bv-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bv-line); box-shadow: 0 -6px 24px rgba(16, 24, 40, .1); }
	.bv-sticky-cta > div { display: flex; flex-direction: column; margin-right: auto; line-height: 1.2; }
	.bv-sticky-cta span { font-size: .75rem; color: var(--bv-muted); }
	.bv-sticky-cta strong { font-size: 1.05rem; color: var(--bv-dark); white-space: nowrap; }
	.bv-sticky-cta .bv-btn.bv-btn { padding: 11px 16px; }
	body:has(.bv-sticky-cta) { padding-bottom: 76px; }
}

@media print {
	.bv-sticky-cta, .bv-share, .bv-contact form, .bv-gallery__tools, header, footer, .bv-similar, .bv-similar__all { display: none !important; }
	.bv-sticky { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.bv-card, .bv-card__media img, .bv-gallery__item img, .bv-btn { transition: none; }
	.bv-card:hover { transform: none; }
}
