/* Viladomy vizualizace – frontend */
.vv-viz{ position:relative; margin-top:24px; }
.vv-viz--empty{ padding:48px; text-align:center; color:#6d756b; background:#e8e9df; border-radius:14px; }

/* přepínač jazyků */
.vv-langs{ display:flex; gap:4px; justify-content:flex-end; margin-bottom:12px; }
.vv-lang{ appearance:none; border:1px solid rgba(41,58,47,.18); background:#fff; color:#293a2f;
	padding:5px 11px; border-radius:100px; font:600 .72rem/1 inherit; letter-spacing:.03em; cursor:pointer; transition:.2s; }
.vv-lang:hover{ border-color:#8DC63F; }
.vv-lang.is-active{ background:#293a2f; color:#fff; border-color:#293a2f; }

/* plán + hotspoty */
.vv-stage{ position:relative; border-radius:14px; overflow:hidden; box-shadow:0 30px 70px -30px rgba(31,42,34,.30); background:#e8e9df; line-height:0; }
.vv-stage__img{ width:100%; display:block; }
.vv-hs{ position:absolute; transform:translate(-50%,-50%); width:26px; height:26px; padding:0; border:0; background:none; cursor:pointer; z-index:2; }
.vv-hs__dot{ display:block; width:16px; height:16px; margin:5px; border-radius:50%; background:var(--c,#6b7060); border:2px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,.35); transition:transform .2s; }
.vv-hs::after{ content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--c,#6b7060); opacity:.55; animation:vvPing 2.2s cubic-bezier(.16,1,.3,1) infinite; }
.vv-hs:hover{ z-index:3; }
.vv-hs:hover .vv-hs__dot{ transform:scale(1.25); }
@keyframes vvPing{ 0%{ transform:scale(.6); opacity:.6 } 80%,100%{ transform:scale(1.9); opacity:0 } }
@media (prefers-reduced-motion:reduce){ .vv-hs::after{ animation:none } }

.vv-caption{ position:absolute; left:0; right:0; bottom:0; margin:0; padding:14px 18px; font-size:.85rem; line-height:1.4;
	color:#fff; background:linear-gradient(180deg,rgba(13,20,12,0),rgba(13,20,12,.72)); }

/* detail jednotky */
.vv-detail{ position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:20px;
	background:rgba(13,20,12,.6); backdrop-filter:blur(4px); }
.vv-detail[hidden]{ display:none; }
.vv-detail__panel{ position:relative; width:min(440px,100%); max-height:90vh; overflow:auto; background:#fff; color:#25302a;
	border-radius:16px; padding:28px; box-shadow:0 40px 100px -30px rgba(0,0,0,.5); }
.vv-detail__close{ position:absolute; top:12px; right:14px; border:0; background:none; font-size:26px; line-height:1; cursor:pointer; color:#6d756b; }
.vv-detail__close:hover{ color:#25302a; }
.vv-tag{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:100px; font-size:.72rem; font-weight:600;
	background:color-mix(in srgb, var(--c,#6b7060) 16%, #fff); color:var(--c,#6b7060); }
.vv-tag::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.vv-detail__panel h3{ margin:12px 0 16px; font-size:1.35rem; font-weight:700; }
.vv-detail__rows{ margin:0 0 16px; display:grid; gap:0; }
.vv-detail__rows > div{ display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid rgba(41,58,47,.1); }
.vv-detail__rows dt{ color:#6d756b; font-size:.85rem; margin:0; }
.vv-detail__rows dd{ margin:0; font-weight:600; text-align:right; }
.vv-detail__price{ font-size:1.5rem; font-weight:700; }
.vv-detail__act{ margin-top:4px; color:#5f9a27; font-size:.9rem; }
.vv-detail__act b{ font-size:1.05rem; }
.vv-detail__pdf{ display:flex; align-items:center; justify-content:center; gap:9px; width:100%; box-sizing:border-box;
	margin-top:16px; padding:15px 24px; border-radius:14px; border:1.5px solid rgba(255,255,255,.28);
	background:rgba(255,255,255,.12); color:#fff; font-size:1rem; font-weight:700; letter-spacing:0; text-transform:none;
	transition:background .2s, transform .2s; }
.vv-detail__pdf:hover{ background:rgba(255,255,255,.22); transform:translateY(-1px); }
.vv-detail__pdf svg{ flex:none; }

/* Rozbalovací nabídka „Karta domu" (stáhnout / zobrazit) – ceník i popup */
.vh-card{ position:relative; display:inline-block; }
.vh-card--block{ display:block; width:100%; }
.vh-card__btn{ font:inherit; cursor:pointer; }
.vh-card__caret{ transition:transform .2s; }
.vh-card.is-open .vh-card__caret{ transform:rotate(180deg); }
.vh-card__menu{ display:none; position:fixed; z-index:2147483000; min-width:200px; padding:6px; border-radius:12px;
	background:#fff; box-shadow:0 14px 38px rgba(16,33,10,.24); border:1px solid rgba(16,33,10,.08);
	/* menu se přesouvá na <html> (kvůli position:fixed mimo containing-block body.page) → explicitní font webu */
	font-family:'General Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; }
.vh-card__menu.is-shown{ display:block; animation:vhCardIn .16s ease; }
@keyframes vhCardIn{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }
.vh-card__item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; color:#15160f;
	font-size:.9rem; font-weight:500; line-height:1.2; text-decoration:none; white-space:nowrap; transition:background .15s; }
.vh-card__item:hover{ background:#eef4e4; color:#15160f; }
.vh-card__item svg{ flex:none; width:17px; height:17px; color:#5f9a27; }
.vv-detail__cta{ display:inline-flex; align-items:center; margin-top:14px; padding:11px 22px; border-radius:100px;
	background:#8DC63F; color:#10210a; font-weight:600; }
.vv-detail__cta:hover{ background:#5f9a27; color:#fff; }


/* === Interaktivní polygony (areas) na vizualizaci === */
.vv-stage { position: relative; }
.vv-stage .vv-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
/* barevná tečka stavu na domě (barva dle stavu jako v legendě), bez bílého prstence
   DOČASNĚ SKRYTO – pozice se ještě dolaďuje. Zapnout zpět: odstranit display:none. */
.vv-dot{ display:none; position:absolute; width:5px; height:5px; border-radius:50%; background:var(--c,#5f9a27); transform:translate(-50%,-50%); box-shadow:0 1px 2px rgba(0,0,0,.55); pointer-events:none; z-index:4; }
@media (max-width:600px){ .vv-dot{ width:4px; height:4px; } }
.vv-area {
  /* výchozí lehké vybarvení dle stavu (barvy z legendy) – hned je vidět volné/obsazené */
  fill: var(--c,#8DC63F); fill-opacity: .24;
  stroke: var(--c,#8DC63F); stroke-opacity: .85; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  cursor: pointer; transition: fill-opacity .2s ease, stroke .2s ease;
}
/* další etapa: výraznější než ostatní stavy */
.vv-area[data-status="future"]{ fill-opacity:.5; stroke-opacity:1; stroke-width:2; }
.vv-area[data-status="future"]:hover, .vv-area[data-status="future"].is-hl{ fill-opacity:.62; }
.vv-area:hover, .vv-area.is-hl, .vv-area:focus-visible { fill-opacity: .42; stroke: rgba(255,255,255,.95); outline: none; }
/* spotlight vrstva */
.vv-dim { fill: #0b1712; opacity: 0; pointer-events: none; transition: opacity .8s cubic-bezier(.22,.61,.36,1); }
.vv-svg.is-dim .vv-dim { opacity: .42; }
.vv-tip {
  position: fixed; z-index: 9999; pointer-events: none;
  background: #293a2f; color: #fff; padding: 12px 15px; border-radius: 12px; min-width: 156px;
  line-height: 1.35; box-shadow: 0 18px 46px -14px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(8px) scale(.97); transform-origin: top left;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.61,.36,1);
}
.vv-tip.show { opacity: 1; transform: translateY(0) scale(1); }
.vv-tip__id { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 7px; }
.vv-tip__st { display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 500; color: #aadd6a; margin-bottom: 9px; }
.vv-tip__st svg { flex: none; width: 13px; height: 13px; color: #aadd6a; }
.vv-tip__disp { display: block; font-size: .78rem; color: rgba(255,255,255,.72); }
.vv-tip__price { display: block; font-size: .9rem; font-weight: 600; margin-top: 6px; }


/* Spotlight ztmavení + popup ponechat animované i při reduced-motion
   (přepisuje globální *{transition:none!important} z hlavního CSS webu). */
@media (prefers-reduced-motion: reduce) {
  .vv-dim { transition: opacity .8s cubic-bezier(.22,.61,.36,1) !important; }
  .vv-tip { transition: opacity .22s ease, transform .22s cubic-bezier(.22,.61,.36,1) !important; }
}

/* --- Propojení s ceníkem: status tečka v bublině + budoucí etapa --- */
.vv-tip__dot{ width:9px; height:9px; border-radius:50%; flex:none; display:inline-block; }
.vv-tip__st{ color:rgba(255,255,255,.9); }
.vv-tip__st--future{ color:rgba(255,255,255,.72); }
.vv-tag--future{ --c:#6b7060; }
.vv-detail__future{ font-size:.92rem; line-height:1.6; color:rgba(41,58,47,.72); margin:10px 0 4px; }

/* popup detailu vizualizace: vždy systémový/webový font (žádný patkový) */
.vv-detail__panel, .vv-detail__panel * {
  font-family:'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* bublina je připnutá na <html> mimo <body> → explicitně webový/systémový font */
.vv-tip{ font-family:'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; min-width:212px; }
.vv-tip__rows{ display:block; margin:2px 0 9px; }
.vv-tip__row{ display:flex; justify-content:space-between; gap:16px; font-size:.76rem; padding:2px 0; line-height:1.3; }
.vv-tip__row em{ color:rgba(255,255,255,.52); font-style:normal; }
.vv-tip__row > span{ color:rgba(255,255,255,.92); font-weight:500; text-align:right; }
.vv-tip__price.is-old{ font-size:.8rem; font-weight:500; text-decoration:line-through; color:rgba(255,255,255,.5); margin-top:8px; }
.vv-tip__act{ display:block; font-size:.92rem; margin-top:2px; color:rgba(255,255,255,.7); }
.vv-tip__act b{ font-weight:700; color:#aadd6a; margin-right:4px; }

/* === 2-sloupcový detail: vlevo půdorys, vpravo tmavě zelené info + poptávka === */
.vv-detail__panel{ width:auto !important; max-width:96vw !important; padding:0 !important; overflow:visible !important; background:transparent !important; box-shadow:none !important; }
.vv-detail__grid{ display:grid; grid-template-columns:1.1fr 1fr; width:min(1120px,96vw); min-height:560px; max-height:92vh; border-radius:20px; overflow:hidden; box-shadow:0 40px 100px -30px rgba(0,0,0,.55); background:#fff; }
.vv-detail__plan-col{ background:#f4f6f2; padding:30px; overflow:auto; display:flex; flex-direction:column; gap:20px; justify-content:center; }
.vv-plan{ margin:0; }
.vv-plan img{ width:100%; display:block; border-radius:12px; background:#fff; box-shadow:0 8px 22px -12px rgba(0,0,0,.3); }
.vv-plan figcaption{ margin-top:8px; font-size:.78rem; font-weight:600; color:#6d756b; text-align:center; }
.vv-plan--none{ margin:auto; color:#8a9182; font-size:.9rem; text-align:center; }

/* pravý sloupec – tmavě zelený, bílé písmo; obsah může být vertikálně vycentrovaný */
.vv-detail__info-col{ position:relative; padding:40px 38px 34px; overflow:auto; background:#1d2a22; color:#fff; display:flex; flex-direction:column; }
.vv-detail__info-col h3{ color:#fff; margin:14px 0 20px; font-size:1.6rem; font-weight:700; }
.vv-detail__info-col .vv-detail__rows > div{ border-bottom-color:rgba(255,255,255,.12); padding:11px 0; }
.vv-detail__info-col .vv-detail__rows dt{ color:rgba(255,255,255,.58); }
.vv-detail__info-col .vv-detail__rows dd{ color:#fff; }
.vv-detail__info-col .vv-detail__pdf{ background:rgba(255,255,255,.14); margin-top:16px; }

/* animovaný přechod info ↔ formulář (pomalejší) */
.vv-detail__info[hidden], .vv-detail__form[hidden]{ display:none; }
.vv-detail__info:not([hidden]), .vv-detail__form:not([hidden]){ animation:vvSwap .55s cubic-bezier(.22,.61,.36,1); }
@keyframes vvSwap{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

/* cena – label vlevo, částky (stará přeškrtnutá + nová) vpravo pod sebou */
.vv-detail__pricebox{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:22px; }
.vv-detail__price-label{ font-size:.9rem; color:rgba(255,255,255,.58); }
.vv-detail__price-vals{ text-align:right; }
.vv-detail__price-old{ display:block; text-decoration:line-through; color:rgba(255,255,255,.5); font-size:.95rem; font-weight:500; line-height:1.3; }
.vv-detail__price{ display:block; font-size:1.5rem; font-weight:800; color:#fff; line-height:1.2; }

/* tlačítko Poptat dům – celá šířka, zaoblené rohy (ne pill), ikona */
.vv-poptat{ display:flex; align-items:center; justify-content:center; gap:9px; width:100%; margin-top:24px;
  padding:15px 24px; border:none; border-radius:14px; background:#8DC63F; color:#10210a; font-weight:700; font-size:1rem; cursor:pointer;
  transition:background .2s, transform .2s; }
.vv-poptat:hover{ background:#aadd6a; color:#10210a; transform:translateY(-1px); }
.vv-poptat svg{ flex:none; }

/* zavírací tlačítko – větší, v rohu, přetéká ven, podbarvené */
.vv-detail__close{ position:absolute; top:-18px; right:-18px; z-index:10; width:50px; height:50px;
  display:flex; align-items:center; justify-content:center; padding:0;
  background:#1d2a22; color:#fff; border:3px solid #fff; border-radius:50%;
  font-size:28px; line-height:1; cursor:pointer; box-shadow:0 8px 22px rgba(0,0,0,.35); transition:transform .2s, background .2s; }
.vv-detail__close:hover{ transform:scale(1.1); background:#2a3d31; color:#fff; }

/* poptávkový formulář (na tmavém pozadí, vertikálně vycentrovaný, tmavé inputy jeden řádek) */
.vv-detail__form{ display:flex; flex-direction:column; gap:12px; margin:auto 0; }
.vv-detail__form h3{ margin:0 0 8px; font-size:1.3rem; font-weight:700; color:#fff; }
.vv-form__row2{ display:grid; grid-template-columns:1fr; gap:12px; }
.vv-detail__form input, .vv-detail__form textarea{
  width:100%; box-sizing:border-box; font:inherit; color:#fff;
  padding:13px 15px; border:1px solid rgba(255,255,255,.16); border-radius:12px; background:rgba(0,0,0,.22); }
.vv-detail__form ::placeholder{ color:rgba(255,255,255,.5); }
.vv-detail__form input:focus, .vv-detail__form textarea:focus{ outline:none; border-color:#8DC63F; background:rgba(0,0,0,.3); box-shadow:0 0 0 3px rgba(141,198,63,.25); }
.vv-detail__form textarea{ resize:vertical; }
.vv-form__actions{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.vv-form__back{ background:none; border:none; color:rgba(255,255,255,.7); font:inherit; cursor:pointer; text-decoration:underline; padding:0; }
.vv-form__back:hover{ color:#fff; }
.vv-form__actions .vv-detail__cta{ margin:0 0 0 auto; cursor:pointer; border:none; border-radius:14px; padding:13px 24px; }
.vv-form__msg{ margin:2px 0 0; font-size:.85rem; color:#aadd6a; min-height:1em; }
.vv-form__msg.is-err{ color:#ff9a9a; }
.vv-form__done{ text-align:center; padding:24px 0; margin:auto 0; }
.vv-form__done h3{ color:#aadd6a; margin-bottom:6px; }
.vv-form__done p{ color:rgba(255,255,255,.8); }

/* budoucí etapa – samostatná vycentrovaná tmavá karta */
.vv-detail__single{ width:min(440px,90vw); margin:0 auto; background:#1d2a22; color:#fff; border-radius:20px;
  padding:40px 36px 36px; box-shadow:0 40px 100px -30px rgba(0,0,0,.55); text-align:center; }
.vv-detail__single h3{ color:#fff; margin:14px 0 12px; font-size:1.5rem; font-weight:700; }
.vv-detail__single .vv-detail__future{ color:rgba(255,255,255,.72); }
.vv-detail__single .vv-detail__cta{ margin-top:20px; border-radius:14px; cursor:pointer; }

@media (max-width:680px){
  .vv-detail__grid{ grid-template-columns:1fr; grid-template-rows:auto 1fr; min-height:0; }
  .vv-detail__plan-col{ max-height:34vh; }
  .vv-detail__close{ top:-12px; right:-12px; }
  /* po kliknutí „Poptat dům" formulář překryje i půdorys – na malých telefonech
     se jinak celý formulář nevejde vedle obrázku dispozice */
  .vv-detail__grid.is-form{ grid-template-rows:1fr; }
  .vv-detail__grid.is-form .vv-detail__plan-col{ display:none; }
  .vv-detail__grid.is-form .vv-detail__info-col{ max-height:92vh; }
}

/* cena skrytá (rezervace) → „na vyžádání" */
.vv-detail__price--ask{ font-size:1.3rem; font-weight:700; color:rgba(255,255,255,.85); }
.vv-tip__price--ask{ font-weight:600; opacity:.9; }

/* focus outline polygonu (po kliku myší) dělal tmavou „0" v pozadí – pryč (keyboard focus řeší :focus-visible stroke) */
.vv-area:focus{ outline:none !important; }
/* při otevřeném popupu skrýt :hover obrysy/spotlight polygonů (jinak zůstane „0" v pozadí) */
.vv-viz.vv-detail-open .vv-area{ stroke:transparent !important; outline:none !important; }
.vv-viz.vv-detail-open .vv-dim{ opacity:0 !important; }


/* === Detail jednotky: štítek stavu vpravo vedle čísla domu (jeden řádek) === */
.vv-detail__head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin:14px 0 20px; }
.vv-detail__head h3, .vv-detail__info-col .vv-detail__head h3{ margin:0; min-width:0; }
.vv-detail__head .vv-tag{ flex:none; }

/* mobil: kompaktnější panel + tlačítko „Poptat" vždy viditelné (přilepené dole), nemusí se scrollovat */
@media (max-width:680px){
  .vv-detail{ padding:12px; }
  .vv-detail__plan-col{ max-height:28vh; padding:18px; gap:14px; }
  .vv-detail__info-col{ padding:20px 20px 0; }
  .vv-detail__info-col .vv-detail__head{ margin:0 0 12px; }
  .vv-detail__info-col .vv-detail__head h3{ font-size:1.35rem; }
  .vv-detail__info-col .vv-detail__rows > div{ padding:8px 0; }
  .vv-detail__info-col .vv-detail__pricebox{ margin-top:14px; }
  .vv-detail__info-col .vv-detail__pdf{ margin-top:12px; }
  .vv-detail__info-col .vv-poptat{
    position:sticky; bottom:0; z-index:5; margin-top:16px; padding-block:15px;
    box-shadow:0 0 0 14px #1d2a22, 0 -18px 18px 8px #1d2a22;   /* podklad, aby pod tlačítkem nebylo vidět scrollující řádky */
  }
  .vv-detail__info-col .vv-detail__info{ padding-bottom:14px; }
}


/* mobil: půdorysy (1. NP / 2. NP) jako slideshow – swipe do strany, scroll-snap */
@media (max-width:680px){
  .vv-detail__plan-col{ flex-direction:row; justify-content:flex-start; align-items:center; gap:0; padding:14px 0;
    overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; max-height:none; }
  .vv-detail__plan-col::-webkit-scrollbar{ display:none; }
  .vv-detail__plan-col .vv-plan{ flex:0 0 100%; box-sizing:border-box; padding:0 18px; scroll-snap-align:center; scroll-snap-stop:always; }
  .vv-detail__plan-col .vv-plan img{ width:100%; height:22vh; object-fit:contain; }
  .vv-detail__plan-col .vv-plan[data-n]:not([data-n^="1/1"]) figcaption::after{ content:"  ·  " attr(data-n) "  ⟷"; color:#9aa293; font-weight:500; }
}


/* šipky slideshow půdorysů (jen mobil; na desktopu wrapper nic nedělá) */
.vv-plan-wrap{ display:contents; }
.vv-plan-arrow{ display:none; }
@media (max-width:680px){
  .vv-plan-wrap{ display:block; position:relative; min-height:0; }
  .vv-detail__grid.is-form .vv-plan-wrap{ display:none; }
  .vv-plan-arrow{ display:flex; align-items:center; justify-content:center; position:absolute; top:calc(50% - 10px); transform:translateY(-50%);
    width:34px; height:34px; padding:0; border:0; border-radius:50%; background:rgba(29,42,34,.82); color:#fff; cursor:pointer; z-index:3;
    box-shadow:0 4px 12px -4px rgba(0,0,0,.5); }
  .vv-plan-arrow[hidden]{ display:none; }
  .vv-plan-arrow--prev{ left:6px; }
  .vv-plan-arrow--next{ right:6px; }
}
