/* Miroslav Zelený – Reality
   Rozvržení podle předlohy Houses&Flats (Framer):
   desktop ≥ 1300 px · tablet 810–1299 px · mobil < 810 px */
:root {
  --navy: #191439;
  --text: #464168;
  --muted: #9c9aac;
  --bg: #f2f2f7;
  --mint: #3eb489;
  --green: #2d8565;
  --radius: 8px;
  --shadow-card: 0 .48px .48px -1.25px rgba(0,0,0,.18), 0 1.83px 1.83px -2.5px rgba(0,0,0,.16), 0 8px 8px -3.75px rgba(0,0,0,.06);
  --shadow-img: 0 .48px .48px -.83px rgba(0,0,0,.13), 0 1.83px 1.83px -1.67px rgba(0,0,0,.13), 0 8px 8px -2.5px rgba(0,0,0,.13);
  --shadow-btn: 0 .7px .7px -.625px rgba(0,0,0,.15), 0 1.8px 1.8px -1.25px rgba(0,0,0,.14), 0 3.6px 3.6px -1.875px rgba(0,0,0,.14), 0 6.9px 6.9px -2.5px rgba(0,0,0,.13), 0 13.6px 13.6px -3.125px rgba(0,0,0,.1), 0 30px 30px -3.75px rgba(0,0,0,.05);
  --head: "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --content: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--navy); }

/* Typografie (předloha) */
.t-h1, .t-h2, .t-h3, .t-h5, .t-h6 { font-family: var(--head); }
.t-h1 { font-size: 80px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.t-h1 .accent { color: var(--mint); }
.t-h2 { font-size: 56px; font-weight: 700; line-height: 1; }
.t-h3 { font-size: 48px; font-weight: 700; line-height: 1.2; }
.t-h5 { font-size: 18px; font-weight: 400; line-height: 1.4; }
.t-h6 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.t-p { font-size: 14px; line-height: 1.4; color: var(--text); }
.t-muted { color: var(--muted) !important; }
.white { color: #fff !important; }

/* Stránka */
.page { display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.content { width: 100%; max-width: var(--content); padding: 160px 0; display: flex; flex-direction: column; gap: 160px; }
.block { display: flex; flex-direction: column; gap: 32px; width: 100%; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border-radius: var(--radius); font: 600 14px/1 var(--head); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-btn); border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--green); }
.btn-white { background: #fff; color: #000; }
.btn-lg { height: 44px; padding: 0 20px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hlavička */
.header { position: sticky; top: 0; z-index: 50; width: 100%; padding: 32px 32px 0; }
.nav { display: flex; align-items: center; height: 80px; padding: 0 32px; border-radius: var(--radius); background: rgba(255,255,255,.5); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; flex: 1; }
.logo svg { width: 28px; height: 28px; color: var(--mint); flex: none; }
.logo strong { font: 700 24px/1 var(--head); color: var(--text); }
.menu { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.menu a { font: 400 14px/1 var(--head); color: var(--navy); text-decoration: none; transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--mint); }
.burger { display: none; width: 56px; height: 64px; background: none; border: 0; padding: 22px 18px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 0 0 5px; border-radius: 2px; transition: transform .25s; }

/* Hero */
.hero { display: flex; width: 100%; gap: 40px; }
.hero-text { width: calc(50% - 20px); display: flex; flex-direction: column; gap: 32px; }
.hero-sub { width: 50%; }
.hero-art { width: calc(50% - 20px); position: relative; min-height: 440px; }
.hero-art figure { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a-main { width: 400px; aspect-ratio: 1.3318; left: 52%; top: 47%; transform: translate(-50%, -50%); }
.hero-art .a-bl { width: 150px; aspect-ratio: .7509; left: 0; bottom: 0; box-shadow: var(--shadow-img); }
.hero-art .a-br { width: 150px; aspect-ratio: .7509; right: 0; bottom: 38px; box-shadow: var(--shadow-img); }
.hero-art .a-tl { width: 200px; aspect-ratio: 1.3318; left: 0; top: 0; box-shadow: var(--shadow-img); }

/* Mise / přednosti */
.features { display: flex; gap: 64px; width: 100%; }
.feature { flex: 1 1 0; display: flex; flex-direction: column; gap: 32px; }
.feature .ico, .step-num { width: 56px; height: 56px; border-radius: 32px; background: #fff; display: grid; place-items: center; color: var(--mint); }
.feature .ico svg { width: 24px; height: 24px; }
.step-num { font: 700 20px/1 var(--head); }
.feature-text { display: flex; flex-direction: column; gap: 16px; }

/* Filtry */
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 36px; padding: 0 15px; border-radius: var(--radius); border: 0; background: #fff; color: var(--navy); font: 600 14px/1 var(--head); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Karty nemovitostí */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; width: 100%; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); text-decoration: none; overflow: hidden; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card-img { position: relative; height: 420px; flex: none; }
.card-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-overlay { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 32px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.09) 44.5%, rgba(0,0,0,.5) 100%); }
.card-overlay p, .card-overlay h3 { color: #fff; }
.card-overlay h3 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.card-overlay .sub { width: 80%; }
.card-tag { position: absolute; top: 20px; left: 20px; z-index: 2; background: #fff; color: var(--navy); font: 600 12px/1 var(--head); padding: 8px 10px; border-radius: 6px; }
.card-tag.prodano { background: var(--navy); color: #fff; }
.card-tag.rezervace { background: var(--mint); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 16px; padding: 32px; flex: 1; }
.card-rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row svg { width: 24px; height: 24px; flex: none; color: var(--mint); }
.row .t-p { flex: 1; }
.row strong { font-weight: 700; }
.card.is-sold .card-img > img { filter: grayscale(.7); }
.empty { padding: 32px; background: #fff; border-radius: var(--radius); grid-column: 1 / -1; }

/* Zelený banner (výkup) */
.banner { display: flex; width: 100%; background: var(--green); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.banner-inner { flex: 1; display: flex; align-items: center; gap: 80px; padding: 80px 0 0 80px; }
.banner-text { flex: none; width: 400px; display: flex; flex-direction: column; gap: 32px; padding-bottom: 80px; }
.banner-text .stack { display: flex; flex-direction: column; gap: 8px; }
.banner-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 14px; }
.banner-list li { display: flex; gap: 10px; align-items: center; }
.banner-list svg { width: 20px; height: 20px; flex: none; }
.banner-img { flex: 1 1 0; min-width: 0; aspect-ratio: 1.3333; align-self: flex-end; border-top-left-radius: var(--radius); overflow: hidden; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* O mně – karty */
.cards-4 { display: flex; gap: 40px; width: 100%; }
.mini { flex: 1 1 0; background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.mini .big { font: 700 32px/1.1 var(--head); color: var(--mint); }

/* Velká fotka s textem */
.picture { position: relative; width: 100%; height: 640px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.72) 0%, rgba(18,18,18,.35) 45%, rgba(51,51,51,0) 75%); }
.picture-text { position: absolute; z-index: 2; left: 64px; top: 64px; width: 45%; display: flex; flex-direction: column; gap: 16px; }
.picture-text p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.5; }
.picture-text .btn { align-self: flex-start; margin-top: 8px; }

/* Kontakt */
.contact { display: flex; gap: 64px; width: 100%; align-items: flex-start; }
.contact-info { flex: 1 1 0; display: flex; flex-direction: column; gap: 32px; }
.contact-lines { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.contact-line .ico { width: 56px; height: 56px; border-radius: 32px; background: #fff; display: grid; place-items: center; color: var(--mint); flex: none; }
.contact-line .ico svg { width: 24px; height: 24px; }
.contact-line span span { display: block; }
.panel { flex: 1.3 1 0; min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 32px; }

/* Formuláře */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; font: 600 14px/1.4 var(--head); color: var(--navy); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 15px/1.4 var(--body); color: var(--navy); padding: 11px 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--bg); transition: border-color .2s, background .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); background: #fff; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { font: 600 14px/1.4 var(--head); color: var(--navy); margin-bottom: 6px; padding: 0; width: 100%; }
.choice .req { color: var(--mint); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--radius); background: var(--bg); color: var(--navy); font: 600 14px/1 var(--head); border: 1px solid transparent; transition: background .2s, color .2s; }
.pill input:checked + span { background: var(--mint); color: #fff; }
.pill input:focus-visible + span { border-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--mint); flex: none; }
.form-success { display: none; padding: 24px; border-radius: var(--radius); background: var(--bg); color: var(--navy); }
.form-success.show { display: block; }
.hidden-field { position: absolute; left: -9999px; }

/* Patička */
.footer { width: 100%; background: #fff; }
.footer-top { display: flex; align-items: flex-end; padding: 80px 80px 0; gap: 32px; }
.footer-menu { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.footer-menu ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-menu a { font: 400 14px/1 var(--head); color: var(--navy); text-decoration: none; }
.footer-menu a:hover { color: var(--mint); }
.badge { width: 90px; height: 100px; flex: none; }
.badge svg { width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; padding: 40px 80px 80px; gap: 32px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 48px; height: 48px; border-radius: 32px; background: var(--bg); display: grid; place-items: center; color: var(--navy); }
.socials a:hover { color: var(--mint); }
.socials svg { width: 22px; height: 22px; }
.footer-bottom p { font: 14px/1.4 var(--body); color: var(--navy); }

/* Detail nemovitosti */
.crumbs { font: 14px/1.4 var(--head); color: var(--muted); }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { color: var(--mint); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.detail-head > div:first-child { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-price { text-align: right; flex: none; max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
.detail-price .t-h3 { font-size: 40px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #e4e3ec; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(25,20,57,.5); color: #fff; font: 600 16px/1 var(--head); }
.gallery .more.more-mobile { display: none; }
.detail-grid { display: flex; gap: 64px; align-items: flex-start; }
.detail-main { flex: 1.6 1 0; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.detail-text { display: flex; flex-direction: column; gap: 16px; }
.detail-text .t-p { font-size: 16px; line-height: 1.6; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; padding: 0; margin: 0; }
.highlights li { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--navy); }
.highlights svg { width: 22px; height: 22px; color: var(--mint); flex: none; }
.params { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.params th, .params td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--bg); font-size: 14px; vertical-align: top; }
.params th { font-weight: 400; color: var(--muted); width: 42%; }
.params td { color: var(--navy); font-weight: 700; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; }
.aside { flex: 1 1 0; position: sticky; top: 140px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.aside-person { display: flex; gap: 14px; align-items: center; }
.aside-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.aside .btn { width: 100%; height: 44px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,10,28,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfcde0; font-size: 14px; }

/* Animace */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- TABLET 810–1299 px ---------- */
@media (max-width: 1299px) {
  .content { padding: 40px; gap: 64px; }
  .t-h1 { font-size: 56px; }
  .t-h2 { font-size: 48px; }
  .t-h3 { font-size: 29px; }
  .hero-sub { width: 80%; }
  .hero-sub { width: 100%; }
  .hero-art { min-height: 340px; }
  .hero-art .a-main { width: 300px; }
  .hero-art .a-bl, .hero-art .a-br { width: 113px; }
  .hero-art .a-tl { width: 150px; }
  .features { gap: 32px; }
  .grid-3 { gap: 20px; }
  .card-img { height: 320px; }
  .card-overlay { padding: 20px; }
  .card-overlay h3 { font-size: 26px; }
  .card-overlay .sub { width: 100%; font-size: 14px; }
  .card-body { padding: 20px; }
  .banner-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .banner-text { width: auto; padding: 0 80px 0 0; }
  .banner-img { flex: none; width: 100%; }
  .cards-4 { flex-wrap: wrap; gap: 24px; }
  .mini { flex: 1 1 calc(50% - 12px); padding: 24px; }
  .picture { height: 450px; }
  .picture-text { width: 62%; }
  .contact { gap: 40px; }
  .gallery { height: 440px; gap: 10px; }
  .detail-grid { gap: 40px; }
  .footer-top { padding: 64px 40px 0; }
  .footer-bottom { padding: 40px 40px 64px; }
}

/* úzký tablet: karty pod sebe po dvou */
@media (max-width: 1099px) and (min-width: 810px) {
  .hero-art .a-main { width: 250px; }
  .hero-art .a-tl { width: 130px; }
  .hero-art .a-bl, .hero-art .a-br { width: 100px; }
  .hero-art { min-height: 300px; }
  .card-img { height: 280px; }
  .card-overlay h3 { font-size: 22px; }
  .features { flex-wrap: wrap; }
  .feature { flex: 1 1 calc(50% - 16px); }
  .detail-grid { flex-direction: column; }
  .detail-main, .aside { width: 100%; }
  .aside { position: static; }
}

/* ---------- MOBIL < 810 px ---------- */
@media (max-width: 809px) {
  html { scroll-padding-top: 100px; }
  .header { padding: 16px 16px 0; }
  .nav { height: auto; min-height: 64px; padding: 0 20px 0 0; flex-wrap: wrap; }
  .burger { display: block; order: -1; }
  .logo strong { font-size: 20px; }
  .logo svg { width: 24px; height: 24px; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 4px 0 22px 20px; }
  .nav.open .menu { display: flex; }
  .nav.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .menu a { font-size: 16px; }

  .content { padding: 32px; gap: 64px; }
  .t-h1 { font-size: 42px; }
  .t-h2 { font-size: 36px; }
  .t-h3 { font-size: 30px; }

  .hero { flex-direction: column; gap: 64px; }
  .hero-text { width: 100%; gap: 16px; }
  .hero-sub { width: 100%; }
  .hero-text .btn-row { margin-top: 16px; }
  .hero-art { width: 100%; height: 393px; min-height: 0; }
  .hero-art .a-main { width: 325px; max-width: 92%; left: auto; right: 0; top: 39px; transform: none; }
  .hero-art .a-bl { width: 113px; left: 1px; bottom: 2px; }
  .hero-art .a-br { width: 113px; bottom: 2px; }
  .hero-art .a-tl { width: 150px; left: 1px; }

  .features { flex-direction: column; gap: 32px; }
  .feature { gap: 16px; }
  .feature-text { gap: 8px; }

  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .card-img { height: 380px; }
  .card-overlay { padding: 24px; }
  .card-overlay h3 { font-size: 30px; }
  .card-body { padding: 24px; }

  .banner-inner { padding: 40px 0 0 40px; gap: 40px; }
  .banner-text { padding: 0 40px 0 0; }
  .banner-img { aspect-ratio: .75; }

  .cards-4 { flex-direction: column; gap: 20px; }
  .mini { flex: none; }

  .picture { height: 560px; }
  .picture > img { object-position: 50% 30%; }
  .picture-text { left: 24px; right: 24px; top: auto; bottom: 32px; width: auto; }
  .picture::after { background: linear-gradient(0deg, rgba(18,18,18,.8) 0%, rgba(18,18,18,.35) 55%, rgba(51,51,51,0) 100%); }

  .contact { flex-direction: column; }
  .panel { width: 100%; flex: none; padding: 24px; }
  .form { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column-reverse; align-items: flex-start; gap: 32px; padding: 40px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 32px 32px; }
  .socials { width: 100%; }

  .detail-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .detail-price { text-align: left; }
  .detail-price .t-h3 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .gallery button { aspect-ratio: 4 / 3; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .gallery .more.more-mobile { display: grid; }
  .detail-grid { flex-direction: column; }
  .detail-main, .aside { width: 100%; flex: none; }
  .aside { position: static; }
  .highlights { grid-template-columns: 1fr; }
  .params th, .params td { padding: 12px 16px; }
}
.card[hidden] { display: none; }
