/* ==========================================================================
   Pozemky Otovice u Tvrze — základní stylesheet (Fáze 1: kostra)
   Design tokeny vytažené z Figmy (Otovice / Copy).
   ========================================================================== */

/* --- Font: Outfit (self-host, variable) ----------------------------------- */
/* latin-ext — české znaky (č, ř, š, ž, ě, ů, ď, ť, ň…) */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin — základní latinka + á, é, í, ó, ú, ý */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokeny -------------------------------------------------------- */
:root {
  /* Barvy (Figma variables) */
  --c-black: #000000;
  --c-white: #ffffff;
  --c-green: #6fa944;      /* brand / volná parcela */
  --c-green-dark: #5c8f37; /* hover */
  --c-orange: #ff9d00;     /* rezervovaná / obsazeno */
  --c-red: #e40000;        /* prodaná */
  --c-sand-bg: #ebe9da;    /* hlavní béžové pozadí sekcí */
  --c-sand-creme: #d8c7a3;
  --c-antracit: #353d41;
  --c-gray-line: #e2e2e2;
  --c-gray-bg: #e6e6e6;
  --c-muted: #6b6b6b;      /* tlumený text */

  /* Sémantické role */
  --bg-page: var(--c-white);
  --bg-alt: var(--c-sand-bg);
  --text: var(--c-black);
  --text-soft: #4a4a4a;
  --line: var(--c-gray-line);

  /* Typografie */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking-tight: -0.02em;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-pill: 40px;
  --radius-lg: 20px;
  --radius-md: 12px;

  /* Header */
  --header-h: 88px;
  --header-h-scroll: 72px;

  /* Rytmus */
  --section-py: clamp(36px, 4.5vw, 56px);  /* Figma mezery ~56-88px mezi sekcemi */

  /* Efekty */
  --shadow-header: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Reveal animace startují posunuté (translateX ±44px) → dokud se neodkryjí, přetékají do stran.
   Ořízneme vodorovné přetečení, ať se neobjevuje bliknutí scrollbaru (a s ním posun fixed headeru). */
html, body { overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--tracking-tight);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 600; letter-spacing: var(--tracking-tight); }

:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; border-radius: 4px; }

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-py); }
.section--alt { background: var(--bg-alt); }

/* Stránky s jednotným pastelovým pozadím (pozadí drží main, patička zůstává bílá) */
body.lokalita main,
body.mapa main,
body.galerie main { background: var(--bg-alt); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-black);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Sekční nadpis (eyebrow + H2 se zvýrazněnou částí) */
.eyebrow {
  color: var(--c-green);
  font-weight: 600;
  font-size: 20px;      /* Figma: eyebrow 20px SemiBold */
  margin-bottom: 12px;
}
.h-display {
  font-size: clamp(32px, 4.4vw, 56px);  /* Figma h1 hero: 56px */
  font-weight: 600; /* Outfit SemiBold — hlavní řez nadpisů (Figma) */
  line-height: 1.3; /* Figma h1: 73px / 56px */
}
h2.h-display {
  font-size: clamp(28px, 3.6vw, 48px);  /* Figma h2 sekce: 48px */
  line-height: 1.2;                     /* Figma h2: ~56-60px / 48px */
  letter-spacing: -0.02em;              /* Figma: -0.96px */
}
.h-display strong { font-weight: 600; }
.h-display .fw-light { font-weight: 300; } /* Outfit Light — světlá část */

/* --- Tlačítka ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
/* Button s ikonou vlevo: menší levý padding (opticky vyrovná „těžší" levou stranu) */
.btn:has(> .icon:first-child) { padding-left: 24px; }

.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-dark); }

.btn--outline {
  border: 1px solid var(--c-black);
  background: transparent;
  color: var(--c-black);
}
.btn--outline .icon { color: var(--c-green); }        /* šipka/ikona vždy zelená */
.btn--outline:hover { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.btn--outline:hover .icon { color: #fff; }

.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--c-black); }

/* ==========================================================================
   HEADER (sticky, mění stav při scrollu)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Fixed header překrývá obsah → podstránky odsadit; domovská má hero pod headerem */
body:not(.home) main { padding-top: var(--header-h); }
.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-scroll); }

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.brand__name {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  transition: font-size 0.25s var(--ease);
}
.site-header.is-scrolled .brand__name { font-size: 28px; }
.brand__sub { font-weight: 400; font-size: 16px; color: var(--text); }

.main-nav {
  margin-inline: auto;
}
.main-nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav__link {
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--c-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav__link:hover::after,
.main-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.main-nav__link[aria-current="page"] { color: var(--c-green); }

.header-cta { flex-shrink: 0; }
/* Drawer obal (nav + CTA): na desktopu průhledný pro layout (display:contents),
   na mobilu se stává rozbalovacím panelem — viz @media níže. */
.header-drawer { display: contents; }

/* Hamburger (mobil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 10px;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(96deg, rgba(15, 28, 10, 0.62) 0%, rgba(15, 28, 10, 0.28) 42%, rgba(15, 28, 10, 0) 68%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
}
.hero__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + clamp(24px, 6vh, 72px)) clamp(32px, 6vh, 72px);
}
.hero__content { max-width: 720px; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 0.97;
}
.hero__title strong {
  display: block;
  font-weight: 600;
  color: var(--c-sand-creme);
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 500;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.95);
}
.hero__actions { margin-top: 32px; }

.btn--lg { padding: 16px 40px; font-size: 18px; font-weight: 600; gap: 16px; }
.btn--lg .icon { width: 28px; height: 28px; }

/* Feature lišta na patě hero (průhledný zelený pruh) */
.hero-features {
  background: rgba(66, 101, 17, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-block: 26px;
}
.hero-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-inline: 16px;
  color: #fff;
}
.hero-feature:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 58px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-feature__icon { width: 44px; height: 44px; }
.hero-feature__label {
  font-size: clamp(14px, 1.15vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 12ch;
}
.hero-feature .fw-light { font-weight: 300; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--c-white); }
.site-footer__top {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { font-weight: 500; }
.footer-nav a:hover { color: var(--c-green); }
.site-footer__legal {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-footer__legal a:not(.btn):hover { color: var(--c-green); }  /* .btn si drží vlastní hover (bílý text) */

.site-footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 22px 28px;
  font-size: 14px;
  color: var(--text-soft);
}
.social-links { display: flex; gap: 16px; margin-inline: auto; }
.social-links a {
  display: inline-flex;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-links a:hover { color: var(--c-green); transform: translateY(-2px); }
.social-links .icon { width: 22px; height: 22px; }
.made-by { display: inline-flex; align-items: center; gap: 8px; }
.mcrai-link { display: inline-flex; line-height: 0; }
.mcrai-logo {
  display: inline-block; width: 65px; height: 18px;
  background-color: var(--text);
  -webkit-mask: url("../img/mcrai.svg") no-repeat center / contain;
          mask: url("../img/mcrai.svg") no-repeat center / contain;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mcrai-link:hover .mcrai-logo { background-color: var(--c-green); transform: translateY(-2px); }

/* Zelená varianta ikony (telefon, download apod.) */
.icon--green { color: var(--c-green); }

/* Tlačítko „nahoru na začátek" — fixed vpravo dole, objeví se po odscrollování (mobil i desktop) */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--c-green-dark); transform: translateY(-3px); }
.to-top .icon { width: 24px; height: 24px; }

/* Placeholder blok pro rozpracované sekce (Fáze 1) */
.wip {
  border: 1px dashed var(--c-sand-creme);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: clamp(40px, 8vw, 96px) var(--gutter);
  text-align: center;
  color: var(--text-soft);
}
.wip h2 { font-weight: 700; font-size: clamp(24px, 3vw, 34px); color: var(--text); margin-bottom: 10px; }
.wip__tag {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-green);
}

/* ==========================================================================
   RESPONZIVITA
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  /* Header se na mobilu při scrollu NEzmenšuje (na desktopu ano) — poskakování je rušivé.
     Stín/linka při scrollu zůstávají jako jemný elevation cue. */
  .site-header.is-scrolled .site-header__inner { height: var(--header-h); }
  .site-header.is-scrolled .brand__name { font-size: 32px; }

  /* Drawer = jeden rozbalovací panel pod headerem; nav + CTA v normálním toku pod sebou.
     Žádné absolutní pozicování jednotlivých prvků → nic se nepřekrývá. */
  .header-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-header);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.nav-open .header-drawer { display: flex; }

  .main-nav { margin: 0; width: 100%; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__link { display: block; padding: 15px 2px; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav__link::after { display: none; }  /* podtržítko-animace ve stacked menu nedává smysl */

  .header-cta { align-self: flex-start; margin-top: 18px; }
}

/* HP hero panely: 2 vedle sebe, 5. sám přes obě řady → 2/2/1 (drží až do nejmenších) */
@media (max-width: 860px) {
  .hero-features__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding-block: 32px; }
  .hero-feature:last-child { grid-column: 1 / -1; }
  .hero-feature:not(:first-child)::before { display: none; }
}

@media (max-width: 720px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer__legal { margin-left: 0; }
  .social-links { margin-inline: 0; }
}

/* ==========================================================================
   SEKCE HP (Fáze 2)
   ========================================================================== */
.fw-light { font-weight: 300; }
.lead-muted { margin-top: 20px; font-size: 18px; font-weight: 300; line-height: 1.33; color: var(--text); max-width: 52ch; }  /* Figma perex: 18px Light, leading 24px, black */
.lead-muted strong { font-weight: 600; color: var(--text); }
.lead-muted + .lead-muted { margin-top: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }

/* Split 2 sloupce */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__text { min-width: 0; }
.split--map { grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 64px); } /* mapa výraznější než text (dle Figmy) */

/* Náhled mapy (placeholder pro vektor) */
.map-preview,
.map-embed {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-gray-bg);
}
.map-embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(0.92) brightness(1.05); }  /* šedá mapa POŘÁD (jako tembach — bez hover/klik obarvení) */
.map-embed__link {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text); padding: 10px 18px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-card);
  transition: color 0.2s var(--ease);
}
.map-embed__link:hover { color: var(--c-green); }
.map-embed__link .icon { width: 18px; height: 18px; color: var(--c-green); }

/* Benefity */
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit { border-left: 1px solid var(--line); padding: 4px 24px 0; }
.benefit__icon { width: 48px; height: 48px; margin-bottom: 20px; }
.benefit__title { font-size: 20px; font-weight: 600; margin-bottom: 12px; max-width: 11ch; }
.benefit__text { font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.45; max-width: 20ch; }  /* Figma: 16px Light black */

/* Foto koláž (Vaše cesta) */
.photo-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 560px; }
.photo { border-radius: var(--radius-md); overflow: hidden; width: 100%; height: 100%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.photo--c { grid-column: 2; grid-row: 1 / span 2; }
.photo--a { grid-column: 1; grid-row: 1; }
.photo--b { grid-column: 1; grid-row: 2; }

/* Dostupnost — seznam */
.dostupnost { margin-top: 32px; max-width: 440px; }
.dostupnost__row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dostupnost__row:last-child { border-bottom: 0; }
.dostupnost__icon { width: 24px; height: 24px; }
.dostupnost__place { font-size: 16px; font-weight: 300; }
.dostupnost__time { font-size: 16px; font-weight: 600; }

/* Timeline — jak probíhá rezervace */
.section--timeline { border-top: 1px solid var(--line); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 3px;
  background-image: radial-gradient(circle, var(--c-sand-creme) 1.5px, transparent 1.6px);
  background-size: 16px 3px; background-repeat: repeat-x; background-position: left center;
  z-index: 0;
}
.timeline__step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.timeline__circle-wrap { position: relative; margin-bottom: 24px; }
.timeline__circle {
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid var(--c-sand-creme); background: #fff;
  display: grid; place-items: center;
}
.timeline__circle img { width: 40px; height: 40px; }
.timeline__num {
  position: absolute; top: -4px; left: -14px; z-index: 2;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.timeline__title { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.timeline__text { font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.4; max-width: 22ch; }  /* Figma: 16px Light black */

/* Formulářová sekce */
.section-form {
  position: relative;
  overflow: hidden;
  color: var(--text);
  padding-block: var(--section-py);
  background: var(--c-sand-bg);
}
.section-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/form-bg.jpg") center / cover no-repeat;
  opacity: 0.26; /* dle Figmy */
}
.section-form > .container { position: relative; z-index: 1; }
.split--form { grid-template-columns: 1fr 1fr; align-items: center; }
.form-intro__avatar { width: 80px; height: 80px; margin-bottom: 24px; }
.form-intro .h-display { color: var(--text); }
.form-intro__cta { margin-top: 20px; font-size: 18px; font-weight: 400; max-width: 40ch; color: var(--text); }  /* Figma: 18px Regular black, leading 28 */
.form-intro__contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-line { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; color: var(--text); }
.req { color: var(--c-green); }
.contact-line__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--c-green); display: grid; place-items: center; flex-shrink: 0; }
.contact-line__ic .icon { width: 20px; height: 20px; color: #fff; }

/* Formulář */
.lead-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-card); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-flash { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.form-flash--ok { background: #e4f0d8; color: #4d7a26; }
.form-flash--err { background: #fbdcdc; color: #c22; }
.form-parcela-note { font-size: 14px; color: var(--text-soft); margin-bottom: 18px; }
.form-parcela-note strong { color: var(--c-green); }
.field { position: relative; margin-bottom: 26px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--text); background: transparent;  /* Figma: input podtržení black */
  padding: 8px 0; font: inherit; color: var(--text); letter-spacing: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-green); }
.field--err input, .field--err textarea { border-bottom-color: var(--c-red); }
.field--err label { color: var(--c-red); }
.field label {
  position: absolute; left: 0; top: 8px; color: var(--text); font-size: 14px;  /* Figma: 14px Regular black */
  pointer-events: none; transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease);
  transform-origin: left;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.82); color: var(--c-green);
}
.gdpr { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin-bottom: 24px; }  /* Figma: 14px black */
.gdpr input { margin-top: 3px; accent-color: var(--c-green); }
.gdpr a { color: var(--c-green); text-decoration: underline; }

/* ---- Responzivita sekcí ---- */
@media (max-width: 1024px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .benefit:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .split, .split--form { grid-template-columns: 1fr; gap: 32px; }
  .split--map .map-preview { order: 2; }
  .timeline { grid-template-columns: 1fr; gap: 40px; max-width: 420px; margin-inline: auto; }
  .timeline::before { display: none; }
}
@media (max-width: 620px) {
  .benefit-grid { grid-template-columns: 1fr; gap: 28px 0; }
  .benefit { border-left: 0; padding-left: 0; }
  .photo-collage { min-height: 360px; }
}

/* ==========================================================================
   MAPA POZEMKŮ
   ========================================================================== */
/* Hero: mapa přes celou šířku, přes ni vlevo titulek + karta (Figma frame 2033:348) */
.section--map-hero { padding-block: 0; overflow: hidden; }  /* hero flush pod headerem; clip bleedu mapy na okraj viewportu */
.section--pt0 { padding-top: 0; }  /* filtr hned pod mapou */
.mapa-hero { position: relative; }
.mapa-hero__text { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 128px; pointer-events: none; }  /* pointer-events none → hover propadne na mapu pod textem */
.mapa-hero__text .eyebrow { margin-bottom: 0; }
.mapa-hero__text .h-display { margin: 8px 0 0; max-width: 720px; }  /* 56px z .h-display, 2 řádky (přetéká přes mapu) */
.mapa-hero__text .parcel-card { margin-top: 63px; pointer-events: auto; }  /* Figma: titulek končí y=251, karta y=314 */
.mapa-hero__map { position: absolute; z-index: 1; top: 31px; right: -100px; width: 73.5%; }  /* kresba vpravo, bleed 100px do gutteru */
.mapa-hero__map .mapa-viewport { width: 100%; }

/* Panel detailu parcely (Figma 237:524 — 326×441) */
.parcel-card { width: 326px; max-width: 100%; background: #fff; border: 1px solid var(--c-gray-line); border-radius: var(--radius-lg); box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1); padding: 32px 30px 34px; overflow: hidden; }  /* Figma: border gray-line, radius 20, shadow 4/4/4 */
.parcel-card__title { font-size: 24px; font-weight: 600; line-height: 1.2; }  /* Figma: 24px SemiBold */
.parcel-card__price { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--c-sand-creme); }  /* Figma: 20px Bold sand-creme */
.parcel-card__hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.parcel-card__rows { display: flex; flex-direction: column; gap: 8px; }  /* Figma: rozteč 28px = řádek 20 + gap 8 */
.parcel-row { display: grid; grid-template-columns: 20px 60px 1fr; column-gap: 13px; align-items: center; min-height: 20px; }  /* ikona | label(x64) | hodnota(x136) */
.parcel-row .icon { width: 20px; height: 20px; color: var(--c-sand-creme); }  /* Figma: ikony sand-creme */
.parcel-row dt { color: var(--text); font-size: 16px; font-weight: 300; line-height: 20px; }  /* Figma: 16px Light black */
.parcel-row dd { font-size: 16px; font-weight: 600; line-height: 20px; }  /* Figma: 16px SemiBold, vlevo ve sloupci hodnot */
.parcel-card__sites-label { font-weight: 600; font-size: 16px; line-height: 1.25; }  /* Figma: 16px SemiBold */
.parcel-card__sites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.parcel-card__sites li { border: 1px solid var(--c-black); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 14px; font-weight: 300; line-height: 1.25; color: var(--text); }  /* Figma: 14px Light black, border black */
/* Panel je hover-driven → CTA v něm ztrácelo logiku (najetím myší se měnil cíl tlačítka).
   „Mám zájem“ zůstává jen u konkrétního řádku v seznamu dole. */

/* Stavové badge */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; border: 1px solid transparent; }  /* Figma: 14px SemiBold, border */
.badge--volna { background: rgba(111, 169, 68, 0.28); color: var(--c-green); border-color: var(--c-green); }  /* Figma přesně */
.badge--rezervovana { background: rgba(239, 203, 0, 0.22); color: #856E00; border-color: #856E00; }  /* špinavá tmavší žluť — čitelné (jen chip, ne mapa) */
.badge--prodana { background: rgba(228, 0, 0, 0.14); color: var(--c-red); border-color: var(--c-red); }  /* odvozeno z brand red */
.badge__ic { width: 15px; height: 15px; flex: none; }

/* Interaktivní mapa */
.mapa-viewport { position: relative; width: 100%; aspect-ratio: 942 / 843; }
.mapa-podklad { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: var(--radius-md); }
.mapa-parcely { position: absolute; left: 19.89%; top: 13.54%; width: 68.62%; height: 72.41%; }
.mapa-parcely svg { width: 100%; height: 100%; display: block; overflow: visible; }
.parcela { fill: var(--c-gray-bg); stroke-width: 1; cursor: pointer; transition: fill 0.15s var(--ease); }
.parcela[data-stav="volna"]       { fill: #C3E881; stroke: #6FA944; }  /* zelená = volná */
.parcela[data-stav="rezervovana"] { fill: #FFF584; stroke: #EFCB00; }  /* žlutá = rezervovaná */
.parcela[data-stav="prodana"]     { fill: #EABAAE; stroke: #E40000; }  /* červená = prodaná */
/* hover = fill přejde na tón stroke @75 % jako PLNÁ barva (bez průhlednosti → neprosvítá bg) */
.parcela[data-stav="volna"]:hover,       .parcela[data-stav="volna"].is-active       { fill: #93BF73; }
.parcela[data-stav="rezervovana"]:hover, .parcela[data-stav="rezervovana"].is-active { fill: #F3D840; }
.parcela[data-stav="prodana"]:hover,     .parcela[data-stav="prodana"].is-active     { fill: #EB4040; }
/* Odfiltrovaná parcela: PLNÁ šedá, ne fill-opacity — přes průhlednost prosvítal podklad
   mapy, jehož kresba s polygony přesně nelícuje (stejný důvod jako u hoveru výš).
   Musí přebít i hover/is-active (stejná specificita → rozhoduje pořadí), jinak by se
   odfiltrovaná parcela pod myší rozsvítila plnou barvou stavu. */
.parcela.is-dim,
.parcela.is-dim:hover,
.parcela.is-dim.is-active { fill: var(--c-gray-bg); fill-opacity: 1; stroke: #c9c9c9; }
.mapa-deco { pointer-events: none; }

/* Náhled mapy na HP */
.mapa-nahled { position: relative; display: block; width: 100%; aspect-ratio: 942 / 843; border-radius: var(--radius-lg); overflow: hidden; }
/* náhled na HP je interaktivní — parcely reagují na hover a proklik na mapu pozemků */
.mapa-parcely--nahled .parcela { cursor: pointer; }
.parcela-num-bg { pointer-events: none; }  /* bílý podklad 75% pod číslem */
.parcela-num-bg.is-active { fill-opacity: 1; }  /* aktivní/hover parcela → circle 100% */
.parcela-num { font-family: var(--font); font-weight: 600; font-size: 15px; pointer-events: none; }
.parcela-num[data-stav="volna"]       { fill: #6FA944; }  /* číslo = barva stroke */
.parcela-num[data-stav="rezervovana"] { fill: #EFCB00; }
.parcela-num[data-stav="prodana"]     { fill: #E40000; }

/* Filtr */
/* 3 pole (Stav + 2 slidery): select potřebuje jen na text „Nerozhodnuto“, zbytek dostanou slidery */
.filter-bar { display: grid; grid-template-columns: 0.6fr 1fr 1fr; gap: 28px; background: #fff; padding: 26px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 36px; }
.filter-field label { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }  /* Figma: 18px SemiBold */
/* custom dropdown: podtržený input (Figma) + hezký popover (jako Dukovany dg-hero__search) */
.filter-select { position: relative; }
.filter-select__native { display: none; }  /* skrytý zdroj hodnoty (mapa.js čte native select) */
.filter-select__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 44px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--text); border-radius: 0; font: inherit; font-size: 14px; font-weight: 300; color: var(--text); text-align: left; cursor: pointer; }  /* Figma: h44, podtržení black, 14px Light */
.filter-select__caret { width: 20px; height: 20px; flex: none; color: var(--text); transform: rotate(90deg); transition: transform 0.2s var(--ease); }  /* chevron dolů */
.filter-select.is-open .filter-select__caret { transform: rotate(270deg); }
.filter-select__pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; display: none; background: #fff; border: 1px solid var(--c-gray-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); padding: 6px; max-height: 260px; overflow-y: auto; }
.filter-select.is-open .filter-select__pop { display: block; }
.filter-select__item { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; transition: background 0.12s var(--ease), color 0.12s var(--ease); }
.filter-select__item:hover { background: var(--c-sand-bg); }
.filter-select__item.is-active { background: var(--c-green); color: #fff; }
.range-vals { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }  /* pilulky blíž k handlerům */
.range-pill { background: var(--c-sand-bg); color: var(--text); font-size: 14px; font-weight: 400; line-height: 1.3; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }  /* Figma: 14px Regular black, sand-bg, radius 4 */
.range { position: relative; height: 24px; }
.range input[type="range"] { position: absolute; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; top: 8px; z-index: 3; }
/* handle inverzní: bílý s green stroke */
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; pointer-events: auto; border: 2px solid var(--c-green); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.range input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; pointer-events: auto; border: 2px solid var(--c-green); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
/* track vyšší (6px) + rounded */
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 6px; background: var(--line); border-radius: 999px; z-index: 1; }
.range::after { content: ""; position: absolute; left: var(--f0, 0%); width: calc(var(--f1, 100%) - var(--f0, 0%)); top: 13px; height: 6px; background: var(--c-green); border-radius: 999px; z-index: 2; }

/* Tabulka parcel */
.parcel-table__wrap { overflow-x: auto; }
.parcel-table { width: 100%; border-collapse: collapse; min-width: 900px; table-layout: fixed; }
/* šířky sloupců dle Figmy (Typ/E.č./P.č./Výměra/Cena/Stav/akce) */
.parcel-table th:nth-child(1), .parcel-table td:nth-child(1) { width: 9%; }
.parcel-table th:nth-child(2), .parcel-table td:nth-child(2) { width: 10%; }
.parcel-table th:nth-child(3), .parcel-table td:nth-child(3) { width: 12%; }
.parcel-table th:nth-child(4), .parcel-table td:nth-child(4) { width: 16%; }
.parcel-table th:nth-child(5), .parcel-table td:nth-child(5) { width: 15%; }
.parcel-table th:nth-child(6), .parcel-table td:nth-child(6) { width: 18%; }
.parcel-table th:nth-child(7), .parcel-table td:nth-child(7) { width: 20%; }
/* legenda: sand pozadí, 16px Light, spodní linka sand-line */
.parcel-table thead th { background: var(--c-sand-bg); text-align: left; color: var(--text); font-size: 16px; font-weight: 300; padding: 14px 16px; border-bottom: 1px solid #d3d0bc; }  /* Figma: 16px Light, sand-bg */
/* řádky: 18px, výška 64, spodní linka sand-line */
.parcel-table td { height: 64px; padding: 6px 16px; border-bottom: 1px solid #d3d0bc; font-size: 18px; font-weight: 300; vertical-align: middle; }  /* Figma: 18px Light, řádek 64 */
.parcel-table th:first-child, .parcel-table td:first-child { padding-left: 24px; }  /* Figma: Typ odsazení ~23 */
.parcel-table .num { font-weight: 600; }  /* Výměra, Cena SemiBold */
.parcel-table .ta-right { text-align: right; }
.btn--sm { padding: 8px 18px; font-size: 14px; gap: 8px; }
.btn--sm .icon { width: 18px; height: 18px; }
.is-disabled { opacity: 0.45; pointer-events: none; }
.parcel-table__empty { padding: 32px; text-align: center; color: var(--text-soft); }
/* kotva z mapy: řádek nesmí skončit pod sticky headerem */
.parcel-table tr[id^="seznam-parcela-"] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Zvýraznění řádku — decentní zelený nádech (brand, drží linku s mapou).
   .is-active = ukazovátko z mapy (hover/klik na parcelu), :hover = přímo nad řádkem. */
.parcel-table tbody tr { transition: background-color 0.2s var(--ease); }
.parcel-table tbody tr.is-active { background: rgba(111, 169, 68, 0.09); }
/* dojezd kotvy: krátké prosvětlení, ať je po scrollu vidět, kam se přistálo.
   Bez `forwards` — po doznění řádek spadne zpět na .is-active (stejný odstín → plynule),
   jinak by animace držela pozadí i po přesunu výběru na jinou parcelu. */
.parcel-table tbody tr.is-target { animation: rowFlash 2.4s var(--ease); }
@keyframes rowFlash {
  0%, 45% { background: rgba(111, 169, 68, 0.22); }
  100%    { background: rgba(111, 169, 68, 0.09); }
}
@media (hover: hover) {
  .parcel-table tbody tr:hover { background: rgba(111, 169, 68, 0.09); }
}

@media (max-width: 980px) {
  /* mobilní fallback: text nahoře, mapa pod ním (dopracuje se v mobile fázi) */
  .mapa-hero { display: flex; flex-direction: column; overflow: visible; }
  .mapa-hero__text { order: 1; padding: 24px 0 0; }
  .mapa-hero__text .h-display { font-size: clamp(30px, 6vw, 44px); line-height: 1.2; }
  /* Panel detailu je hover-driven → na dotyku nemá smysl. Zůstává jen mapa;
     klik na parcelu sjede na její kartu v seznamu dole (mapa.js → scrollToRow). */
  .mapa-hero__text .parcel-card { display: none; }
  .mapa-hero__map { position: static; order: 2; width: 100%; margin-top: 24px; }
  .split--map { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .filter-bar { grid-template-columns: 1fr; }
}

/* ---- Tabulka parcel → karty na mobilu (volba uživatele) ----
   Desktop tabulka zůstává 1:1; přepínáme ≤960px (sladěno s burger režimem — 7-sloupcová
   tabulka má min-width 900px, takže pod ~960 stejně vodorovně scrolluje). mapa.js skrývá
   řádky přes atribut [hidden], proto MUSÍME tr[hidden] explicitně vrátit na display:none —
   author `tr{display:block}` by jinak přebil UA pravidlo [hidden]{display:none}. */
@media (max-width: 960px) {
  .parcel-table__wrap { overflow-x: visible; }
  .parcel-table { min-width: 0; display: block; table-layout: auto; }
  .parcel-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }  /* hlavička jen pro čtečky */
  .parcel-table tbody { display: block; }
  .parcel-table tr {
    display: block;
    background: #fff;
    border: 1px solid var(--c-gray-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 4px 20px 18px;
    margin-bottom: 16px;
  }
  .parcel-table tr[hidden] { display: none; }
  /* Desktop rozvádí šířky sloupců přes td:nth-child(N){width:X%} (specificita 0,2,1) —
     na mobilu je MUSÍME resetovat, jinak škrtí buňky na procentní šířku (tlačítko 59px atd.). */
  .parcel-table td:nth-child(n) { width: auto; }
  .parcel-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: auto;
    min-height: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--c-sand-bg);
    font-size: 16px;
    text-align: left;
    white-space: nowrap;  /* čísla „2 180 900 Kč" se nesmí lámat na mezerách */
  }
  .parcel-table th:first-child, .parcel-table td:first-child { padding-left: 0; }  /* zruší desktop pl24 */
  .parcel-table td:first-child { display: none; }  /* Typ (vždy RD) = redundantní na kartě; zůstává v tabulce na desktopu + ve filtru */
  .parcel-table td::before {
    content: attr(data-label);
    font-weight: 300;
    color: var(--text-soft);
    flex: none;
  }
  .parcel-table td.num { font-weight: 600; }
  /* E. číslo → titulek karty „Parcela č. N" */
  .parcel-table td:nth-child(2) { padding-top: 14px; font-size: 22px; font-weight: 600; }
  .parcel-table td:nth-child(2)::before { content: "Parcela č."; font-size: 22px; font-weight: 600; color: var(--text); }
  /* Stav = poslední info řádek → bez spodní linky */
  .parcel-table td:nth-child(6) { border-bottom: 0; }
  /* akce = tlačítko přes celou šířku karty */
  .parcel-table td.parcel-table__action { display: block; padding: 0; border-bottom: 0; }
  .parcel-table td.parcel-table__action::before { display: none; }
  .parcel-table td.parcel-table__action:empty { display: none; }  /* prodané: žádné tlačítko → žádný prázdný blok */
  .parcel-table td.parcel-table__action .btn { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
  /* Karta je bílá, ne průhledná jako řádek tabulky → poloprůhledný highlight by ji „utopil“
     do béžového pozadí sekce. Proto tytéž odstíny předmíchané s bílou. */
  .parcel-table tbody tr.is-active { background: #f2f7ee; }
  .parcel-table tbody tr.is-target { animation-name: rowFlashCard; }
  @keyframes rowFlashCard {
    0%, 45% { background: #dfecd6; }
    100%    { background: #f2f7ee; }
  }
}
/* Tablet: karty ve 2 sloupcích (full-width karta by vypadala natažená) */
@media (min-width: 600px) and (max-width: 960px) {
  .parcel-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .parcel-table tr { margin-bottom: 0; }
  .parcel-table tr[hidden] { display: none; }  /* grid item taky musí zmizet při filtru */
}

/* ==========================================================================
   KONTAKT + GALERIE
   ========================================================================== */
.form-intro__firma { margin-top: 28px; font-style: normal; line-height: 1.6; color: var(--text-soft); font-size: 15px; display: flex; flex-direction: column; gap: 14px; }
.form-intro__firma strong { color: var(--text); font-weight: 600; font-size: 16px; }

.kontakt-fotky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kontakt-fotky .photo { height: auto; aspect-ratio: 4 / 3; }  /* .photo drží overflow+radius+zoom, wrapper poměr 4:3 */

/* Galerie mřížka */
.gallery-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.galerie-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; margin-top: 48px; }
.gal-item { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: var(--c-gray-bg); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item--big { grid-column: 2; grid-row: 1 / span 2; }
.gal-item--a { grid-column: 1; grid-row: 1; }
.gal-item--b { grid-column: 3; grid-row: 1; }
.gal-item--c { grid-column: 4; grid-row: 1; }
.gal-item--d { grid-column: 1; grid-row: 2; }
.gal-item--e { grid-column: 3; grid-row: 2; }
.gal-item--f { grid-column: 4; grid-row: 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 15, 8, 0.92); display: none; place-items: center; padding: 40px; }
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%;
  width: 52px; height: 52px; font-size: 30px; line-height: 1; display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 24px; right: 28px; font-size: 34px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

@media (max-width: 860px) {
  .gallery-head { grid-template-columns: 1fr; gap: 20px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  /* jako desktop, jen velká fotka až ve 2. řádku: řada 1 = 2 čtverce, řada 2 = velká na šířku, řady 3–4 = 2+2 čtverce */
  .gal-item--a   { grid-column: 1; grid-row: 1; }
  .gal-item--b   { grid-column: 2; grid-row: 1; }
  .gal-item--big { grid-column: 1 / -1; grid-row: 2; }
  .gal-item--c   { grid-column: 1; grid-row: 3; }
  .gal-item--d   { grid-column: 2; grid-row: 3; }
  .gal-item--e   { grid-column: 1; grid-row: 4; }
  .gal-item--f   { grid-column: 2; grid-row: 4; }
}
@media (max-width: 620px) {
  .kontakt-fotky { grid-template-columns: 1fr; }
  .lightbox__nav { width: 44px; height: 44px; }
}

/* ==========================================================================
   LOKALITA
   ========================================================================== */
.split--hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }

.lokalita-feature {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(36px, 5vw, 64px);
  color: #fff;
  background: url("../img/lokalita-louka.jpg") center / cover no-repeat;
  overflow: hidden;
}
/* tmavý gradient dole — bílý text v panelech drží kontrast */
.lokalita-feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.9) 100%);
}
.lokalita-feature .container { position: relative; z-index: 1; width: 100%; }
.lokalita-feature__grid { display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; }
.lokalita-feature__item { padding: 28px 26px 0; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.lokalita-feature__item:first-child { border-left: 0; padding-left: 0; }
.lokalita-feature__ic {
  display: block; width: 44px; height: 44px; margin-bottom: 18px;
  background-color: var(--c-sand-creme);
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
.lokalita-feature__item h3 { font-size: 20px; font-weight: 600; line-height: 1.25; min-height: 2.5em; margin-bottom: 8px; color: #fff; }
.lokalita-feature__item p { font-size: 16px; font-weight: 300; color: #fff; opacity: 0.9; line-height: 1.45; }

.section--intro { padding: 56px 0 0; }         /* Figma: text 56px pod feature blokem */
.section--flush-top { padding: 64px 0 0; }     /* Figma: 64px pod linkou intra */
.section--gap-lg { padding-top: 108px; padding-bottom: 0; }  /* Figma: 108px nad; dole navazuje „Proč bydlet" */
.rule { border: 0; border-top: 1px solid #d3d0bc; margin: 0 0 clamp(32px, 5vw, 56px); }  /* Figma sand-line */
.rule--after { margin: clamp(32px, 5vw, 56px) 0 0; }
.lokalita-intro { font-size: 18px; font-weight: 300; line-height: 1.33; max-width: 72ch; margin-inline: auto; text-align: center; }  /* Figma: 18px, leading 24px */
.lokalita-intro strong { font-weight: 600; }

/* Foto-sekce: bílý úvodní text + CTA (doc) — sedí dole nad kartami přes tmavý gradient */
.lokalita-feature__intro { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.lokalita-feature__lead { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.3; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 18px rgba(0, 0, 0, 0.5); }  /* čitelnost bez ztlumení fotky */
.lokalita-feature__intro .btn { margin-top: 24px; }

/* Centrovaný CTA (za intro blokem i v kontakt bandu) */
.btn-row--center { justify-content: center; }

/* Kontakt CTA band mezi sekcemi (centrovaný text, linka nahoře i dole) */
.section--cta-band { text-align: center; padding-bottom: 0; }  /* spodní linka + top padding „Proč bydlet" tvoří jediný gap */
.cta-band__text { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.35; max-width: 60ch; margin: 0 auto; }
.section--cta-band .btn-row { margin-top: 24px; }

.proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.proc-item { display: flex; gap: 20px; align-items: flex-start; }
.proc-item__ic { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-card); }
.proc-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.proc-item p { color: var(--text); font-weight: 300; line-height: 1.5; }  /* Figma: black */

@media (max-width: 960px) {
  .split--hero { grid-template-columns: 1fr; gap: 24px; }
  .proc-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Feature panely nad fotkou: 1 sloupec, na šířku (ikona vlevo, titulek + text vpravo) */
  .lokalita-feature__grid { grid-template-columns: 1fr; gap: 0; }
  .lokalita-feature__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    align-items: start;
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
  .lokalita-feature__item:first-child { border-top: 0; padding-top: 0; }
  .lokalita-feature__ic { grid-row: 1 / span 2; margin-bottom: 0; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
  .lokalita-feature__item h3 { grid-column: 2; min-height: 0; margin-bottom: 6px; }
  .lokalita-feature__item p { grid-column: 2; }
  /* Panely teď plní fotku shora dolů → text-shadow (jako hero) + plnější gradient = čitelnost i nad světlou částí */
  .lokalita-feature__item h3,
  .lokalita-feature__item p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 2px 16px rgba(0, 0, 0, 0.55); }
  .lokalita-feature::before { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.85) 100%); }
}

/* Přístupnost: respektuj sníženou animaci */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   EFEKTY — scroll reveal + button hover (vzor ekosvetlo)
   .js gate = progressive enhancement (bez JS se nic neschová)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(42px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translateX(-44px); }
.js [data-reveal="right"] { transform: translateX(44px); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal].je-videt { opacity: 1; transform: none; }

/* Button: hover lift + posun koncové ikony (chevron) + jemný glow u primary */
.btn:hover:not(:active) { transform: translateY(-2px); }
.btn .icon { transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary:hover { box-shadow: 0 12px 26px -12px rgba(111, 169, 68, 0.7); }

/* ==========================================================================
   FAQ — časté dotazy (nativní <details> accordion, AIO-friendly)
   ========================================================================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--c-white);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq__item.is-open { border-color: var(--c-green); box-shadow: var(--shadow-card); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--c-green-dark); }
.faq__chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--c-green);
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease);
}
.faq__item.is-open .faq__chevron { transform: rotate(-90deg); }
/* Plynulá animace přes grid-template-rows 0fr→1fr (bez per-frame JS reflow). */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 24px; /* jen horizontální — padding-bottom se přidá až v .is-open (čisté scvrknutí) */
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0;
  transition: opacity 0.2s var(--ease) 60ms, padding-bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.is-open .faq__a > p { opacity: 1; padding-bottom: 22px; }
@media (prefers-reduced-motion: reduce) {
  .faq__chevron, .faq__a, .faq__a > p { transition: none; }
}
@media (max-width: 640px) {
  .faq__q { padding: 16px 18px; font-size: 1rem; }
  .faq__a > p { padding-left: 18px; padding-right: 18px; }
  .faq__item.is-open .faq__a > p { padding-bottom: 18px; }
}

/* ==========================================================================
   Právní stránky (GDPR / cookies) — prose
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; }
.legal__eyebrow {
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.legal__title { margin-bottom: 20px; }
.legal__intro { font-size: 1.1rem; line-height: 1.65; color: var(--text-soft); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 12px; color: var(--text); }
.legal p { line-height: 1.7; color: var(--text-soft); margin-bottom: 14px; }
.legal ul { margin: 0 0 18px 1.2em; }
.legal li { line-height: 1.7; color: var(--text-soft); margin-bottom: 6px; }
.legal a:not(.btn) {
  color: var(--c-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:not(.btn):hover { color: var(--c-green); }
.legal__updated { font-size: 0.9rem; color: var(--c-muted); font-style: italic; margin: 28px 0; }
.legal .btn-row { margin-top: 8px; }

/* ==========================================================================
   Cookie lišta + gate Google Maps
   ========================================================================== */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.10);
  padding: 16px 0;
  animation: cookieUp 0.4s var(--ease);
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: none; } }
.cookie-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-bar__text { font-size: 0.92rem; line-height: 1.55; color: var(--text-soft); max-width: 720px; margin: 0; }
.cookie-bar__text strong { color: var(--text); }
.cookie-bar__text a { color: var(--c-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }
@media (max-width: 640px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-bar__actions .btn { flex: 1; justify-content: center; }
}

/* Consent overlay nad mapou — dokud uživatel nepovolí Google Maps */
.map-embed__consent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: var(--c-sand-bg);
}
.map-embed.is-loaded .map-embed__consent { display: none; }
.map-embed__consent-icon { width: 38px; height: 38px; color: var(--c-green); }
.map-embed__consent-text { color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; max-width: 320px; margin: 0; }

/* ---------------------------------------------------------------------------
   CookieScript report (/cookies/) — sladění cizího výpisu s webem.
   Skript si nese vlastní <style>, který se vkládá do body, tedy PO našem
   style.css. Se stejnou specificitou by vyhrál on → všechny selektory jedou
   přes `.cookie-report ._CookieScript…` (dvě třídy), aby přebily jeho jednu.
   Tabulka kopíruje typografii .parcel-table (16px Light hlavička na sand-bg,
   18px Light řádky, linky #d3d0bc).
--------------------------------------------------------------------------- */
.cookie-report { margin: 28px 0 36px; font-family: var(--font); }
.cookie-report * { font-family: var(--font); }

/* Řádek s kategoriemi + tlačítko Uložit */
.cookie-report ._CookieScriptReportPageCheckboxes {
  margin: 0 0 18px;
  gap: 12px 28px;
  align-items: center;
}
.cookie-report ._CookieScriptReportPageCheckbox { margin: 0; }
.cookie-report ._CookieScriptReportPageCheckboxLabel { gap: 10px; cursor: default; }
.cookie-report ._CookieScriptReportPageCheckboxInput {
  transform: none;          /* jejich scale(1.5) dělá rozmazaný checkbox */
  width: 18px;
  height: 18px;
  accent-color: var(--c-green);
  margin: 0;
}
.cookie-report ._CookieScriptReportPageCheckboxText {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
}

/* „Uložit" — vzhled .btn--primary */
.cookie-report ._CookieScriptReportPageSaveSettingButton {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cookie-report ._CookieScriptReportPageSaveSettingButton:hover { background: var(--c-green-dark); }
.cookie-report ._CookieScriptReportPageSaveSettingButton:active { transform: translateY(1px); }

/* ID souhlasu — technický údaj, drží se vzadu */
.cookie-report ._CookieScriptReportPageConsentKey {
  margin: 0 0 26px;
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  word-break: break-word;
}

/* Nadpis kategorie (h4 z jejich šablony) */
.cookie-report h4 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* Tabulka cookies — typografie .parcel-table */
.cookie-report ._CookieScriptReportPageTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: 15px;
}
.cookie-report ._CookieScriptReportPageTableTh {
  background: var(--c-sand-bg);
  text-align: left;
  color: var(--text);
  font-size: 15px;
  font-weight: 300;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #d3d0bc;
  white-space: nowrap;
}
.cookie-report ._CookieScriptReportPageTableTd {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #d3d0bc;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-soft);
  vertical-align: top;
}
.cookie-report ._CookieScriptReportVendorName { font-weight: 500; color: var(--text); }
.cookie-report ._CookieScriptReportVendorName a,
.cookie-report a { color: var(--c-green); text-decoration: underline; text-underline-offset: 2px; }

/* Mobil: 4 sloupce se do šířky nevejdou → vodorovný scroll jen tabulky,
   ať se nerozjede celá stránka (html/body mají overflow-x:hidden). */
@media (max-width: 720px) {
  .cookie-report ._CookieScriptReportPageTable { display: block; overflow-x: auto; white-space: nowrap; }
  .cookie-report ._CookieScriptReportPageTableTd { white-space: normal; min-width: 190px; }
}
