/* ═══════════════════════════════════════════
   REZIDENCE MORAVANY — detail.css
   Stránka detailu domu
   ═══════════════════════════════════════════ */

/* ─── FORCE DARK HEADER ON SUB-PAGES ─── */
#hdr {
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border-bottom-color: rgba(184, 149, 106, 0.14);
  padding: .78rem 0;
}

/* ─── BREADCRUMB ─── */
.breadcrumb-bar {
  padding: 6.8rem 0 1.2rem;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb-inner a { color: var(--muted); transition: color .3s; }
.breadcrumb-inner a:hover { color: var(--green); }
.breadcrumb-inner .bc-sep { opacity: .4; }
.breadcrumb-inner .bc-cur { color: var(--anthracite); font-weight: 500; }

.house-nav {
  display: flex;
  gap: .3rem;
  margin-left: auto;
}
.house-nav a,
.house-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--serif);
  font-size: .7rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .25s;
  text-decoration: none;
}
.house-nav a:hover { border-color: var(--green); color: var(--green); }
.house-nav .hn-cur { background: var(--green); color: #fff; border-color: var(--green); }
.house-nav .hn-sold { opacity: .38; cursor: default; }


/* ─── DETAIL HERO ─── */
.detail-hero {
  background: var(--anthracite);
  padding: 3.8rem 0 3.2rem;
}
.detail-hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.dh-label {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.dh-name {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 6rem);
  color: #fff;
  line-height: 1;
  letter-spacing: .05em;
  margin-bottom: .7rem;
}
.dh-subtitle {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.dh-price {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dh-price-note {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  font-weight: 400;
}
.dh-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
  border: 1px solid rgba(255,255,255,.1);
}
.dh-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.1rem 1.6rem;
  border-right: 1px solid rgba(255,255,255,.1);
  flex: 1;
  min-width: 100px;
}
.dh-stat:last-child { border-right: none; }
.dh-stat strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
  font-weight: 400;
  line-height: 1;
}
.dh-stat span {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-top: .3rem;
}
.dh-btns { display: flex; gap: .9rem; flex-wrap: wrap; }

.dh-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
  padding-top: .5rem;
}
.dh-loc { width: min(440px, 38vw); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.dh-loc img { display: block; width: 100%; height: auto; }
.dh-loc figcaption { padding: .8rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.dh-loc figcaption span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.dh-loc figcaption strong { font-family: var(--serif); font-weight: 400; font-size: .85rem; color: var(--gold); }
.dh-orientation {
  text-align: center;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.1);
  min-width: 130px;
}
.dh-compass svg { display: block; margin: 0 auto .7rem; }
.dh-orient-label {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .25rem;
}
.dh-orient-val {
  font-family: var(--serif);
  font-size: .82rem;
  color: var(--gold);
}
.dh-type-badge {
  padding: .8rem 1.2rem;
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
  min-width: 130px;
}
.dh-type-badge .type-ico {
  font-size: .65rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  display: block;
  margin-bottom: .3rem;
}
.dh-type-badge .type-val {
  font-family: var(--serif);
  font-size: .85rem;
  color: #fff;
  display: block;
}


/* ─── FLOOR PLANS ─── */
.plan-section {
  padding: 5.5rem 0;
  background: var(--white);
}
.plan-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
  gap: 0;
}
.plan-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: .85rem 2rem;
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.plan-tab-btn:hover { color: var(--anthracite); }
.plan-tab-btn.act { color: var(--green); border-bottom-color: var(--green); }

.plan-panel { display: none; }
.plan-panel.act { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }

.plan-svg-wrap {
  border: 1px solid var(--border);
  background: #E4E9E3;
  overflow: hidden;
}
.plan-svg-wrap svg { width: 100%; height: auto; display: block; }
.plan-svg-wrap img { display: block; width: auto; max-width: 100%; max-height: 680px; margin: 0 auto; cursor: zoom-in; }
.plan-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }
.rno {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; margin-right: .55rem; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: .68rem; font-weight: 500; flex-shrink: 0;
}
.room-list .rn { display: flex; align-items: center; }

.plan-info h4 {
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--anthracite);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.room-list { list-style: none; }
.room-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .52rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  gap: .5rem;
}
.room-list li:last-child { border-bottom: none; }
.room-list .rn { color: var(--anthracite); }
.room-list .ra { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.room-list .ra.highlight { color: var(--green); font-weight: 500; }
.room-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 2px solid var(--green);
  font-family: var(--serif);
  font-size: .88rem;
}
.room-total .rn { color: var(--anthracite); }
.room-total .ra { color: var(--green); font-weight: 600; }

.plan-download {
  margin-top: 1.8rem;
  padding: 1.1rem;
  background: var(--off);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.plan-download p { font-size: .74rem; color: var(--muted); line-height: 1.55; }
.plan-download .btn { font-size: .68rem; padding: .6rem 1rem; }

.plan-note {
  margin-top: 3rem;
  padding: 1rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: var(--off);
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ─── POHLEDY ─── */
.elev-section { padding: 5.5rem 0; background: var(--off); }
.elev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.6rem; }
.elev-it { background: #fff; border: 1px solid var(--border); padding: 1.4rem 1.4rem 1.2rem; }
.elev-it:first-child { grid-column: span 2; }
.elev-it img { display: block; width: 100%; max-height: 340px; object-fit: contain; cursor: zoom-in; }
.elev-it h4 { font-family: var(--serif); font-size: .88rem; letter-spacing: .06em; color: var(--anthracite); margin: 1.1rem 0 .3rem; }
.elev-it p { font-size: .78rem; color: var(--muted); line-height: 1.65; max-width: 560px; }

/* ─── PARAMETRY ─── */
.params-section {
  background: var(--off);
  padding: 5.5rem 0;
}
.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2.8rem;
}
.params-table {
  width: 100%;
  border-collapse: collapse;
}
.params-table tr { border-bottom: 1px solid var(--border); }
.params-table tr:last-child { border-bottom: none; }
.params-table td { padding: .75rem 0; font-size: .85rem; line-height: 1.5; }
.params-table td:first-child { color: var(--muted); }
.params-table td:last-child { color: var(--anthracite); font-weight: 500; text-align: right; }
.params-table .param-green td:last-child { color: var(--green); }

.site-svg-wrap {
  border: 1px solid var(--border);
  background: #F5F1EB;
}
.site-svg-wrap svg { width: 100%; height: auto; display: block; }
.site-svg-wrap img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.site-svg-caption {
  text-align: center;
  font-size: .7rem;
  color: var(--muted);
  padding: .7rem;
  background: var(--off);
  border-top: 1px solid var(--border);
}


/* ─── STANDARD PREVIEW ─── */
.stdprev-section { padding: 5.5rem 0; }
.stdprev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.4rem;
}
.stdprev-tile {
  padding: 1.8rem;
  background: var(--off);
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.stdprev-tile:hover { border-color: var(--gold); background: #fff; }
.stdprev-ico { color: var(--gold); margin-bottom: .8rem; }
.stdprev-ico svg { width: 28px; height: 28px; }
.stdprev-tile h4 {
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .04em;
  margin-bottom: .5rem;
  color: var(--anthracite);
}
.stdprev-tile p { font-size: .78rem; color: var(--muted); line-height: 1.65; }
.stdprev-cta {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem;
  background: var(--off);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.stdprev-cta-text { flex: 1; min-width: 200px; }
.stdprev-cta-text p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.stdprev-cta-text strong { color: var(--anthracite); }
.stdprev-cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; }


/* ─── GALERIE ─── */
.detail-gal {
  background: var(--off);
  padding: 5.5rem 0;
}
.detail-gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: 2.4rem;
}
.detail-gal-grid .gi { overflow: hidden; cursor: zoom-in; }
.detail-gal-grid .gi:first-child { grid-column: span 2; grid-row: span 2; }
.detail-gal-grid .gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
  aspect-ratio: 1;
}
.detail-gal-grid .gi:first-child img { aspect-ratio: auto; min-height: 320px; }
.detail-gal-grid .gi:hover img { transform: scale(1.05); }


/* ─── POROVNÁNÍ ─── */
.compare-section { padding: 5.5rem 0; }
.compare-intro {
  max-width: 620px;
  margin-top: .8rem;
}
.compare-intro p { font-size: .92rem; color: var(--muted); line-height: 1.8; margin-top: .8rem; }
.compare-wrap {
  overflow-x: auto;
  margin-top: 2.8rem;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table thead { background: var(--off); border-bottom: 2px solid var(--border); }
.compare-table th {
  padding: .9rem 1.2rem;
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.compare-table td { padding: .9rem 1.2rem; font-size: .84rem; border-bottom: 1px solid var(--border); color: var(--anthracite); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .ct-name { font-family: var(--serif); font-size: 1rem; }
.compare-table .ct-price { font-weight: 500; }
.compare-table .ct-cur { background: rgba(29,77,54,.05); }
.compare-table .ct-cur .ct-name { color: var(--green); }
.compare-table .ct-sold td { opacity: .45; }
.compare-badge {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border-radius: 2px;
}
.cb-ok { background: rgba(29,77,54,.1); color: var(--green); }
.cb-zm { background: rgba(0,0,0,.07); color: var(--muted); }


/* ─── KONTAKT NA DETAILU ─── */
.detail-contact {
  background: var(--anthracite);
  padding: 5.5rem 0;
}


/* ─── STICKY BOTTOM CTA ─── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(12,11,9,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .9rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-info { display: flex; flex-direction: column; gap: .1rem; }
.sticky-name { font-family: var(--serif); font-size: .85rem; color: #fff; }
.sticky-price { font-size: .72rem; color: var(--gold); }
.sticky-cta .btn { white-space: nowrap; flex-shrink: 0; font-size: .7rem; padding: .7rem 1.3rem; }


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .detail-hero .wrap { grid-template-columns: 1fr; }
  .dh-aside { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .plan-panel.act { grid-template-columns: 1fr; }
  .plan-info { max-width: 480px; }
  .params-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stdprev-grid { grid-template-columns: repeat(2, 1fr); }
  .dh-loc { width: min(520px, 100%); }
}

@media (max-width: 768px) {
  .breadcrumb-bar { padding: 5.2rem 0 1rem; }
  .house-nav { display: none; }
  .detail-hero { padding: 2.5rem 0; }
  .dh-stats { flex-direction: column; gap: 0; }
  .dh-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: .9rem 1.2rem; }
  .dh-stat:last-child { border-bottom: none; }
  .stdprev-grid { grid-template-columns: 1fr; }
  .detail-gal-grid { grid-template-columns: 1fr 1fr; }
  .detail-gal-grid .gi:first-child { grid-column: span 2; }
  .elev-grid { grid-template-columns: 1fr; }
  .elev-it:first-child { grid-column: auto; }
  .sticky-cta { display: flex; }
  .plan-tab-btn { padding: .7rem .9rem; font-size: .74rem; }
}

/* ─── FORM SUCCESS STATE (detail + financing pages) ─── */
.ok-ic { font-size: 1.6rem; color: var(--gold); margin-bottom: .9rem; }
[id^="form-ok"] { padding: 2rem; text-align: center; }
[id^="form-ok"] p { color: #fff; font-family: var(--serif); font-size: 1rem; margin-bottom: .4rem; }
[id^="form-ok"] small { color: rgba(255,255,255,.5); font-size: .82rem; }
