/* ==========================================================
   CAP MARTIN PROPERTIES — DESIGN ENHANCEMENT LAYER
   Polishes typography, spacing, cards, forms, gallery, detail.
   Loaded AFTER style.css so it overrides safely.
   ========================================================== */

/* Zamezí horizontálnímu přetečení na úzkých displejích (stránka se neposouvá
   mimo obrazovku). Viníci jsou full-bleed prvky přes 100vw (galerie, mapa) a
   široké tabulky. overflow-x:clip ořízne přetečení a nerozbije position:sticky. */
html, body{max-width:100%;overflow-x:hidden;overflow-x:clip}

/* ────────────── TYPOGRAPHY: serif headings, Inter body ────────────── */
/* Tělo, odstavce a popisky = Inter (sans). Nadpisy zůstávají v Cormorant Garamond. */
body,
p, li, dd, dt, td, th,
.eyebrow, .prop-type, .prop-loc, .prop-specs, .prop-meta,
.detail-hero-meta, .detail-hero-address, .detail-hero-bottom .price-note,
.detail-status-pill,
.qp-meta, .qp-address, .qp-desc, .qp-spec-row, .qp-broker-eyebrow, .qp-broker-role, .qp-broker-contacts,
.psw-counter, .breadcrumbs, .filter-pill, .filter-field label,
.search-field, .search-field label,
.form-field, .form-field label, .form-consent,
.foot-col, .foot-col a, .foot-bottom,
.lang-switch, .cta-contact,
.nl-note, .nl-form input,
.stat-label, .article-meta, .article-card p,
.service-num, .service p, .service a,
.broker-role, .broker-contact, .broker-stats,
/* PRICES & NUMBERS → Inter (sans) */
.param-value,
.sidebar-price-value,
.sidebar-price-note,
.units-table .unit-price,
.pb-param-value,
.pb-price-box-value,
.pb-price-box-value span,
.qp-param-v,
.qp-param--price .qp-param-v,
.qp-param--price small,
.qp-spec-v,
.detail-hero-price .price-value,
.detail-hero-price .price-note,
.stat-num,
.featured-stats .k,
.off-card-price,
.off-card-price strong,
input, textarea, select, button{
  font-family:var(--sans) !important;
}
/* Vizuální váha pro ceny a velká čísla — light weight pro luxury feel */
.qp-param--price .qp-param-v,
.detail-hero-price .price-value,
.sidebar-price-value,
.pb-price-box-value,
.stat-num,
.featured-stats .k,
.off-card-price strong{
  font-weight:300 !important;
  letter-spacing:-.015em !important;
  font-feature-settings:"tnum","lnum" !important; /* tabulkové číslice */
}

/* .prop-price — uživatelský override (Inter, 15px) */
.prop-price{
  font-family:var(--sans) !important;
  font-size:15px !important;
  font-weight:400 !important;
  letter-spacing:-.01em !important;
  white-space:nowrap !important;
}
/* Nadpisy explicitně serif (přepise jakoukoliv případnou kolizi) */
h1, h2, h3, h4, h5, h6,
.serif,
.hero-title, .detail-hero-title, .detail-hero-subtitle, .detail-title,
.section-head h2, .intro-text h2, .featured-content h2, .nl-wrap h2,
.listing-title-row h1, .off-hero h1, .off-modal-header h2, .empty-state h3,
.detail-section h2,
.prop-title, .article-card h3,
.team-card-name, .broker-name, .sidebar-broker .name, .sidebar-form h3,
.pb-block-title, .pb-tiles-title, .pb-tile-title, .pb-zigzag-title, .pb-split-title,
.pb-broker-name, .pb-quote p, .pb-benefit-title,
.qp-title, .qp-broker-name, .qp-section h3,
.off-card-title{
  font-family:var(--serif) !important;
}
em, .serif em, em.serif{
  font-family:var(--serif) !important;
  font-style:italic;
  font-weight:400;
  color:var(--accent-ink);
}

:root{
  --bg-soft:#ffffff;
  --gold-soft:#000c26;
  --accent-2:#000c26;
  --shadow-xs:0 1px 2px rgba(0,12,38,.04);
  --shadow-card:0 18px 50px -20px rgba(0,12,38,.18);
  --shadow-card-hover:0 32px 80px -24px rgba(0,12,38,.30);
  /* Hranatý design — tokeny drží 0, ať se zaoblení nevrátí zadními vrátky. */
  --radius-sm:0;
  --radius-md:0;
  --radius-lg:0;
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* ────────────── Body & typography refinement ────────────── */
body{
  font-feature-settings:"ss01","cv11","cv02";
  letter-spacing:.005em;
  color:var(--ink);
}
h1, h2, h3, .serif{
  font-feature-settings:"liga","dlig","kern";
  font-variant-numeric:lining-nums;
}
.serif em, em.serif, em{
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  color:var(--accent-ink);
}
::selection{background:var(--accent);color:#fff}

/* ────────────── Buttons: stronger hierarchy ────────────── */
.btn{
  padding:15px 30px;
  font-size:12px;
  letter-spacing:.14em;
  border-radius:0;
  position:relative;overflow:hidden;
  transition:background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{box-shadow:0 8px 24px -10px rgba(255,255,255,.5)}
.btn-dark{box-shadow:0 10px 30px -12px rgba(0,12,38,.45)}
.btn-dark:hover{box-shadow:0 16px 40px -16px rgba(0,12,38,.6)}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ────────────── Header polish ────────────── */
.header{padding:24px 48px}
.header.scrolled{padding:16px 48px;box-shadow:0 1px 0 var(--line)}
.nav a{font-size:12.5px;letter-spacing:.08em}
.cta-contact{padding:11px 24px;font-weight:500}

/* Lupa v hlavičce + rozbalovací hledání */
.header-search-toggle{
  background:none;border:none;color:inherit;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  padding:4px;margin:0;line-height:0;transition:color .25s var(--ease);
}
.header-search-toggle svg{width:18px;height:18px}
.header-search-toggle:hover{color:var(--accent-ink)}
/* ===== HLEDÁNÍ / FILTR — modální okno ===== */
.search-modal{
  position:fixed;inset:0;z-index:300;
  display:flex;align-items:flex-start;justify-content:center;
  padding:7vh 20px 24px;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .3s var(--ease), visibility .3s;
}
.search-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.search-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(0,12,38,.55);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  cursor:pointer;
}
.search-modal-dialog{
  position:relative;z-index:1;width:100%;max-width:760px;
  background:#fff;border-radius:0;
  box-shadow:0 40px 90px rgba(0,12,38,.30);
  padding:34px 36px 36px;max-height:86vh;overflow-y:auto;
  transform:translateY(-14px) scale(.985);opacity:0;
  transition:transform .42s var(--ease), opacity .3s var(--ease);
}
.search-modal.open .search-modal-dialog{transform:none;opacity:1}
.search-modal-head{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:20px;margin-bottom:26px;
}
.search-modal-eyebrow{
  font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:8px;
}
.search-modal-title{
  font-family:var(--serif);font-size:28px;font-weight:300;
  line-height:1.05;letter-spacing:-.01em;color:var(--ink);
}
.search-modal-close{
  flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:0;
  display:flex;align-items:center;justify-content:center;
  color:var(--ink);background:transparent;cursor:pointer;
  transition:background .25s var(--ease), color .25s var(--ease), transform .35s var(--ease);
}
.search-modal-close:hover{background:var(--ink);color:#fff;transform:rotate(90deg)}
.search-modal-close svg{width:20px;height:20px}
.search-modal .search-form{
  display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;
}
.search-modal .search-field{
  padding:0 0 14px;border:none;border-bottom:1px solid var(--line);
  display:flex;flex-direction:column;gap:6px;
}
.search-modal .search-field label{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);font-weight:600;
}
.search-modal .search-submit{
  grid-column:1 / -1;width:100%;background:var(--ink);color:#fff;
  padding:18px;border-radius:0;margin-top:6px;border:none;
  font-size:13px;letter-spacing:.14em;text-transform:uppercase;
}
.search-modal .search-submit:hover{background:var(--accent)}
/* AI vyhledávání v modálu */
.search-ai-form{margin-bottom:20px}
.search-ai-eyebrow{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent-ink);font-weight:600;margin-bottom:10px}
.search-ai{display:flex;align-items:center;gap:10px;border:1.5px solid var(--ink);border-radius:0;padding:7px 7px 7px 16px;transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
.search-ai:focus-within{border-color:var(--accent-ink);box-shadow:0 0 0 4px rgba(0,12,38,.12)}
.search-ai-badge{flex:none;background:linear-gradient(135deg,#000c26,#000c26);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;border-radius:0;padding:5px 8px}
.search-ai input{flex:1;border:none;outline:none;background:transparent;font-size:16px;color:var(--ink);min-width:0}
.search-ai-go{flex:none;width:42px;height:42px;border:none;border-radius:0;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .25s var(--ease),transform .25s var(--ease)}
.search-ai-go:hover{background:var(--accent);transform:translateX(2px)}
.search-ai-go svg{width:18px;height:18px}
.search-ai-hint{font-size:12px;color:var(--muted);margin-top:9px;padding-left:6px}
.search-or{display:flex;align-items:center;text-align:center;gap:14px;color:var(--muted);font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 22px}
.search-or::before,.search-or::after{content:"";flex:1;height:1px;background:var(--line)}
@media (max-width:560px){
  .search-modal{padding:0}
  .search-modal-dialog{
    max-width:100%;min-height:100%;max-height:100vh;
    border-radius:0;padding:26px 22px 36px;
  }
  .search-modal .search-form{grid-template-columns:1fr}
  .search-modal-title{font-size:24px}
}

/* Tlačítko „Filtrovat nemovitosti" — jen na mobilu (prodej/pronájem/projekty) */
.mobile-filter-trigger{display:none}
@media (max-width:760px){
  .mobile-filter-trigger{
    display:flex;align-items:center;justify-content:center;gap:10px;
    width:100%;margin:6px 0 22px;padding:15px;
    background:var(--ink);color:#fff;border:none;border-radius:0;cursor:pointer;
    font-family:var(--sans);font-size:13px;font-weight:500;
    letter-spacing:.12em;text-transform:uppercase;
    transition:background .25s var(--ease);
  }
  .mobile-filter-trigger:hover,.mobile-filter-trigger:active{background:var(--accent)}
  .mobile-filter-trigger svg{width:17px;height:17px}
}

@media (max-width:1100px){
  .header{padding:18px 28px}
  .header.scrolled{padding:14px 28px}
}

/* ────────────── Forms: refined inputs ────────────── */
.form-field input,
.form-field textarea,
.search-field input,
.search-field select,
.filter-field input,
.filter-field select,
.nl-form input{
  border-radius:0;
  transition:border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:hover,
.form-field textarea:hover{border-color:var(--ink-soft)}
.form-field input:focus,
.form-field textarea:focus{
  border-color:var(--accent-ink);
  box-shadow:0 0 0 3px rgba(0,12,38,.12);
}

/* ────────────── Card swiper (arrows + dots on hover) ────────────── */
.psw-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:38px;height:38px;border-radius:0;
  background:rgba(255,255,255,.92);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;
  opacity:0;transition:opacity .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
  box-shadow:0 6px 18px rgba(0,12,38,.18);
}
.psw-arrow svg{width:16px;height:16px}
.psw-arrow--prev{left:14px}
.psw-arrow--next{right:14px}
.psw-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.06)}
.prop-card:hover .prop-img-wrap.has-swiper .psw-arrow{opacity:1}

.psw-dots{
  position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  display:flex;gap:5px;z-index:3;
  opacity:0;transition:opacity .25s var(--ease);
  pointer-events:none;
}
.psw-dots span{
  width:18px;height:3px;border-radius:0;background:rgba(255,255,255,.45);
  transition:background .25s var(--ease), width .25s var(--ease);
}
.psw-dots span.active{background:#fff;width:24px}
.prop-card:hover .prop-img-wrap.has-swiper .psw-dots{opacity:1}

.psw-counter{
  position:absolute;top:14px;right:14px;z-index:3;
  background:rgba(0,12,38,.55);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.12em;font-weight:500;
  padding:5px 10px;border-radius:0;
  opacity:0;transition:opacity .25s var(--ease);
}
.prop-card:hover .prop-img-wrap.has-swiper .psw-counter{opacity:1}

/* Hide old gallery-nav (replaced) */
.prop-gallery-nav{display:none !important}

@media (hover:none){
  /* Touch: keep arrows visible since no hover */
  .prop-img-wrap.has-swiper .psw-arrow{opacity:1}
  .prop-img-wrap.has-swiper .psw-counter{opacity:1}
}

/* ────────────── Property cards: stronger surface ────────────── */
.prop-card{
  border-radius:0;
  overflow:hidden;
  background:transparent;
  transition:transform .55s var(--ease);
}
.prop-img-wrap{
  border-radius:0;
  box-shadow:var(--shadow-xs);
}
.prop-img-wrap::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(0,12,38,.32) 100%);
  opacity:.4;transition:opacity .5s var(--ease);
}
.prop-card:hover .prop-img-wrap::after{opacity:.7}
.prop-tag{
  font-size:11px;
  letter-spacing:.2em;
  font-weight:600;
  padding:8px 14px;
  border-radius:0;
  box-shadow:0 4px 12px rgba(0,12,38,.08);
}
.prop-tag.sold{background:#000c26;color:#fff}
.prop-tag.rented{background:#596272;color:#fff}
.prop-tag.reserved{background:#000c26;color:#fff}
.prop-tag.exclusive{background:var(--ink);color:#fff}
.prop-tag.new{background:#fff;color:var(--ink);border:1px solid var(--ink)}
.prop-title{font-weight:300;line-height:1.1}
.prop-card:hover .prop-title{color:var(--accent-ink);transition:color .35s var(--ease)}
.prop-price{font-weight:400;color:var(--ink)}

/* Sold/Rented overlay variants for cards */
.prop-card.is-sold .prop-img-wrap img,
.prop-card.is-rented .prop-img-wrap img{filter:grayscale(.4) brightness(.92)}
.prop-card.is-sold .prop-title,
.prop-card.is-rented .prop-title{opacity:.78}

/* ────────────── Search strip refinement ────────────── */
.search-strip{
  border-radius:0;
  border:none;
  background:#fff;
  box-shadow:0 24px 60px -20px rgba(0,12,38,.20);
}
.search-field{padding:22px 28px}
.search-field label{font-weight:600;color:var(--accent-ink)}
.search-submit{background:var(--ink)}
.search-submit:hover{background:var(--accent)}

/* ────────────── Section heads & dividers ────────────── */
.section-head h2{letter-spacing:-.02em}
.eyebrow{color:var(--accent-ink);font-weight:600}
.eyebrow::before{
  content:'';display:inline-block;width:28px;height:1px;
  background:var(--accent);vertical-align:middle;margin-right:14px;
  transform:translateY(-2px);
}

/* ────────────── DETAIL PAGE — sticky right-side CTA ────────────── */
.detail-hero-fullwidth{
  height:100vh !important;
  min-height:600px !important;
  max-height:none !important;
}

/* Full-width swiper gallery (100vw) přímo pod hero */
.detail-gallery-wide{
  width:100vw;
  margin-left:calc(50% - 50vw);
  background:var(--dark);
  padding:0;
  overflow:hidden;
  position:relative;
}
.detail-gw-swiper{
  width:100%;
  padding:0;
}
.detail-gw-swiper .swiper-slide{
  height:62vh;
  min-height:420px;
  max-height:720px;
  width:auto;
  overflow:hidden;
  background:#000c26;
}
.detail-gw-slide{
  display:block;width:100%;height:100%;
  cursor:zoom-in;position:relative;
}
.detail-gw-slide img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease), filter .6s var(--ease);
  filter:brightness(.95);
}
.detail-gw-slide:hover img{transform:scale(1.025);filter:brightness(1.05)}

.detail-gw-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:10;
  width:56px;height:56px;border-radius:0;
  background:rgba(255,255,255,.92);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;
  transition:background .25s var(--ease), transform .25s var(--ease);
  box-shadow:0 8px 24px rgba(0,12,38,.3);
}
.detail-gw-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.05)}
.detail-gw-arrow svg{width:18px;height:18px}
.detail-gw-prev{left:24px}
.detail-gw-next{right:24px}
.detail-gw-arrow.swiper-button-disabled{opacity:0;pointer-events:none}

.detail-gw-progress{
  position:absolute;left:0;right:0;bottom:20px;z-index:10;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 32px;pointer-events:none;
}
.detail-gw-counter{
  font-size:11px;color:#fff;letter-spacing:.18em;text-transform:uppercase;font-weight:500;
  background:rgba(0,12,38,.55);backdrop-filter:blur(8px);
  padding:8px 14px;border-radius:0;
  pointer-events:auto;
}
.detail-gw-zoom{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.95);color:var(--ink);
  padding:10px 18px;border-radius:0;border:none;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;
  cursor:pointer;pointer-events:auto;
  transition:background .25s var(--ease), transform .25s var(--ease);
  font-family:inherit;
}
.detail-gw-zoom:hover{background:#fff;transform:translateY(-1px)}
.detail-gw-zoom svg{width:14px;height:14px}

@media (max-width:760px){
  .detail-gw-swiper .swiper-slide{height:50vh;min-height:300px}
  .detail-gw-arrow{display:none}
  .detail-gw-progress{padding:0 16px;bottom:14px}
}
.detail-hero-overlay{
  background:
    linear-gradient(180deg,rgba(0,12,38,.45) 0%,rgba(0,12,38,.08) 30%,rgba(0,12,38,.10) 55%,rgba(0,12,38,.80) 100%);
}
.detail-hero-title{font-weight:300;text-shadow:0 2px 24px rgba(0,12,38,.25)}
.detail-hero-meta{font-weight:600}
.detail-hero-meta span:not(.dot):first-child{
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.28);
  padding:6px 12px;border-radius:0;
}
.detail-hero-bottom{border-color:rgba(255,255,255,.30)}

/* Status badge variants on hero */
.detail-status-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 16px;border-radius:0;
  font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  background:rgba(255,255,255,.95);color:var(--ink);
  backdrop-filter:blur(8px);
  margin-bottom:16px;
}
.detail-status-pill.is-sold,
.detail-status-pill.is-rented{background:rgba(0,12,38,.85);color:#fff}
.detail-status-pill.is-reserved{background:rgba(0,12,38,.95);color:#fff}
.detail-status-pill .dot{width:7px;height:7px;border-radius:0;background:#7a9b76}
.detail-status-pill.is-sold .dot,
.detail-status-pill.is-rented .dot{background:#cf4f4f}
.detail-status-pill.is-reserved .dot{background:#fff}

/* Sticky lead/contact rail */
.detail-sticky-rail{
  position:fixed;right:24px;bottom:24px;z-index:50;
  display:none;flex-direction:column;gap:10px;
  pointer-events:auto;
}
.detail-sticky-rail.is-visible{display:flex;animation:railIn .4s var(--ease)}
@keyframes railIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.detail-sticky-rail a{
  background:var(--ink);color:#fff;
  width:54px;height:54px;border-radius:0;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 36px -12px rgba(0,12,38,.45);
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.detail-sticky-rail a:hover{background:var(--accent);transform:translateY(-2px)}
.detail-sticky-rail a svg{width:22px;height:22px;color:#fff}
@media (max-width:760px){
  .detail-sticky-rail{right:14px;bottom:14px}
}

/* Detail page builder spacing tighter */
.pb-canvas-outer{max-width:1320px;padding:0 40px;gap:64px}
@media (max-width:900px){.pb-canvas-outer{padding:0 20px;gap:44px}}
.pb-block-title{
  font-size:clamp(26px,3.4vw,40px);
  letter-spacing:-.015em;
  position:relative;display:inline-block;
}
.pb-block-title::after{
  content:'';display:block;
  width:48px;height:1px;background:var(--accent);
  margin-top:14px;
}

/* Param card refinement */
.pb-params{border:none;background:#fff;border-radius:0;box-shadow:var(--shadow-xs)}
.pb-param{padding:26px 28px;border-right:1px solid var(--line)}
.pb-param-label{color:var(--accent-ink);font-weight:600;font-size:11px}
.pb-param-value{font-size:24px;line-height:1.1}

/* Lead form refinement */
.pb-lead-form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:var(--shadow-card);
  padding:34px;
}
.pb-lead-form .form-row-2{gap:14px}
.pb-lead-form .btn{width:100%;justify-content:center}
.pb-lead-subtitle{color:var(--ink-soft)}

/* Broker card refinement */
.pb-broker-card{
  background:linear-gradient(180deg,#fff,var(--bg-soft));
  border:1px solid var(--line);
  border-radius:0;
  box-shadow:var(--shadow-xs);
  padding:28px;
}
.pb-broker-photo{width:88px;height:88px;box-shadow:0 8px 24px -10px rgba(0,12,38,.25)}

/* Spec table */
.pb-spec-table-wrap, .spec-table{border-radius:0;overflow:hidden;background:#fff}
.spec-table{border-top:1px solid var(--line);box-shadow:var(--shadow-xs)}
.spec-row{padding-left:24px}
.spec-row .k{color:var(--muted);font-weight:500}
.spec-row .v{font-weight:500}

/* Features list */
.features-list li{padding:12px 0}
.features-list li::before{width:5px;height:5px;background:var(--accent)}

/* Map card */
.pb-map{border-radius:0;box-shadow:var(--shadow-xs)}
.pb-map iframe{filter:grayscale(.18) contrast(1.02)}

/* ────────────── Gallery (Swiper) ────────────── */
.pb-swiper-wrap .swiper{border-radius:0}
.pb-swiper-wrap .swiper-button-prev,
.pb-swiper-wrap .swiper-button-next{
  width:54px;height:54px;background:rgba(255,255,255,.95);
  box-shadow:0 6px 18px rgba(0,12,38,.18);
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.pb-swiper-wrap .swiper-button-prev:hover,
.pb-swiper-wrap .swiper-button-next:hover{background:#fff;transform:translateY(-1px)}
.pb-swiper-wrap .swiper-button-prev::after,
.pb-swiper-wrap .swiper-button-next::after{font-size:14px}

/* Thumb strip */
.detail-thumbs-swiper .swiper-slide{
  border-radius:0;
  box-shadow:var(--shadow-xs);
}

/* Lightbox refinement */
.gallery-lightbox{background:rgba(0,12,38,.97)}
.lightbox-nav{
  width:60px;height:60px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
}
.lightbox-nav:hover{background:rgba(255,255,255,.22)}

/* ────────────── Newsletter ────────────── */
.newsletter{
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0,12,38,.18) 0%, transparent 60%),
    var(--dark);
}
.nl-form input::placeholder{color:rgba(255,255,255,.45)}
.nl-form button{font-weight:600}

/* ────────────── Footer ────────────── */
.site-footer{
  background:linear-gradient(180deg,#000c26 0%, #0a1633 100%);
  padding-top:96px;
  max-width:100%;
  margin:0 auto;
}
.foot-col h4{color:#fff}
.foot-col a{transition:color .25s var(--ease), padding-left .25s var(--ease)}
.foot-col a:hover{color:var(--accent-ink);padding-left:4px}
.foot-bottom{padding-top:32px;margin-top:8px;color:rgba(255,255,255,.4)}

/* ────────────── Listing page header polish ────────────── */
.listing-header{padding-top:140px}
.filter-bar{box-shadow:var(--shadow-card);border:none;background:#fff;border-radius:0;padding:10px}
.filter-pill{border-radius:0;font-weight:500}
.filter-pill.active{background:var(--ink);color:#fff;box-shadow:0 6px 18px -8px rgba(0,12,38,.35)}

/* Archive pill */
.filter-pill--archive{
  border:1px solid var(--line);
  margin-left:6px;
  background:#fff;
}
.filter-pill--archive svg{width:14px;height:14px}
.filter-pill--archive.active{
  background:var(--accent);color:#fff;border-color:var(--accent-ink);
}
.filter-pill-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;margin-left:4px;
  border-radius:0;background:var(--ink);color:#fff;
  font-size:11px;font-weight:600;letter-spacing:.04em;
}
.filter-pill--archive.active .filter-pill-badge{background:#fff;color:var(--accent-ink)}

/* Pagination polish */
.pagination a,.pagination span{border-radius:0;border-color:var(--line)}
.pagination a:hover{border-color:var(--ink)}

/* ────────────── Reveal animation (smoother) ────────────── */
.js-ready .reveal{transform:translateY(24px);transition:opacity 1s ease, transform 1s var(--ease)}

/* ────────────── Skeleton loader ────────────── */
.skeleton{
  position:relative;overflow:hidden;background:var(--bg-alt);
}
.skeleton::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(110deg, transparent 20%, rgba(255,255,255,.6) 50%, transparent 80%);
  transform:translateX(-100%);
  animation:shimmer 1.6s infinite;
}
@keyframes shimmer{to{transform:translateX(100%)}}

/* ────────────── Print: clean property detail ────────────── */
@media print{
  .header,.mobile-drawer,.newsletter,.site-footer,
  .detail-sticky-rail,.gallery-lightbox,.pb-lead-form{display:none !important}
  .detail-hero-fullwidth{height:auto;min-height:0;color:var(--ink)}
  .detail-hero-overlay{display:none}
  .detail-hero-content{position:static;padding:24px 0}
  body{background:#fff}
  a{color:var(--ink);text-decoration:none}
}

/* ────────────── Accessibility: focus & motion ────────────── */
a:focus-visible, button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:0}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ════════════ DETAIL V5 — 2 column: photos+sections | sticky sidebar ════════════ */
.page-detail-v5{background:var(--bg)}

.d5-status-strip{
  background:#000c26;color:#ffffff;
  padding:14px 24px;text-align:center;font-size:13px;
}
.d5-status-strip strong{font-weight:600;letter-spacing:.02em}
.d5-status-strip span{margin-left:8px;color:rgba(255,255,255,.7)}
.d5-status-strip a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}

/* TOP — pouze breadcrumbs */
.d5-top{
  max-width:1800px;margin:0 auto;
  padding:110px 48px 16px;
}
.d5-breadcrumbs{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  font-size:12px;color:var(--muted);
}
.d5-breadcrumbs a{color:var(--muted);transition:color .2s var(--ease)}
.d5-breadcrumbs a:hover{color:var(--ink)}
.d5-breadcrumbs span{color:var(--line)}
.d5-breadcrumbs > span:last-child{color:var(--ink-soft)}
/* Oddělovač v cestě = šipka vpravo */
.d5-bc-sep{display:inline-flex;align-items:center;color:var(--muted)}
.d5-bc-sep svg{width:13px;height:13px;display:block}
/* === Detail: Swiper podobných nemovitostí === */
.d5-sim-swiper{overflow:hidden;padding-bottom:42px}
.d5-sim-swiper .swiper-slide{height:auto;display:flex}
.d5-sim-swiper .swiper-slide .prop-card{width:100%;height:100%}
.d5-sim-swiper .swiper-pagination{bottom:0}
.swiper-pagination-bullet-active{background:var(--accent)!important}
/* Bullety jako v kartách — obdélníčky místo koleček (galerie fotek + podobné nemovitosti) */
.d5-photos-swiper .swiper-pagination-bullet,
.d5-sim-swiper .swiper-pagination-bullet{
  width:3px;height:3px;border-radius:0;
  background:var(--line);opacity:1;
  transition:width .25s var(--ease), background .25s var(--ease);
}
.d5-photos-swiper .swiper-pagination-bullet-active,
.d5-sim-swiper .swiper-pagination-bullet-active{
  width:26px;background:var(--accent)!important;
}

/* === Detail: galerie jako Swiper na mobilu === */
#d5-photos{margin:0 !important}
.d5-photos-swiper{overflow:hidden;padding-bottom:30px}
.d5-photos-swiper .swiper-slide{height:auto}
/* pevný poměr → stabilní výška i před načtením fotky (žádný kolaps) */
.d5-photos-swiper .d5-photo{margin:0;display:block;aspect-ratio:4/3;overflow:hidden;border-radius:0;background:var(--bg-alt)}
.d5-photos-swiper .d5-photo img{width:100%;height:100%;object-fit:cover;display:block}
.d5-photos-swiper .d5-photo--extra{display:block}
/* postranní panel přesunutý pod fotky → plná šířka (přebije align-self:start) */
@media(max-width:1100px){
  .d5-left > .d5-side{width:100%;align-self:stretch;margin-top:4px}
}
@media(max-width:760px){
  .d5-photos-more{display:none}
  .d5-anchors{top:74px}
}

/* === Admin: lišta na detailu nemovitosti === */
.d5-admin-bar{border:1px dashed var(--accent);border-radius:0;padding:12px;margin-bottom:18px;background:rgba(0,12,38,.07)}
.d5-admin-bar-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.d5-admin-tag{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-ink);font-weight:600}
.d5-admin-status{max-width:160px;padding:7px 10px;border:1px solid var(--line);border-radius:0;background:#fff;font:inherit;font-size:12px;color:var(--ink);cursor:pointer}
.d5-admin-bar-row{display:flex;gap:8px}
.d5-admin-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);font:inherit;font-size:12px;letter-spacing:.03em;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.d5-admin-btn:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.d5-admin-btn svg{width:14px;height:14px}
.d5-admin-del{flex:none;width:42px}
.d5-admin-del:hover{background:#c0392b;border-color:#c0392b}

/* === Admin: rychlé akce na dlaždici (upravit / smazat / stav) === */
.prop-admin-bar{
  position:absolute;bottom:12px;left:12px;right:12px;z-index:5;display:flex;align-items:center;gap:6px;
}
.prop-admin-bar .pab-btn{
  display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;
  background:rgba(0,12,38,.86);color:#fff;border:none;border-radius:0;cursor:pointer;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s ease;
}
.prop-admin-bar .pab-btn:hover{background:var(--accent)}
.prop-admin-bar .pab-btn.pab-del:hover{background:#c0392b}
.prop-admin-bar .pab-btn svg{width:15px;height:15px}
.prop-admin-bar .pab-status{
  margin-left:auto;max-width:140px;background:rgba(0,12,38,.86);color:#fff !important;border:none;border-radius:0;
  padding:7px 26px 7px 10px;font:inherit;font-size:11px;cursor:pointer;
  -webkit-appearance:none;appearance:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;
}
.prop-admin-bar .pab-status option{color:#000c26;background:#fff}

/* === Placeholder fotky makléře („Fotíme se pro Vás") === */
.broker-photo{width:100%;height:100%;object-fit:cover;display:block}
.broker-ph{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  width:100%;height:100%;min-height:120px;box-sizing:border-box;padding:16px;
  background:#fff;color:var(--muted);text-align:center;
}
.broker-ph svg{width:34px;height:34px;opacity:.65;flex:none}
.broker-ph-txt{font-size:11px;letter-spacing:.14em;text-transform:uppercase;line-height:1.5}
.broker-ph--mini{min-height:0;padding:0;gap:0}
.broker-ph--mini svg{width:46%;height:46%;opacity:.6}

/* === Developerský projekt — typy bytů + tabulka jednotek === */
.pj-types{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pj-type{background:var(--bg-alt);border-radius:0;padding:24px 26px}
.pj-type-tag{font-family:var(--serif);font-size:24px;font-weight:400;color:var(--ink);margin-bottom:10px}
.pj-type p{font-size:13.5px;line-height:1.75;color:var(--ink-soft);margin:0}
.pj-units-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:0}
.pj-units{width:100%;border-collapse:collapse;font-size:13.5px;min-width:640px}
.pj-units thead th{text-align:left;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:14px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.pj-units td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.pj-units tbody tr:last-child td{border-bottom:none}
.pj-units tbody tr:hover{background:var(--bg)}
.pj-units tr.is-taken{color:var(--muted)}
.pj-unit-btn{background:var(--ink);color:#fff;border:none;border-radius:0;padding:8px 18px;font:inherit;font-size:12px;letter-spacing:.04em;cursor:pointer;white-space:nowrap;transition:background .2s}
.pj-unit-btn:hover{background:var(--accent)}
.pj-unit-state{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pj-unit-pdf{display:inline-flex;align-items:center;gap:5px;margin-right:12px;font-size:12px;color:var(--accent-ink);text-decoration:none;vertical-align:middle;white-space:nowrap}
.pj-unit-pdf:hover{text-decoration:underline}
.pj-unit-pdf svg{flex:0 0 auto}
/* Sdílení konkrétní jednotky + zvýraznění řádku po příchodu z odkazu #byt-XX */
.pj-unit-share{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-left:8px;padding:0;border:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink-soft);cursor:pointer;vertical-align:middle;transition:border-color .2s,color .2s,background .2s}
.pj-unit-share:hover{border-color:var(--accent-ink);color:var(--accent-ink);background:#fff}
/* Proklik řádku jednotky na detail (info modal) */
.pj-unit-row{cursor:pointer}
.pj-unit-detail-open{background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.pj-unit-detail-open strong{border-bottom:1px solid transparent;transition:border-color .2s,color .2s}
.pj-unit-row:hover .pj-unit-detail-open strong{color:var(--accent-ink);border-bottom-color:var(--accent-ink)}
.pj-info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px 24px;margin:18px 0 4px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pj-info-l{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.pj-info-v{font-family:var(--serif);font-size:18px;margin-top:3px}
.pj-info-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.pj-info-actions .btn{flex:1;min-width:150px}
@media(max-width:520px){.pj-info-grid{grid-template-columns:1fr 1fr}}
.pj-units tr[id]{scroll-margin-top:110px}
.pj-unit-highlight{animation:pjUnitFlash 2.6s var(--ease)}
@keyframes pjUnitFlash{0%,100%{background:transparent}10%,55%{background:rgba(0,12,38,.18)}}
@media(max-width:820px){
  .pj-types{grid-template-columns:1fr}
  .pj-units{min-width:0}
  .pj-units thead{display:none}
  .pj-units,.pj-units tbody,.pj-units tr,.pj-units td{display:block}
  .pj-units tr{padding:12px 0;border-bottom:1px solid var(--line)}
  .pj-units td{border:none;padding:4px 14px;white-space:normal;display:flex;justify-content:space-between;gap:16px}
  .pj-units td::before{content:attr(data-l);color:var(--muted);font-size:11px;letter-spacing:.1em;text-transform:uppercase}
  .pj-units td[data-l=""]{justify-content:flex-end}
}

/* === Právní stránky (GDPR, Obchodní podmínky) === */
.legal{padding:40px 48px 120px;max-width:820px;margin:0 auto;font-size:16px;line-height:1.8;color:var(--ink-soft)}
.legal h1{font-family:var(--serif);font-size:clamp(36px,5vw,56px);font-weight:300;color:var(--ink);line-height:1.1;letter-spacing:-.01em;margin-bottom:14px}
.legal .legal-meta{color:var(--muted);font-size:14px;margin-bottom:36px}
.legal h2{font-family:var(--serif);font-size:26px;color:var(--ink);margin:38px 0 14px;font-weight:400}
.legal p{margin:0 0 14px}
.legal ul{margin:14px 0 18px;padding-left:24px}
.legal li{margin:6px 0}
.legal a{color:var(--accent-ink)}
.legal .legal-intro{background:var(--bg-alt);padding:20px 24px;border-radius:0;font-size:15px}
@media(max-width:760px){.legal{padding:32px 20px 90px}}

/* === Google Translate — skrýt injektovaný balast (banner, hover "voting" tooltip + iframe) === */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt, .goog-tooltip, .goog-tooltip:hover,
#goog-gt-votingInputSrcText, #goog-gt-votingInputTrgText, #goog-gt-votingInputVote,
iframe[name="votingFrame"], .goog-te-spinner-pos,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-yAWNEb-L7lbkb, .VIpgJd-ZVi9od-xl07Ob-OEVmcd { display:none !important; }
.goog-text-highlight { background:none !important; box-shadow:none !important; color:inherit !important; }
body { top:0 !important; position:static !important; } /* Google jinak posouvá <body> kvůli banneru */

/* Lazy-load: jemný fade-in po načtení obrázku (data-src + IntersectionObserver) */
img.lazyimg{opacity:0;transition:opacity .5s ease}
img.lazyimg.is-loaded{opacity:1}
html:not(.js-ready) img.lazyimg{opacity:1} /* fallback bez JS */

.d5-breadcrumbs .d5-bc-sep{display:inline-flex;align-items:center;color:var(--line)}
.d5-breadcrumbs .d5-bc-sep svg{width:13px;height:13px}

/* MAIN 2-col grid */
.d5-main{
  max-width:1800px;margin:0 auto;
  padding:0 20px 56px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 480px;
  gap:32px;
  align-items:start;
}

/* LEFT column wrapper */
.d5-left{min-width:0;display:flex;flex-direction:column;gap:24px}

/* Photos */
.d5-photos{display:flex;flex-direction:column;gap:8px}
.d5-photo{
  position:relative;display:block;
  width:100%;overflow:hidden;border-radius:0;
  background:var(--bg-alt);cursor:zoom-in;
}
.d5-photo img{width:100%;height:auto;display:block;transition:transform .8s var(--ease)}
.d5-photo:hover img{transform:scale(1.015)}
.d5-photo-count{
  position:absolute;top:18px;left:18px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:0;
  background:rgba(0,12,38,.6);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;font-weight:500;text-transform:uppercase;
}
.d5-photo-count svg{width:14px;height:14px}
.d5-photo-num{
  position:absolute;bottom:18px;right:18px;z-index:2;
  background:rgba(0,12,38,.55);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;padding:5px 11px;border-radius:0;
  opacity:0;transition:opacity .25s var(--ease);
}
.d5-photo:hover .d5-photo-num{opacity:1}
/* Video dlaždice v galerii (druhá dlaždice) */
.d5-photo--video{position:relative}
.d5-photo--video .d5-photo-num{opacity:1;background:rgba(0,12,38,.6)}
.d5-photo-play{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;
  width:64px;height:64px;border-radius:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);color:var(--ink,#000c26);
  box-shadow:0 6px 24px rgba(0,12,38,.28);transition:transform .25s var(--ease),background .25s var(--ease);
}
.d5-photo-play svg{width:26px;height:26px;margin-left:3px}
.d5-photo--video:hover .d5-photo-play{transform:translate(-50%,-50%) scale(1.08);background:#fff}
/* Galerie: zobraz prvních 10, zbytek po kliknutí na tlačítko */
.d5-photo--extra{display:none}
.d5-photos.is-expanded .d5-photo--extra{display:block}
.d5-photos-more{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:-moz-fit-content;width:fit-content;margin:18px auto 0;
  padding:14px 30px;background:transparent;color:var(--ink);
  border:1px solid var(--line);border-radius:0;cursor:pointer;
  font:inherit;font-size:13px;letter-spacing:.04em;
  transition:background .25s var(--ease),border-color .25s var(--ease),color .25s var(--ease);
}
.d5-photos-more:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.d5-photos-more svg{width:18px;height:18px}

/* Desktop/tablet: úvodní fotka přes celou šířku, další fotky po dvou vedle sebe,
   a řady se střídají — menší pár / větší pár. Rytmus: velká (hero) → 2 menší →
   2 větší → 2 menší → 2 větší …  Mobil (<=760px) zůstává jak je (Swiper v JS). */
@media(min-width:761px){
  .d5-photos{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .d5-photo{width:auto}
  .d5-photo:first-child{grid-column:1 / -1}
  .d5-photo:not(:first-child){overflow:hidden}
  .d5-photo:not(:first-child) img{width:100%;height:100%;object-fit:cover}
  /* menší řada — 2. a 3., 6. a 7., 10. a 11. … (širší, nižší) */
  .d5-photo:nth-child(4n+2),
  .d5-photo:nth-child(4n+3){aspect-ratio:3/2}
  /* větší řada — 4. a 5., 8. a 9., 12. a 13. … (vyšší, výraznější) */
  .d5-photo:nth-child(4n+4),
  .d5-photo:nth-child(4n+5){aspect-ratio:1/1}
}

/* Anchor nav — sticky pod hlavičkou */
.d5-anchors{
  position:sticky;top:80px;z-index:10;
  background:rgba(255,255,255,.94);backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin:8px 0 0;
}
/* vnitřní wrapper = nativní vodorovný scroll kotev */
.d5-anchors-scroll{
  display:flex;gap:0;align-items:center;flex-wrap:nowrap;overflow-x:auto;
  -ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
.d5-anchors-scroll::-webkit-scrollbar{display:none}
.d5-anchor{
  position:relative;flex:0 0 auto;
  padding:16px 22px;
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;
  color:var(--muted);text-decoration:none;white-space:nowrap;
  transition:color .25s var(--ease);
}
.d5-anchor::after{
  content:'';position:absolute;left:22px;right:22px;bottom:-1px;height:2px;
  background:var(--accent);transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease);
}
.d5-anchor:hover,
.d5-anchor.is-active{color:var(--ink);font-weight:600}
.d5-anchor.is-active::after{transform:scaleX(1)}

/* Sections — vertically stacked under photos */
.d5-sec{
  padding:32px 0;
  scroll-margin-top:140px;
  border-top:1px solid var(--line);
}
.d5-sec:first-of-type{border-top:none}
.d5-h2{
  font-family:var(--serif);font-size:clamp(26px,2.6vw,34px);
  font-weight:300;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 22px;color:var(--ink);
  position:relative;padding-bottom:14px;
}
.d5-h2::after{content:'';position:absolute;left:0;bottom:0;width:40px;height:1px;background:var(--accent)}
.d5-h3{
  font-family:var(--serif);font-size:20px;font-weight:400;letter-spacing:-.01em;
  margin:28px 0 14px;color:var(--ink);
}

.d5-desc{font-size:15px;line-height:1.75;color:var(--ink-soft);max-width:780px}
.d5-desc p{margin:0 0 16px}
.d5-desc p:last-child{margin-bottom:0}

.d5-features{
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px 32px;
  list-style:none;padding:0;margin:0;max-width:780px;
}
.d5-features li{
  display:flex;align-items:center;gap:10px;
  padding:10px 0;font-size:14px;color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.d5-features svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}
@media (max-width:560px){.d5-features{grid-template-columns:1fr}}

.d5-specs{
  display:grid;grid-template-columns:repeat(2,1fr);gap:0 40px;
  margin:0;padding:0;
}
.d5-spec{
  display:flex;justify-content:space-between;gap:14px;
  padding:12px 0;border-bottom:1px solid var(--line);
  font-size:14px;
}
.d5-spec-k{color:var(--muted);font-weight:500}
.d5-spec-v{color:var(--ink);font-weight:500;text-align:right}
@media (max-width:560px){.d5-specs{grid-template-columns:1fr}}

.d5-floorplans{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.d5-floorplan{
  position:relative;display:block;
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:20px;text-align:center;cursor:zoom-in;
  transition:border-color .2s var(--ease);
}
.d5-floorplan:hover{border-color:var(--accent-ink)}
.d5-floorplan img{max-width:100%;height:auto;display:block;margin:0 auto}
.d5-floorplan-zoom{
  position:absolute;top:12px;right:12px;
  width:32px;height:32px;border-radius:0;
  background:rgba(0,12,38,.6);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.d5-floorplan-zoom svg{width:14px;height:14px}

.d5-map-addr{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink-soft);margin-bottom:14px}
.d5-map-addr svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}
.d5-map{
  width:100%;height:420px;border-radius:0;overflow:hidden;
  background:var(--bg-alt);
}
.d5-map iframe{width:100%;height:100%;border:0;filter:grayscale(.15)}

.d5-docs{display:flex;flex-direction:column;gap:6px;max-width:600px}
.d5-doc{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:0;
  font-size:14px;color:var(--ink);text-decoration:none;
  transition:border-color .2s var(--ease);
}
.d5-doc:hover{border-color:var(--accent-ink)}
.d5-doc svg{width:16px;height:16px;color:var(--accent-ink);flex-shrink:0}
.d5-doc span{flex:1}
.d5-doc small{color:var(--muted);font-size:12px}

/* ─── RIGHT: STICKY SIDEBAR ─── */
.d5-side{
  position:sticky;
  top:96px;
  align-self:start;
}
.d5-side-inner{
  background:#fff;border:1px solid var(--line);border-radius:0;
  overflow:hidden;
  box-shadow:0 12px 40px -16px rgba(0,12,38,.12);
}

.d5-side-head{
  padding:20px 22px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%, var(--bg-soft,#ffffff) 100%);
}
.d5-side-eyebrow{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:10px;
}
.d5-side-title{
  font-family:var(--serif);font-size:clamp(22px,1.8vw,28px);
  font-weight:300;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 10px;color:var(--ink);
}
.d5-side-loc{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:var(--ink-soft);
}
.d5-side-loc svg{width:14px;height:14px;opacity:.7;flex-shrink:0}
.d5-side-movein{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px;color:var(--accent-ink)}
.d5-side-movein svg{width:14px;height:14px;flex-shrink:0}
.d5-side-movein strong{color:var(--ink);font-weight:600}

.d5-quick{
  display:grid;grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
}
.d5-quick > div{
  padding:14px 8px;border-right:1px solid var(--line);
  display:flex;flex-direction:column;gap:4px;text-align:center;
}
.d5-quick > div:last-child{border-right:none}
.d5-quick span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:500}
.d5-quick strong{font-family:var(--sans);font-size:14px;font-weight:500;color:var(--ink)}

.d5-price-row{
  padding:16px 22px;
  display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:1px solid var(--line);
  background:var(--bg-soft,#ffffff);
}
.d5-price-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:500}
.d5-price-val{
  font-family:var(--sans);font-size:18px;font-weight:300;letter-spacing:-.015em;
  color:var(--ink);font-feature-settings:"tnum","lnum";
}
.d5-price-val small{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px;letter-spacing:0}

/* Sidebar nav (kotvy do sekcí) */
.d5-side-nav{
  display:flex;flex-direction:column;
  border-bottom:1px solid var(--line);
}
.d5-side-nav-label{
  padding:14px 22px 6px;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--muted);font-weight:600;
}
.d5-side-link{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 22px;
  font-size:11px;font-weight:400;color:var(--ink);text-decoration:none;
  letter-spacing:.01em;
  border-top:1px solid var(--line);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.d5-side-nav-label + .d5-side-link{border-top:none}
.d5-side-link:hover{background:var(--bg-soft,#ffffff);color:var(--accent-ink)}
.d5-side-link.is-active{color:var(--accent-ink);background:var(--bg-soft,#ffffff);font-weight:600}
.d5-side-link svg{width:14px;height:14px;color:var(--muted);transition:transform .2s var(--ease), color .2s var(--ease)}
.d5-side-link:hover svg,
.d5-side-link.is-active svg{color:var(--accent-ink);transform:translateX(3px)}

/* CTA block in sidebar (Mám zájem + zavolat) */
.d5-side-cta{
  padding:18px 22px 20px;
  display:flex;flex-direction:column;gap:10px;
  border-bottom:1px solid var(--line);
}
.d5-side-cta-btn{
  width:100%;justify-content:center;padding:14px 24px !important;font-size:13px !important;
  color:#fff;
}
.d5-side-cta-call{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 14px;border-radius:0;
  background:transparent;border:1px solid var(--line);
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;
  color:var(--ink-soft);text-decoration:none;
  transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.d5-side-cta-call:hover{border-color:var(--accent-ink);color:var(--accent-ink);background:#fff}
.d5-side-cta-call svg{width:14px;height:14px}
.d5-side-cta-pdf{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;
  padding:11px 14px;border-radius:0;background:transparent;border:1px solid var(--line);
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;
  color:var(--ink-soft);text-decoration:none;
  transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.d5-side-cta-pdf:hover{border-color:var(--accent-ink);color:var(--accent-ink);background:#fff}
.d5-side-cta-pdf svg{width:14px;height:14px}

/* Anchor nav — gold CTA variant */
.d5-anchor--cta{
  margin-left:auto;background:var(--ink);color:#fff !important;
  border-radius:0;padding:10px 22px;font-weight:600;
}
.d5-anchor--cta::after{display:none}
.d5-anchor--cta:hover{background:var(--accent)}

/* BIG lead form (v levém sloupci na konci) */
.d5-sec--contact{background:var(--bg-alt);border-radius:0;padding:36px;border-top:none !important;margin-top:16px}
.d5-form-big{
  display:flex;flex-direction:column;gap:14px;
  max-width:760px;
}
.d5-form-big label{
  display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);font-weight:600;
}
.d5-form-big input,
.d5-form-big textarea,
.d5-form-big select{
  display:block;width:100%;margin-top:6px;
  padding:12px 14px;border:1px solid var(--line);
  background:#fff;border-radius:0;
  font-family:var(--sans);font-size:14px;
  transition:border-color .2s var(--ease);
}
.d5-form-big input:focus,
.d5-form-big textarea:focus,
.d5-form-big select:focus{outline:none;border-color:var(--accent-ink)}
.d5-form-big textarea{resize:vertical;min-height:90px}
.d5-form-big-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.d5-form-big-row > label{display:block}
.d5-form-big-consent{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12px !important;color:var(--muted) !important;line-height:1.5;
  letter-spacing:0 !important;text-transform:none !important;
  font-weight:400 !important;margin:6px 0 4px !important;
}
.d5-form-big-consent input{display:inline-block;width:auto !important;margin:3px 0 0}
.d5-form-big-consent a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}
.d5-form-big-btn{width:100%;justify-content:center}
@media (max-width:560px){.d5-form-big-row{grid-template-columns:1fr}}

/* Old .d5-form (legacy, when form was in sidebar — kept just in case) */
.d5-form{
  padding:18px 22px 20px;
}
.d5-form-title{
  font-family:var(--serif);font-size:16px;font-weight:400;
  margin:0 0 12px;color:var(--ink);
}
.d5-form input,
.d5-form textarea{
  width:100%;padding:10px 12px;border:1px solid var(--line);
  background:var(--bg-soft,#ffffff);border-radius:0;
  font-family:var(--sans);font-size:13px;
  margin-bottom:6px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.d5-form input:focus,
.d5-form textarea:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.d5-form textarea{resize:vertical;min-height:60px}
.d5-form-row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.d5-form-consent{
  display:flex;gap:6px;align-items:flex-start;
  font-size:11px;color:var(--muted);line-height:1.4;margin:6px 0 10px;
}
.d5-form-consent input{width:auto;margin-top:2px}
.d5-form-consent a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}
.d5-form-btn{width:100%;justify-content:center;padding:13px 24px !important}

/* Broker block */
.d5-broker{
  display:flex;align-items:center;gap:14px;
  padding:16px 22px;border-top:1px solid var(--line);
  background:var(--bg-soft,#ffffff);
}
.d5-broker-img{
  width:54px;height:54px;border-radius:0;overflow:hidden;
  background-size:cover;background-position:center;flex-shrink:0;
}
.d5-broker-info{flex:1;min-width:0}
.d5-broker-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-ink);font-weight:600}
.d5-broker-name{font-family:var(--serif);font-size:21px;line-height:1.1;margin:2px 0 4px}
.d5-broker-role{font-size:11px;color:var(--muted);letter-spacing:.06em;margin-bottom:6px}
.d5-broker-contacts{display:flex;flex-direction:column;gap:2px;font-size:12px}
.d5-broker-contacts a{color:var(--ink-soft);transition:color .2s var(--ease)}
.d5-broker-contacts a:hover{color:var(--accent-ink)}

/* Similar */
.d5-similar{
  max-width:1800px;margin:0 auto;
  padding:60px 48px 80px;
}

@media (max-width:1100px){
  .d5-main{grid-template-columns:1fr;gap:24px}
  .d5-side{position:static}
}
@media (max-width:760px){
  .d5-top{padding:112px 20px 12px}
  .d5-main{padding:0 20px 48px}
  .d5-similar{padding:48px 20px}
  .d5-anchors{top:74px}
  .d5-anchor{padding:12px 14px;font-size:11px}
  .d5-map{height:320px}
  /* kontaktní formulář na detailu — bez vnitřního odsazení na mobilu */
  .d5-sec--contact{padding:0}
}

/* ── MOBIL: odstranit odrážky u všech seznamů ── */
@media (max-width:760px){
  ul, ol, li{list-style:none !important;}
  ul, ol{padding-left:0 !important; margin-left:0 !important;}
}

/* ── MOBIL: přepínač jazyků v hlavičce mobilního menu (vlevo místo loga) ── */
@media (max-width:760px){
  .mobile-drawer-head .lang-switch{color:var(--ink);gap:2px}
  .mobile-drawer-head .lang-switch .lang-opt{font-size:14px;padding:8px 8px;opacity:.55}
  .mobile-drawer-head .lang-switch .lang-opt.active{opacity:1}
}

/* ════════════ DETAIL V4 (legacy) ════════════ */
.page-detail-v4{background:var(--bg)}

.d4-status-strip{
  background:#000c26;color:#ffffff;
  padding:14px 24px;text-align:center;font-size:13px;
}
.d4-status-strip strong{font-weight:600;letter-spacing:.02em}
.d4-status-strip span{margin-left:8px;color:rgba(255,255,255,.7)}
.d4-status-strip a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}

/* ── TOP: breadcrumbs + title + price ── */
.d4-top{
  max-width:1400px;margin:0 auto;
  padding:120px 48px 28px;
}
.d4-breadcrumbs{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  font-size:12px;color:var(--muted);margin-bottom:24px;
}
.d4-breadcrumbs a{color:var(--muted);transition:color .2s var(--ease)}
.d4-breadcrumbs a:hover{color:var(--ink)}
.d4-breadcrumbs span{color:var(--line)}
.d4-breadcrumbs > span:last-child{color:var(--ink-soft)}

.d4-titlebar{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:32px;flex-wrap:wrap;
}
.d4-titlebar-left{flex:1 1 540px;min-width:0}
.d4-titlebar-eyebrow{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:12px;
}
.d4-titlebar-title{
  font-family:var(--serif);font-size:clamp(32px,4.2vw,56px);
  font-weight:300;line-height:1.05;letter-spacing:-.015em;
  margin:0 0 14px;color:var(--ink);max-width:900px;
}
.d4-titlebar-loc{
  display:flex;align-items:center;gap:8px;
  font-size:15px;color:var(--ink-soft);
}
.d4-titlebar-loc svg{width:16px;height:16px;opacity:.7}

.d4-titlebar-right{display:flex;flex-direction:column;align-items:flex-end;gap:14px;flex-shrink:0}
.d4-price-value{
  font-family:var(--sans);font-size:clamp(28px,3.5vw,42px);
  font-weight:300;letter-spacing:-.02em;line-height:1;color:var(--ink);
  font-feature-settings:"tnum","lnum";
}
.d4-price-value small{font-size:14px;color:var(--muted);font-weight:400;margin-left:4px;letter-spacing:0}
.d4-top-cta{padding:12px 24px !important;font-size:12px !important}

/* ── PHOTOS — stacked vertically, content-width ── */
.d4-photos{
  max-width:1400px;margin:0 auto;
  padding:0 48px 0;
  display:flex;flex-direction:column;gap:8px;
}
.d4-photo{
  position:relative;display:block;
  width:100%;overflow:hidden;border-radius:0;
  background:var(--bg-alt);cursor:zoom-in;
}
.d4-photo img{
  width:100%;height:auto;display:block;
  transition:transform .8s var(--ease);
}
.d4-photo:hover img{transform:scale(1.015)}
.d4-photo-count{
  position:absolute;top:18px;left:18px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:0;
  background:rgba(0,12,38,.6);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;font-weight:500;text-transform:uppercase;
}
.d4-photo-count svg{width:14px;height:14px}
.d4-photo-num{
  position:absolute;bottom:18px;right:18px;z-index:2;
  background:rgba(0,12,38,.55);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;padding:5px 11px;border-radius:0;
  opacity:0;transition:opacity .25s var(--ease);
}
.d4-photo:hover .d4-photo-num{opacity:1}

/* ── ANCHOR NAV (sticky pod hlavičkou) ── */
.d4-anchors{
  position:sticky;top:80px;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin-top:48px;
}
.d4-anchors-inner{
  max-width:1400px;margin:0 auto;
  padding:0 48px;
  display:flex;gap:0;align-items:center;
  overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;
}
.d4-anchors-inner::-webkit-scrollbar{display:none}
.d4-anchor{
  position:relative;
  padding:18px 22px;
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;
  color:var(--muted);text-decoration:none;white-space:nowrap;
  transition:color .25s var(--ease);
}
.d4-anchor::after{
  content:'';position:absolute;left:22px;right:22px;bottom:-1px;height:2px;
  background:var(--accent);transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease);
}
.d4-anchor:hover,
.d4-anchor.is-active{color:var(--ink);font-weight:600}
.d4-anchor.is-active::after{transform:scaleX(1)}
.d4-anchor--cta{
  margin-left:auto;background:var(--ink);color:#fff !important;
  border-radius:0;padding:10px 22px;font-weight:600;
}
.d4-anchor--cta::after{display:none}
.d4-anchor--cta:hover{background:var(--accent)}

/* ── SECTIONS ── */
.d4-section{padding:80px 0;background:var(--bg)}
.d4-section--alt{background:var(--bg-alt)}
.d4-section-inner{
  max-width:1400px;margin:0 auto;
  padding:0 48px;
}
/* Scroll-margin pro anchor scroll past sticky nav */
.d4-section{scroll-margin-top:140px}

.d4-h2{
  font-family:var(--serif);font-size:clamp(28px,3.2vw,42px);
  font-weight:300;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 24px;color:var(--ink);
  position:relative;padding-bottom:16px;
}
.d4-h2::after{content:'';position:absolute;left:0;bottom:0;width:48px;height:1px;background:var(--accent)}
.d4-h3{
  font-family:var(--serif);font-size:22px;font-weight:400;letter-spacing:-.01em;
  margin:32px 0 16px;color:var(--ink);
}
.d4-section-intro{
  font-size:15px;color:var(--ink-soft);line-height:1.7;
  margin:0 0 32px;max-width:680px;
}

.d4-desc{
  font-size:16px;line-height:1.8;color:var(--ink-soft);max-width:860px;
}
.d4-desc p{margin:0 0 18px}
.d4-desc p:last-child{margin-bottom:0}

.d4-features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px 32px;
  list-style:none;padding:0;margin:0;
  max-width:1000px;
}
.d4-features li{
  display:flex;align-items:center;gap:10px;
  padding:12px 0;font-size:14px;color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.d4-features svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}
@media (max-width:800px){.d4-features{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.d4-features{grid-template-columns:1fr}}

/* Specs — multi column grid */
.d4-specs{
  display:grid;grid-template-columns:repeat(2,1fr);gap:0 48px;
  margin:0;padding:0;
}
.d4-spec{
  display:flex;justify-content:space-between;gap:16px;
  padding:14px 0;border-bottom:1px solid var(--line);
  font-size:14.5px;
}
.d4-spec-k{color:var(--muted);font-weight:500}
.d4-spec-v{color:var(--ink);font-weight:500;text-align:right}
@media (max-width:720px){.d4-specs{grid-template-columns:1fr;gap:0}}

/* Floorplans */
.d4-floorplans{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:14px;
}
.d4-floorplan{
  position:relative;display:block;
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:24px;text-align:center;cursor:zoom-in;
  transition:border-color .2s var(--ease);
}
.d4-floorplan:hover{border-color:var(--accent-ink)}
.d4-floorplan img{max-width:100%;height:auto;display:block;margin:0 auto}
.d4-floorplan-zoom{
  position:absolute;top:12px;right:12px;
  width:32px;height:32px;border-radius:0;
  background:rgba(0,12,38,.6);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.d4-floorplan-zoom svg{width:14px;height:14px}

/* Map */
.d4-map-addr{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink-soft);margin-bottom:16px}
.d4-map-addr svg{width:16px;height:16px;color:var(--accent-ink);flex-shrink:0}
.d4-map{
  width:100%;height:480px;border-radius:0;overflow:hidden;
  background:var(--bg-alt);
}
.d4-map iframe{width:100%;height:100%;border:0;filter:grayscale(.18)}

/* Docs */
.d4-docs{display:flex;flex-direction:column;gap:8px;max-width:680px}
.d4-doc{
  display:flex;align-items:center;gap:12px;
  padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:0;
  font-size:14px;color:var(--ink);text-decoration:none;
  transition:border-color .2s var(--ease);
}
.d4-doc:hover{border-color:var(--accent-ink)}
.d4-doc svg{width:16px;height:16px;color:var(--accent-ink);flex-shrink:0}
.d4-doc span{flex:1}
.d4-doc small{color:var(--muted);font-size:12px}

/* Contact grid: form + broker */
.d4-contact-grid{
  display:grid;grid-template-columns:1.5fr 1fr;gap:48px;align-items:start;
}
@media (max-width:900px){.d4-contact-grid{grid-template-columns:1fr;gap:32px}}

.d4-form{
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:32px;
  box-shadow:0 8px 24px -12px rgba(0,12,38,.08);
}
.d4-form label{
  display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);font-weight:600;margin-bottom:16px;
}
.d4-form input,
.d4-form textarea,
.d4-form select{
  display:block;width:100%;margin-top:6px;
  padding:12px 14px;border:1px solid var(--line);
  background:var(--bg-soft,#ffffff);border-radius:0;
  font-family:var(--sans);font-size:14px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.d4-form input:focus,
.d4-form textarea:focus,
.d4-form select:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.d4-form textarea{resize:vertical;min-height:90px}
.d4-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:0}
.d4-form-consent{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12px !important;color:var(--muted) !important;line-height:1.5;
  letter-spacing:0 !important;text-transform:none !important;
  font-weight:400 !important;margin:0 0 20px !important;
}
.d4-form-consent input{display:inline-block;width:auto !important;margin:3px 0 0}
.d4-form-consent a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}
.d4-form-btn{width:100%;justify-content:center}
@media (max-width:560px){.d4-form-row{grid-template-columns:1fr}}

/* Broker card */
.d4-broker{
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:32px;text-align:center;
  position:sticky;top:160px;
  box-shadow:0 8px 24px -12px rgba(0,12,38,.06);
}
.d4-broker-img{
  width:140px;height:140px;border-radius:0;
  background-size:cover;background-position:center;
  margin:0 auto 20px;
  box-shadow:0 8px 24px -8px rgba(0,12,38,.25);
}
.d4-broker-eyebrow{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent-ink);font-weight:600;margin-bottom:8px}
.d4-broker-name{font-family:var(--serif);font-size:26px;font-weight:300;line-height:1.1;margin:0 0 6px;letter-spacing:-.015em}
.d4-broker-role{font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}
.d4-broker-bio{font-size:13px;line-height:1.6;color:var(--ink-soft);margin:0 0 20px}
.d4-broker-links{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line);margin-bottom:18px}
.d4-broker-link{
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;font-size:13px;color:var(--ink);
  border-bottom:1px solid var(--line);
  transition:color .2s var(--ease);text-decoration:none;
}
.d4-broker-link:last-child{border-bottom:none}
.d4-broker-link:hover{color:var(--accent-ink)}
.d4-broker-link svg{width:14px;height:14px;opacity:.7;flex-shrink:0}
.d4-broker-cta{display:inline-flex;width:100%;justify-content:center}
@media (max-width:900px){.d4-broker{position:static}}

/* Similar */
.d4-similar{
  max-width:1400px;margin:0 auto;
  padding:80px 48px;
}

/* Responsive */
@media (max-width:1100px){
  .d4-top{padding:100px 32px 24px}
  .d4-photos{padding:0 32px}
  .d4-anchors-inner{padding:0 32px}
  .d4-section-inner{padding:0 32px}
  .d4-similar{padding:48px 32px}
}
@media (max-width:760px){
  .d4-top{padding:90px 20px 20px}
  .d4-titlebar{flex-direction:column;align-items:flex-start}
  .d4-titlebar-right{align-items:flex-start;width:100%}
  .d4-photos{padding:0 20px}
  .d4-anchors{top:60px}
  .d4-anchors-inner{padding:0 20px}
  .d4-anchor{padding:14px 14px;font-size:11px}
  .d4-anchor--cta{margin-left:0}
  .d4-section{padding:48px 0}
  .d4-section-inner{padding:0 20px}
  .d4-similar{padding:48px 20px}
  .d4-form{padding:24px}
  .d4-broker{padding:24px}
  .d4-map{height:340px}
}

/* ════════════ DETAIL V3 (legacy) ════════════ */
.page-detail-v3{background:var(--bg)}

.d3-status-strip{
  background:#000c26;color:#ffffff;
  padding:14px 24px;text-align:center;font-size:13px;
}
.d3-status-strip strong{font-weight:600;letter-spacing:.02em}
.d3-status-strip span{margin-left:8px;color:rgba(255,255,255,.7)}
.d3-status-strip a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}

/* ─── Top bar: breadcrumbs + title + price ─── */
.d3-top{
  padding:120px 48px 24px;
  max-width:1800px;margin:0 auto;
}
.d3-breadcrumbs{margin-bottom:0}
.d3-breadcrumbs{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  font-size:12px;color:var(--muted);margin-bottom:24px;
}
.d3-breadcrumbs a{color:var(--muted);transition:color .2s var(--ease)}
.d3-breadcrumbs a:hover{color:var(--ink)}
.d3-breadcrumbs span{color:var(--line)}
.d3-breadcrumbs > span:last-child{color:var(--ink-soft)}

.d3-titlebar{
  display:flex;justify-content:space-between;align-items:flex-end;gap:32px;
  border-bottom:1px solid var(--line);padding-bottom:24px;
  flex-wrap:wrap;
}
.d3-titlebar-eyebrow{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:10px;
}
.d3-titlebar-title{
  font-family:var(--serif);font-size:clamp(32px,4vw,52px);
  font-weight:300;line-height:1.05;letter-spacing:-.015em;
  margin:0 0 12px;color:var(--ink);max-width:1100px;
}
.d3-titlebar-loc{
  display:flex;align-items:center;gap:8px;
  font-size:14px;color:var(--ink-soft);
}
.d3-titlebar-loc svg{width:16px;height:16px;opacity:.7}
.d3-titlebar-price{text-align:right;flex-shrink:0}
.d3-price-value{
  font-family:var(--sans);font-size:clamp(28px,3vw,42px);
  font-weight:300;letter-spacing:-.02em;line-height:1;color:var(--ink);
  font-feature-settings:"tnum","lnum";
}
.d3-price-value small{font-size:14px;color:var(--muted);font-weight:400;margin-left:4px;letter-spacing:0}

/* ─── Main grid: left photos + right sidebar ─── */
.d3-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 555px;
  gap:32px;
  padding:0 48px 80px;
  max-width:1800px;
  margin:0 auto;
  align-items:start;
}

/* LEFT: photos stacked vertically */
.d3-photos{
  display:flex;flex-direction:column;gap:8px;
}
.d3-photo{
  position:relative;display:block;
  width:100%;overflow:hidden;border-radius:0;
  background:var(--bg-alt);cursor:zoom-in;
}
.d3-photo img{
  width:100%;height:auto;display:block;
  transition:transform .8s var(--ease);
}
.d3-photo:hover img{transform:scale(1.015)}

.d3-photo-count{
  position:absolute;top:18px;left:18px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:0;
  background:rgba(0,12,38,.6);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;font-weight:500;text-transform:uppercase;
}
.d3-photo-count svg{width:14px;height:14px}
.d3-photo-num{
  position:absolute;bottom:18px;right:18px;z-index:2;
  background:rgba(0,12,38,.55);backdrop-filter:blur(8px);color:#fff;
  font-size:11px;letter-spacing:.14em;padding:5px 11px;border-radius:0;
  opacity:0;transition:opacity .25s var(--ease);
}
.d3-photo:hover .d3-photo-num{opacity:1}

/* RIGHT: sticky sidebar — bez vnitřního scrollu, obsah teče přirozeně */
.d3-side{
  position:sticky;
  top:96px;
  align-self:start;
}
.d3-side-inner{
  background:#fff;border:1px solid var(--line);border-radius:0;
  display:flex;flex-direction:column;
  box-shadow:0 12px 40px -16px rgba(0,12,38,.12);
  overflow:hidden;
}

/* Sidebar head: title + price */
.d3-side-head{
  padding:20px 22px 18px;
  border-bottom:1px solid var(--line);
  flex-shrink:0;
  background:linear-gradient(180deg,#fff 0%, var(--bg-soft,#ffffff) 100%);
}
.d3-side-eyebrow{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:10px;
}
.d3-side-title{
  font-family:var(--serif);font-size:clamp(22px,1.8vw,28px);
  font-weight:300;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 10px;color:var(--ink);
}
.d3-side-loc{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:var(--ink-soft);margin-bottom:14px;
}
.d3-side-loc svg{width:14px;height:14px;opacity:.7;flex-shrink:0}
.d3-side-price{
  padding-top:14px;border-top:1px solid var(--line);
}
.d3-side-price-value{
  font-family:var(--sans);font-size:26px;font-weight:300;
  letter-spacing:-.02em;color:var(--ink);
  font-feature-settings:"tnum","lnum";
}
.d3-side-price-value small{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px;letter-spacing:0}

/* Quick params */
.d3-quick{
  display:grid;grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);flex-shrink:0;
}
.d3-quick > div{
  padding:14px 8px;border-right:1px solid var(--line);
  display:flex;flex-direction:column;gap:4px;text-align:center;
}
.d3-quick > div:last-child{border-right:none}
.d3-quick span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:500}
.d3-quick strong{font-family:var(--sans);font-size:14px;font-weight:500;color:var(--ink)}

/* SECTION BUTTONS — klik otevře modal */
.d3-secs{display:flex;flex-direction:column;background:#fff}
.d3-sec-btn{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:16px 20px;background:transparent;border:none;
  border-bottom:1px solid var(--line);
  font-family:var(--sans);font-size:14px;font-weight:500;
  letter-spacing:.02em;color:var(--ink);
  cursor:pointer;text-align:left;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.d3-sec-btn:hover{background:var(--bg-soft,#ffffff);color:var(--accent-ink)}
.d3-sec-btn svg{width:14px;height:14px;color:var(--muted);transition:transform .25s var(--ease), color .25s var(--ease)}
.d3-sec-btn:hover svg{color:var(--accent-ink);transform:translateX(3px)}
.d3-sec-btn:last-child{border-bottom:none}

/* Hide templates (visual only — JS klonuje obsah do modalu) */
.d3-modal-templates{display:none}

/* CTA wrap — Mám zájem + Zavolat */
.d3-cta-wrap{
  padding:18px 20px;
  border-top:1px solid var(--line);
  background:var(--bg-soft,#ffffff);
  display:flex;flex-direction:column;gap:10px;
}
.d3-cta-btn{
  width:100%;justify-content:center;padding:14px 24px !important;
  font-size:13px !important;
}
.d3-cta-call{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 14px;border-radius:0;
  background:transparent;border:1px solid var(--line);
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;
  color:var(--ink-soft);text-decoration:none;
  transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.d3-cta-call:hover{border-color:var(--accent-ink);color:var(--accent-ink);background:#fff}
.d3-cta-call svg{width:14px;height:14px}

/* ════════ MODAL ════════ */
.d3-modal{
  position:fixed;inset:0;z-index:2000;
  display:none;
  pointer-events:none;
}
.d3-modal.is-open{display:flex;align-items:center;justify-content:center;pointer-events:auto}
.d3-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(0,12,38,.62);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  opacity:0;transition:opacity .3s var(--ease);
}
.d3-modal.is-open .d3-modal-backdrop{opacity:1}

.d3-modal-panel{
  position:relative;z-index:1;
  background:#fff;
  border-radius:0;
  width:min(720px, calc(100vw - 40px));
  max-height:calc(100vh - 80px);
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(0,12,38,.45);
  transform:translateY(20px) scale(.96);
  opacity:0;
  transition:transform .35s var(--ease), opacity .3s var(--ease);
}
.d3-modal.is-open .d3-modal-panel{transform:translateY(0) scale(1);opacity:1}

.d3-modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 24px;border-bottom:1px solid var(--line);
  flex-shrink:0;
}
.d3-modal-title{
  font-family:var(--serif);font-size:22px;font-weight:400;letter-spacing:-.01em;
  margin:0;color:var(--ink);
}
.d3-modal-close{
  width:36px;height:36px;border-radius:0;
  background:transparent;border:1px solid var(--line);color:var(--ink-soft);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.d3-modal-close:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.d3-modal-close svg{width:16px;height:16px}

.d3-modal-body{
  overflow-y:auto;
  padding:24px 28px 28px;
  font-size:14.5px;line-height:1.7;color:var(--ink-soft);
}
.d3-modal-body::-webkit-scrollbar{width:6px}
.d3-modal-body::-webkit-scrollbar-thumb{background:var(--line);border-radius:0}
.d3-modal-body p{margin:0 0 14px}
.d3-modal-body p:last-child{margin-bottom:0}
.d3-panel-h{
  font-family:var(--serif);font-size:18px;font-weight:400;
  margin:24px 0 12px;color:var(--ink);
}

@media (max-width:560px){
  .d3-modal-panel{max-height:calc(100vh - 24px);border-radius:0}
  .d3-modal-body{padding:18px 18px 22px}
  .d3-modal-title{font-size:18px}
}

/* Form styling — když je form v modalu, dej mu trochu vzduchu */
.d3-modal-body .d3-form input,
.d3-modal-body .d3-form textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line);
  background:var(--bg-soft,#ffffff);border-radius:0;
  font-family:var(--sans);font-size:14px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.d3-modal-body .d3-form input:focus,
.d3-modal-body .d3-form textarea:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.d3-modal-body .d3-form label{
  display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);font-weight:600;margin-bottom:14px;
}
.d3-modal-body .d3-form label > input,
.d3-modal-body .d3-form label > textarea{margin-top:6px}
.d3-form-intro{
  margin:0 0 18px;color:var(--ink-soft);font-size:14px;line-height:1.6;
}
.d3-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.d3-form-row > label{margin-bottom:14px}
.d3-form-consent{
  display:flex;gap:8px;align-items:flex-start;
  font-size:12px !important;color:var(--muted) !important;line-height:1.5;
  letter-spacing:0 !important;text-transform:none !important;
  font-weight:400 !important;margin:0 0 18px !important;
}
.d3-form-consent input{width:auto !important;margin-top:3px}
.d3-form-consent a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}
.d3-form-btn{width:100%;justify-content:center;padding:14px 24px !important}
@media (max-width:560px){.d3-form-row{grid-template-columns:1fr}}

.d3-features{
  list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;
}
.d3-features li{
  display:flex;align-items:center;gap:8px;
  padding:6px 0;font-size:13px;color:var(--ink-soft);
}
.d3-features svg{width:12px;height:12px;color:var(--accent-ink);flex-shrink:0}

/* Specs list */
.d3-specs{margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.d3-spec{
  display:flex;justify-content:space-between;gap:12px;
  padding:9px 0;border-bottom:1px solid var(--line);
  font-size:13px;
}
.d3-spec:last-child{border-bottom:none}
.d3-spec-k{color:var(--muted);font-weight:500}
.d3-spec-v{color:var(--ink);font-weight:500;text-align:right}

/* Floorplan */
.d3-floorplan{
  display:block;position:relative;
  background:var(--bg-alt);border-radius:0;overflow:hidden;
  cursor:zoom-in;margin-bottom:10px;
}
.d3-floorplan:last-child{margin-bottom:0}
.d3-floorplan img{width:100%;height:auto;display:block}
.d3-floorplan-zoom{
  position:absolute;top:10px;right:10px;
  width:30px;height:30px;border-radius:0;
  background:rgba(0,12,38,.55);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.d3-floorplan-zoom svg{width:14px;height:14px}

/* Map */
.d3-map{
  width:100%;height:280px;border-radius:0;overflow:hidden;
  background:var(--bg-alt);margin-bottom:10px;
}
.d3-map iframe{width:100%;height:100%;border:0;filter:grayscale(.15)}
.d3-map-addr{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--ink-soft)}
.d3-map-addr svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}

/* Docs */
.d3-docs{display:flex;flex-direction:column;gap:6px}
.d3-doc{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;background:var(--bg-soft,#ffffff);
  border:1px solid var(--line);border-radius:0;
  font-size:13px;color:var(--ink);text-decoration:none;
  transition:border-color .2s var(--ease);
}
.d3-doc:hover{border-color:var(--accent-ink)}
.d3-doc svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}
.d3-doc span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d3-doc small{color:var(--muted);font-size:11px}

/* Broker strip */
.d3-broker-strip{
  display:flex;align-items:center;gap:12px;
  padding:14px 20px;border-top:1px solid var(--line);
  background:var(--bg-soft,#ffffff);flex-shrink:0;
}
.d3-broker-img{
  width:44px;height:44px;border-radius:0;
  background-size:cover;background-position:center;flex-shrink:0;
}
.d3-broker-info{flex:1;min-width:0}
.d3-broker-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-ink);font-weight:600}
.d3-broker-name{font-family:var(--serif);font-size:15px;line-height:1.1;margin:2px 0 0}
.d3-broker-tel{font-size:12px;color:var(--ink-soft);font-weight:500;margin-top:2px;font-feature-settings:"tnum"}

/* (Lead form styling viz dále — uvnitř .d3-modal-body) */

/* Similar */
.d3-similar{
  max-width:1800px;margin:0 auto;padding:60px 48px 80px;
}

/* Responsive */
@media (max-width:1100px){
  .d3-main{grid-template-columns:1fr;gap:24px}
  .d3-side{position:static;height:auto}
  .d3-side-inner{height:auto;max-height:none}
  .d3-tabpanels{overflow:visible;max-height:none}
}
@media (max-width:760px){
  .d3-top{padding:90px 20px 24px}
  .d3-titlebar{flex-direction:column;align-items:flex-start;gap:14px}
  .d3-titlebar-price{text-align:left}
  .d3-main{padding:0 20px 48px}
  .d3-similar{padding:48px 20px}
}

/* ════════════ DETAIL V2 (legacy, kept for back-compat) ════════════ */
.page-detail-v2{background:var(--bg)}

.d2-status-strip{
  background:#000c26;color:#ffffff;
  padding:14px 24px;text-align:center;font-size:13px;
}
.d2-status-strip strong{font-weight:600;letter-spacing:.02em}
.d2-status-strip span{margin-left:8px;color:rgba(255,255,255,.7)}
.d2-status-strip a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}

.d2-hero{
  max-width:100%;margin:0 auto;
  padding:120px 48px 0;
}
.d2-breadcrumbs{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  font-size:12px;color:var(--muted);margin-bottom:24px;
}
.d2-breadcrumbs a{color:var(--muted);transition:color .2s var(--ease)}
.d2-breadcrumbs a:hover{color:var(--ink)}
.d2-breadcrumbs span{color:var(--line)}
.d2-breadcrumbs > span:last-child{color:var(--ink-soft)}

.d2-hero-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:24px;
  align-items:start;
}
@media (max-width:1100px){
  .d2-hero-grid{grid-template-columns:1fr;gap:16px}
}

.d2-hero-gallery{
  position:relative;
  border-radius:0;overflow:hidden;
  background:var(--bg-alt);
}
.d2-main-swiper{width:100%;aspect-ratio:4/3}
.d2-slide{display:block;width:100%;height:100%;cursor:zoom-in;position:relative}
.d2-slide img{width:100%;height:100%;object-fit:cover}

.d2-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:48px;height:48px;border-radius:0;
  background:rgba(255,255,255,.92);color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;
  transition:background .2s var(--ease), transform .2s var(--ease);
  box-shadow:0 4px 14px rgba(0,12,38,.18);
}
.d2-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.05)}
.d2-arrow svg{width:16px;height:16px}
.d2-arrow--prev{left:18px}
.d2-arrow--next{right:18px}
.d2-arrow.swiper-button-disabled{opacity:0;pointer-events:none}

.d2-counter{
  position:absolute;bottom:18px;left:18px;z-index:5;
  background:rgba(0,12,38,.6);backdrop-filter:blur(8px);color:#fff;
  padding:6px 12px;border-radius:0;
  font-size:11px;letter-spacing:.14em;font-weight:500;
}
.d2-status-tag{
  position:absolute;top:18px;left:18px;z-index:5;
  background:#fff;color:var(--ink);
  padding:7px 14px;border-radius:0;
  font-size:11px;letter-spacing:.2em;font-weight:600;text-transform:uppercase;
  box-shadow:0 4px 12px rgba(0,12,38,.15);
}
.d2-status-tag.is-sold{background:var(--ink);color:#fff}
.d2-status-tag.is-rented{background:#596272;color:#fff}
.d2-status-tag.is-reserved{background:#000c26;color:#fff}
.d2-status-tag.is-exclusive{background:var(--ink);color:#fff}

/* ─── Hero card (sticky) ─── */
.d2-hero-card{
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:28px;
  position:sticky;top:96px;
  box-shadow:0 12px 40px -16px rgba(0,12,38,.12);
}
.d2-card-eyebrow{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent-ink);font-weight:600;margin-bottom:14px;
}
.d2-card-title{
  font-family:var(--serif);font-size:clamp(26px,2.4vw,32px);
  font-weight:400;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 12px;color:var(--ink);
}
.d2-card-loc{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:var(--ink-soft);margin-bottom:20px;
}
.d2-card-loc svg{width:14px;height:14px;opacity:.7;flex-shrink:0}

.d2-card-quick{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin-bottom:20px;
}
.d2-card-quick > div{
  padding:14px 0;border-right:1px solid var(--line);
  display:flex;flex-direction:column;gap:4px;text-align:center;
}
.d2-card-quick > div:last-child{border-right:none}
.d2-card-quick span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:500}
.d2-card-quick strong{font-family:var(--sans);font-size:15px;font-weight:500;color:var(--ink)}

.d2-card-price{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.d2-card-price-label{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:500;display:block;margin-bottom:4px}
.d2-card-price-value{
  font-family:var(--sans);font-size:28px;font-weight:500;letter-spacing:-.02em;line-height:1.1;
  color:var(--ink);
}
.d2-card-price-value small{font-size:13px;color:var(--muted);font-weight:400;margin-left:4px;letter-spacing:0}
.d2-card-price-note{font-size:12px;color:var(--muted);margin-top:6px}

.d2-card-form input,
.d2-card-form textarea,
.d2-card-form select{
  width:100%;padding:11px 14px;border:1px solid var(--line);
  background:var(--bg-soft,#ffffff);border-radius:0;
  font-family:var(--sans);font-size:13.5px;
  margin-bottom:8px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.d2-card-form input:focus,
.d2-card-form textarea:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.d2-card-form textarea{resize:vertical;min-height:60px}
.d2-card-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.d2-card-form-consent{
  display:flex;gap:8px;align-items:flex-start;
  font-size:11px;color:var(--muted);line-height:1.4;margin:6px 0 10px;
}
.d2-card-form-consent input{width:auto;margin-top:3px}
.d2-card-form-consent a{color:var(--accent-ink);border-bottom:1px solid var(--accent)}
.d2-card-form-btn{width:100%;justify-content:center;margin-top:4px}

.d2-card-actions{
  display:grid;grid-template-columns:repeat(3,1fr);gap:6px;
  margin-top:14px;padding-top:14px;border-top:1px solid var(--line);
}
/* Card action button — přebíjí .prop-fav (position:absolute) když je uvnitř kartičky */
.d2-card-actions .d2-card-action,
.d2-card-actions .prop-fav.d2-card-action{
  position:static !important;
  width:auto !important;
  height:auto !important;
  border-radius:0!important;
  background:transparent !important;
  backdrop-filter:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  padding:10px 4px !important;
  border:1px solid var(--line) !important;
  color:var(--ink-soft) !important;
  cursor:pointer;font-family:inherit;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease) !important;
  text-decoration:none;
}
.d2-card-actions .d2-card-action:hover{
  background:var(--bg-soft) !important;
  border-color:var(--ink-soft) !important;
  color:var(--ink) !important;
}
.d2-card-actions .d2-card-action svg{
  width:18px !important;
  height:18px !important;
  color:inherit;
  display:block;
  flex-shrink:0;
}
.d2-card-actions .d2-card-action span{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;
}
.d2-card-actions .d2-card-action.active{
  color:var(--accent-ink) !important;
  border-color:var(--accent-ink) !important;
}
.d2-card-actions .d2-card-action.active svg{fill:var(--accent);stroke:var(--accent)}

/* ─── Thumbs row ─── */
.d2-thumbs{
  max-width:100%;margin:24px auto 0;padding:0 48px;
}
.d2-thumbs-row{
  display:grid;grid-template-columns:repeat(5,1fr);gap:8px;
}
.d2-thumb{
  position:relative;display:block;
  aspect-ratio:4/3;overflow:hidden;border-radius:0;background:var(--bg-alt);
  cursor:zoom-in;
}
.d2-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.d2-thumb:hover img{transform:scale(1.04)}
.d2-thumb-more{
  position:absolute;inset:0;background:rgba(0,12,38,.7);backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:var(--serif);font-size:18px;font-weight:400;letter-spacing:.02em;
}
@media (max-width:760px){
  .d2-thumbs-row{grid-template-columns:repeat(3,1fr)}
  .d2-thumbs-row > a:nth-child(n+4){display:none}
}

/* ─── Description + specs grid ─── */
.d2-content{
  max-width:100%;margin:0 auto;
  padding:80px 48px;
}
.d2-content-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:48px;
  align-items:start;
}
@media (max-width:1100px){
  .d2-content-grid{grid-template-columns:1fr;gap:32px}
}

.d2-h2{
  font-family:var(--serif);font-size:clamp(28px,3vw,38px);
  font-weight:400;line-height:1.1;letter-spacing:-.015em;
  margin:0 0 24px;color:var(--ink);
  position:relative;padding-bottom:14px;
}
.d2-h2::after{content:'';display:block;position:absolute;left:0;bottom:0;width:40px;height:1px;background:var(--accent)}
.d2-h3{
  font-family:var(--serif);font-size:20px;font-weight:400;letter-spacing:-.01em;
  margin:0 0 16px;color:var(--ink);
}

.d2-desc{
  font-size:15px;line-height:1.8;color:var(--ink-soft);max-width:720px;
}
.d2-desc p{margin:0 0 16px}
.d2-desc p:last-child{margin-bottom:0}

.d2-features{
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px 32px;
  list-style:none;padding:0;margin:0;
}
.d2-features li{
  display:flex;align-items:center;gap:10px;
  padding:10px 0;font-size:14px;color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.d2-features svg{width:14px;height:14px;color:var(--accent-ink);flex-shrink:0}
@media (max-width:560px){.d2-features{grid-template-columns:1fr}}

/* ─── Specs panel ─── */
.d2-specs-col{position:sticky;top:96px}
.d2-specs{
  background:#fff;border:1px solid var(--line);border-radius:0;
  margin:0;padding:6px 0;
}
.d2-spec{
  display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;
  padding:11px 18px;border-bottom:1px solid var(--line);
  font-size:13.5px;
}
.d2-spec:last-child{border-bottom:none}
.d2-spec-icon{display:flex;align-items:center;justify-content:center;color:var(--accent-ink);opacity:.85}
.d2-spec-icon svg{width:16px;height:16px}
.d2-spec-k{color:var(--muted);font-weight:500}
.d2-spec-v{color:var(--ink);font-weight:500;text-align:right}

.d2-floorplan{
  display:block;position:relative;
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:24px;text-align:center;cursor:zoom-in;
  transition:border-color .2s var(--ease);
}
.d2-floorplan:hover{border-color:var(--accent-ink)}
.d2-floorplan img{max-width:100%;height:auto;display:block;margin:0 auto}
.d2-floorplan-zoom{
  position:absolute;top:12px;right:12px;
  width:32px;height:32px;border-radius:0;
  background:rgba(0,12,38,.6);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.d2-floorplan-zoom svg{width:14px;height:14px}

.d2-energy{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border:1px solid var(--line);border-radius:0;
  padding:16px 18px;margin-top:24px;
}
.d2-energy-label{font-size:12px;color:var(--muted);letter-spacing:.04em}
.d2-energy-class{
  width:44px;height:44px;border-radius:0;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:18px;color:#fff;
}
.d2-energy-a{background:#2d8d4d}
.d2-energy-b{background:#5cb85c}
.d2-energy-c{background:#cab73b}
.d2-energy-d{background:#e09a3b}
.d2-energy-e{background:#d97047}
.d2-energy-f{background:#d34a3a}
.d2-energy-g{background:#a83330}

.d2-docs{display:flex;flex-direction:column;gap:6px}
.d2-doc{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;background:#fff;border:1px solid var(--line);border-radius:0;
  font-size:13px;color:var(--ink);text-decoration:none;
  transition:border-color .2s var(--ease);
}
.d2-doc:hover{border-color:var(--accent-ink)}
.d2-doc svg{width:16px;height:16px;color:var(--accent-ink);flex-shrink:0}
.d2-doc span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d2-doc small{color:var(--muted);font-size:11px}

/* ─── Map ─── */
.d2-map{
  width:100vw;margin-left:calc(50% - 50vw);
  height:480px;background:var(--bg-alt);overflow:hidden;
}
.d2-map iframe{width:100%;height:100%;border:0;display:block;filter:grayscale(.2)}

/* ─── Lead form section ─── */
.d2-lead{
  background:var(--bg-alt);
  padding:80px 0;
}
.d2-lead-grid{
  max-width:100%;margin:0 auto;padding:0 48px;
  display:grid;grid-template-columns:1.6fr 1fr;gap:48px;align-items:start;
}
@media (max-width:900px){
  .d2-lead-grid{grid-template-columns:1fr;gap:32px}
}

.d2-lead-form-wrap{
  background:#fff;border-radius:0;
  padding:36px;box-shadow:0 12px 40px -16px rgba(0,12,38,.12);
}
.d2-lead-intro{font-size:14px;color:var(--ink-soft);line-height:1.6;margin:0 0 24px;max-width:520px}
.d2-lead-form label{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:6px}
.d2-lead-form input,
.d2-lead-form textarea,
.d2-lead-form select{
  width:100%;padding:12px 14px;border:1px solid var(--line);
  background:var(--bg-soft,#ffffff);border-radius:0;
  font-family:var(--sans);font-size:14px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.d2-lead-form input:focus,
.d2-lead-form textarea:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.d2-lead-form textarea{resize:vertical;min-height:90px}
.d2-lead-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.d2-lead-form-row > div{display:flex;flex-direction:column}
.d2-lead-form > div{margin-bottom:14px}
.d2-lead-consent{
  display:flex;align-items:flex-start;gap:8px;
  font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 20px;
}
.d2-lead-consent input{width:auto;margin-top:3px}
.d2-lead-consent a{color:var(--accent-ink)}
@media (max-width:560px){
  .d2-lead-form-row{grid-template-columns:1fr;gap:14px}
}

.d2-broker{
  background:#fff;border-radius:0;padding:28px;text-align:center;
  box-shadow:0 12px 40px -16px rgba(0,12,38,.10);
  position:sticky;top:96px;
}
.d2-broker-img{
  width:120px;height:120px;border-radius:0;
  background-size:cover;background-position:center;margin:0 auto 18px;
  box-shadow:0 8px 24px -8px rgba(0,12,38,.25);
}
.d2-broker-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent-ink);font-weight:600;margin-bottom:6px}
.d2-broker-name{font-family:var(--serif);font-size:24px;font-weight:400;line-height:1.1;margin:0 0 4px}
.d2-broker-role{font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}
.d2-broker-link{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 14px;font-size:13px;color:var(--ink);
  border-top:1px solid var(--line);
  transition:color .2s var(--ease);
}
.d2-broker-link:first-of-type{margin-top:14px}
.d2-broker-link:hover{color:var(--accent-ink)}
.d2-broker-link svg{width:14px;height:14px;opacity:.7}
.d2-broker-cta{display:inline-flex;margin-top:18px;width:100%;justify-content:center}

/* ─── Similar ─── */
.d2-similar{
  max-width:100%;margin:0 auto;padding:80px 48px;
}

/* ─── Responsive tweaks ─── */
@media (max-width:760px){
  .d2-hero{padding:100px 20px 0}
  .d2-thumbs{padding:0 20px}
  .d2-content{padding:48px 20px}
  .d2-lead-grid{padding:0 20px}
  .d2-similar{padding:48px 20px}
  .d2-hero-card{position:static;padding:24px}
  .d2-specs-col,
  .d2-broker{position:static}
  .d2-map{height:340px}
}

/* ════════════ CHAT WIDGET ════════════ */
.cw-root{
  position:fixed;right:24px;bottom:24px;z-index:1400;
  font-family:var(--sans);
}
.cw-launcher{
  position:relative;
  width:64px;height:64px;border-radius:0;
  background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 36px -10px rgba(0,12,38,.45), 0 2px 8px rgba(0,12,38,.18);
  cursor:pointer;border:none;
  transition:transform .35s var(--ease), background .35s var(--ease);
}
.cw-launcher:hover{transform:translateY(-2px);background:var(--accent)}
.cw-launcher svg{width:26px;height:26px;transition:opacity .25s var(--ease), transform .35s var(--ease);position:absolute}
.cw-launcher-icon-close{opacity:0;transform:rotate(-90deg) scale(.6)}
.cw-root.is-open .cw-launcher-icon-open{opacity:0;transform:rotate(90deg) scale(.6)}
.cw-root.is-open .cw-launcher-icon-close{opacity:1;transform:rotate(0) scale(1)}
.cw-launcher-pulse{
  position:absolute;inset:-4px;border-radius:0;border:2px solid var(--accent);
  animation:cwPulse 2.4s infinite;pointer-events:none;
}
.cw-root.is-open .cw-launcher-pulse{display:none}
@keyframes cwPulse{
  0%{transform:scale(.85);opacity:.7}
  100%{transform:scale(1.35);opacity:0}
}

/* Panel */
.cw-panel{
  position:absolute;bottom:80px;right:0;
  width:380px;height:560px;max-height:calc(100vh - 120px);
  background:var(--bg);border-radius:0;overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(0,12,38,.45), 0 8px 24px rgba(0,12,38,.15);
  display:flex;flex-direction:column;
  transform:translateY(20px) scale(.92);
  transform-origin:bottom right;
  opacity:0;pointer-events:none;
  transition:opacity .3s var(--ease), transform .35s var(--ease);
}
.cw-root.is-open .cw-panel{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

.cw-head{
  display:flex;align-items:center;gap:12px;
  padding:16px 18px;background:var(--ink);color:#fff;
}
.cw-head-avatar{
  width:40px;height:40px;border-radius:0;
  background:linear-gradient(135deg,var(--accent) 0%, #334059 100%);
  display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;
}
.cw-head-avatar svg{width:20px;height:20px}
.cw-head-info{flex:1;min-width:0}
.cw-head-name{font-family:var(--serif);font-size:18px;font-weight:400;line-height:1;margin-bottom:4px}
.cw-head-status{font-size:11px;color:rgba(255,255,255,.65);display:flex;align-items:center;gap:6px}
.cw-status-dot{width:6px;height:6px;border-radius:0;background:#7a9b76;box-shadow:0 0 0 3px rgba(122,155,118,.25)}
.cw-close{
  width:32px;height:32px;border-radius:0;background:transparent;color:#fff;
  display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;
  transition:background .2s var(--ease);
}
.cw-close:hover{background:rgba(255,255,255,.1)}
.cw-close svg{width:16px;height:16px}

.cw-body{
  flex:1;overflow-y:auto;overflow-x:hidden;
  padding:18px 16px;display:flex;flex-direction:column;gap:14px;
  background:linear-gradient(180deg,var(--bg-soft,#ffffff) 0%, var(--bg) 100%);
}
.cw-body::-webkit-scrollbar{width:6px}
.cw-body::-webkit-scrollbar-thumb{background:rgba(0,12,38,.15);border-radius:0}

.cw-msg{display:flex;animation:cwIn .35s var(--ease)}
@keyframes cwIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.cw-msg--bot{justify-content:flex-start}
.cw-msg--user{justify-content:flex-end}
.cw-bubble{
  max-width:80%;
  padding:11px 14px;border-radius:0;
  font-size:14px;line-height:1.5;
}
.cw-msg--bot .cw-bubble{
  background:#fff;color:var(--ink);
  border:1px solid var(--line);border-top-left-radius:0;
  box-shadow:0 2px 6px rgba(0,12,38,.04);
}
.cw-msg--user .cw-bubble{
  background:var(--ink);color:#fff;border-top-right-radius:0;
}
.cw-bubble p{margin:0}
.cw-bubble p + p{margin-top:6px}
.cw-bubble strong{font-weight:600}

/* Typing indicator */
.cw-typing{display:inline-flex;gap:4px;padding:2px 0}
.cw-typing span{
  width:6px;height:6px;border-radius:0;background:var(--muted);
  animation:cwBounce 1.2s infinite both;
}
.cw-typing span:nth-child(2){animation-delay:.15s}
.cw-typing span:nth-child(3){animation-delay:.3s}
@keyframes cwBounce{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}

/* Embedded property cards */
.cw-props{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.cw-prop{
  display:flex;gap:10px;padding:8px;background:#fff;border:1px solid var(--line);
  border-radius:0;text-decoration:none;color:var(--ink);
  transition:border-color .2s var(--ease), transform .2s var(--ease);
}
.cw-prop:hover{border-color:var(--accent-ink);transform:translateX(2px)}
.cw-prop-img{
  width:80px;height:64px;border-radius:0;background-size:cover;background-position:center;
  background-color:var(--bg-alt);flex-shrink:0;
}
.cw-prop-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.cw-prop-title{
  font-family:var(--serif);font-size:14px;font-weight:400;line-height:1.2;letter-spacing:-.01em;
  margin:0 0 3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cw-prop-meta{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center;margin-bottom:3px}
.cw-prop-meta .dot{opacity:.4}
.cw-prop-price{font-size:13px;font-weight:500;color:var(--accent-ink);letter-spacing:-.01em}

/* Quick suggestions */
.cw-quick{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;
}
.cw-quick button{
  font-size:12px;padding:7px 12px;border-radius:0;
  background:#fff;border:1px solid var(--line);color:var(--ink-soft);
  cursor:pointer;transition:all .2s var(--ease);font-family:inherit;
}
.cw-quick button:hover{border-color:var(--accent-ink);color:var(--accent-ink);background:#fff}

/* Form */
.cw-form{
  display:flex;align-items:center;gap:8px;
  padding:12px;background:#fff;border-top:1px solid var(--line);
}
.cw-form input{
  flex:1;padding:11px 14px;border:1px solid var(--line);border-radius:0;
  font-size:14px;font-family:inherit;background:var(--bg-soft,#ffffff);
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.cw-form input:focus{outline:none;border-color:var(--accent-ink);background:#fff}
.cw-form button{
  width:40px;height:40px;border-radius:0;background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;
  transition:background .2s var(--ease), transform .2s var(--ease);flex-shrink:0;
}
.cw-form button:hover{background:var(--accent);transform:translateY(-1px)}
.cw-form button svg{width:18px;height:18px}

/* Kontaktní formulář v chatu („nechte nám e-mail") */
.cw-lead{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.cw-lead input,.cw-lead textarea{
  width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:0;
  font-size:13px;font-family:inherit;background:#fff;color:var(--ink);
}
.cw-lead input:focus,.cw-lead textarea:focus{outline:none;border-color:var(--accent-ink)}
.cw-lead textarea{resize:vertical;min-height:38px}
.cw-lead-submit{
  margin-top:2px;padding:10px 14px;border:none;border-radius:0;
  background:var(--ink);color:#fff;font-size:13px;font-family:inherit;cursor:pointer;
  transition:background .2s var(--ease);
}
.cw-lead-submit:hover{background:var(--accent)}
.cw-lead-submit:disabled{opacity:.6;cursor:default}
.cw-lead-msg{font-size:12px;color:var(--accent-ink);min-height:14px}

.cw-disclaimer{
  padding:10px 14px;font-size:11px;color:var(--muted);text-align:center;
  background:#fff;border-top:1px solid rgba(0,12,38,.04);line-height:1.4;
}

/* Mobile */
@media (max-width:480px){
  .cw-root{right:14px;bottom:14px}
  .cw-panel{
    position:fixed;left:14px;right:14px;bottom:80px;top:14px;
    width:auto;height:auto;max-height:none;
  }
}

/* ────────────── Google Translate: hide its UI, kill top bar ────────────── */
/* Skrýt mimo obrazovku (NE display:none/opacity:0/size:1px — jinak se .goog-te-combo
   nemusí vytvořit a překlad nefunguje). Necháme přirozenou velikost, jen mimo viewport. */
#google_translate_element{position:absolute !important;left:-9999px !important;top:-9999px !important}
/* Skryj injectovaný Google top bar + gadget a zruš posun stránky */
.skiptranslate{display:none !important}
body{top:0 !important}
/* Skryj tooltipy překladu */
.goog-tooltip,.goog-tooltip:hover,.goog-text-highlight{
  background:transparent !important;box-shadow:none !important;border:none !important;
}
/* Lang switch — dropdown select */
/* Přepínač jazyků — stejný „pill" jako tlačítko Kontakt (.cta-contact).
   select vyplní celý pill, šipka leží absolutně navrch (pointer-events:none),
   takže kliknutí kamkoliv na pill otevře nativní dropdown. */
/* Přepínač jazyků — nativní odkazy CZ / EN / DE / FR (bez Google Translate) */
.lang-switch{
  display:inline-flex;align-items:center;gap:1px;color:inherit;
}
.lang-switch .lang-opt{
  font-family:var(--sans);font-size:12px;font-weight:500;letter-spacing:.08em;
  line-height:1;padding:6px 6px;color:inherit;opacity:.5;
  border-radius:0;transition:opacity .25s var(--ease);text-transform:uppercase;
}
.lang-switch .lang-opt + .lang-opt{position:relative}
.lang-switch .lang-opt + .lang-opt::before{
  content:'';position:absolute;left:-1px;top:50%;transform:translateY(-50%);
  width:1px;height:11px;background:currentColor;opacity:.25;
}
.lang-switch .lang-opt:hover{opacity:.85}
.lang-switch .lang-opt.active{
  opacity:1;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;
}

/* ────────────── Team & office: full max-width ────────────── */
.team-office-header,
.team-office-grid{
  max-width:100% !important;
}

/* ────────────── User CSS overrides ────────────── */
.service{
  padding:50px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  position:relative;
  transition:background .4s;
}
/* Mobil — jeden sloupec, bez pravého okraje */
@media (max-width:640px){
  .service{
    padding:50px;
    border-right:none;
    border-bottom:1px solid var(--line);
  }
}
.prop-specs{
  font-size:15px;
  color:var(--muted);
}
/* ════════════ MAGAZÍN — výpis: 1 velká dlaždice + grid 2×2 ════════════ */
/* Pozor: generický .featured má černé pozadí (jiné stránky), u karet článků ho rušíme */
.articles-grid .article-card.featured{background:transparent;color:inherit}
.articles-grid--feature .article-card.featured .article-img{margin-bottom:20px}
@media (min-width:1101px){
  .articles-grid--feature{
    grid-template-columns:1.5fr 1fr 1fr;
    grid-auto-rows:1fr;
    gap:36px 40px;
    align-items:stretch;
  }
  /* velká dlaždice vlevo přes obě řady */
  .articles-grid--feature > .article-card.featured{
    grid-column:1;
    grid-row:1 / span 2;
    display:flex;flex-direction:column;
  }
  /* obrázek velké dlaždice vyplní celou výšku (2 řady) */
  .articles-grid--feature > .article-card.featured .article-img{
    flex:1 1 auto;aspect-ratio:auto;min-height:0;
  }
  /* 4 malé karty vpravo tvoří mřížku 2 nahoře + 2 dole (auto-placement) */
}

/* ════════════ QUICK PREVIEW PANEL (slide-in from right) ════════════ */
.qp-overlay{
  position:fixed;inset:0;z-index:1500;
  display:none;
  pointer-events:none;
}
.qp-overlay.is-open{display:block;pointer-events:auto}
.qp-backdrop{
  position:absolute;inset:0;
  background:rgba(0,12,38,.55);
  opacity:0;transition:opacity .35s var(--ease);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
}
.qp-overlay.is-open .qp-backdrop{opacity:1}

.qp-panel{
  position:absolute;top:0;right:0;bottom:0;
  width:min(640px,55vw);
  background:var(--bg);
  box-shadow:-30px 0 80px -20px rgba(0,12,38,.35);
  transform:translateX(100%);
  transition:transform .45s var(--ease);
  overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;
}
.qp-overlay.is-open .qp-panel{transform:translateX(0)}
@media (max-width:760px){
  .qp-panel{width:100vw}
}

.qp-close{
  position:absolute;top:18px;right:18px;z-index:5;
  width:42px;height:42px;border-radius:0;
  background:rgba(255,255,255,.92);
  display:flex;align-items:center;justify-content:center;
  color:var(--ink);box-shadow:0 4px 16px rgba(0,12,38,.18);
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.qp-close:hover{background:#fff;transform:rotate(90deg)}
.qp-close svg{width:18px;height:18px}

/* Loading dots while fetching */
.qp-loading{
  display:flex;gap:8px;
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:1;opacity:0;transition:opacity .2s;
}
.qp-overlay.is-loading .qp-loading{opacity:1}
.qp-loading span{
  width:8px;height:8px;border-radius:0;background:var(--accent);
  animation:qpBounce 1.2s infinite ease-in-out both;
}
.qp-loading span:nth-child(1){animation-delay:-0.32s}
.qp-loading span:nth-child(2){animation-delay:-0.16s}
@keyframes qpBounce{0%,80%,100%{transform:scale(0);opacity:.4}40%{transform:scale(1);opacity:1}}

.qp-content{opacity:0;transition:opacity .3s .15s var(--ease);min-height:100%}
.qp-overlay.is-ready .qp-content{opacity:1}

/* ── QP HERO ── */
.qp-hero{
  position:relative;height:340px;overflow:hidden;
  color:#fff;flex-shrink:0;
}
.qp-hero-img{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transform:scale(1.04);transition:transform 8s ease;
}
.qp-overlay.is-ready .qp-hero-img{transform:scale(1)}
.qp-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,12,38,.25) 0%,rgba(0,12,38,.05) 35%,rgba(0,12,38,.78) 100%);
}
.qp-hero-content{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:24px 32px 28px;
}
.qp-status-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.92);color:var(--ink);
  padding:6px 14px;border-radius:0;
  font-size:11px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  width:fit-content;margin-bottom:12px;backdrop-filter:blur(8px);
}
.qp-status-pill .dot{width:6px;height:6px;border-radius:0;background:#7a9b76}
.qp-status-pill.is-sold,.qp-status-pill.is-rented{background:rgba(0,12,38,.85);color:#fff}
.qp-status-pill.is-sold .dot,.qp-status-pill.is-rented .dot{background:#cf4f4f}
.qp-status-pill.is-reserved{background:rgba(0,12,38,.95);color:#fff}
.qp-status-pill.is-reserved .dot{background:#fff}

.qp-meta{
  display:flex;align-items:center;gap:8px;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:600;
  color:rgba(255,255,255,.92);margin-bottom:12px;
}
.qp-meta .sep{opacity:.5}
.qp-title{
  font-family:var(--serif);font-weight:300;
  font-size:clamp(26px,3.2vw,36px);line-height:1.05;letter-spacing:-.01em;
  color:#fff;margin:0 0 12px;
  text-shadow:0 2px 24px rgba(0,12,38,.3);
}
.qp-address{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:rgba(255,255,255,.85);
}
.qp-address svg{width:14px;height:14px;opacity:.8}

/* ── QP BODY ── */
.qp-body{padding:28px 32px 32px;display:flex;flex-direction:column;gap:22px}

.qp-params{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  border:1px solid var(--line);border-radius:0;overflow:hidden;
  background:#fff;
}
.qp-param{padding:14px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.qp-param:last-child{border-right:none}
.qp-param-l{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-ink);font-weight:600}
.qp-param-v{font-family:var(--serif);font-size:18px;font-weight:400;line-height:1.1}
.qp-param--price .qp-param-v{font-size:20px}
.qp-param--price small{font-size:11px;color:var(--muted);font-family:var(--sans);margin-left:2px}

.qp-section h3{
  font-family:var(--serif);font-weight:400;font-size:18px;letter-spacing:-.005em;
  margin:0 0 10px;color:var(--ink);
}
.qp-desc{font-size:14px;line-height:1.7;color:var(--ink-soft)}

.qp-thumbs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:6px;
}
.qp-thumb{
  display:block;position:relative;
  aspect-ratio:4/3;background-size:cover;background-position:center;border-radius:0;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor:zoom-in;
}
.qp-thumb:hover{transform:scale(1.03);box-shadow:0 8px 22px -8px rgba(0,12,38,.25)}
.qp-thumb-more{
  position:absolute;inset:0;background:rgba(0,12,38,.62);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;font-weight:500;letter-spacing:.02em;border-radius:0;
}

/* Hero count badge */
.qp-hero-link{position:absolute;inset:0;z-index:2;cursor:zoom-in}
.qp-hero-count{
  position:absolute;bottom:18px;right:22px;z-index:3;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:0;
  background:rgba(0,12,38,.55);backdrop-filter:blur(10px);color:#fff;
  font-size:11px;font-weight:500;letter-spacing:.12em;
}
.qp-hero-count svg{width:14px;height:14px}

/* Detailed specs grid */
.qp-specs{
  background:#fff;border:1px solid var(--line);border-radius:0;overflow:hidden;
}
.qp-spec-row{
  display:flex;justify-content:space-between;gap:12px;
  padding:11px 16px;border-bottom:1px solid var(--line);
  font-size:13.5px;line-height:1.4;
}
.qp-spec-row:nth-child(even){background:rgba(0,12,38,.015)}
.qp-spec-row:last-child{border-bottom:none}
.qp-spec-k{color:var(--muted);font-weight:500}
.qp-spec-v{color:var(--ink);font-weight:500;text-align:right}

/* Fancybox dim adjustments to match dark luxury look */
.fancybox__container{--fancybox-bg:rgba(0,12,38,.97)}
.fancybox__nav .f-button{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
}
.fancybox__nav .f-button:hover{background:rgba(255,255,255,.22)}

.qp-broker{
  display:flex;align-items:center;gap:14px;padding:18px;
  background:#fff;border:1px solid var(--line);border-radius:0;
}
.qp-broker-img{
  width:64px;height:64px;border-radius:0;background-size:cover;background-position:center;
  flex-shrink:0;
}
.qp-broker-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-ink);font-weight:600;margin-bottom:2px}
.qp-broker-name{font-family:var(--serif);font-size:18px;line-height:1.1;margin-bottom:2px}
.qp-broker-role{font-size:11px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.qp-broker-contacts{display:flex;flex-wrap:wrap;gap:14px;font-size:13px}
.qp-broker-contacts a{color:var(--ink-soft);border-bottom:1px solid var(--line);transition:color .25s var(--ease)}
.qp-broker-contacts a:hover{color:var(--accent-ink)}

.qp-cta{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.qp-cta .btn{width:100%;justify-content:center}

@media (max-width:560px){
  .qp-hero{height:280px}
  .qp-hero-content{padding:20px 22px 24px}
  .qp-body{padding:22px 22px 28px}
}

/* ────────────── Mobile micro-polish ────────────── */
@media (max-width:640px){
  .hero-content{padding-bottom:80px}
  .search-field{padding:16px 18px}
  .prop-title{font-size:22px}
  .detail-hero-title{font-size:clamp(34px,8vw,56px)}
}

/* Privátní zóna jako položka hlavního menu (s ikonou zámku) */
.nav a.nav-private{display:inline-flex;align-items:center;gap:7px}
.nav a.nav-private svg{width:15px;height:15px}
.nav a.nav-private.active{color:var(--accent-ink)}
