/* ============================================================
   PROJEKT DETAIL — EDITORIAL (výchozí šablona všech projektů)
   Spec: devnotes/editorial-detail/brief.md
   Urbanlist slib (panel, pás, dialog): css/urbanlist-slib.css

   Typografie: Literata = redakční hlas (h1, titulky, lede, text, citát)
               Inter    = funkční vrstva (fakta, popisky, tlačítka, lišta)
   Typová škála ~1.2 od 18px textu (desktop max):
     h1 40 · titulek článku 36 · citát 36 · kontakt 28 · lede 22
     text 18 · mezititulek 19 (Inter 600) · popisek sekce 15 · meta 14
   Rádiusy: fotky 4 (min() škálované) · karty/panely/mapa/slib panel 6 · tlačítka 8
            · full-bleed 0 · status badge dle CLAUDE.md
   Tlačítka (= nav.php): primární neutral-950 · sekundární s linkou · terciární odkaz
     2 velikosti: základ 36 / lg 44 (desktop), na mobilu obě 48
   Barvy: pouze Tailwind neutral (hex) + status badge třídy z CLAUDE.md
   Mobile-first, breakpointy 640 / 1024 (Tailwind sm / lg)
   ============================================================ */

html { scroll-padding-top: 5rem; }
html.ed-locked,
html.ed-locked body { overflow: hidden; }

.ed ::selection { background: #262626; color: #fff; }

/* Vertikální rytmus stránky (jediné místo pro mezery mezi sekcemi):
   --ed-gap   konec obsahu → linka další sekce
   --ed-rule  linka → první řádek sekce (≈ polovina, linka patří k sekci pod ní) */
.ed {
  --ed-gap: clamp(4.5rem, 10vw, 8rem);
  --ed-rule: clamp(2rem, 4.5vw, 4rem);
}


/* ── DISPLAY TYPOGRAFIE (Literata) ────────────────────────── */
.ed-h1,
.ed-title,
.ed-pullquote p,
.ed-contact-title,
.ed-loc-name {
  font-family: 'Literata', Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  color: #171717;
  text-wrap: balance;
}


/* ── HERO: fotka přes obrazovku + štítek (Modern House) ──── */
/* Fotka je hlavní obsah. Karta = nenápadný štítek vlevo dole: úzká,
   plochá, v barvě stránky, bez stínu, prosté řádky bez popisků.
   ≥768: karta leží na fotce; telefon: fotka, pod ní karta na stránce. */
.ed-hero { display: grid; }

.ed-hero-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e5e5e5;
  cursor: zoom-in;
}
.ed-hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 40%;
  will-change: transform;
  /* Ken Burns: jeden pomalý nájezd, pak klid (žádná smyčka) */
  animation: edKenBurns 22s cubic-bezier(0.33, 0, 0.2, 1) both;
}
@keyframes edKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06) translate(-0.4%, -0.6%); }
}
.ed-hero-media:focus-visible { outline: 2px solid #0a0a0a; outline-offset: -4px; }
/* Telefon + dlouhý název (3 řádky h1): nižší fotka, ať CTA zůstane nad ohybem */
@media (max-width: 767px) {
  .ed-hero--long .ed-hero-media { aspect-ratio: 3 / 2; }
}

.ed-hcard-wrap { width: 100%; }
.ed-hcard { padding-top: 1.25rem; }
.ed-hero--noimg .ed-hcard { padding-top: 3rem; }

.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
}
.ed-hcard .ed-badge { margin-bottom: 1rem; }

.ed-h1 {
  font-size: clamp(1.875rem, 1.7rem + 0.4vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ed-h1--long { font-size: clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem); line-height: 1.2; }

.ed-hcard-lines {
  display: flex;
  flex-direction: column;
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #525252;
  font-variant-numeric: tabular-nums;
}
.ed-hcard-price { font-weight: 500; color: #171717; }

/* Kotvy v kartě: podtržené textové odkazy bez oddělovačů */
.ed-hcard .ed-hero-shortcuts { gap: 0 1.25rem; margin-top: 0.75rem; }
.ed-hcard .ed-sc { padding: 0; text-decoration-color: #a3a3a3; }
.ed-hcard .ed-sc::before { display: none; }

.ed-hero-cta { width: 100%; margin-top: 1rem; }

@media (min-width: 640px) {
  .ed-hero-media { aspect-ratio: 3 / 2; }
  .ed-hcard-lines { font-size: 0.9375rem; }
}

/* Tablet + desktop: fotka vyplní obrazovku pod navigací, štítek leží vlevo dole */
@media (min-width: 768px) {
  .ed-hero { min-height: clamp(32rem, calc(100svh - 4rem), 64rem); }
  .ed-hero > * { grid-area: 1 / 1; }
  .ed-hero-media { aspect-ratio: auto; height: 100%; }
  .ed-hcard-wrap {
    position: relative;
    z-index: 1;
    align-self: end;
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
    pointer-events: none;
  }
  .ed-hcard {
    pointer-events: auto;
    width: 22rem;
    padding: 1.5rem;
    border-radius: 6px;
    background: #fafafa;
  }
  .ed-hcard .ed-h1 { font-size: 1.875rem; }
  .ed-hcard .ed-h1--long { font-size: 1.5rem; }
  .ed-hcard .ed-hero-shortcuts { margin-top: 1rem; }
  .ed-hcard .ed-sc { min-height: 2rem; }
  .ed-hero-cta { margin-top: 1.25rem; }

  .ed-hero--noimg { min-height: 0; }
  .ed-hero--noimg .ed-hcard-wrap { padding-top: 4rem; }
  .ed-hero--noimg .ed-hcard { padding-inline: 0; }
}


/* ── TLAČÍTKA / ZKRATKY / ODKAZY ──────────────────────────── */
/* Primární = nav "Domluvit ukázku", sekundární = nav "Přidat projekt" */
.ed-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ed-btn:active { transform: scale(0.97); }
.ed-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }

.ed-btn--secondary {
  background: transparent;
  color: #404040;
  box-shadow: inset 0 0 0 1px #e5e5e5;
}
.ed-btn--icon-l { padding-left: 0.75rem; }

@media (min-width: 640px) {
  .ed-btn { padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; }
  .ed-btn--lg { padding: 0.75rem 1.25rem; }
  .ed-btn--icon-l { padding-left: 0.5rem; padding-right: 0.75rem; }
}

/* Ikonová tlačítka: sekundární styl, dotyková plocha 48 × 48 */
.ed-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px #e5e5e5;
  color: #525252;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ed-icon-btn:active { transform: scale(0.97); }
.ed-icon-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }

.ed-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.ed-icon-btn::after,
.ed-lb-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 3rem);
  height: max(100%, 3rem);
  transform: translate(-50%, -50%);
}

@media (min-width: 640px) {
  .ed-icon-btn { width: 2.25rem; height: 2.25rem; }
  .ed-icon { width: 1.125rem; height: 1.125rem; }
}
@media (pointer: fine) {
  .ed-icon-btn::after,
  .ed-lb-btn::after { display: none; }
}

/* Zkratky: tiché textové odkazy oddělené vlasovou linkou */
.ed-shortcuts { display: flex; flex-wrap: wrap; align-items: center; }
.ed-sc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 0;
  background: none;
  color: #525252;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ed-sc + .ed-sc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.875rem;
  background: rgba(10, 10, 10, 0.12);
  transform: translateY(-50%);
}
.ed-sc:focus-visible { outline: 2px solid #0a0a0a; outline-offset: -2px; border-radius: 4px; }
.ed-sc[aria-current="true"] { color: #171717; text-decoration-color: currentColor; }
.ed-sc-count { color: #a3a3a3; font-variant-numeric: tabular-nums; }
.ed-sc-ext { width: 0.625rem; height: 0.625rem; color: #a3a3a3; }

@media (min-width: 640px) {
  .ed-sc { min-height: 2.25rem; font-size: 0.875rem; }
}

/* Terciární odkaz */
.ed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: #262626;
  text-decoration: underline;
  text-decoration-color: #d4d4d4;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.ed-link:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; border-radius: 2px; }
.ed-link--break { overflow-wrap: anywhere; min-width: 0; }

@media (hover: hover) and (pointer: fine) {
  .ed-btn:hover { background: #262626; }
  .ed-btn--secondary:hover,
  .ed-icon-btn:hover { background: #f5f5f5; color: #171717; }
  .ed-sc:hover { color: #171717; text-decoration-color: currentColor; }
  .ed-link:hover { text-decoration-color: #262626; }
}


/* ── SEKCE + DVOUSLOUPCOVÝ ROZVRH ─────────────────────────── */
.ed-section { padding-top: var(--ed-gap); }
.ed-section--last { padding-bottom: var(--ed-gap); }
.ed-section--tint {
  margin-top: var(--ed-gap);
  padding-bottom: var(--ed-gap);
  background: #f5f5f5;
}
.ed-section--tint + .ed-section { padding-top: var(--ed-gap); }

.ed-rule { padding-top: var(--ed-rule); border-top: 1px solid rgba(10, 10, 10, 0.1); }
/* Tónovaný pás sekci otevírá svou hranou — linka uvnitř by byla druhá, zbytečná */
.ed-section--tint .ed-rule { padding-top: 0; border-top: 0; }

.ed-cols { display: grid; grid-template-columns: minmax(0, 1fr); }

.ed-kicker {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #171717;
}

.ed-head { margin-top: 1.5rem; }
.ed-byline { margin-top: 2rem; }
.ed-rail + * { margin-top: 1.75rem; }

/* Levý sloupec s nadpisem sekce + bylinou. Na mobilu se rozpustí do toku
   v pořadí: nadpis sekce → titulek/citát → byline → text. */
.ed-split { display: contents; }
.ed-split > .ed-kicker { order: -3; }
.ed-cols > .ed-head { order: -2; }
.ed-split > .ed-byline { order: -1; }

/* Mobil: popisek sekce patří k titulku (16 px), ne k lince nad ním (32 px) */
@media (max-width: 1023px) {
  .ed-cols > .ed-split + .ed-head { margin-top: 1rem; }
  .ed-cols > .ed-split + p { margin-top: 1.25rem; }
}
/* Článek bez titulku: perex / první odstavec začíná v řádku s popiskem sekce */
.ed-lede--first { margin-top: 0; }
@media (min-width: 1024px) {
  .ed-cols > .ed-split + p { margin-top: 0; }
}

@media (min-width: 1024px) {
  .ed-cols {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
  }
  .ed-cols > * { grid-column: 2; }
  .ed-cols > .ed-rail { grid-column: 1; grid-row: 1; align-self: start; }
  .ed-cols > .ed-head { grid-row: 1; margin-top: 0; }
  .ed-split { display: block; }
  /* Vysoký rail (portrét) nesmí roztáhnout první řádek — text teče vedle něj */
  .ed-cols > .ed-split { grid-row: 1 / span 3; }
  .ed-split > .ed-byline { margin-top: 1.75rem; }
  .ed-cols > .ed-fig--full { grid-column: 1 / -1; }
  .ed-rail + * { margin-top: 0; }
  .ed-rail-sticky { position: sticky; top: 6rem; align-self: start; }
}

.ed-title {
  font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.25rem);
  line-height: 1.15;
}

.ed-lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  color: #404040;
  text-wrap: pretty;
}

/* Tělo článku = přímí potomci .ed-cols; míra řádku ≤ 66 znaků */
.ed-cols > p,
.ed-cols > h4,
.ed-cols > ul,
.ed-cols > ol,
.ed-cols > blockquote,
.ed-cols > .ed-gtk,
.ed-cols > .ed-qa { max-width: 36rem; }

.ed-cols > p {
  margin-top: 1.25rem;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #404040;
  text-wrap: pretty;
}
.ed-cols > .ed-head + p { margin-top: 2.5rem; }
.ed-cols > h4 {
  margin-top: 2.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #171717;
  text-wrap: balance;
}

.ed-cols > ul,
.ed-cols > ol {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #404040;
}
.ed-cols > ul { list-style: disc; }
.ed-cols > ol { list-style: decimal; }
.ed-cols > ul li + li,
.ed-cols > ol li + li { margin-top: 0.375rem; }
.ed-cols > blockquote {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid #171717;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  color: #262626;
}
/* Obrázky vložené v editoru CMS; :not(.ed-fig) = šablonové rámy (text i rozhovor) mají vlastní styl */
.ed-cols > p img,
.ed-cols > figure:not(.ed-fig) img {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 1.5rem;
  border-radius: min(0.3125vw, 4px);
}
.ed-cols > p a,
.ed-cols > ul a,
.ed-cols > ol a { color: #171717; text-decoration: underline; text-decoration-color: #a3a3a3; text-underline-offset: 0.2em; }
.ed-cols > figure:not(.ed-fig),
.ed-cols > table { max-width: 36rem; margin-top: 1.25rem; }
.ed-fallback p + p { margin-top: 1rem; }
.ed-fallback {
  max-width: 36rem;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  color: #404040;
  text-wrap: pretty;
}

/* Dobré vědět (vzor Plum "Home truths"): od článku ho odlišuje změna hlasu,
   ne rámeček — Literata (úvaha) → Inter (praktický fakt) a u každého bodu
   tichý pískový kroužek s jantarovým "i" (ruka redakce jako drobná značka).
   Plný amber kruh zůstává fajfkám slibu: žluté "i" by se četlo jako varování. */
.ed-cols > .ed-gtk { margin-top: 3rem; }
.ed-gtk-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #171717;
}
.ed-gtk-list { display: grid; gap: 0.875rem; margin-top: 1rem; }
.ed-gtk-list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.875rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.6;
  color: #404040;
  text-wrap: pretty;
}
.ed-gtk-mark { width: 1.25rem; height: 1.25rem; margin-top: 0.1875rem; }
.ed-gtk-mark-disc { fill: var(--ul-warm); stroke: rgba(146, 64, 14, 0.14); stroke-width: 1; }
.ed-gtk-mark-dot { fill: var(--ul-amber-ink); }
.ed-gtk-mark-stem { stroke: var(--ul-amber-ink); stroke-width: 1.75; stroke-linecap: round; }
/* Sekce jen s "Dobré vědět" (bez textu): seznam patří k popisku sekce, ne k odstavci nad ním */
.ed-cols > .ed-rail + .ed-gtk { margin-top: 1rem; }
@media (min-width: 1024px) {
  .ed-cols > .ed-gtk { margin-top: 3.5rem; }
  .ed-cols > .ed-rail + .ed-gtk { margin-top: 0; }
}

/* Byline */
.ed-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #e5e5e5;
  color: #404040;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}
.ed-avatar--img { object-fit: cover; outline: 1px solid rgba(10, 10, 10, 0.06); outline-offset: -1px; }
.ed-avatar--lg { width: 3.5rem; height: 3.5rem; font-family: 'Literata', Georgia, serif; font-size: 1.125rem; }
.ed-section--tint .ed-avatar { background: #e5e5e5; }
.ed-portrait {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  border-radius: 4px;
  object-fit: cover;
  background: #e5e5e5;
  outline: 1px solid rgba(10, 10, 10, 0.06);
  outline-offset: -1px;
}
.ed-byline-name { font-size: 1rem; font-weight: 500; line-height: 1.35; color: #171717; }
.ed-meta { font-size: 0.9375rem; line-height: 1.5; color: #737373; }
.ed-byline-dates { margin-top: 1rem; }

@media (min-width: 640px) {
  .ed-meta { font-size: 0.875rem; }
  .ed-portrait { max-width: 14rem; }
}
@media (min-width: 1024px) {
  .ed-portrait { max-width: 17rem; margin-bottom: 1.25rem; }
}


/* ── FAKTA + CO NÁS ZAUJALO ───────────────────────────────── */
/* Jako galerijní štítek: popisek nad hodnotou, oddělené jen vzduchem —
   žádné linky. Rail = fakta, pravý sloupec = redakční lede + výběr redakce.
   Mobil: lede → fakta → co nás zaujalo (emoce, pak čísla, pak detaily). */
.ed-facts { padding-top: clamp(3.5rem, 8vw, 7rem); }

.ed-facts-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.ed-facts-text { max-width: 36rem; }
/* Úvodní hlas stránky: o krok větší než lede v článku */
.ed-fact-lede {
  margin-top: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.4;
  color: #262626;
  text-wrap: pretty;
}

.ed-facts-rail { margin-top: 3rem; }

/* Specifikace: <dt> nad <dd>; mobil 2 sloupce, tablet 3, desktop rail 1 */
.ed-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
.ed-specs dt,
.ed-specs-label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #171717;
}
.ed-specs dd {
  margin-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #525252;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.ed-facts-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.ed-verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #737373;
}
.ed-verified-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.ed-share {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  color: #525252;
  cursor: pointer;
}
.ed-share-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Co nás zaujalo: tichý seznam ikona + popisek, bez rámečků */
.ed-highlights { margin-top: 3rem; }
.ed-facts-more { min-width: 0; }
.ed-hl-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem 2rem;
  margin-top: 1rem;
}
.ed-hl-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #404040;
}
.ed-hl-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: #262626; }
.ed-hl-list span { min-width: 0; }

@media (min-width: 640px) {
  .ed-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-specs dt, .ed-specs-label { font-size: 0.875rem; }
  .ed-specs dd { font-size: 0.9375rem; }
  .ed-verified, .ed-share { font-size: 0.875rem; }
  .ed-hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 36rem; }
  .ed-hl-list li { font-size: 0.9375rem; }
  .ed-hl-icon { width: 1.125rem; height: 1.125rem; }
}

/* Desktop: rail 4/12 (stejná osa jako ostatní sekce) | text 8/12 */
@media (min-width: 1024px) {
  .ed-facts-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "rail text" "rail hl";
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
  }
  .ed-facts-text { grid-area: text; }
  .ed-facts-rail { grid-area: rail; align-self: start; margin-top: 0.375rem; }
  .ed-facts-more { grid-area: hl; }
  .ed-highlights { margin-top: 3.5rem; }
  .ed-specs { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}


/* ── ŽIVOT V OKOLÍ ────────────────────────────────────────── */
/* Pás karet 4:5 pod "Co nás zaujalo" (Phase 6). Ilustrace na teplém povrchu = ruka redakce
   (--ul-warm, catalog.css); dole v ilustraci je zapečený pás pro štítek času, takže štítek
   nikdy nezakryje kresbu. Mobil: pás od kraje ke kraji; desktop: šířka sloupce 8/12, useknutá
   karta vpravo říká "je toho víc". Šipky jen s myší a jen když pás přetéká (js/projekt-editorial.js). */
.ed-okoli { margin-top: 3rem; }
.ed-okoli-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
}
.ed-okoli-nav { display: none; gap: 0.5rem; }
.ed-okoli-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px #e5e5e5;
  color: #262626;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ed-okoli-btn svg { width: 1.125rem; height: 1.125rem; }
.ed-okoli-btn:active:not(:disabled) { transform: scale(0.97); }
.ed-okoli-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.ed-okoli-btn:disabled { color: #d4d4d4; box-shadow: inset 0 0 0 1px #f0f0f0; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .ed-okoli.is-overflow .ed-okoli-nav { display: flex; }
  .ed-okoli-btn:not(:disabled):hover { background: #f5f5f5; color: #0a0a0a; }
}

.ed-okoli-rail {
  margin: 1rem -1.5rem 0;
  padding: 0 1.5rem 0.25rem;
  scroll-padding-inline: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ed-okoli-rail::-webkit-scrollbar { display: none; }
.ed-okoli-rail:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .ed-okoli-rail { scroll-behavior: smooth; }
}
.ed-okoli-list { display: flex; gap: 0.75rem; }

/* Karta: v DOM text → obraz (čtečka: "Zastávka, Kamenec II., 10 minut pěšky"), vizuálně obraz nahoře */
.ed-okoli-card {
  display: flex;
  flex: none;
  flex-direction: column;
  width: clamp(8.75rem, 38vw, 10rem);
  scroll-snap-align: start;
}
.ed-okoli-frame {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: min(0.3125vw, 4px);
  background: var(--ul-warm, #f4f0e9);
}
.ed-okoli-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.05);
  pointer-events: none;
}
.ed-okoli-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Kategorie bez ilustrace: teplý povrch + čárová ikona (nad pásem pro štítek) */
.ed-okoli-frame--icon { display: grid; place-items: center; padding-bottom: 16%; color: #57534e; }
.ed-okoli-frame--icon svg { width: 1.75rem; height: 1.75rem; }

.ed-okoli-time {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.125rem 0.4375rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #171717;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ed-okoli-title {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: #171717;
}
.ed-okoli-name {
  display: -webkit-box;
  margin-top: 0.125rem;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #525252;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 640px) {
  .ed-okoli-list { gap: 1rem; }
}
@media (min-width: 1024px) {
  .ed-okoli { margin-top: 3.5rem; }
  .ed-okoli-rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

/* Kredit OpenStreetMap (licence; pod mapou Lokalita, bez mapy pod pásem Okolí) */
.ed-osm-credit { margin-top: 0.75rem; font-size: 0.8125rem; }
.ed-osm-credit a { color: inherit; text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 0.2em; }
.ed-osm-credit a:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ed-osm-credit a:hover { color: #262626; text-decoration-color: currentColor; }
}


/* ── FOTKY: rámy ──────────────────────────────────────────── */
.ed-fig { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ed-fig + * { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ed-fig--full { margin-inline: -1.5rem; }
.ed-fig--full .ed-caption { padding-inline: 1.5rem; }
.ed-fig--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

/* Fotky 4px, škálované s šířkou okna; full-bleed na mobilu 0 */
.ed-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: min(0.3125vw, 4px);
  overflow: hidden;
  background: #e5e5e5;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.ed-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.05);
  pointer-events: none;
}
.ed-fig--full .ed-frame { border-radius: 0; }
.ed-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-frame:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.ed-frame--wide { aspect-ratio: 3 / 2; }
.ed-frame--tall { aspect-ratio: 4 / 5; }
.ed-frame--thumb { aspect-ratio: 3 / 2; }

.ed-caption {
  max-width: 60ch;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #737373;
  text-wrap: pretty;
}

html.js .ed-img { opacity: 0; transition: opacity 400ms ease; }
html.js .ed-img.is-loaded { opacity: 1; }

@media (min-width: 640px) {
  .ed-fig--full { margin-inline: 0; }
  .ed-fig--full .ed-caption { padding-inline: 0; }
  .ed-fig--pair { gap: 1rem; }
  .ed-fig--full .ed-frame { border-radius: min(0.3125vw, 4px); }
  .ed-caption { font-size: 0.875rem; }
}

@media (min-width: 1024px) {
  .ed-frame--wide { aspect-ratio: 16 / 9; }
}


/* ── ROZHOVOR ─────────────────────────────────────────────── */
/* Jediný hlasitý moment stránky: velikost + vzduch, ne váha */
.ed-pullquote p {
  font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.25rem);
  line-height: 1.2;
}

.ed-qa { margin-top: 2.5rem; }
.ed-head + .ed-qa { margin-top: 3.5rem; }
.ed-qa h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #171717;
  text-wrap: balance;
}
.ed-qa p {
  margin-top: 0.625rem;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #404040;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .ed-pullquote { max-width: 40rem; padding-bottom: 1.5rem; }
  .ed-pullquote p { text-indent: -0.42em; }
  .ed-head + .ed-qa { margin-top: 5rem; }
}


/* ── GALERIE ──────────────────────────────────────────────── */
.ed-gallery-btn { margin-top: 1.25rem; }
.ed-gallery-flow > .ed-fig { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.ed-gallery-flow > .ed-fig:first-child { margin-top: 0; }
.ed-gallery-note { max-width: 36rem; margin-top: 1.5rem; text-wrap: pretty; }
.ed-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

@media (min-width: 640px) {
  .ed-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}


/* ── LOKALITA ─────────────────────────────────────────────── */
.ed-loc-name {
  margin-top: 0.5rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.3;
}
.ed-map-wrap { position: relative; isolation: isolate; overflow: hidden; border-radius: 6px; }
.ed-map { width: 100%; height: clamp(22rem, 45vw, 34rem); }
.ed-map-panel { display: none !important; }

/* Leaflet zoom: sekundární ikonová tlačítka (přebíjí catalog.css / projekt.css jen zde) */
.ed .leaflet-control-zoom { gap: 0.375rem; }
.ed .leaflet-control-zoom a {
  position: relative;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #e5e5e5, 0 1px 2px rgba(10, 10, 10, 0.05);
  color: #404040 !important;
  font-size: 1.125rem !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ed .leaflet-control-zoom a:active { transform: scale(0.97); }
.ed .leaflet-control-zoom a:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.ed .leaflet-control-zoom a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
}
@media (pointer: fine) {
  .ed .leaflet-control-zoom a::after { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .ed .leaflet-control-zoom a:hover { background: #f5f5f5 !important; color: #171717 !important; }
}


/* ── URBANLIST SLIB (pás před Kontaktem) ──────────────────── */
/* Sekce mají jen horní odsazení → pás si mezeru nad sebou drží sám (jako Rozhovor) */
.ed .slib--full { margin-top: var(--ed-gap); }


/* ── KONTAKT ──────────────────────────────────────────────── */
.ed-contact-title {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.ed-contact-text {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #525252;
  text-wrap: pretty;
}
.ed-dev-logo { display: block; width: auto; max-width: 10rem; height: 2rem; margin-top: 0.75rem; object-fit: contain; object-position: left center; }
.ed-dev-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; }
.ed-dev-links .ed-link { font-size: 0.9375rem; }


/* ── STICKY LIŠTA (Modern House) ──────────────────────────── */
.ed-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -8px 24px -16px rgba(10, 10, 10, 0.16);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 200ms;
}
.ed-bar.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
}

.ed-bar .ed-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.625rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}
.ed-bar-id { flex: 1; min-width: 0; }
.ed-bar-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: #171717;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ed-bar-price { font-size: 0.9375rem; line-height: 1.4; color: #737373; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-bar-nav { display: none; }

@media (min-width: 640px) {
  .ed-bar-price { font-size: 0.875rem; }
}
@media (min-width: 1024px) {
  .ed-bar .ed-bar-inner { min-height: 3.75rem; }
  .ed-bar-id { display: flex; align-items: baseline; gap: 0.875rem; }
  .ed-bar-name { min-width: 0; }
  .ed-bar-nav { display: flex; flex-wrap: nowrap; }
}


/* ── VŠECHNY FOTKY (index) ────────────────────────────────── */
.ed-index {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fafafa;
  opacity: 1;
  transform: none;
  transition: opacity 200ms ease-out, transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
}
@starting-style {
  .ed-index { opacity: 0; transform: translateY(12px); }
}
.ed-index[hidden] { display: none; }

.ed-index-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 0.75rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.ed-index-title { font-size: 1.125rem; font-weight: 500; line-height: 1.3; color: #171717; }
.ed-index-group { margin-top: 2.5rem; }
.ed-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .ed-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}
@media (min-width: 1024px) {
  .ed-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ── LIGHTBOX ─────────────────────────────────────────────── */
.ed-lightbox { position: fixed; inset: 0; z-index: 300; background: #0a0a0a; color: #fff; }
.ed-lb {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}
.ed-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}
.ed-lb-counter { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.ed-lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-inline: 0.5rem;
  touch-action: pan-y;
}
.ed-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.ed-lb-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.ed-lb-caption {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  text-wrap: pretty;
}
.ed-lb-nav { display: flex; gap: 0.5rem; }
.ed-lb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ed-lb-btn:active { transform: scale(0.97); }
.ed-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .ed-lb-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
}

@media (min-width: 640px) {
  .ed-lb-top { padding: 1rem 1.5rem; }
  .ed-lb-stage { padding-inline: 5.5rem; }
  .ed-lb-bottom { padding: 1.25rem 1.5rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
  .ed-lb-caption { max-width: 40rem; margin-inline: auto; text-align: center; }
  .ed-lb-btn { width: 2.5rem; height: 2.5rem; }
  .ed-lb-prev,
  .ed-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
  .ed-lb-prev { left: 1.5rem; }
  .ed-lb-next { right: 1.5rem; }
  .ed-lb-prev:active,
  .ed-lb-next:active { transform: translateY(-50%) scale(0.97); }
}


/* ── TOAST ────────────────────────────────────────────────── */
.ed-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 200;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px -8px rgba(10, 10, 10, 0.35);
}


/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ed-bar,
  .ed-bar.is-visible { transform: none; }
  .ed-bar { opacity: 0; transition: opacity 150ms linear, visibility 0s linear 150ms; }
  .ed-bar.is-visible { opacity: 1; transition: opacity 150ms linear, visibility 0s; }
  .ed-index { transition: opacity 150ms linear; }
  @starting-style { .ed-index { transform: none; } }
  html.js .ed-img { transition: none; }
  .ed-hero-img { animation: none; }
}
