/* ===================================================================
   ADD VALUE INVEST — design tokens
   Display: Fraunces (soft-serif, architectural warmth)
   Body/UI: Inter
   Palette: clean white/stone, single burgundy accent, ink text
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg: #FFFFFF;
  --bg-alt: #F5F2EF;
  --ink: #1B1918;
  --ink-soft: #635C57;
  --ink-faint: #948C85;
  --accent: #7A1F2E;
  --accent-deep: #4E1019;
  --accent-tint: #F3E3E3;
  --gold: #C9A15A;
  --gold-deep: #A87F3D;
  --gold-tint: #F6EEDA;
  --on-dark: #F3EFEA;
  --on-dark-soft: #C9C2BC;
  --line: #E6E1DC;
  --line-dark: rgba(255,255,255,0.14);
  --paper: #FAF9F7;

  --font-display: 'Lora', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  --container: 1140px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1{ font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.08; font-weight: 600; }
h2{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.18; }
h3{ font-size: 1.2rem; line-height: 1.3; }

p{ margin: 0 0 1em; color: var(--ink-soft); text-align: justify; text-align-last: left; }

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn svg{ width: 16px; height: 16px; }

/* ===================== Header / Nav ===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27,25,24,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height: 58px; width: auto; display:block; }
.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover{ color: var(--on-dark); }
.nav-links a:hover::after,
.nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--on-dark); }

.nav-cta{ display:flex; align-items:center; gap: 24px; }
.nav-cta .btn-ghost{ border-color: rgba(255,255,255,0.28); color: var(--on-dark); }
.nav-cta .btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }

.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width: 22px; height: 2px; background: var(--on-dark);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

@media (max-width: 860px){
  .nav-links{
    position: fixed; top: 84px; left: 0; right: 0; bottom: auto;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links li{ width: 100%; border-bottom: 1px solid var(--line-dark); }
  .nav-links li:last-child{ border-bottom: none; }
  .nav-links a{ display:block; padding: 14px 4px; font-size: 0.98rem; }
  .nav-cta .btn-ghost{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ===================== Hero ===================== */
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--bg), var(--bg));
}
.hero .container{
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 64px;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.hero-copy{ max-width: none; position: relative; z-index: 1; }
.hero-copy .eyebrow::before{ display: block; }
.hero-copy .lede{ margin: 0; text-align: justify; text-align-last: left; }
.hero-copy .btn-row{ display:flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; justify-content: flex-start; }
.hero-art{ position: relative; max-width: 400px; margin: 0; opacity: 1; }
.hero-art svg{ width: 100%; height: auto; }
.hero-photo-frame{
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper);
}
.hero-photo-frame::before, .hero-photo-frame::after{
  content:""; position:absolute; width: 16px; height: 16px;
  border-color: var(--accent); border-style: solid; border-width: 0;
}
.hero-photo-frame::before{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.hero-photo-frame::after{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }
.hero-photo{ display:block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }

.process-photo-frame{ max-width: 420px; margin: 0 auto; }
.process-photo-frame .hero-photo{ aspect-ratio: 3/4; }

.reality-photo-frame{ max-width: 520px; margin: 0 auto; }
.reality-photo-frame .hero-photo{ aspect-ratio: 4/3; }

.stavebna-photo-frame{ max-width: 460px; margin: 0 auto; }
.stavebna-photo-frame .hero-photo{ aspect-ratio: 4/3; object-position: center 30%; }

.investicie-photo-frame{ max-width: 560px; margin: 0 auto; }
.investicie-photo-frame .hero-photo{ aspect-ratio: 16/10; }

.hero-bg-logo{
  position: absolute;
  top: 50%; left: 50%;
  width: 1400px;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero .hero-bg-logo{
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 680px;
  max-width: none;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.blueprint-grid{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at 65% 45%, black 35%, transparent 72%);
          mask-image: radial-gradient(ellipse at 65% 45%, black 35%, transparent 72%);
  pointer-events: none;
}

.draw-line{
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease forwards 0.2s;
}
.draw-line.faint{ stroke: var(--ink-faint); opacity: 0.55; }
.draw-dot{
  fill: var(--accent);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 2.3s;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }
@keyframes fadeIn{ to{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){
  .draw-line{ animation: none; stroke-dashoffset: 0; }
  .draw-dot{ animation: none; opacity: 1; }
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; min-height: auto;}
  .hero-art{ order: -1; max-width: 340px; margin: 0 auto; }
}

/* ===================== Sections ===================== */
section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }

/* Pillars / service cards */
.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar{
  background: var(--bg);
  padding: 44px 36px;
  position: relative;
}
.pillar .num{
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  display:block;
}
.pillar .icon{ width: 40px; height: 40px; margin-bottom: 24px; color: var(--accent); }
.pillar h3{ margin-bottom: 10px; }
.pillar p{ font-size: 0.95rem; margin-bottom: 20px; }
.pillar a{ font-size: 0.86rem; font-weight: 600; color: var(--accent); }

@media (max-width: 860px){
  .pillars{ grid-template-columns: 1fr; }
}

/* Values / approach */
.values{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value h3{ display:flex; align-items:center; gap:12px; }
.value .icon{ width: 26px; height: 26px; color: var(--accent); flex: none; }
@media (max-width: 860px){ .values{ grid-template-columns: 1fr; gap: 36px; } }

/* Split content block (image/illustration + text) */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 40px; } }
.split.reverse .split-art{ order: 2; }

.plan-frame{
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
}
.plan-frame::before, .plan-frame::after,
.plan-frame .crop-tl, .plan-frame .crop-br{
  content:""; position:absolute; width: 14px; height: 14px;
  border-color: var(--accent); border-style: solid; border-width: 0;
}
.plan-frame::before{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.plan-frame::after{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }

/* CTA band */
.cta-band{
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
}
.cta-band-mark{
  position: absolute;
  top: 50%;
  right: 48px;
  width: 130px;
  height: auto;
  color: #fff;
  opacity: 0.06;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}
@media (max-width: 860px){ .cta-band-mark{ display:none; } }
.cta-band h2{ color: #fff; position: relative; z-index: 1; }
.cta-band p{ color: var(--on-dark-soft); position: relative; z-index: 1; }
.cta-band .row{ display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-primary{ background: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover{ background: var(--gold-deep); color: #fff; }
.cta-band .btn-ghost{ border-color: rgba(255,255,255,0.35); color:#fff; }
.cta-band .btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }

/* Stats-free trust strip */
.trust-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-strip .container{
  display:flex; gap: 48px; flex-wrap:wrap; align-items:center; justify-content:space-between;
  font-size: 0.82rem; letter-spacing:0.04em; color: var(--ink-faint); text-transform:uppercase;
}

/* Team-free about content blocks */
.about-lead{ max-width: 780px; }
.about-lead p{ font-size: 1.05rem; }

/* Contact page */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

.info-list{ list-style:none; margin: 28px 0 0; padding:0; }
.info-list li{
  display:flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line);
}
.info-list li:last-child{ border-bottom: 1px solid var(--line); }
.info-list .icon{ width:20px; height:20px; color:var(--accent); flex:none; margin-top:2px; }
.info-list .label{ font-size:0.76rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink-faint); margin-bottom:2px; }
.info-list .value{ color: var(--ink); font-weight:500; }

.form-field{ margin-bottom: 22px; }
.form-field label{
  display:block; font-size:0.8rem; font-weight:600; letter-spacing:0.03em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.form-field input, .form-field textarea{
  width:100%; font-family: var(--font-body); font-size:0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus{
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.map-embed{ border:1px solid var(--line); filter: grayscale(0.35) contrast(1.02); }

/* ===================== Listings (Ponuka nehnuteľností) ===================== */
.filter-bar{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  align-items: end;
}
@media (max-width: 640px){ .filter-bar{ grid-template-columns: 1fr 1fr; } }
.filter-field label{
  display:block; font-size:0.72rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color: var(--ink-faint); margin-bottom:8px;
}
.filter-field select, .filter-field input[type="text"], .filter-field input[type="number"]{
  width:100%; font-family: var(--font-body); font-size:0.9rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px;
}
.filter-field select:focus, .filter-field input:focus{
  outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.filter-field-checkbox{ display:flex; align-items:flex-end; padding-bottom: 11px; }
.filter-checkbox-label{
  display:flex; align-items:center; gap: 9px; cursor:pointer;
  font-size:0.88rem; color: var(--ink); margin:0;
}
.filter-checkbox-label input[type="checkbox"]{
  width: 17px; height: 17px; accent-color: var(--accent); cursor:pointer; flex:none;
}

.listings-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px){ .listings-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .listings-grid{ grid-template-columns: 1fr; } }

.listing-card{
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.listing-card:hover{ border-color: var(--accent); transform: translateY(-3px); }

.listing-thumb{
  position: relative;
  background: var(--bg-alt);
  height: 168px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.listing-thumb svg{ width: 64px; height: 64px; color: var(--ink-faint); }
.listing-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-photo-count{
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(27,25,24,0.68);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  line-height: 1;
}
.listing-photo-count svg{ width: 13px; height: 13px; }

.badge{
  position:absolute; top: 12px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: var(--radius); text-transform: uppercase;
}
.badge-offer{ left: 12px; color:#fff; }
.badge-offer.is-sale{ background: var(--accent); }
.badge-offer.is-rent{ background: var(--gold-deep); }
.badge-status{ right: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); }

.listing-body{ padding: 20px 22px 24px; flex: 1; display:flex; flex-direction:column; }
.listing-type{ font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.listing-body h3{ font-size: 1.08rem; margin-bottom: 12px; }
.listing-params{ display:flex; flex-wrap:wrap; gap: 8px 14px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.listing-params span:not(:last-child)::after{ content:"·"; margin-left: 14px; color: var(--line); }
.listing-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.listing-price{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.btn-sm{ padding: 9px 16px; font-size: 0.82rem; }
.listing-empty{ grid-column: 1 / -1; text-align:center; color: var(--ink-faint); padding: 40px 0; }

/* Modal */
.listing-modal{
  position: fixed; inset: 0; z-index: 100;
  background: rgba(27,25,24,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.listing-modal.open{ display: flex; }
.listing-modal-panel{
  background: var(--bg); max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 40px; position: relative; border: 1px solid var(--line);
}
.listing-modal-close{
  position:absolute; top: 16px; right: 16px; width: 36px; height:36px;
  background: none; border: 1px solid var(--line); cursor:pointer; color: var(--ink-soft);
  display:flex; align-items:center; justify-content:center; border-radius: var(--radius);
}
.listing-modal-close:hover{ border-color: var(--accent); color: var(--accent); }
.listing-modal-thumb{ position: relative; width: 72px; height: 72px; color: var(--accent); margin-bottom: 20px; }
.listing-modal-thumb svg{ width:100%; height:100%; }
.listing-modal-thumb.has-photo{
  width: 100%;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.listing-modal-thumb.has-photo img{ width:100%; height:100%; object-fit: cover; display: block; }
.listing-modal-thumb.has-photo img#lm-main-photo{ cursor: zoom-in; }

/* Šípky na prepínanie fotiek priamo v hlavnej fotke detailu */
.listing-gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(27,25,24,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.listing-gallery-arrow:hover{ background: rgba(27,25,24,0.8); }
.listing-gallery-arrow svg{ width: 18px; height: 18px; }
.listing-gallery-arrow.prev{ left: 10px; }
.listing-gallery-arrow.next{ right: 10px; }

/* Pás náhľadov fotiek pod hlavnou fotkou v detaile */
.listing-gallery-thumbs{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.listing-gallery-thumb{
  flex: none;
  width: 56px; height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .15s ease, border-color .15s ease;
  background: var(--bg-alt);
}
.listing-gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-gallery-thumb:hover{ opacity: 0.85; }
.listing-gallery-thumb.is-active{ opacity: 1; border-color: var(--accent); }

.listing-table{ width:100%; border-collapse: collapse; margin-top: 20px; }
.listing-table th, .listing-table td{
  text-align:left; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 400;
}
.listing-table th{ color: var(--ink-faint); font-weight: 500; width: 46%; }
.listing-table td{ color: var(--ink); }

/* ===================== Lightbox — zväčšené prezeranie fotiek inzerátu ===================== */
.listing-lightbox{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,9,9,0.95);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.listing-lightbox.open{ display: flex; }
.lightbox-stage{
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox-stage img{
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.2); }
.lightbox-arrow{
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-arrow:hover{ background: rgba(255,255,255,0.24); }
.lightbox-arrow svg{ width: 24px; height: 24px; }
.lightbox-arrow.prev{ left: 16px; }
.lightbox-arrow.next{ right: 16px; }
.listing-lightbox.is-single .lightbox-arrow{ display: none; }
.lightbox-counter{
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 0.8rem; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.12); padding: 5px 12px; border-radius: 20px;
}
@media (max-width: 640px){
  .lightbox-arrow{ width: 40px; height: 40px; }
  .lightbox-arrow svg{ width: 20px; height: 20px; }
  .lightbox-arrow.prev{ left: 8px; }
  .lightbox-arrow.next{ right: 8px; }
  .lightbox-close{ width: 38px; height: 38px; top: 12px; right: 12px; }
}

/* ===================== Hypotekárna kalkulačka ===================== */
.mortgage-calc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 40px;
}
@media (max-width: 860px){ .mortgage-calc{ grid-template-columns: 1fr; gap: 32px; } }

.mortgage-calc-inputs .form-field:last-child{ margin-bottom: 0; }

.mortgage-calc-result{
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--gold-deep);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mortgage-calc-result::before, .mortgage-calc-result::after{
  content:""; position:absolute; width: 16px; height: 16px;
  border-color: var(--gold); border-style: solid; border-width: 0;
}
.mortgage-calc-result::before{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.mortgage-calc-result::after{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }
.mc-result-logo{
  position: absolute;
  top: 22px;
  right: 26px;
  width: 108px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
.mc-result-main{ position: relative; z-index: 1; display:flex; flex-direction:column; gap: 10px; margin-top: 30px; }
.mc-result-icon{ width: 34px; height: 34px; color: var(--gold); }
.mc-result-icon svg{ width:100%; height:100%; }
.mc-result-label{ font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-tint); }
.mc-result-value{ font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.25); position: relative; z-index: 2; }

/* Footer */
.site-footer{ background: var(--ink); border-top: 1px solid var(--line-dark); padding: 56px 0 28px; color: var(--on-dark-soft); }
.footer-logo{ text-align:center; margin-bottom: 44px; }
.footer-logo img{ height: 58px; width:auto; display:inline-block; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr; gap: 40px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid p{ color: var(--on-dark-soft); }
.footer-grid h4{
  font-size: 0.76rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--gold);
  margin: 0 0 16px;
}
.footer-links{ list-style:none; margin:0; padding:0; }
.footer-links li{ margin-bottom: 10px; color: var(--on-dark-soft); }
.footer-links a{ color: var(--on-dark-soft); font-size:0.92rem; }
.footer-links a:hover{ color: var(--gold); }
.footer-bottom{
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 12px;
  font-size: 0.8rem; color: var(--ink-faint);
}
.footer-legal a{ color: var(--ink-faint); }
.footer-legal a:hover{ color: var(--gold); }
.footer-credit{
  width:100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-dark);
  font-size: 0.72rem; color: var(--ink-faint); opacity: 0.75; text-align:center;
}

/* Úvodná animácia loga (iba na homepage, raz za session) */
.av-intro-overlay{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items:center; justify-content:center;
  overflow: hidden;
  transition: opacity 0.7s ease;
}
.av-intro-overlay.av-intro-hidden{ opacity: 0; pointer-events: none; }
.av-intro-mark{
  position:absolute; top:50%; left:50%; width: 620px; max-width: none;
  transform: translate(-50%,-50%); color: var(--gold); opacity: 0.06;
  pointer-events:none;
}
.av-intro-words{
  position: relative; z-index:1;
  display:flex; align-items:baseline; justify-content:center; flex-wrap: wrap;
  gap: 0 16px; padding: 0 24px; text-align:center;
  transition: opacity 0.35s ease;
}
.av-intro-word{
  font-family: var(--font-display);
  font-size: clamp(26px, 5.4vw, 52px);
  font-weight:700; letter-spacing: 4px; color: var(--gold);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.av-intro-word.is-visible{ opacity: 1; transform: translateY(0); }
.av-intro-logo{
  position: relative; z-index: 1;
  width: min(70vw, 420px);
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.av-intro-logo.is-visible{ opacity: 1; transform: scale(1); }

/* Page header (inner pages) */
.page-header{ position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-header .container{ position: relative; z-index: 1; }
.page-header .eyebrow{ margin-bottom: 14px; }
.page-header .hero-bg-logo{ width: 950px; opacity: 0.08; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ===================== Cookie lišta ===================== */
.cookie-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink);
  border-top: 1px solid var(--gold-deep);
  padding: 18px 0;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-bar.is-hidden{ transform: translateY(100%); opacity: 0; }
.cookie-bar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-bar-text{ display:flex; align-items:center; gap: 14px; }
.cookie-bar-mark{ width: 20px; height: 20px; color: var(--gold); flex: none; }
.cookie-bar p{
  margin: 0; color: var(--on-dark-soft); font-size: 0.86rem; max-width: 62ch; text-align: left;
}
.cookie-bar a{ color: var(--gold); }
.cookie-bar a:hover{ color: var(--gold-deep); }
.cookie-bar .btn{ flex: none; }
@media (max-width: 640px){
  .cookie-bar-inner{ flex-direction: column; align-items: flex-start; }
}

/* ===================== Sociálne siete ===================== */
.social-links{ display:flex; gap: 14px; margin-top: 18px; }
.social-links a{
  width: 36px; height: 36px; border: 1px solid var(--line-dark); border-radius: 50%;
  display:flex; align-items:center; justify-content:center; color: var(--on-dark-soft);
  transition: border-color .2s ease, color .2s ease;
}
.social-links a:hover{ border-color: var(--gold); color: var(--gold); }
.social-links svg{ width: 17px; height: 17px; }

/* ===================== Profil makléra ===================== */
.broker-card{
  display:flex; align-items:flex-start; gap: 24px;
  border: 1px solid var(--line); padding: 24px; margin-top: 28px;
}
.broker-photo{
  position: relative;
  width: 140px; height: 172px; flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.broker-photo-img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.broker-photo-placeholder{
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-faint);
}
.broker-photo-placeholder svg{ width: 42px; height: 42px; }
.broker-photo-placeholder span{ font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.broker-info .broker-name{ font-weight: 600; color: var(--ink); }
.broker-info .broker-role{ font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 8px; }
.broker-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.broker-actions a{
  display:inline-flex; align-items:center; gap: 6px;
  font-size: 0.84rem; font-weight: 600; color: var(--accent);
}
.broker-actions a:hover{ color: var(--accent-deep); }
.broker-actions svg{ width: 16px; height: 16px; }
.broker-actions .whatsapp{ color: #25916A; }
.broker-actions .whatsapp:hover{ color: #1c6f51; }

/* ===================== Legal stránky (GDPR) ===================== */
.legal-content{ max-width: 780px; }
.legal-content h2{ font-size: 1.3rem; margin-top: 2em; }
.legal-content h2:first-child{ margin-top: 0; }
.legal-content ul{ color: var(--ink-soft); padding-left: 1.2em; }
.legal-content li{ margin-bottom: 0.5em; }
.legal-updated{ font-size: 0.82rem; color: var(--ink-faint); margin-top: 40px; }
