/* Stránky cen podle obcí (/ceny-nemovitosti). */
.lista-menu-vzdy { display: flex; gap: 18px; }
.lista-menu-vzdy a { font-size: 15px; }
.mesto { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.drobky { font-size: 14px; color: var(--namornicka-50); margin: 8px 0 14px; }
.drobky a { color: var(--namornicka-70); }
.mesto h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.mesto-uvod { color: var(--namornicka-70); font-size: 18px; margin-top: 14px; max-width: 42em; }
.mk-mrizka { display: grid; gap: 12px; margin-top: 28px; }
.mk { background: var(--podklad); border-radius: var(--r-blok); padding: 22px; }
.mk:first-child { background: var(--namornicka); color: var(--bila); }
.mk:first-child .mk-popis, .mk:first-child .mk-pozn { color: var(--na-tmave); }
.mk-popis { font-weight: 500; color: var(--namornicka-70); }
.mk-cislo { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0; }
.mk-pozn { font-size: 14px; color: var(--namornicka-70); }
.mesto-ocenit {
  margin-top: 28px; border-radius: var(--r-blok); background: var(--zluta-svetla); padding: 24px; display: grid; gap: 16px;
}
.mesto-ocenit h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.mesto-ocenit p { color: var(--namornicka-70); }
.mesto-ocenit .hledani-pole { box-shadow: inset 0 0 0 1.5px var(--linka); }
.mesto-sekce { margin-top: 48px; }
.mesto-sekce h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; }
.mesto-sekce > p { color: var(--namornicka-70); max-width: 46em; }
.mesto-sekce > p strong { color: var(--namornicka); font-weight: 600; }
.tabulka-mesto { min-width: 0; }
.obce-seznam { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; }
.obce-seznam a { text-decoration-color: var(--modra); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.obce-seznam-ceny li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linka); }
.obce-seznam-ceny span { color: var(--namornicka-50); font-size: 14px; white-space: nowrap; }
@media (min-width: 720px) {
  .mk-mrizka { grid-template-columns: repeat(3, 1fr); }
  .mesto-ocenit { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 32px; }
}
@media (max-width: 639px) {
  .tabulka-mesto tbody tr { grid-template-columns: 1fr auto; }
  .tabulka-mesto td:nth-child(1) { font-weight: 600; }
  .tabulka-mesto td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  .tabulka-mesto td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--namornicka-70); }
  .tabulka-mesto td:nth-child(4) { grid-column: 1; grid-row: 3; font-size: 14px; color: var(--namornicka-70); text-align: left; }
  .tabulka-mesto td:nth-child(5) { grid-column: 2; grid-row: 3; font-size: 14px; color: var(--namornicka-70); text-align: right; }
  .tabulka-mesto td:nth-child(5)::after { content: " nabídek"; }
  .lista-menu-vzdy a:last-child { display: none; }
}

/* ---------- mapa cen ČR ---------- */
.mc { position: relative; }
.mc-lista { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* přepínač typu: segmentované tlačítko s jezdcem */
.mc-prepinac {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bila); border-radius: 16px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--linka);
}
.mc-jezdec {
  position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--namornicka);
  box-shadow: 0 4px 12px rgba(11, 42, 74, .25); transition: transform .28s cubic-bezier(.3, .8, .3, 1), width .28s ease;
}
.mc-prepinac button {
  position: relative; z-index: 1; font: inherit; font-size: 15px; font-weight: 600; color: var(--namornicka-70);
  background: none; border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .2s ease;
}
.mc-prepinac button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-prepinac button:hover { color: var(--namornicka); }
.mc-prepinac button[aria-checked="true"] { color: var(--bila); }
.mc-prepinac button[aria-checked="true"] svg { stroke: var(--zluta); }
.mc-prepinac button:focus-visible { outline: 3px solid var(--modra); outline-offset: 2px; }
.mc-zpet {
  font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--zluta); color: var(--namornicka); padding: 10px 16px 10px 10px; display: inline-flex; align-items: center; gap: 4px;
}
.mc-zpet svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-zpet:hover { background: #F5C200; }

.mc-telo { display: grid; gap: 12px; }
.mc-plocha { position: relative; background: var(--podklad); border-radius: var(--r-blok); padding: 60px 16px 16px; }
.mc-titulek { position: absolute; left: 18px; top: 14px; display: grid; line-height: 1.25; pointer-events: none; }
.mc-titulek-nazev { font-weight: 700; font-size: 18px; }
.mc-titulek-popis { font-size: 13px; color: var(--namornicka-70); }
.mc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mc-kraj {
  stroke: var(--bila); stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; vector-effect: non-scaling-stroke;
  transition: opacity .3s ease, fill .35s ease, filter .2s ease;
}
.mc-kraj:hover, .mc-kraj:focus-visible, .mc-kraj.mc-zvyraznene { stroke: var(--namornicka); stroke-width: 2.5; filter: brightness(1.06); }
.mc-kraj:focus { outline: none; }
.mc-kraj.mc-tlumeny { opacity: .15; }
.mc-kraj.mc-vybrany { fill: var(--bila) !important; stroke: var(--namornicka-50); stroke-width: 1.5; cursor: default; filter: none; }
.mc-stitek {
  font-family: var(--pismo); font-size: 17px; font-weight: 700; fill: var(--namornicka); text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; stroke-linejoin: round; pointer-events: none;
  transition: opacity .25s ease;
}
.mc-priblizeno .mc-stitek { opacity: 0; }
.mc-obec { stroke: var(--bila); cursor: pointer; transition: r .15s ease; }
.mc-obec:hover, .mc-obec:focus-visible, .mc-obec.mc-zvyraznene { stroke: var(--namornicka); outline: none; }

.mc-bublina {
  position: absolute; z-index: 3; pointer-events: none; background: var(--bila); color: var(--namornicka);
  border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.35; display: grid; gap: 4px; min-width: 210px;
  box-shadow: 0 12px 32px rgba(11, 42, 74, .22), 0 0 0 1px rgba(11, 42, 74, .06);
}
.mc-bublina strong { font-size: 16px; margin-bottom: 2px; }
.mc-bublina span { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: center; color: var(--namornicka-70); }
.mc-bublina span i { width: 10px; height: 10px; border-radius: 3px; }
.mc-bublina span b { text-align: right; color: var(--namornicka); font-weight: 600; }
.mc-bublina span.mc-akt { color: var(--namornicka); font-weight: 600; }
.mc-bublina small { color: var(--namornicka-50); font-size: 12px; margin-top: 2px; }
.mc-nacitani { display: grid; place-items: center; min-height: 260px; color: var(--namornicka-50); }

.mc-legenda { margin: 6px 6px 2px; max-width: 360px; }
.mc-leg-skala { display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.mc-leg-skala span { flex: 1; }
.mc-leg-popis { display: flex; justify-content: space-between; font-size: 12px; color: var(--namornicka-70); margin-top: 5px; line-height: 1.3; }
.mc-leg-popis span:last-child { text-align: right; }
.mc-leg-popis b { color: var(--namornicka); font-weight: 600; }

/* žebříček vedle mapy */
.mc-zebricek { background: var(--bila); border-radius: var(--r-blok); box-shadow: inset 0 0 0 1.5px var(--linka); position: relative; min-height: 0; }
.mc-zv { padding: 16px 10px 10px; display: flex; flex-direction: column; min-height: 0; }
.mc-zebricek-nadpis { font-weight: 700; padding: 0 8px 10px; }
.mc-zebricek-seznam { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 420px; }
.mc-zebricek-seznam button {
  font: inherit; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; color: var(--namornicka);
  display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; gap: 3px 8px; align-items: center;
  padding: 8px; border-radius: 10px;
}
.mc-zebricek-seznam button:hover, .mc-zebricek-seznam button:focus-visible { background: var(--podklad); outline: none; }
.mc-z-poradi { grid-row: 1 / span 2; font-size: 13px; font-weight: 600; color: var(--namornicka-50); text-align: center; }
.mc-z-nazev { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-z-cena { font-weight: 600; font-size: 14px; white-space: nowrap; }
.mc-z-pruh { grid-column: 2 / span 2; height: 6px; border-radius: 3px; background: var(--podklad); overflow: hidden; }
.mc-z-pruh i { display: block; height: 100%; border-radius: 3px; }
.mc-z-prazdne { color: var(--namornicka-50); padding: 8px; font-size: 14px; }

@media (min-width: 960px) {
  .mc-telo { grid-template-columns: minmax(0, 1fr) 290px; align-items: stretch; }
  /* žebříček má výšku podle mapy, zbytek se roluje uvnitř */
  .mc-zv { position: absolute; inset: 0; }
  .mc-zebricek-seznam { max-height: none; flex: 1; min-height: 0; }
}
@media (max-width: 559px) {
  .mc-prepinac { width: 100%; }
  .mc-prepinac button { padding: 10px 6px; font-size: 14px; gap: 6px; }
  .mc-stitek { font-size: 20px; }
  .mc-zebricek-seznam { max-height: 300px; }
}

/* ---------- filtrování měst ---------- */
.filtr-panel {
  background: var(--bila); border-radius: var(--r-blok); padding: 14px; display: grid; gap: 12px;
  box-shadow: 0 10px 30px rgba(11, 42, 74, .08), 0 0 0 1px var(--linka);
}
.filtr-radek { display: grid; gap: 10px; }
.filtr-pole { position: relative; }
.filtr-pole svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--namornicka-50); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.filtr-pole input, .filtr-pole select {
  font: inherit; font-size: 16px; color: var(--namornicka); background: var(--podklad); border: 0; border-radius: 14px;
  padding: 13px 14px 13px 44px; min-height: 52px; width: 100%; appearance: none; -webkit-appearance: none;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.filtr-pole select { padding-right: 42px; cursor: pointer; font-weight: 500; }
.filtr-pole .sipka { left: auto; right: 14px; }
.filtr-pole input:hover, .filtr-pole select:hover { background: #E9F1FA; }
.filtr-pole input:focus, .filtr-pole select:focus { outline: 0; background: var(--bila); box-shadow: inset 0 0 0 2px var(--modra); }
.filtr-pole input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filtr-smazat {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: var(--bila); color: var(--namornicka-70); cursor: pointer; font-size: 18px; line-height: 1;
}
.filtr-razeni { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filtr-razeni > span { font-size: 14px; color: var(--namornicka-50); margin-right: 4px; }
.cip {
  font: inherit; font-size: 14px; font-weight: 500; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  background: var(--podklad); color: var(--namornicka); transition: background-color .15s ease, color .15s ease;
}
.cip:hover { background: #E3ECF6; }
.cip[aria-checked="true"] { background: var(--namornicka); color: var(--bila); }
.cip:focus-visible { outline: 3px solid var(--modra); outline-offset: 2px; }
.filtr-pocet { font-size: 14px; color: var(--namornicka-70); margin: 14px 4px 8px; }
.filtr-pocet b { color: var(--namornicka); }

.vysledky-mest { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vysledky-mest li a {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px;
  border-radius: 16px; background: var(--bila); box-shadow: 0 0 0 1px var(--linka); text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.vysledky-mest li a:hover { box-shadow: 0 0 0 2px var(--modra); transform: translateY(-1px); }
.vm-tecka { grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 50%; }
.vm-nazev { font-weight: 600; }
.vm-kraj { font-size: 13px; color: var(--namornicka-50); }
.vm-cena { text-align: right; font-weight: 700; }
.vm-pozn { text-align: right; font-size: 13px; color: var(--namornicka-50); }
@media (min-width: 720px) {
  .filtr-radek { grid-template-columns: 1.5fr 1fr; }
  .vysledky-mest { grid-template-columns: 1fr 1fr; }
}
