/* davidpatera.cz – demo redesign, směr C „Moderní REMAX“
   Barvy převzaté z remax-czech.cz (navy #0c2749, červená #ff1200, teplá bílá #f7f5ee).
   Layout: levé zarovnání, 12sloupcová mřížka max 1200 px, střídání pásů paper / white,
   jeden výrazný prvek = oblouk s portrétem v hero (odkaz na tvar balonu). */

:root {
  --navy: #0c2749;
  --navy-2: #173a6b;
  --red: #ff1200;
  --red-btn: #d90f00;
  --red-btn-hover: #b80d00;
  --paper: #f7f5ee;
  --white: #ffffff;
  --line: #e4e0d4;
  --muted: #55607a;
  --sky: #e3effa;
  --demo: #fff1b8;

  --font: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.75rem, 3.2vw, 2.4rem);
  --fs-hero: clamp(2.2rem, 4.4vw, 3.4rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: var(--fs-hero); letter-spacing: -.03em; line-height: 1.03; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); max-width: 38rem; margin-top: .6rem; }
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 36rem; }
.prose { max-width: 40rem; display: flex; flex-direction: column; gap: 1rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* demo ribbon + to-confirm marks */
.demo-bar { background: var(--demo); color: var(--navy); font-size: var(--fs-sm); text-align: center; padding: .4rem var(--gutter); }
.tbc { background: none; color: inherit; text-decoration: underline dotted #c08a00 2px; text-underline-offset: 3px; cursor: help; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--red { background: var(--red-btn); color: var(--white); }
.btn--red:hover { background: var(--red-btn-hover); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.link-arrow:hover { color: var(--red-btn); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-name { border-left: 1px solid var(--line); padding-left: .9rem; line-height: 1.2; }
.brand-name strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.brand-name span { font-size: .8rem; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 1.05rem; height: 1.05rem; color: var(--red-btn); }
.header-actions .btn { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .95rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 1020px) {
  .header-inner { min-height: 4rem; gap: .75rem; }
  .brand img { height: 25px; }
  .brand-name span { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .header-phone { width: 2.75rem; height: 2.75rem; justify-content: center; border: 1.5px solid var(--line); border-radius: 50%; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
    border: 0; border-radius: 50%; background: var(--navy); color: var(--white); cursor: pointer;
  }
  .menu-toggle svg { width: 1.3rem; height: 1.3rem; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    box-shadow: 0 18px 30px -20px rgba(12, 39, 73, .35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { color: var(--red-btn); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
}
@media (min-width: 1021px) { .nav .btn { display: none; } }
.nav a, .btn, .header-phone { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 1021px) { .nav { gap: 1.15rem; } .header-inner { gap: 1.1rem; } .brand-name span { display: none; } }
@media (max-width: 400px) { .brand { gap: .6rem; } .brand img { height: 21px; } .brand-name { padding-left: .6rem; } .brand-name strong { font-size: .95rem; } }

/* hero */
.hero { background: var(--paper); padding-block: clamp(2rem, 4.5vw, 3.5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 1.35rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-kicker { font-weight: 600; color: var(--muted); }
.hero-kicker strong { color: var(--navy); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts dt { font-weight: 800; font-size: var(--fs-md); letter-spacing: -.01em; }
.hero-facts dd { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 360px); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--navy); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.arch::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--red); }
.sold-chip {
  position: absolute; left: -2.5rem; bottom: 2.5rem; display: flex; gap: .8rem; align-items: center;
  background: var(--white); border-radius: var(--radius-m); padding: .6rem .9rem .6rem .6rem; width: max-content; max-width: 19rem;
  box-shadow: 0 16px 40px -18px rgba(12, 39, 73, .45); text-decoration: none;
}
.sold-chip img { width: 4.25rem; height: 3.25rem; object-fit: cover; border-radius: var(--radius-s); }
.sold-chip b { display: block; font-size: .95rem; line-height: 1.25; }
.sold-chip span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }
.stamp {
  display: inline-block; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-btn); border: 2px solid currentColor; border-radius: 4px; padding: .05rem .4rem; line-height: 1.4;
}
.sold-chip .stamp { display: inline-block; margin-bottom: .25rem; color: var(--red-btn); font-size: .68rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { width: min(100%, 320px); }
  .sold-chip { left: auto; right: -.5rem; bottom: 1.5rem; max-width: 15rem; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr; gap: .6rem; }
  .hero-facts div { display: flex; gap: .6rem; align-items: baseline; }
  .hero-facts dt { font-size: 1.05rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .sold-chip { right: 50%; transform: translateX(50%); bottom: 1rem; }
}

/* listing cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.section--paper .card { border-color: transparent; }
.card > a { display: flex; flex-direction: column; text-decoration: none; width: 100%; }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--sky); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card > a:hover .card-media img { transform: scale(1.03); }
.card-tags { position: absolute; left: .75rem; bottom: .75rem; display: flex; gap: .4rem; }
.tag { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--white); color: var(--navy); }
.tag--excl { background: var(--red-btn); color: var(--white); }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-place { color: var(--muted); font-size: .95rem; }
.card-price { margin-top: auto; padding-top: .7rem; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.card > a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

.card--sold .card-media img { filter: saturate(.85); }
.card--sold .stamp { position: absolute; right: .8rem; top: .8rem; background: var(--white); transform: rotate(-4deg); font-size: .8rem; padding: .15rem .55rem; }
.card--sold .card-body { padding-block: .85rem 1rem; }

.listing-note { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.75rem; align-items: center; }
.filter-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: 600 .95rem/1 var(--font); color: var(--navy); background: var(--white); border: 1.5px solid var(--line);
  padding: .6rem 1rem; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-count { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); }
.card[hidden] { display: none; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.service { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.25rem; border-top: 3px solid var(--navy); }
.service p { color: var(--muted); }
.ticks { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.3' fill='none' stroke='%230c2749' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.service .link-arrow { margin-top: auto; }

/* steps (real sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 1.4rem; } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: .25rem 1rem; align-items: start; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--navy); color: var(--white);
}
.steps h3 { font-size: 1.08rem; padding-top: .55rem; }
.steps p { color: var(--muted); font-size: .97rem; }
.steps--long { grid-template-columns: 1fr; max-width: 46rem; gap: 2rem; }
.steps--long p { font-size: var(--fs-base); }

/* estimate band */
.estimate { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .estimate { grid-template-columns: 1fr; } }
.estimate-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.estimate-copy p { color: #c9d3e4; font-size: var(--fs-md); }
.estimate-copy .ticks li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.3' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* forms */
.form-card { background: var(--white); color: var(--navy); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); }
.section:not(.section--navy) .form-card { border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(12, 39, 73, .35); }
.estimate--top { align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font); color: var(--navy); background: var(--white);
  border: 1.5px solid #cfd5e0; border-radius: var(--radius-s); padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--sky); }
.field input[aria-invalid="true"] { border-color: var(--red-btn); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-error { color: var(--red-btn); font-weight: 600; font-size: .92rem; }
.form-success { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 0; }
.form-success h3 { font-size: var(--fs-lg); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.55; position: relative; padding-top: 2.6rem; }
.quote blockquote::before { content: "„"; position: absolute; top: -2.1rem; left: -.1rem; font-size: 4.5rem; line-height: 1; color: var(--red); font-weight: 800; }
.quote figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: var(--fs-sm); }

/* safety */
.safety { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
@media (max-width: 960px) { .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .safety { grid-template-columns: 1fr; } }
.safety-item { display: flex; flex-direction: column; gap: .6rem; }
.safety-item svg { width: 2.25rem; height: 2.25rem; color: var(--red-btn); }
.safety-item h3 { font-size: 1.08rem; }
.safety-item p { color: var(--muted); font-size: .97rem; }

/* contact strip */
.contact { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.contact-photo { width: 8.5rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sky); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.contact-lines { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .35rem 2.5rem; margin-top: 1rem; }
.contact-lines > * { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; font-weight: 600; }
.contact-lines svg { width: 1.1rem; height: 1.1rem; color: var(--red-btn); flex: none; }
@media (max-width: 860px) {
  .contact { grid-template-columns: auto minmax(0, 1fr); }
  .contact .btn-row { grid-column: 1 / -1; }
  .contact-lines { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } .contact-photo { width: 6.5rem; } }

/* page head (subpages) */
.page-head { background: var(--paper); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-photo { border-radius: 999px 999px var(--radius-m) var(--radius-m); overflow: hidden; max-width: 360px; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 1rem; }

.code-list { list-style: none; counter-reset: c; display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.code-list li { counter-increment: c; display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.code-list li::before { content: counter(c) "."; font-weight: 800; color: var(--red-btn); }

.office { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
@media (max-width: 560px) { .office { grid-template-columns: 1fr; } }
.office dt { font-weight: 700; }
.office dd { margin: .2rem 0 0; color: var(--muted); }
.transit { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); font-size: .97rem; }
.transit b { color: var(--navy); }

/* footer */
.site-footer { background: var(--navy); color: #c9d3e4; padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.05rem; color: var(--white); letter-spacing: 0; margin-bottom: .8rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-brand strong { display: block; color: var(--white); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; line-height: 1.55; display: flex; flex-direction: column; gap: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- detail nemovitosti ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section--tight { padding-block: 1.5rem var(--section); }
.listing-head { background: var(--paper); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.listing-head .wrap { display: flex; flex-direction: column; gap: .9rem; }
.listing-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.listing-title > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; min-width: 0; max-width: 46rem; }
.listing-title h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.listing-place { display: inline-flex; gap: .45rem; align-items: center; color: var(--muted); font-weight: 600; }
.listing-place svg { width: 1.1rem; height: 1.1rem; color: var(--red-btn); flex: none; }
.listing-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.listing-price strong { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.listing-price span { color: var(--muted); font-size: var(--fs-sm); max-width: 22rem; }
@media (max-width: 700px) { .listing-price { align-items: flex-start; text-align: left; } }
.stamp--lg { font-size: .95rem; padding: .2rem .7rem; }

.gallery { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2.5rem; }
.gallery--empty { aspect-ratio: 16 / 7; background: var(--sky); border-radius: var(--radius-m); }
.gallery-main { position: relative; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; max-height: 72vh; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main figcaption { position: absolute; right: .75rem; bottom: .75rem; background: rgba(12, 39, 73, .75); color: var(--white); font-size: var(--fs-sm); font-weight: 600; padding: .2rem .6rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: .2rem; }
.gallery-nav:hover { background: var(--white); }
.gallery-nav--prev { left: .75rem; }
.gallery-nav--next { right: .75rem; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 7.5rem; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; background: var(--sky); opacity: .7; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--red-btn); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .listing-layout { grid-template-columns: 1fr; } }
.listing-main { display: flex; flex-direction: column; gap: 2.25rem; min-width: 0; }
.listing-main h2 { font-size: var(--fs-lg); margin-bottom: .9rem; }
.listing-description { max-width: 44rem; }
.listing-description p + p { margin-top: 1rem; }
.listing-params dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 0; }
@media (max-width: 560px) { .listing-params dl { grid-template-columns: 1fr; } }
.listing-params dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.listing-params dt { color: var(--muted); }
.listing-params dd { margin: 0; font-weight: 600; text-align: right; }
.energy-badge { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-s); color: var(--white); font-weight: 800; font-size: 1.2rem; margin-right: .5rem; vertical-align: middle; }
.energy--A { background: #1a9641; } .energy--B { background: #52b74b; } .energy--C { background: #a6d96a; color: var(--navy); }
.energy--D { background: #f2d200; color: var(--navy); } .energy--E { background: #fdae61; color: var(--navy); }
.energy--F { background: #f46d43; } .energy--G { background: #d7191c; }
.listing-aside { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 960px) { .listing-aside { position: static; } }
.agent-box { display: flex; gap: 1rem; align-items: center; }
.agent-box img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.agent-box strong { display: block; font-size: 1.1rem; }
.agent-box span { display: block; color: var(--muted); font-size: var(--fs-sm); }
.agent-box a { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; text-decoration: none; margin-top: .2rem; }
.agent-box svg { width: 1rem; height: 1rem; color: var(--red-btn); }
.form--single { grid-template-columns: 1fr; }
.form-title { font-size: var(--fs-md); margin-bottom: 1rem; }
.card-media--empty { background: var(--sky); }
.card > a .card-media--empty + .card-body, .card-media--empty { min-height: 0; }

/* hero „Prodáno“ chip: long REMAX titles stay compact */
.sold-chip b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sold-chip > span > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 13rem; }

.footer-credit { margin-top: .75rem; font-size: .75rem; opacity: .55; letter-spacing: .02em; }
.footer-credit a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer-credit a:hover { opacity: 1; border-bottom-color: currentColor; text-decoration: none; }
