/* Katalóg novostavieb – štýly */
:root {
  --ink: #14213D;
  --muted: #4A5468;
  --muted-2: #5A6478;
  --green: #1F6F5C;
  --green-dark: #154D40;
  --green-soft: #F2F5F3;
  --green-tile: #DCE6E1;
  --line: #E1E5E9;
  --line-soft: #EEF0F2;
  --bg-alt: #F7F8FA;
  --drop: #B4501A;
  --rise: #1F6F5C;
  --radius: 14px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.5;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, .display { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.12; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Vzorové dáta */
.sample-banner {
  background: #FFF4E5; color: #6B3A06; font-size: 14px; text-align: center;
  padding: 10px 16px; border-bottom: 1px solid #F3D9B5;
}

/* Hlavička */
.site-header { border-bottom: 1px solid #E6E8EC; background: #FFFFFF; position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--green); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 0;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #24345A; color: #FFFFFF; }
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #E8ECF3; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid #C9CFD6; }

/* Úvod */
.hero { background: var(--green-soft); }
.hero .wrap { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; max-width: 760px; margin-top: 12px; }
.hero .lead { margin: 14px 0 0; font-size: 18px; color: var(--muted); max-width: 680px; }

.filters {
  background: #FFFFFF; border: 1px solid #DDE2E0; border-radius: var(--radius); padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field select {
  height: 46px; border: 1px solid #C9CFD6; border-radius: 8px; padding: 0 12px;
  font: inherit; font-size: 15px; color: var(--ink); background: #FFFFFF;
}
.field select:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid #7FB8A8; outline-offset: 2px; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; }
.stat-label { font-size: 14px; color: var(--muted); }

/* Nadpis sekcie */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3vw, 32px); }
.result-count { font-size: 15px; color: var(--muted); }

/* Karty projektov */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); background: #FFFFFF;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(20, 33, 61, .08); transform: translateY(-2px); }
.card-media { height: 180px; background: var(--green-tile); position: relative; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #FFFFFF; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
.badge-premium { left: auto; right: 12px; background: var(--ink); color: #FFFFFF; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 700; }
.card-sub { font-size: 14px; color: var(--muted); }
.card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 12px; color: var(--muted-2); }
.fact-value { font-size: 15px; font-weight: 600; }
.empty { padding: 40px; text-align: center; border: 1px dashed #C9CFD6; border-radius: var(--radius); color: var(--muted); }

/* Mapa + zmeny cien */
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split h2 { font-size: 28px; }
#map { height: 380px; border-radius: var(--radius); border: 1px solid #D5DDD9; background: #E4EAE7; z-index: 1; }
.map-fallback { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 20px; text-align: center; }
.list-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink);
}
.list-row:hover { background: #FAFBFC; color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-title { font-size: 15px; font-weight: 600; }
.list-sub { font-size: 13px; color: var(--muted-2); }
.drop { color: var(--drop); font-weight: 600; white-space: nowrap; font-size: 14px; }
.rise { color: var(--rise); font-weight: 600; white-space: nowrap; font-size: 14px; }

/* Pre developerov */
.cta {
  background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta h2 { font-size: 28px; }
.cta p { margin: 8px 0 0; color: #C9D1E0; max-width: 640px; }

/* Pätička */
.site-footer { border-top: 1px solid #E6E8EC; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Detail projektu */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { text-decoration: none; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 16px 0 28px; }
.detail-head h1 { font-size: clamp(32px, 4.5vw, 46px); }
.detail-meta { margin-top: 8px; color: var(--muted); font-size: 16px; }
.detail-hero { height: 340px; border-radius: 18px; overflow: hidden; background: var(--green-tile); display: flex; align-items: center; justify-content: center; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .stat-value { font-size: 26px; }
.desc { max-width: 760px; font-size: 17px; color: #2E3A52; }

.chart-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #FFFFFF; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-note { font-size: 13px; color: var(--muted-2); margin-top: 10px; }

.table-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #C9CFD6; background: #FFFFFF;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: #FAFBFC; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:focus-visible { outline: 3px solid #7FB8A8; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status-volny { background: #DFF1EA; color: #165443; }
.status-rezervovany { background: #FFF1DC; color: #7A4206; }
.status-predany { background: #ECEEF2; color: #4A5468; }
.small-note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero .wrap { padding-top: 40px; }
  .cta { padding: 28px; }
  .wrap { padding: 0 16px; }
  .site-header { position: static; }
  .detail-hero { height: 220px; }
}
