:root {
  --bg: #F3F4F6;
  --accent: #16A34A;
  --text: #1F2937;
  --surface: #ffffff;
  --muted: color-mix(in srgb, var(--text) 60%, var(--bg));
  --line: color-mix(in srgb, var(--text) 12%, var(--bg));
  --city1: color-mix(in srgb, var(--text) 8%, var(--bg));
  --city2: color-mix(in srgb, var(--text) 14%, var(--bg));
  --win: color-mix(in srgb, var(--text) 18%, var(--bg));
  --shadow: 0 10px 30px rgba(31, 41, 55, .10);
  --glow: #FDE68A;
  --r: 24px;
  --nav-h: 76px;
}
:root[data-theme="dark"] {
  --bg: #1F2937;
  --accent: #4ADE80;
  --text: #F3F4F6;
  --surface: #28354a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Nunito", "Segoe UI Rounded", "Segoe UI", system-ui, sans-serif;
  font-weight: 600; line-height: 1.55;
  transition: background .4s, color .4s;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 900; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; margin: 12px 0 0; text-align: center; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.pill {
  font: inherit; font-weight: 800; cursor: pointer; border: 0;
  background: var(--accent); color: var(--bg);
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 60%, #000 40%), 0 10px 18px rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000 40%); }
.pill.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2.5px var(--accent); }
.pill.small { padding: 7px 16px; font-size: .85rem; box-shadow: inset 0 0 0 2px var(--accent); }
.pill.wide { width: 100%; margin-top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 max(28px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 900; font-size: 1.7rem; }
.logo svg { width: 54px; height: 54px; }
.logo svg { transition: transform .4s cubic-bezier(.3,1.8,.5,1); }
.logo:hover svg { transform: rotate(-10deg) scale(1.12); }
.logo-text { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-links button.nl {
  font: inherit; font-weight: 800; color: var(--text); background: none; border: 0; cursor: pointer;
  font-size: 1.15rem; padding: 11px 22px; border-radius: 999px; transition: background .2s, transform .2s, color .2s;
}
.nav-links a:hover, .nav-links button.nl:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); transform: translateY(-2px); }
.nav-links .active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.nav-links button.nl.cta { background: var(--accent); color: var(--bg); }
.nav-links button.nl.cta:hover { background: var(--accent); color: var(--bg); filter: brightness(1.08); }
.theme-btn { font-size: 1.4rem !important; padding: 9px 14px !important; }
.theme-btn span { display: inline-block; transition: transform .5s; }
.theme-btn:hover span { transform: rotate(40deg); }

/* ---------- Views ---------- */
.view { display: none; }
.view.on { display: block; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 6vw, 70px); text-align: center; min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; }
.hero-title { position: relative; z-index: 2; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.02em; margin-bottom: 0; }
.hero-title span { display: block; animation: pop .8s cubic-bezier(.3,1.5,.5,1) both; }
.hero-title span:nth-child(2) { animation-delay: .2s; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

.sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cloud { position: absolute; height: 34px; width: 100px; border-radius: 999px; background: var(--surface); opacity: .8; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 48px; height: 48px; top: -22px; left: 14px; }
.cloud::after { width: 36px; height: 36px; top: -14px; left: 52px; }
.c1 { top: 22%; animation-duration: 70s; }
.c2 { top: 40%; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; }
.c3 { top: 12%; transform: scale(1.2); animation-duration: 120s; animation-delay: -80s; opacity: .55; }
@keyframes drift { from { left: -160px; } to { left: 105%; } }
.star { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: 0; }
:root[data-theme="dark"] .star { animation: twinkle 3s ease-in-out infinite; }
:root[data-theme="dark"] .cloud { opacity: .12; }
.s1 { top: 18%; left: 12%; } .s2 { top: 30%; left: 80%; animation-delay: .8s !important; } .s3 { top: 12%; left: 62%; animation-delay: 1.6s !important; }
.s4 { top: 44%; left: 22%; animation-delay: 2.2s !important; } .s5 { top: 36%; left: 92%; animation-delay: 1.1s !important; }
@keyframes twinkle { 0%,100% { opacity: .1; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }

/* City */
.city { position: relative; margin-top: auto; height: clamp(300px, 46vw, 480px); width: 100%; z-index: 1; }
.city-bg { position: absolute; inset: 0; width: 100%; height: 100%; transition: filter .5s; animation: focusIn 3.2s ease-out both; }
.city .b1 { fill: var(--city1); } .city .b2 { fill: var(--city2); }
.city .w { fill: var(--win); }
.city .w.lit { fill: var(--glow); opacity: .0; animation: winBlink 6s ease-in-out infinite; }
:root[data-theme="dark"] .city .w { fill: color-mix(in srgb, var(--text) 10%, var(--bg)); }
:root[data-theme="dark"] .city .w.lit { opacity: .8; }
@keyframes winBlink { 0%,100% { opacity: .0; } 50% { opacity: .85; } }
:root[data-theme="dark"] .city .w.lit { animation-name: winBlinkD; }
@keyframes winBlinkD { 0%,100% { opacity: .35; } 50% { opacity: .95; } }
.tree { transform-box: fill-box; transform-origin: bottom center; animation: sway 4s ease-in-out infinite; fill: color-mix(in srgb, var(--accent) 38%, var(--bg)); }
.tree:nth-of-type(odd) { animation-delay: -2s; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes focusIn { from { filter: blur(18px); opacity: .3; } to { filter: blur(0); opacity: 1; } }
.city:has(.house:hover) .city-bg, .city:has(.house:focus-visible) .city-bg { filter: blur(6px); }

.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: color-mix(in srgb, var(--accent) 22%, var(--bg)); border-radius: 30px 30px 0 0; z-index: 1; }

.house {
  position: absolute; bottom: 14px; left: 50%; translate: -50% 0; z-index: 3;
  height: 74%; aspect-ratio: 160 / 300; cursor: pointer; transform-origin: bottom center;
  transition: scale .5s cubic-bezier(.3,1.6,.5,1);
  animation: focusIn 2.4s ease-out both, houseBob 5s ease-in-out 3s infinite;
}
.house svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); }
.h-body { fill: var(--accent); }
.h-roof { fill: color-mix(in srgb, var(--accent) 82%, #000); }
.h-door { fill: color-mix(in srgb, var(--accent) 55%, #000); }
.hw { fill: color-mix(in srgb, var(--accent) 55%, #000); transition: fill .4s; }
.house:hover, .house:focus-visible { scale: 1.14; animation: none; outline: none; }
.house:hover .hw, .house:focus-visible .hw { fill: var(--glow); filter: url(#glow); }
@keyframes houseBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.house-btn {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  opacity: 0; scale: .6; pointer-events: none; white-space: nowrap;
  transition: opacity .35s, scale .45s cubic-bezier(.3,1.8,.5,1);
  background: var(--surface); color: var(--accent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 50%, var(--bg)), 0 14px 26px rgba(0,0,0,.25);
}
.house:hover .house-btn, .house:focus-visible .house-btn { opacity: 1; scale: 1; pointer-events: auto; }

/* ---------- Sections ---------- */
.section { padding: 90px 0 60px; }
.section h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.about { background: var(--surface); border-radius: 48px 48px 0 0; margin-top: -26px; position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(0,0,0,.05); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 34px; }
.card { background: var(--surface); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.card.soft { background: var(--bg); box-shadow: none; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.card.soft:hover { transform: translateY(-8px) rotate(-1deg); }
.ico { font-size: 2.2rem; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px; background: color-mix(in srgb, var(--accent) 20%, transparent); margin-bottom: 14px; animation: wiggle 4s ease-in-out infinite; }
.card:nth-child(2) .ico { animation-delay: -1s; } .card:nth-child(3) .ico { animation-delay: -2s; }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; font-size: 1.1rem; }
.contact-list li { padding: 8px 0; }
.footer { text-align: center; color: var(--muted); padding: 60px 24px 30px; font-size: .9rem; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 600; color: var(--text);
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.row-end { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .35s; background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(14px) saturate(1.1); }
.overlay.on { opacity: 1; pointer-events: auto; }
.modal { width: min(420px, 100%); position: relative; text-align: center; transform: translateY(30px) scale(.9); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.modal label { text-align: left; }
.overlay.on .modal { transform: none; }
.modal-ico { font-size: 2.4rem; animation: wiggle 3s ease-in-out infinite; }
.close { position: absolute; top: 14px; right: 16px; font-size: 1.8rem; line-height: 1; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; width: 36px; height: 36px; }
.close:hover { background: var(--line); color: var(--text); }
body.modal-open main, body.modal-open .nav { filter: blur(3px); }

/* ---------- Profile ---------- */
.page-top { padding-top: 40px; padding-bottom: 80px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: 0; }
.avatar { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 900; background: var(--accent); color: var(--bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Search ---------- */
.filter-slot { min-height: 22vh; margin-bottom: 14px; }
.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; align-items: end; transition: box-shadow .3s; }
.filter-title { grid-column: 1 / -1; font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
.filter fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; grid-column: 1 / -1; }
.chk { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.filter { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; align-items: start; }
.f-city { position: relative; grid-column: span 2; }
.f-disp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; grid-column: span 2; }
.f-range { grid-column: span 2; margin-bottom: 14px; }
.f-range .fr-head { font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.fr-nums { display: flex; align-items: center; gap: 8px; }
.fr-nums input { margin: 0; padding: 8px 12px; }
.fr-nums span { color: var(--muted); }
.dr { position: relative; height: 28px; margin-top: 6px; }
.dr-track, .dr-fill { position: absolute; top: 12px; height: 6px; border-radius: 6px; }
.dr-track { left: 0; right: 0; background: var(--line); }
.dr-fill { background: var(--accent); }
.dr input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; box-shadow: none; }
.dr input[type=range]::-webkit-slider-runnable-track { background: none; height: 28px; }
.dr input[type=range]::-moz-range-track { background: none; }
.dr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); cursor: grab; box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform .15s; }
.dr input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); cursor: grab; }
.dr input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
.dr input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 12px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 220px; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest li { padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.suggest li b { color: var(--accent); }
.suggest li.on, .suggest li:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* Boční panel po odscrollování */
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 0; gap: 0; }
.search-layout.docked { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.dock-col { min-width: 0; }
#view-search .wrap { max-width: 1320px; }
.filter.docked {
  display: block; position: sticky; top: calc(var(--nav-h) + 16px); padding: 16px;
  max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; animation: dockIn .5s cubic-bezier(.3,1.5,.5,1);
}
.filter.docked label { margin-bottom: 8px; font-size: .78rem; }
.filter.docked input, .filter.docked select { padding: 6px 10px; border-radius: 12px; font-size: .85rem; }
.filter.docked .fr-nums input { padding: 6px 8px; }
.filter.docked .filter-title { font-size: 1rem; margin-bottom: 8px; }
.filter.docked fieldset { margin-bottom: 8px; display: block; }
.filter.docked .chk { font-size: .8rem; }
.filter.docked .f-range { margin-bottom: 8px; }
.filter.docked .suggest { top: calc(100% - 4px); }
@keyframes dockIn { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }
.count { font-weight: 800; }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.search-layout.docked .listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.search-layout.docked .ad-img { height: 120px; }
.search-layout.docked .ad-body { padding: 12px 14px 16px; }
.search-layout.docked .ad-price { font-size: 1.1rem; }
.search-layout.docked .ad-meta li { font-size: .7rem; padding: 2px 9px; }
.ad { padding: 0; overflow: hidden; display: flex; flex-direction: column; animation: fadeUp .5s ease both; transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
.ad:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 18px 36px rgba(0,0,0,.18); }
.ad-img { height: 160px; position: relative; overflow: hidden; }
.ad-img svg { width: 100%; height: 100%; display: block; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--accent); font-weight: 900; font-size: .75rem; padding: 4px 12px; border-radius: 999px; }
.heart { position: absolute; top: 8px; right: 10px; border: 0; background: var(--surface); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; transition: transform .25s cubic-bezier(.3,2,.5,1); }
.heart:hover { transform: scale(1.2); }
.heart.on { animation: beat .4s; }
@keyframes beat { 50% { transform: scale(1.4); } }
.ad-body { padding: 16px 20px 20px; }
.ad-price { font-size: 1.35rem; font-weight: 900; color: var(--accent); margin: 0; }
.ad-title { font-weight: 800; margin: 2px 0 6px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ad-meta li { background: var(--bg); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 800; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 40px; background: var(--accent); color: var(--bg); font-weight: 800; padding: 12px 26px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .4s cubic-bezier(.3,1.6,.5,1); z-index: 200; }
.toast.on { opacity: 1; translate: -50% 0; }

@media (max-width: 1100px) {
  .filter { grid-template-columns: 1fr 1fr; }
  .search-layout.docked .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .filter { grid-template-columns: 1fr; }
  .f-range { grid-column: auto; }
}
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 12px; }
  .logo-text { display: none; }
  .logo svg { width: 44px; height: 44px; }
  .nav-links { gap: 0; }
  .nav-links a, .nav-links button.nl { padding: 8px 9px; font-size: .88rem; }
  .two, .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Update 3: červená, filtr, detail, mapa ---------- */
:root { --danger: #DC2626; --danger-d: #991B1B; }
:root[data-theme="dark"] { --danger: #F87171; --danger-d: #B91C1C; }
.nav-links button.nl.danger { background: var(--danger); color: #fff; }
.nav-links button.nl.danger:hover { background: var(--danger); color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .nav-links button.nl.danger, :root[data-theme="dark"] .pill.danger { color: #1F2937; }
.pill.danger { background: var(--danger); color: #fff; box-shadow: 0 6px 0 var(--danger-d), 0 10px 18px rgba(0,0,0,.12); }
.pill.danger:active { box-shadow: 0 2px 0 var(--danger-d); }
.pill.ghost.danger-o { color: var(--danger); box-shadow: inset 0 0 0 2.5px var(--danger); }
.row-center { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.modal.small { width: min(400px, 100%); }
.house-btn { background: var(--accent) !important; color: var(--bg) !important; box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 55%, #000 45%), 0 14px 26px rgba(0,0,0,.25) !important; }

input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; grid-column: span 2; }
.filter fieldset { gap: 6px 18px; }

a.ad { color: inherit; }
.back { display: inline-block; font-weight: 800; color: var(--accent); margin-bottom: 14px; padding: 6px 4px; }
.back:hover { text-decoration: underline; }
.detail-sub { margin-top: -8px; font-size: 1.05rem; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; margin-top: 20px; }
.gallery { min-width: 0; }
.g-main { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 3px dashed color-mix(in srgb, var(--accent) 45%, transparent); display: grid; place-items: center; color: var(--accent); }
.g-ph { display: grid; justify-items: center; gap: 8px; font-weight: 800; }
.g-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--accent); font-size: 1.8rem; line-height: 1; box-shadow: var(--shadow); transition: transform .2s; }
.g-arrow:hover { transform: scale(1.12); }
.g-arrow.l { left: 14px; } .g-arrow.r { right: 14px; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.g-th { aspect-ratio: 4 / 3; border-radius: 18px; border: 2px dashed var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s, border-color .2s; }
.g-th:hover { transform: translateY(-3px); }
.g-th.on { border: 3px solid var(--accent); color: var(--accent); }
.summary { position: sticky; top: calc(var(--nav-h) + 16px); padding: 16px 20px; }
.sum-price { font-size: 1.7rem; font-weight: 900; color: var(--accent); line-height: 1.1; margin-bottom: 6px; }
.sum-price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.summary dl { margin: 0 0 10px; font-size: .95rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 2px dashed var(--line); }
.summary dt { color: var(--muted); font-weight: 700; }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.en { display: inline-block; min-width: 34px; text-align: center; padding: 1px 10px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 900; }
.detail-sec { margin-top: 44px; }
.detail-sec h2 { font-size: 1.6rem; }
.detail-sec p { max-width: 760px; font-size: 1.1rem; }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.feat-grid li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); font-weight: 800; }
.feat-grid li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.feat-grid li.no { color: var(--muted); font-weight: 600; }
.feat-grid li.no span { background: var(--line); color: var(--muted); }


@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* ---------- Mapa: šedé schéma (Česko → město → ulice) ---------- */
:root { --m-sea:#dfe2e7; --m-land:#f4f5f7; --m-edge:#9ba2ad; --m-water:#b3bcc8; --m-road:#9aa1ac; --m-roadfill:#ffffff; --m-park:#d3d8de; --m-tree:#bcc3cb; --m-hl:#cfd3d9; --m-bld:#e3e5e9; --m-text:#6b7280; --m-text2:#2f3640; }
:root[data-theme="dark"] { --m-sea:#141b25; --m-land:#222c3a; --m-edge:#4a5565; --m-water:#0f1620; --m-road:#6b778a; --m-roadfill:#3f4b5f; --m-park:#334257; --m-tree:#41526a; --m-hl:#34414f; --m-bld:#2a3545; --m-text:#97a3b4; --m-text2:#e5e7eb; }
.locator { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; border: 3px solid var(--line); box-shadow: var(--shadow); background: var(--m-sea); }
.loc-scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; font-family: Nunito, sans-serif; }
.locator path, .locator circle.loc-land { vector-effect: non-scaling-stroke; }
.loc-land { fill: var(--m-land); stroke: var(--m-edge); stroke-width: 1.4; }
.loc-land.inner { stroke: none; fill: var(--m-land); filter: brightness(.97); }
.loc-river { fill: none; stroke: var(--m-water); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.loc-road { fill: none; stroke: var(--m-road); stroke-width: 2.4; stroke-linecap: round; opacity: .8; }
.loc-park { fill: var(--m-park); } .loc-hl { fill: var(--m-hl); opacity: .85; }
.loc-dot { fill: var(--m-text); } .loc-dot.me { fill: var(--m-text2); }
.loc-t { font-size: 11px; font-weight: 800; fill: var(--m-text); paint-order: stroke; stroke: var(--m-land); stroke-width: 3px; stroke-linejoin: round; }
.loc-t.target { fill: var(--m-text2); font-weight: 900; font-size: 12.5px; }
.loc-t.big { font-size: 15px; font-weight: 900; letter-spacing: .14em; fill: var(--m-text2); }
.loc-t.country { font-size: 22px; font-weight: 900; letter-spacing: .5em; fill: var(--m-edge); stroke: none; }
.loc-mark { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.loc-ring { fill: color-mix(in srgb, var(--accent) 25%, transparent); stroke: var(--accent); stroke-width: 1.5; animation: ringPulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringPulse { 50% { transform: scale(1.5); opacity: .4; } }
.loc-bar { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.loc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-chips button, .loc-replay { font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; border: 2px solid var(--line); background: var(--surface); color: var(--muted); padding: 5px 14px; border-radius: 999px; transition: transform .2s, background .2s, color .2s; }
.loc-chips button:hover, .loc-replay:hover { transform: translateY(-2px); }
.loc-chips button.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.map-note { position: absolute; left: 14px; bottom: 12px; background: var(--surface); padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--muted); }
@media (max-width: 680px) { .locator { aspect-ratio: 4 / 3; } .loc-t { font-size: 12px; } }
.c-casing, .c-road, .c-dash { vector-effect: none; }
.locator .loc-land { vector-effect: none; }
.loc-river.thin { stroke-width: 2.4; } .loc-t.sm { font-size: 9px; font-weight: 700; } .loc-dot.sm { opacity: .8; }
.loc-grid { fill: none; stroke: var(--m-road); stroke-width: 1; opacity: 0; }
/* čtvrť ve stylu výchozí mapy (jednotky = metry) */
.c-bg { fill: var(--m-roadfill); }
.c-blk { fill: var(--m-bld); } .c-park { fill: var(--m-park); } .c-tree { fill: var(--m-tree); }
.c-main { fill: none; stroke: var(--m-hl); stroke-width: 20; } .c-dash { fill: none; stroke: var(--m-edge); stroke-width: 1.2; stroke-dasharray: 10 10; opacity: .6; }
.c-t { font-size: 13px; font-weight: 800; fill: var(--m-text); text-anchor: middle; }
.c-st { font-size: 12px; font-weight: 900; letter-spacing: .3em; fill: var(--m-text); text-anchor: middle; }
.c-me { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.loc-chip { fill: var(--accent); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.loc-chip-t { font-size: 12.5px; font-weight: 900; fill: var(--bg); }
.pill.small.danger-o { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 2px var(--danger); }
.pill.small.danger-o:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }

/* ---------- Role při přihlášení ---------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 18px; }
.role { margin: 0; cursor: pointer; position: relative; }
.role input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-card { display: grid; justify-items: center; gap: 2px; padding: 16px 8px 14px; border-radius: 22px; border: 3px solid var(--line); background: var(--bg); color: var(--muted); text-align: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1), border-color .2s, color .2s, background .2s; }
.role-card b { font-size: 1.1rem; color: var(--text); } .role-card small { font-weight: 700; font-size: .8rem; }
.role:hover .role-card { transform: translateY(-3px); }
.role input:checked + .role-card { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); transform: scale(1.05); }
.role input:focus-visible + .role-card { outline: 3px solid var(--accent); outline-offset: 3px; }
.role-pick { margin-top: 30px; }

/* ---------- Rozhraní majitele ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head .pill { text-decoration: none; display: inline-block; }
.badge.rented, .badge-inline.rented { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }
.badge-inline { display: inline-block; vertical-align: middle; margin-left: 14px; font-size: .9rem; padding: 4px 14px; border-radius: 999px; background: var(--surface); color: var(--accent); font-weight: 900; border: 2px solid var(--line); }
.owner-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.owner-head h1 { margin: 0; font-size: 1.8rem; } .owner-head p { margin: 0; }
.owner-head .pill { margin-left: auto; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.split.one { grid-template-columns: 1fr; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.panel .stat { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.panel .stat b { font-size: 3.4rem; line-height: 1; font-weight: 900; color: var(--accent); }
.panel.rented .stat b { color: var(--text); }
.panel .stat span { font-size: 1.3rem; font-weight: 900; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plist a { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: var(--bg); transition: transform .2s; }
.plist a:hover { transform: translateY(-3px); }
.plist small { display: block; color: var(--muted); font-weight: 700; }
.plist .tenant { text-align: right; font-weight: 800; }
.rent-box { margin-top: 4px; } .rent-box .fr-head { margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--bg); margin-bottom: 8px; }
.seg button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--accent); color: var(--bg); }
.danger-zone { padding: 22px; border: 2px dashed color-mix(in srgb, var(--danger) 55%, transparent); border-radius: var(--r); }
.add-feats { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.add-feats legend { font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.row-end .pill { text-decoration: none; display: inline-block; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .owner-head .pill { margin-left: 0; } }

/* ---------- Update 7 ---------- */
.sug-wrap { position: relative; }
.pill.danger-o { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 2.5px var(--danger); }
.pill.danger-o:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.pill.danger-o:active { box-shadow: inset 0 0 0 2.5px var(--danger); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.sec-head h2 { margin: 0; }
#descBody textarea { max-width: 760px; }
.plist a { display: block; }
.pl { font-size: 1rem; line-height: 1.5; } .pl b { font-weight: 900; }
.plist small { margin-top: 4px; }

/* ---------- Update 8 ---------- */
.panel.free .stat b { color: var(--text); }
.panel.rented .stat b, .panel.rented .stat span { color: var(--accent); }
.income { margin: -4px 0 16px; padding: 10px 16px; border-radius: 16px; background: var(--bg); font-weight: 800; color: var(--muted); }
.income b { color: var(--accent); font-size: 1.25rem; font-weight: 900; margin-left: 6px; }
.pl b.rent { font-weight: 900; }
.edit-btn { display: inline-block; margin-left: 16px; text-decoration: none; vertical-align: middle; }

/* ---------- Mapa čtvrti: jen silnice ---------- */
.c-bg { fill: var(--m-land); }
.c-hl { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 7 6; }
.c-river { fill: none; stroke: var(--m-water); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.c-minor { fill: none; stroke: var(--m-road); stroke-width: 1.1; opacity: .55; }
.c-major { fill: none; stroke: var(--m-road); stroke-width: 2.2; opacity: .75; }
.c-artery { fill: none; stroke: var(--m-road); stroke-width: 3.4; stroke-linecap: round; opacity: .9; }
.c-main { fill: none; stroke: var(--m-text); stroke-width: 4.6; opacity: .85; }
.c-st { font-size: 11px; font-weight: 900; letter-spacing: .3em; fill: var(--m-text2); text-anchor: middle; paint-order: stroke; stroke: var(--m-land); stroke-width: 3px; }

/* ---------- a okolí ---------- */
.near-chk { margin: -4px 0 8px; }
.near-hint { text-align: left; margin: -4px 0 12px; }
.near-box { grid-column: auto; margin-bottom: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg); }
.near-box[hidden], .near-hint[hidden] { display: none; }
.near-chk input:disabled + *, .near-chk:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.dist-badge { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: .78rem; font-weight: 900; }
.row-end { justify-content: flex-end; }

/* ---------- Update 10: filtr a glow ---------- */
.f-city .sug-wrap { position: relative; }
.f-city .suggest { top: calc(100% + 2px); }
.card.ad:hover, .card.ad:focus-visible, .plist a:hover, .plist a:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 32%, transparent), 0 14px 30px rgba(0,0,0,.14);
  outline: none;
}
.plist a { transition: transform .2s, box-shadow .25s; }

/* ---------- Update 11 ---------- */
.dr-track { left: 11px; right: 11px; }
.filter.docked .dr input[type=range] { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

.view-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); margin: 6px 0 12px; }
.view-tabs button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 8px 20px; cursor: pointer; background: transparent; color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.view-tabs button:hover { transform: translateY(-1px); color: var(--text); }
.view-tabs button.on { background: var(--accent); color: var(--bg); }
.view-tabs .n { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); font-size: .85em; text-align: center; }

.empty-west { grid-column: 1 / -1; min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.empty-west .west-t { font-size: 1.7rem; font-weight: 900; margin: 18px 0 2px; }
.empty-west p.muted { margin: 0; }
.tw-stage { position: relative; width: min(340px, 90%); height: 150px; overflow: hidden; }
.tw { position: absolute; left: 50%; bottom: 14px; width: 100px; height: 100px; margin-left: -50px; animation: twSway 6s ease-in-out infinite alternate; }
.tw-ball { fill: none; stroke: #b08a5b; stroke-width: 2.4; stroke-linecap: round; transform-origin: 0 0; animation: twRoll 6s ease-in-out infinite alternate; }
:root[data-theme="dark"] .tw-ball { stroke: #d1a96f; }
.tw-ball circle { stroke-opacity: .55; }
@keyframes twSway { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
@keyframes twRoll { from { transform: rotate(-420deg); } to { transform: rotate(420deg); } }
.tw-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; fill: none; stroke: color-mix(in srgb, #b08a5b 70%, var(--text)); stroke-width: 2.2; stroke-linecap: round; }
.tw-ground .dash { stroke-width: 1.6; opacity: .6; } .tw-ground .cactus { stroke: color-mix(in srgb, var(--accent) 80%, #000); stroke-width: 5; }
@media (prefers-reduced-motion: reduce) { .tw, .tw-ball { animation: none !important; } }

/* ---------- Update 12: graf rozložení nabídek nad slidery ---------- */
.hist { margin: 4px 0 -2px; height: 50px; }
.hist-in { position: relative; height: 100%; margin: 0 11px; }
.hist i { position: absolute; bottom: 0; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--text) 20%, var(--bg)); transition: background .2s; }
.hist i.in { background: var(--accent); }
.filter.docked .hist { display: none; }

/* ---------- Nájemník a zájemci ---------- */
.person { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.person .avatar { flex: none; }
.avatar.alt { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent); }
.person-info { display: grid; gap: 3px; flex: 1; min-width: 200px; }
.person-info strong { font-size: 1.25rem; font-weight: 900; }
.person-info a { color: inherit; text-decoration: none; font-weight: 700; } .person-info a:hover { color: var(--accent); }
.person-rent { text-align: right; } .person-rent b { display: block; font-size: 1.5rem; font-weight: 900; color: var(--accent); } .person-rent small { color: var(--muted); font-weight: 700; }
.person .pill { text-decoration: none; display: inline-block; }
.tenant-sec { margin-top: 24px; }
.tenant-sec .sec-head { margin-bottom: 8px; }
.tenant-form { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; padding-top: 14px; border-top: 2px dashed var(--line); } .tenant-form[hidden] { display: none; }
.tf-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.filter-placeholder { margin: 18px 0 22px; border-style: dashed; min-height: 120px; }
.filter-placeholder p { margin: 0; }
.applicants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(345px, 1fr)); gap: 20px; }
.applicant { display: flex; gap: 16px; align-items: flex-start; animation: fadeUp .5s ease both; transition: box-shadow .25s, transform .25s; }
.applicant:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 32%, transparent), 0 14px 30px rgba(0,0,0,.14); }
.applicant .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.applicant .person-info { min-width: 0; } .applicant .person-info strong { font-size: 1.1rem; }
.applicant .person-info span { overflow-wrap: anywhere; }
.person-info span { display: flex; gap: 6px; align-items: baseline; }
.person-info span a { min-width: 0; overflow-wrap: anywhere; }
.applicant .person-info a { font-size: .95rem; }

/* ---------- Update 13: rating a dotazník ---------- */
.rating { display: inline-block; vertical-align: middle; padding: 1px 12px; border-radius: 999px; background: var(--c, var(--accent)); color: #fff; font-weight: 900; font-size: .85em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.person-info strong .rating { margin-left: 6px; }
.survey { margin-top: 24px; }
.survey h2 { margin-bottom: 4px; }
.survey .grid2.inner { grid-template-columns: 1fr 1fr; gap: 0 12px; }
.person-survey { flex-basis: 100%; padding-top: 12px; border-top: 2px dashed var(--line); }
.survey-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.survey-sum li { background: var(--bg); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.survey-sum li b { color: var(--text); font-weight: 800; }
.survey-more dl { margin: 10px 0 0; font-size: .9rem; }
.survey-more dl div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 2px dashed var(--line); }
.survey-more dt { color: var(--muted); font-weight: 700; } .survey-more dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.survey-more[hidden] { display: none; }
.survey-toggle { margin-top: 10px; }
.survey-none { text-align: left; margin: 0; }
.applicant { flex-wrap: wrap; }
.person-info span.rating, .pl .rating { display: inline-block; }

/* ---------- Update 14: Jak zlepšit rating ---------- */
.profile-wrap { position: relative; }
.rating-tip { display: grid; justify-items: center; gap: 8px; margin: 0 0 20px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); color: var(--text); border: 2px solid var(--line); text-align: center; box-shadow: var(--shadow); }
.rating-tip small { font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rating-tip .rating { font-size: 1.6rem; padding: 4px 18px; }
.rating-tip .pill { padding: 9px 18px; font-size: .9rem; text-decoration: none; }
@media (min-width: 1200px) { .side-col { position: absolute; left: calc(100% + 8px); top: 96px; width: 230px; } .side-col .rating-tip { margin: 0 0 16px; } }
.rating-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.rating-list li { display: grid; gap: 12px; font-weight: 800; font-size: 1.1rem; }
.rt-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rating-list .pts { flex: none; font-weight: 800; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating-list .pts .ok { color: var(--accent); font-weight: 900; }
.rating-list .pts .num { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.rating-list .pts .num:not(.ok) { color: var(--text); }
.bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 30%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: #22C55E; }

/* štítky nájemníka pro majitele */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.tag { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; font-size: .78rem; white-space: nowrap; }
.pl + .tags { margin: 2px 0 6px; }

/* editace stížností nájemníka */
.complaints-edit { grid-column: 1 / -1; display: grid; gap: 8px; }
.complaints-edit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.complaints-edit li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.complaints-edit li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.c-add { display: flex; gap: 8px; flex-wrap: wrap; }
.c-add input { flex: 1; min-width: 160px; }

/* ---------- Update 15: bublina, řazení, fotky, smlouva ---------- */
.tip { position: fixed; z-index: 200; max-width: 280px; padding: 10px 14px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: .82rem; font-weight: 700; line-height: 1.45; box-shadow: 0 10px 28px rgba(0,0,0,.28); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }
.tip-h { font-weight: 900; margin-bottom: 2px; }
.tag[data-tip], .rating[data-tip] { cursor: help; }

.list-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.list-bar .count { margin: 0; }
.sort-sel, .f-sort { margin: 0; min-width: 230px; }
.list-bar select { padding: 8px 12px; }
.app-filter { margin: 18px 0 14px; }
.app-filter .f-sort { grid-column: span 2; }
.app-filter .pill { grid-column: span 1; justify-self: start; align-self: end; margin-bottom: 14px; }
@media (max-width: 900px) { .app-filter { grid-template-columns: 1fr; } .app-filter .f-range, .app-filter .f-sort { grid-column: 1; } }

.g-main.has-photos { border: 0; background: #000; overflow: hidden; }
.g-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px; }
.g-count { position: absolute; left: 14px; bottom: 14px; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: .8rem; }
.g-arrow[hidden] { display: none; }
.g-th { padding: 0; overflow: hidden; }
.g-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumbs { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

.photo-up { margin: 8px 0 14px; }
.photo-list { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-list li { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); }
.photo-list li.cover { border-color: var(--accent); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-list button { position: absolute; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; background: var(--surface); color: var(--text); font-size: .8rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.photo-list .ph-del { right: 6px; } .photo-list .ph-star { left: 6px; color: var(--muted); }
.photo-list li.cover .ph-star { color: #F59E0B; }
.ph-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: .7rem; font-weight: 900; }
.photo-add { display: inline-block; cursor: pointer; margin: 0 0 6px; } .photo-add[hidden] { display: none; }

input[type=file][hidden] { display: none; }
.ct-desc { margin: 0; font-size: .9rem; font-weight: 600; }
.dropzone { display: grid; justify-items: center; gap: 4px; margin: 0; padding: 22px 16px; text-align: center; cursor: pointer; font-size: 1rem; border: 3px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); transition: background .2s, border-color .2s, transform .2s; }
.dropzone:hover, .dropzone.drag { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: var(--accent); transform: translateY(-2px); }
.dropzone.drag { border-style: solid; }
.dropzone b { font-size: 1.05rem; }
.dropzone small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.dz-ico { font-size: 1.8rem; line-height: 1; }
.dropzone.off { cursor: not-allowed; border-color: var(--line); background: var(--bg); opacity: .7; transform: none; }
.ct-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 18px; background: var(--bg); border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ct-meta { flex: 1; min-width: 140px; display: grid; font-size: 1rem; } .ct-meta b { overflow-wrap: anywhere; } .ct-meta small { font-size: .8rem; }
.ct-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ct-repl { display: inline-block; cursor: pointer; margin: 0; }
.ct-file .pill, .person-info .pill { text-decoration: none; }
.person-info .pill.small { padding: 2px 12px; font-size: .78rem; }

/* ---------- Update 15: obálka, zvonek, oznámení, zprávy, účty ---------- */
.nav-links .icon-btn { position: relative; font-size: 1.4rem !important; padding: 9px 14px !important; line-height: 1.2; text-decoration: none; }
.badge-n { position: absolute; top: 2px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .68rem; font-weight: 900; line-height: 1; background: var(--danger, #E5383B); color: #fff; }
.badge-n.inline { position: static; margin-left: 6px; vertical-align: middle; }
.bell-wrap { position: relative; display: inline-block; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 92vw); max-height: 70vh; overflow: auto; z-index: 60; padding: 12px; border-radius: var(--r); background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.bell-pop[hidden] { display: none; }
.bp-head, .nb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bp-head b { font-size: 1rem; }
.bp-all { display: block; text-align: center; margin-top: 8px; font-weight: 800; color: var(--accent); padding: 6px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; font-weight: 700; }
.notif:hover, .notif:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: none; }
.notif.new { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.n-ico { flex: none; font-size: 1.2rem; }
.n-body { display: grid; gap: 2px; font-size: .88rem; min-width: 0; }
.n-body b { font-weight: 900; } .n-body span { color: var(--muted); font-weight: 700; overflow-wrap: anywhere; } .n-body small { color: var(--muted); font-size: .72rem; }
.nb-empty { text-align: center; margin: 10px 0; }
.notif-bar { padding: 16px 16px 12px; border-radius: var(--r); background: var(--surface); color: var(--text); border: 2px solid var(--line); box-shadow: var(--shadow); margin: 0 0 20px; }
.notif-bar .nb-head small { font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.notif-bar .pill.small { padding: 5px 12px; font-size: .75rem; }
@media (min-width: 1200px) { .side-col .notif-bar { margin: 0; } }
.owner-notif { margin-bottom: 20px; } .owner-notif .notif-bar { margin: 0; }

/* zprávy */
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; min-height: 60vh; }
.conv-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: 72vh; }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); border: 2px solid transparent; }
.conv:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.conv.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.avatar.sm { width: 42px; height: 42px; font-size: 1rem; flex: none; box-shadow: none; animation: none; }
.c-body { display: grid; min-width: 0; flex: 1; } .c-body b { font-weight: 900; } .c-body small { color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-last { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: 72vh; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--line); } .thread-head div { display: grid; }
.back-mobile { display: none; font-size: 1.4rem; font-weight: 900; color: var(--accent); }
.thread-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.msg { max-width: 78%; padding: 9px 14px; border-radius: 16px; display: grid; gap: 3px; }
.msg p { margin: 0; overflow-wrap: anywhere; } .msg small { font-size: .68rem; opacity: .7; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: color-mix(in srgb, var(--muted) 18%, var(--surface)); border-bottom-left-radius: 4px; }
.compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 2px solid var(--line); } .compose textarea { flex: 1; resize: none; }
@media (max-width: 760px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-cur .conv-list { display: none; } .msg-layout:not(.has-cur) .thread { display: none; }
  .back-mobile { display: block; }
}

/* přihlášení / registrace */
#loginForm[data-mode="login"] .reg-only, #loginForm[data-mode="register"] .login-only { display: none; }
.auth-err { margin: 0; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: .88rem; color: var(--danger, #E5383B); background: color-mix(in srgb, var(--danger, #E5383B) 12%, var(--surface)); }
.auth-err[hidden] { display: none; }
.demo-fill { display: grid; gap: 6px; margin-top: 10px; justify-items: center; } .demo-fill span { display: flex; gap: 8px; }
#authSwitch a { color: var(--accent); font-weight: 800; }
@media (max-width: 760px) { .nav-links .icon-btn { padding: 7px 8px !important; } }

/* ---------- Update 16 ---------- */
.nb-all { display: block; text-align: center; margin-top: 8px; font-weight: 800; font-size: .85rem; color: var(--accent); }
.notif-page { padding: 12px; }
.person-rent { align-self: flex-start; margin-left: auto; display: grid; justify-items: end; gap: 8px; }
.person-rent .pill { white-space: nowrap; }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.my-home { display: flex; gap: 16px; align-items: center; margin: 20px 0; padding: 14px; color: var(--text); text-decoration: none; transition: transform .2s; }
.my-home:hover { transform: translateY(-2px); }
.my-home[hidden] { display: none; }
.my-home .mh-img { flex: none; width: 120px; height: 84px; border-radius: 12px; overflow: hidden; }
.my-home .mh-img > * { width: 100%; height: 100%; object-fit: cover; }
.my-home .mh-body { display: grid; gap: 2px; min-width: 0; } .my-home .mh-body small { color: var(--muted); font-weight: 700; }
.my-home .mh-rent { margin-left: auto; text-align: right; font-weight: 900; color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) { .my-home { flex-wrap: wrap; } .my-home .mh-rent { margin-left: 0; } }
.notif-bar .pill.small { white-space: nowrap; }

/* ---------- Úpravy: povinná pole, přijetí nájemníka, poplatky ve filtru ---------- */
.req { color: #DC2626; font-weight: 900; }
:root[data-theme="dark"] .req { color: #F87171; }
.survey-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.survey-acts .survey-toggle { margin-top: 0; }
.survey-acts > .accept:only-child { margin-left: auto; }
.pill.small.accept { background: var(--accent); color: var(--bg); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000 40%); }
.pill.small.accept:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000 40%); }
.f-price { margin-bottom: 14px; }
.f-price > #priceRange { margin-bottom: 10px; }
.fees-chk { margin: 0; }

/* ---------- Více pronájmů, zviditelnění ---------- */
:root { --boost: #6D4AFF; --boost2: #3B82F6; }
:root[data-theme="dark"] { --boost: #A78BFA; --boost2: #60A5FA; }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.more-leases { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; padding: 14px 18px; border-style: dashed; }
.leases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 18px; }
.lease-card { position: relative; padding: 14px; }
.lease-card > a { display: grid; gap: 12px; color: var(--text); }
.lease-card .mh-img { width: 100%; height: 150px; border-radius: 14px; overflow: hidden; }
.lease-card .mh-img > * { width: 100%; height: 100%; object-fit: cover; }
.lease-body { display: grid; gap: 3px; }
.lease-rent { font-weight: 900; color: var(--accent); }
.pin-btn { position: absolute; top: 22px; right: 22px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1; background: var(--surface); color: var(--muted); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .15s; }
.pin-btn:hover { transform: scale(1.12); } .pin-btn.on { color: #F59E0B; }
.boost-card { margin-top: 24px; } .boost-card h2 { margin: 0; }
.boost-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.boost-card.on, .boosted { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--boost2), var(--boost)) border-box;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--boost) 30%, transparent), 0 0 24px color-mix(in srgb, var(--boost) 38%, transparent), var(--shadow); }
.boosted:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--boost) 60%, transparent), 0 0 32px color-mix(in srgb, var(--boost) 55%, transparent), 0 14px 30px rgba(0,0,0,.14); }
.boost-badge { display: inline-block; align-self: flex-start; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--boost2), var(--boost)); }
:root[data-theme="dark"] .boost-badge { color: #111827; }
.boost-badge.on-img { position: absolute; left: 10px; bottom: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.ad-img { position: relative; }
.boost-own { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.boost-own .pill.wide { margin-top: 0; }

/* ---------- Jak zlepšit rating: rozpad bodů ---------- */
.rt-h { margin: 26px 0 10px; font-size: 1.15rem; }
.rt-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.rt-summary > div { display: grid; gap: 4px; justify-items: start; } .rt-summary p { margin: 0; flex: 1 1 260px; }
.rt-desc { margin: 10px 0 6px; font-size: .9rem; }
.rt-detail { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88rem; }
.rt-detail li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 2px dashed var(--line); }
.rt-detail li:last-child { border-bottom: 0; }
.rt-lost { margin: 12px 0 0; font-weight: 800; font-size: .88rem; }
.rt-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.rt-act .tiny { margin: 0; text-align: left; }
.neg, .num.neg { color: var(--danger, #E5383B); }

/* ---------- Odznak „Ověřený“ (BankID) ---------- */
.vbadge { display: inline-grid; place-items: center; vertical-align: middle; width: 1.4em; height: 1.4em; margin-left: 6px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: .8em; font-weight: 900; line-height: 1; cursor: help; }
.person-info span.vbadge, .pl .vbadge { display: inline-grid; }
#profName .vbadge { font-size: .45em; margin-left: 10px; }

/* ---------- Průvodce po registraci ---------- */
.tour { width: min(460px, 100%); }
.tour h2 { margin: 4px 0 8px; }
.tour .muted { min-height: 5.6em; margin: 0; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 18px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.tour-dots i.on { background: var(--accent); transform: scale(1.4); }
.tour .pill[hidden] { display: none; }

/* ---------- Oblíbení zájemci ---------- */
.applicant { position: relative; }
.applicant .heart { top: 12px; right: 12px; z-index: 1; }
.applicant .person-info { padding-right: 36px; }

/* ---------- Společné bydlení ---------- */
.badge.shared { top: 46px; color: var(--text); }
.mates { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.mate { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.mate b { font-weight: 900; }
.mates-link { font-weight: 800; color: var(--accent); text-decoration: none; }
.mates-link:hover { text-decoration: underline; }
.shared-box { border: 0; padding: 0; margin: 0 0 14px; }
.shared-box legend { padding: 0; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.shared-box[hidden] { display: none; }
#sharedFields { margin-top: 12px; }
.mate-list { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 8px; }
.mate-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.m-del { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.m-del:hover { background: var(--line); color: var(--danger); }
@media (max-width: 560px) { .mate-row { grid-template-columns: 1fr auto; } .mate-row .m-mail { grid-column: 1; } .mate-row .m-del { grid-row: 1 / span 2; grid-column: 2; } }

/* menu: tlačítko průvodce nesmí zalomit ostatní položky */
.nav-links a, .nav-links button.nl { white-space: nowrap; }
@media (max-width: 560px) { .nav-links #navHelp { padding: 7px 3px !important; font-size: 1.15rem !important; } }

/* ---------- 3D mapa (MapLibre) + přepínač 3D mapa / Schéma ---------- */
.map-modes { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 10px; }
.map-modes .view-tabs { margin: 0; }
.map-modes .view-tabs button { padding: 7px 16px; }
.map-ext { font-weight: 800; font-size: .88rem; color: var(--accent); text-decoration: none; }
.map-ext:hover { text-decoration: underline; }
.loc-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; border: 3px solid var(--line); box-shadow: var(--shadow); background: var(--m-sea); }
.gl-map { position: absolute; inset: 0; }
.loc-frame .map-note { z-index: 2; max-width: calc(100% - 28px); }
.gl-replay { position: absolute; left: 14px; top: 14px; z-index: 2; }
.loc-frame[hidden], .locator[hidden] { display: none; }
.gl-pin { position: relative; width: 22px; height: 22px; pointer-events: none; }
.gl-pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 35%, transparent), 0 3px 10px rgba(0,0,0,.35); }
.gl-chip { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); white-space: nowrap; background: var(--surface); color: var(--text); font: 800 .8rem Nunito, sans-serif; padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.maplibregl-ctrl-attrib { font-size: .7rem; }
@media (max-width: 680px) { .loc-frame { aspect-ratio: 4 / 5; } .map-modes .view-tabs button { padding: 7px 12px; font-size: .85rem; } .gl-replay { top: auto; bottom: 46px; } }

/* ---------- MHD v okolí (v souhrnu nemovitosti) ---------- */
.transit { margin: 14px 0 6px; padding-top: 12px; border-top: 2px dashed var(--line); }
.tr-head { font-weight: 900; font-size: .95rem; margin-bottom: 8px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-list li { display: flex; align-items: center; gap: 10px; }
.tr-ico { flex: none; font-size: 1.3rem; width: 1.6em; text-align: center; }
.tr-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tr-body b { font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.tr-lines { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.ln { font-style: normal; font-weight: 900; font-size: .72rem; line-height: 1; padding: 3px 6px; border-radius: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.ln-metro { background: #16A34A; } .ln-tram { background: #DC2626; } .ln-bus { background: #2563EB; } .ln-train { background: #6B7280; }
.tr-min { flex: none; text-align: right; font-weight: 900; font-size: .88rem; white-space: nowrap; display: grid; }
.tr-min small { font-weight: 700; color: var(--muted); font-size: .72rem; }
.tr-note { display: block; margin-top: 8px; font-size: .72rem; line-height: 1.3; }
#transitBody .muted a { color: var(--accent); font-weight: 800; }

/* MHD v okolí: bloky Autobus / Tramvaj / Vlak / Metro */
.tr-mode { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tr-mode:last-of-type { border-bottom: 0; }
.tr-mh { display: flex; align-items: center; gap: 6px; font-size: .85rem; margin-bottom: 4px; }
.tr-mh span { font-size: 1.05rem; }
.tr-items { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tr-item { display: inline-flex; align-items: center; gap: 4px; }
.tr-item small { font-weight: 800; color: var(--muted); font-size: .75rem; }
.tr-item.tr-st b { font-size: .85rem; }
.tr-none { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* metro: barvy linek podle skutečných (pražské metro A zelená, B žlutá, C červená, D modrá) */
.ln-metro[data-r="A"] { background: #00A651; }
.ln-metro[data-r="B"] { background: #FFD200; color: #1F2937; }
.ln-metro[data-r="C"] { background: #E4002B; }
.ln-metro[data-r="D"] { background: #0072BC; }
