/* ==========================================================
   Dediči.sk v2 – dizajnový systém
   Moderný, rýchly, bez externých závislostí.
   ========================================================== */

:root {
  /* Modra paleta podla povodneho brandu (nv-primary-accent #0065cb) */
  --blue-950: #0d1821;
  --blue-900: #0f2a47;
  --blue-800: #08427e;
  --blue-700: #0057ad;   /* brand secondary accent */
  --blue-600: #0065cb;   /* brand primary accent */
  --blue-300: #7db6ea;
  --blue-100: #dcebfa;
  --blue-50:  #f0f6fc;
  --success:  #2e7d32;
  --bg:        #fafbfd;
  --surface:   #ffffff;
  --text:      #1e2733;
  --muted:     #5b6673;
  --border:    #e2e8ef;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(13, 24, 33, .06), 0 8px 24px rgba(13, 24, 33, .07);
  --shadow-lg: 0 4px 12px rgba(13, 24, 33, .10), 0 16px 48px rgba(13, 24, 33, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue-700);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo img { display: block; height: 40px; width: auto; }

.site-nav { position: relative; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--text);
  font-weight: 500; border-radius: 10px; transition: background .15s;
}
.nav-list a:not(.btn):hover { background: var(--blue-50); color: var(--blue-700); }
.nav-list a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }
.nav-cta { margin-left: 8px; }
.nav-toggle, .nav-toggle-input { display: none; }
/* kompaktné CTA v sticky hlavičke – viditeľné len na mobile (desktop má CTA v menu) */
/* .header-inner prefix = vyššia špecificita než .btn, inak by .btn prebilo display:none */
.header-inner .header-cta { display: none; }

@media (max-width: 860px) {
  .header-inner .header-cta {
    display: inline-block; margin-left: auto; padding: 9px 14px;
    font-size: .92rem; border-radius: 10px; white-space: nowrap;
  }
  .header-inner { gap: 10px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .2s; }
  .nav-list {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; min-width: 240px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  }
  .nav-toggle-input:checked ~ .nav-list { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; text-align: center; }
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: transform .12s, box-shadow .12s, background .15s; cursor: pointer;
  font-size: 1rem; line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff !important; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--blue-700) !important; border-color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--blue-800) !important; box-shadow: var(--shadow); }
.btn-light:hover { box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 28px; font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 60%, var(--blue-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 { margin: 0 0 16px; color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #d7e6f7; margin: 0 0 28px; }
.hero .btn-secondary { color: #fff !important; border-color: rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.1); }
.hero-media img { border-radius: var(--radius); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) {
  /* text (nadpis + CTA) prvý, aby boli tlačidlá hneď vo viewporte;
     obrázok menší a až pod nimi */
  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 22px 32px; }
  .hero-media { order: 2; max-width: 280px; margin-inline: auto; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 20px; }
}

/* ---------- Sekcie ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--blue-50); }
.section-dark { background: var(--blue-900); color: #e6eef7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: #a9bdd3; }

/* ---------- Štatistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--blue-700); display: block; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Kroky (ako to funguje) ---------- */
.step-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding-block: 28px;
}
.step-row video, .step-row img { border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step-row h3 { margin: 0 0 10px; font-size: 1.4rem; }
.step-row p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 800px) {
  .step-row { grid-template-columns: 1fr; gap: 16px; }
  .step-row .step-media { order: -1; }
}

/* ---------- Karty ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .cards-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  color: var(--text);
}
.section-dark .card a:not(.btn) { color: var(--blue-700); }
.card h3 { margin-top: 0; }
.card .badge {
  display: inline-block; background: var(--blue-100); color: var(--blue-800);
  font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.card img { border-radius: var(--radius-sm); }
.price-free { font-size: 1.4rem; font-weight: 800; color: var(--success); }

/* ---------- CTA pás ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 640px; margin: 0 auto 28px; }

/* ---------- Sprievodca (wizard) ---------- */
.wizard { max-width: 780px; margin-inline: auto; }
.wiz-progress {
  display: none; gap: 8px; justify-content: center; margin-bottom: 28px;
}
.js .wiz-progress { display: flex; }
.wiz-progress .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: .2s;
}
.wiz-progress .dot.active { background: var(--blue-700); transform: scale(1.25); }

.wiz-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; margin-bottom: 28px;
}
.js .wiz-step { display: none; }
.js .wiz-step.current { display: block; animation: wiz-in .25s ease; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wiz-step h2, .wiz-step h3 { margin-top: 0; }
.wiz-q-label {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--blue-600); margin-bottom: 8px;
}
.wiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 620px) { .wiz-answers { grid-template-columns: 1fr; } }
.wiz-answer {
  display: block; width: 100%; text-align: left; font: inherit;
  background: var(--blue-50); color: var(--text);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; font-weight: 600;
  transition: border-color .15s, background .15s; text-decoration: none;
}
.wiz-answer:hover { border-color: var(--blue-600); background: var(--blue-100); }
.wiz-answer small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }

.wiz-result-ok { border-left: 5px solid var(--success); }
.wiz-result-no { border-left: 5px solid #c0392b; }
.wiz-back {
  display: none; background: none; border: none; color: var(--muted);
  font: inherit; cursor: pointer; padding: 6px 0; margin-bottom: 10px;
}
.js .wiz-back.visible { display: inline-flex; align-items: center; gap: 6px; }
.wiz-back:hover { color: var(--blue-700); }

.hint {
  background: #fffbea; border: 1px solid #f2e4b3; border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 20px; font-size: .95rem;
}
.hint summary { cursor: pointer; font-weight: 600; color: #7a6420; }
.hint p { margin: 10px 0 0; color: #5d5230; }

/* ---------- Upsell box ---------- */
.upsell {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center;
  background: var(--blue-900); color: #e6eef7;
  border-radius: var(--radius); padding: 24px; margin-top: 26px;
}
.upsell img { border-radius: 50%; width: 88px; height: 88px; object-fit: cover; }
.upsell h4 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.upsell p { margin: 0 0 12px; font-size: .93rem; color: #a9bdd3; }
.upsell .btn { padding: 10px 18px; font-size: .95rem; }
@media (max-width: 560px) { .upsell { grid-template-columns: 1fr; text-align: center; } .upsell img { margin-inline: auto; } }

/* ---------- Tím ---------- */
.profile {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
}
.profile img { border-radius: var(--radius); box-shadow: var(--shadow); }
.profile .role { color: var(--blue-600); font-weight: 700; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .profile img { max-width: 300px; } }

/* ---------- Footer ---------- */
.site-footer img.footer-logo { filter: brightness(0) invert(1); opacity: .92; }
.site-footer {
  background: var(--blue-950); color: #a9bdd3; margin-top: 64px;
  font-size: .95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr .9fr; gap: 32px;
  padding-block: 48px 32px;
}
.site-footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a9bdd3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-tagline { margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Pomocné ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 40px; }

/* ---------- Detail návodu ---------- */
.guide-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { text-decoration: none; }
.guide-content h1 { margin-top: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.guide-content h2 { margin-top: 40px; padding-top: 8px; }
.guide-content img { border-radius: var(--radius-sm); }
.guide-content .btn { margin: 8px 0; }
.guide-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
}
.guide-aside { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 900px) { .guide-aside { position: static; } }
.aside-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.aside-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.aside-card h3 { margin: 0 0 8px; font-size: 1rem; }
.aside-card p { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.aside-card .btn { width: 100%; text-align: center; padding: 10px 16px; font-size: .95rem; }
.aside-expert img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; margin-bottom: 10px; }

/* ---------- Dokumenty ---------- */
.doc-category { margin: 40px 0 16px; font-size: 1.2rem; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px; text-decoration: none;
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.doc-item:hover { border-color: var(--blue-600); box-shadow: var(--shadow); color: var(--text); }
.doc-item .doc-icon { font-size: 1.6rem; line-height: 1; padding-top: 2px; }
.doc-item strong { color: var(--blue-700); display: block; margin-bottom: 4px; }
.doc-item small { color: var(--muted); font-size: .88rem; line-height: 1.45; display: block; }

.doc-paper {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px);
  font-size: .98rem; line-height: 1.7;
}
.doc-paper p { margin: 0 0 14px; }
.doc-mark {
  background: var(--blue-100); color: var(--blue-800);
  padding: 1px 5px; border-radius: 4px;
}
.text-right { text-align: right; }

/* ---------- Zoznam návodov ---------- */
.guide-list h3 { margin: 28px 0 10px; }
.guide-list ol { margin: 0; padding-left: 0; list-style: none; counter-reset: gl; }
.guide-list li { counter-increment: gl; margin-bottom: 10px; }
.guide-list li a {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none;
  color: var(--text); font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.guide-list li a:hover { border-color: var(--blue-600); box-shadow: var(--shadow); }
.guide-list li a::before {
  content: counter(gl);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-800); font-weight: 700;
}

/* ---------- Tlač ---------- */
@media print {
  .site-header, .site-footer, .guide-aside, .guide-nav, .breadcrumb, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .doc-paper { border: none; box-shadow: none; padding: 0; }
  .doc-mark { background: none; color: inherit; padding: 0; }
  .guide-layout { display: block; }
}

/* ---------- Tabuľka obcí + filter ---------- */
.table-filter {
  width: 100%; max-width: 420px; padding: 12px 16px; font: inherit;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.table-filter:focus { outline: none; border-color: var(--blue-600); }
.table-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); max-height: 560px; overflow-y: auto;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th {
  position: sticky; top: 0; background: var(--blue-50); text-align: left;
  padding: 12px 16px; border-bottom: 2px solid var(--border); z-index: 2;
}
.table-wrap td { padding: 9px 16px; border-bottom: 1px solid var(--border); }
.table-wrap tbody tr:hover { background: var(--blue-50); }

/* ---------- Kontaktný formulár ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; max-width: 980px; margin-inline: auto; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-weight: 600; margin-bottom: 16px; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-weight: 400; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; }
.form-error { background: #fdecea; border: 1px solid #f5c6c0; color: #a4322a; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-ok { background: #eaf7ee; border: 1px solid #bfe3ca; color: var(--success); padding: 12px 16px; border-radius: var(--radius-sm); }
.vh-pin-hint { background: var(--blue-50); border: 1px solid var(--border); color: var(--muted); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; line-height: 1.5; }
.vh-pin-hint strong { color: var(--text); }
.vh-resend { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: .95rem; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-600); text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--blue-800); }
.vh-pin-alt { color: var(--muted); }
.vh-alt { margin-top: 20px; text-align: center; }
.vh-alt-sep { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 12px; position: relative; }
.vh-alt-sep::before, .vh-alt-sep::after { content: ""; position: absolute; top: 50%; width: calc(50% - 28px); border-top: 1px solid var(--border); }
.vh-alt-sep::before { left: 0; } .vh-alt-sep::after { right: 0; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.btn-google:hover { border-color: var(--blue-300); background: var(--blue-50); }
.vh-alt-note { margin-top: 10px; color: var(--muted); font-size: .85rem; }

/* Overlay nad tabulkou reportu, kym sa dotahuju data z katastra */
.vh-loading-host { position: relative; }
.vh-loading { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding-top: 44px; background: rgba(250, 251, 253, .84); transition: opacity .35s ease; }
.vh-loading.is-done { opacity: 0; pointer-events: none; }
.vh-loading-box { width: min(320px, 86%); text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 26px; }
.vh-loading-title { font-weight: 600; margin: 12px 0 4px; }
.vh-loading-sub { color: var(--muted); font-size: .9rem; margin: 0 0 14px; min-height: 1.2em; }
.vh-spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: vh-spin .8s linear infinite; }
@keyframes vh-spin { to { transform: rotate(360deg); } }
.vh-progress { height: 6px; background: var(--blue-100); border-radius: 999px; overflow: hidden; }
.vh-progress span { display: block; height: 100%; width: 0; background: var(--blue-600); border-radius: 999px; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .vh-spinner { animation-duration: 2.4s; }
  .vh-progress span, .vh-loading { transition: none; }
}
.form-success h2 { color: var(--success); }

/* ---------- E-book box ---------- */
.ebook-box {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
  background: var(--blue-900); color: #e6eef7;
  border-radius: var(--radius); padding: clamp(28px, 5vw, 52px);
  max-width: 920px; margin-inline: auto;
}
.ebook-box h2 { color: #fff; }
.ebook-box p { color: #c3d4e6; }
.ebook-box img { border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 260px; justify-self: center; }
.ebook-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ebook-form input {
  flex: 1 1 220px; padding: 13px 16px; font: inherit;
  border: 2px solid transparent; border-radius: var(--radius-sm);
}
.ebook-form input:focus { outline: none; border-color: var(--blue-300); }
@media (max-width: 720px) { .ebook-box { grid-template-columns: 1fr; } .ebook-box img { order: -1; max-width: 180px; } }

/* ---------- Vyhľadávač (vh) ---------- */
.vh-form { max-width: 480px; margin-inline: auto; }
.vh-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vh-results table { font-size: .93rem; }
.vh-results input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue-600); cursor: pointer; }
.vh-results tbody tr { cursor: pointer; }
.vh-pin { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; max-width: 200px; }
.vh-sticky-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 12px 18px; margin-top: 14px;
}
@media (max-width: 620px) {
  .vh-results table { font-size: .85rem; }
  .vh-results th, .vh-results td { padding: 8px 10px; }
  .vh-sticky-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Vyhľadávač: mapa + multiselect filtre ---------- */
.vh-map {
  background: var(--blue-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 12px 6px; margin-bottom: 24px;
}
.vh-map svg { width: 100%; height: auto; display: block; }
.vh-map-outline { fill: #fff; stroke: var(--blue-300); stroke-width: 1.5; }
.vh-dot {
  fill: var(--blue-600); fill-opacity: .55; stroke: var(--blue-800); stroke-width: 1;
  cursor: pointer; transition: fill-opacity .12s, stroke-width .12s;
}
.vh-dot:hover { fill-opacity: .8; }
.vh-dot.active { fill: var(--success); fill-opacity: .9; stroke-width: 2.5; }
.vh-map-hint { text-align: center; font-size: .85rem; margin: 6px 0 2px; }

.vh-filters {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 20px;
  align-items: end; margin-bottom: 16px;
}
/* mobil: filtre schované za ikonkou */
.vh-filters-toggle { display: none; }
@media (max-width: 720px) {
  .vh-filters { grid-template-columns: 1fr; display: none; }
  .vh-filters.open { display: grid; }
  .vh-filters-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; padding: 12px 16px; margin-bottom: 12px;
    background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; color: var(--blue-800); cursor: pointer;
  }
  .vh-filters-toggle .vh-ft-caret { transition: transform .2s; font-size: 1.1rem; }
  .vh-filters-toggle.open .vh-ft-caret { transform: rotate(180deg); }
}
.vh-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.vh-count { white-space: nowrap; padding-bottom: 10px; font-size: .9rem; }

/* multiselect */
.ms {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  min-height: 46px; padding: 6px 8px; background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
}
.ms:focus-within { border-color: var(--blue-600); }
/* chips v ohraničenom scroll boxe – pri veľa vybraných obciach sa input nenaťahuje */
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; max-height: 108px; overflow-y: auto; }
.ms-chips:empty { display: none; }
.ms-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--blue-100); color: var(--blue-800);
  border-radius: 999px; padding: 3px 6px 3px 10px; font-size: .85rem; font-weight: 600;
}
.ms-x { background: none; border: none; cursor: pointer; color: var(--blue-800);
  font-size: 1.1rem; line-height: 1; padding: 0 2px; }
.ms-x:hover { color: #c0392b; }
.ms-input { flex: 1 1 80px; border: none; outline: none; font: inherit; padding: 4px; min-width: 80px; background: none; }
.ms-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  max-height: 260px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.ms-opt { display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 14px; font: inherit; cursor: pointer; }
.ms-opt:hover { background: var(--blue-50); color: var(--blue-700); }

/* ---------- Vyhľadávač: kroky + výber lokalít + zoom ---------- */
.vh-steps {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 20px; font-size: .82rem; font-weight: 600;
}
.vh-steps span, .vh-steps a {
  padding: 5px 14px; border-radius: 999px; background: var(--blue-50);
  color: var(--muted); border: 1px solid var(--border); text-decoration: none;
}
.vh-steps a { cursor: pointer; }
.vh-steps a:hover { background: var(--blue-100); color: var(--blue-700); }
.vh-steps .active { background: var(--blue-700); color: #fff !important; border-color: var(--blue-700); }
.vh-steps a.active:hover { background: var(--blue-600); }
.vh-steps .current { box-shadow: 0 0 0 3px var(--blue-100); }
.vh-back-link { font-size: .92rem; }

.vh-map { position: relative; }
.vh-map svg { touch-action: none; cursor: grab; }
.vh-map-controls {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.vh-zoom {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--blue-700); font-size: 1.3rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow); line-height: 1;
}
.vh-zoom:hover { background: var(--blue-50); }

.vh-loc-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 14px;
}
.vh-check-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.vh-check-all input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.vh-loc-table table { font-size: .95rem; }
.vh-loc-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue-600); cursor: pointer; }
.vh-loc-table tbody tr { cursor: pointer; }
.vh-loc-table tbody tr:hover { background: var(--blue-50); }
.vh-sticky-bar .btn-secondary { white-space: nowrap; }


/* mapa tooltip */
.vh-tip {
  position: absolute; z-index: 10; transform: translate(-50%, -100%);
  background: var(--blue-900); color: #fff; padding: 5px 10px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-lg);
}

/* master checkbox v hlavičke + odkazy na LV v reporte */
.vh-loc-all-head, .vh-sel-all { width: 20px; height: 20px; accent-color: var(--blue-600); cursor: pointer; }
.vh-lv-links { white-space: nowrap; }
.vh-lv-links a { display: inline-block; margin-right: 10px; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.vh-lv-links a:hover { text-decoration: underline; }
@media (max-width: 620px) { .vh-lv-links a { display: block; margin: 2px 0; } }

/* kataster detaily v reporte */
.kat { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kat-wait { color: var(--muted); animation: kat-pulse 1.2s ease-in-out infinite; }
@keyframes kat-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.kat-myarea strong { color: var(--blue-700); }

/* report: klikateľný riadok + modal detail LV */
.vh-row-click { cursor: pointer; }
.vh-row-click:hover { background: var(--blue-50); }
.vh-cb-cell { cursor: default; }
.vh-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vh-modal[hidden] { display: none; }
.vh-modal-backdrop { position: absolute; inset: 0; background: rgba(13,24,33,.55); backdrop-filter: blur(2px); animation: vhFade .2s ease; }
.vh-modal-box {
  position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 760px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  animation: vhPop .22s cubic-bezier(.2,.8,.3,1);
}
.vh-modal-scroll { overflow-y: auto; padding: clamp(20px, 4vw, 34px); }
.vh-modal-x {
  position: absolute; top: 10px; right: 12px; z-index: 6; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; font-size: 1.7rem; line-height: 1;
  cursor: pointer; color: var(--muted);
}
.vh-modal-x:hover { color: var(--text); background: var(--blue-50); }
@keyframes vhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vhPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.vh-modal.closing .vh-modal-backdrop { animation: vhFade .16s ease reverse forwards; }
.vh-modal.closing .vh-modal-box { animation: vhPop .16s ease reverse forwards; }
.vh-modal-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 640px) { .vh-modal-grid { grid-template-columns: 1fr; } }
.vh-modal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.vh-modal-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 7px 10px 7px 0; vertical-align: top; white-space: nowrap; }
.vh-modal-table td { padding: 7px 0; text-align: right; }
.vh-modal-table .vh-modal-sum td, .vh-modal-table .vh-modal-sum th { border-top: 1px solid var(--border); font-weight: 700; color: var(--text); }
.vh-modal-map { background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.vh-modal-map svg { width: 100%; height: auto; display: block; }
.vh-modal-img { margin-top: 18px; text-align: center; }
.vh-modal-img img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.vh-modal-links { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.vh-modal-links a { text-decoration: none; font-weight: 600; }

/* klikateľné parcely v modale -> ZBGIS mapka (nové okno) */
.vh-parcel-row { cursor: pointer; }
.vh-parcel-row:hover { background: var(--blue-50); }
.vh-parcel-link { color: var(--blue-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.vh-parcel-link:hover { text-decoration: underline; }
.vh-parcel-link .ext { font-size: .8em; opacity: .7; margin-left: 1px; }

/* mobil: modal ostáva popup s marginmi (close hore + CTA dole vždy viditeľné cez flex layout) */
@media (max-width: 640px) {
  .vh-modal { padding: 12px; }
  .vh-modal-box { max-height: 88vh; }
  .vh-modal-cta .btn { flex: 1; text-align: center; min-width: 0; }
}

/* modal: tlačidlo detailu + tabuľka parciel */
.vh-detail-cell { text-align: right; white-space: nowrap; }
.btn-detail {
  background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.btn-detail:hover { background: var(--blue-100); border-color: var(--blue-600); }
.vh-row-sel { cursor: pointer; }
.vh-row-sel:hover { background: var(--blue-50); }
.vh-parcels-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.vh-parcels-table th { text-align: left; background: var(--blue-50); padding: 8px 12px; border-bottom: 2px solid var(--border); }
.vh-parcels-table td { padding: 7px 12px; border-bottom: 1px solid var(--border); }
.vh-parcels-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* skóre kvality badge */
.vh-score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.vh-score-hi { background: #e3f4e4; color: #1e6b26; }
.vh-score-mid { background: var(--blue-100); color: var(--blue-800); }
.vh-score-lo { background: #eef1f4; color: var(--muted); }

/* box "Riešite dedičstvo po…" v sprievodcovi – kompaktný, rozbaliteľný */
.vh-case-box {
  max-width: 780px; margin: 0 auto 28px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.vh-case-box > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; cursor: pointer; list-style: none; font-size: .92rem;
}
.vh-case-box > summary::-webkit-details-marker { display: none; }
.vh-case-ico { flex: none; }
.vh-case-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-case-label { color: var(--muted); }
.vh-case-count { flex: none; background: var(--blue-50); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: .8rem; font-weight: 700; color: var(--blue-700); }
.vh-case-box > summary::after { content: "⌄"; flex: none; color: var(--muted); font-size: 1.1rem; transition: transform .2s; }
.vh-case-box[open] > summary::after { transform: rotate(180deg); }
@media (max-width: 520px) { .vh-case-label { display: none; } }
.vh-case-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.vh-case-close:hover { color: var(--text); }
.vh-case-body { padding: 0 16px 16px; }
.vh-case-lv { display: inline-block; background: var(--blue-50); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin: 0 5px 5px 0; font-size: .85rem; font-weight: 600; }
.vh-case-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vh-case-actions .btn { padding: 7px 14px; font-size: .88rem; }

/* info tooltip pri skóre kvality */
.vh-info { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: .75rem; cursor: help; position: relative; font-weight: 700; }
.vh-info::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0;
  width: 280px; background: var(--blue-900); color: #fff; padding: 10px 14px; border-radius: 10px;
  font-size: .82rem; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 40; pointer-events: none;
}
.vh-info:hover::after, .vh-info:focus::after { opacity: 1; visibility: visible; }

/* CTA v modale detailu LV */
.vh-modal-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 14px clamp(20px, 4vw, 34px); border-top: 1px solid var(--border); background: var(--surface); }
.vh-modal-cta .btn { padding: 10px 18px; font-size: .95rem; }

/* checkbox "Je pre mňa relevantný" v modale */
.vh-modal-relevant {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  margin: 4px 0 16px; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--blue-50, #eef4fb); font-weight: 600; font-size: .95rem;
  transition: border-color .15s, background .15s;
}
.vh-modal-relevant:has(input:checked) { border-color: var(--blue-500, #2b6cb0); background: var(--blue-100, #dbeafe); }
.vh-modal-relevant input { width: 18px; height: 18px; accent-color: var(--blue-600, #2563eb); cursor: pointer; }

/* hláška o limite výberu osôb */
.vh-limit-msg {
  margin: 10px 0; padding: 10px 14px; border-radius: 10px;
  background: #fff4e5; border: 1px solid #f0c37a; color: #92510a;
  font-size: .9rem; font-weight: 600; opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .2s;
}
.vh-limit-msg.show { opacity: 1; max-height: 100px; }

/* ---------- E-book box (newsletter-style, nad pätičkou, sitewide) ---------- */
.nl-band { background: var(--blue-50); border-top: 1px solid var(--border); }
.nl-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding-block: clamp(32px, 5vw, 52px);
}
.nl-title { margin: 0 0 6px; font-size: 1.5rem; color: var(--blue-900); }
.nl-desc { margin: 0; color: var(--text); font-size: 1rem; }
.nl-formwrap { min-width: 0; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 200px; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 1rem; background: #fff;
}
.nl-form input:focus { outline: none; border-color: var(--blue-500, #2b6cb0); box-shadow: 0 0 0 3px var(--blue-100); }
.nl-form .btn { white-space: nowrap; }
.nl-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
  .nl-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .nl-form { justify-content: center; }
  .nl-note { text-align: center; }
}

/* ---------- Košík prípadu (fixed bottom bar, sitewide) ---------- */
body.has-case { padding-bottom: 76px; }
.case-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--blue-800); color: #fff;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.case-cart-in { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.case-cart-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: #fff; text-decoration: none; }
.case-cart-main:hover .case-cart-txt strong { text-decoration: underline; }
.case-cart-ico { font-size: 1.4rem; flex: none; }
.case-cart-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-cart-label { color: #bcd6f2; margin-right: 4px; }
.case-cart-count { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 1px 10px; margin-left: 8px; font-size: .8rem; font-weight: 700; }
.case-cart-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.case-cart-actions .btn { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
.case-cart-actions .btn-secondary { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.35); }
.case-cart-actions .btn-secondary:hover { background: rgba(255,255,255,.26); }
.case-cart-x { background: rgba(255,255,255,.14); border: none; color: #fff; width: 34px; height: 34px; border-radius: 8px; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.case-cart-x:hover { background: rgba(255,255,255,.28); }
@media (max-width: 620px) {
  .case-cart-label { display: none; }
  .case-cart-btntxt { display: none; }
  .case-cart-actions .btn { padding: 8px 12px; font-size: 1rem; }
  body.has-case { padding-bottom: 68px; }
}

/* ---------- Výber celého kraja na mape ---------- */
.vh-region-bar { margin: 4px 0 12px; }
.vh-region-bar .vh-region-lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.vh-region-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vh-region-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 6px 13px; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.vh-region-chip:hover { border-color: var(--blue-400, #6ba6e0); }
.vh-region-chip.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.vh-region-chip .cnt { opacity: .7; font-weight: 400; margin-left: 3px; }
