/* =====================================================================
   QR LINK – DIZAJNOVÝ SYSTÉM
   Paleta podľa predlohy: svetlé lila pozadie, tmavá fialová,
   kráľovská modrá → purpurový gradient na tlačidlách
   Typografia: Quicksand (nadpisy, zaoblená geometria) / Nunito (text)
   ===================================================================== */

/* Písma sú uložené priamo na webe (assets/fonts) – návštevník sa kvôli nim nepripája na servery Google. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/assets/fonts/fraunces-latin.woff2') format('woff2'); 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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2'); 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; }

:root {
  --paper:      #F4EFE4;   /* krémové pozadie */
  --paper-deep: #EDE9DB;
  --ink:        #24382B;   /* tmavá lesná zelená – text */
  --ink-soft:   #5C6B5E;
  --pine:       #396033;   /* primárna zelená (pilulky, ikony) */
  --pine-deep:  #1E3D2C;   /* audio lišta */
  --berry:      #C34A3A;   /* tehlová červená – akcent */
  --gold:       #D9A441;   /* zlatá – náučné chodníky */
  --line:       #E4DFCE;
  --card:       #FFFFFF;
  --pine-tint:  rgba(57,96,51,.1);
  --grad: linear-gradient(95deg, #396033 0%, #396033 100%);

  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --f-mono:    "Plus Jakarta Sans", system-ui, sans-serif;

  --radius: 20px;
  --shadow: 0 3px 10px rgba(36,56,43,.07), 0 16px 40px rgba(36,56,43,.09);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--pine); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------- HLAVIČKA --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* backdrop-filter vytvára containing block pre position:fixed potomkov (mobilné menu .nav) –
   kým je menu otvorené, vypneme ho, aby sa .nav vedelo roztiahnuť na celú obrazovku */
.site-header.menu-open { backdrop-filter: none; }
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.logo img { height: 36px; width: auto; display: block; }
.logo { display: flex; align-items: center; text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); padding: 8px 13px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-deep); color: var(--ink); }
.nav a.active { background: var(--grad); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-family: var(--f-mono); font-size: 13px; cursor: pointer;
}

.lang-switch { position: relative; display: flex; align-items: center; margin-left: 10px; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lang-current svg { width: 15px; height: 15px; transition: transform .15s; }
.lang-current:hover { background: var(--paper-deep); color: var(--ink); }
.lang-switch.open .lang-current svg { transform: rotate(180deg); }

.lang-menu {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 10;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 5px 3px; box-shadow: var(--shadow); min-width: 160px;
}
.lang-switch.open .lang-menu { display: flex; }
.lang-switch .lang-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body); background: none; border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px; cursor: pointer; text-align: left;
}
.lang-switch .lang-btn:last-child { border-bottom: none; }
.lang-switch .lang-btn:hover { background: var(--paper-deep); border-radius: 10px; }
.lang-badge {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-deep); color: var(--ink-soft);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  transition: background .15s, color .15s;
}
.lang-switch .lang-btn.active .lang-badge { background: var(--pine); color: #fff; }
.lang-name {
  font-size: 13.5px; color: var(--ink); border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.lang-switch .lang-btn.active .lang-name { border-color: var(--pine); }

@media (max-width: 780px) {
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; font-size: 0; position: relative;
    border: none; border-radius: 12px;
  }
  .nav-toggle::before {
    content: ""; width: 44px; height: 44px; border-radius: 50%;
    background: var(--pine-deep); flex-shrink: 0;
  }
  .nav-toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 2px; background: #fff; border-radius: 1px;
    box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff;
    transform: translate(-50%, -50%);
  }
  .nav-toggle.open::before {
    content: "\2715"; width: auto; height: auto; border-radius: 0;
    background: none; font-size: 19px; font-family: var(--f-body); color: var(--ink);
  }
  .nav-toggle.open::after { content: none; box-shadow: none; }

  .nav {
    display: none; position: fixed; top: 69px; left: 0; right: 0;
    max-height: calc(100vh - 69px - 64px);
    background: #fff; overflow-y: auto; z-index: 60;
    flex-direction: column; align-items: stretch; padding: 4px 20px 24px;
    border-radius: 0 0 22px 22px; box-shadow: 0 20px 40px rgba(36,56,43,.18);
  }
  .nav.open { display: flex; }
  .nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 2px; font-family: var(--f-body); font-weight: 700; font-size: 18px;
    color: var(--ink); background: none; border-radius: 0;
    border-bottom: 1px solid var(--line);
    -webkit-tap-highlight-color: transparent;
  }
  .nav a.active,
  .nav a:hover,
  .nav a:active,
  .nav a:focus { background: none; color: var(--ink); }
  .nav a::after {
    content: ""; flex: 0 0 auto; width: 9px; height: 9px;
    border-right: 2px solid var(--ink-soft); border-top: 2px solid var(--ink-soft);
    transform: rotate(45deg); opacity: .55;
  }

  /* jazykový prepínač na mobile – rad kruhových odznakov, vždy viditeľný (bez rozbaľovania) */
  .lang-switch { position: static; width: 100%; margin: 18px 0 0; }
  .lang-current { display: none; }
  .lang-menu {
    display: flex !important; position: static; flex-direction: row; flex-wrap: wrap;
    width: auto; min-width: 0; margin: 0; padding: 0;
    background: none; border: none; box-shadow: none; gap: 10px;
  }
  .lang-switch .lang-btn {
    flex: 0 0 auto; padding: 0; border-bottom: none; gap: 0;
  }
  .lang-switch .lang-btn:hover { background: none; }
  .lang-name { display: none; }
  .lang-badge { width: 44px; height: 44px; font-size: 13px; }
}

/* --------------------------------------------------------- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex; align-items: stretch;
  padding: 0;
}

/* ľavá textová časť */
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; align-items: center;
  padding-top: 64px; padding-bottom: 120px; /* extra spodok pre prekrytie mapou */
}

.hero-copy { max-width: 62%; }

.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(32px, 4.2vw, 62px);
  line-height: 1.07; letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.hero p.lead {
  color: #000000; margin: 0 0 28px;
  font-size: clamp(15px, 1.4vw, 17px); max-width: 48ch;
}

/* fotka – absolútna, pravých 62%, full-bleed, bez akýchkoľvek overlayov */
.hero-photo {
  position: absolute; top: 0; right: 0;
  width: 62%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* mobile – fotka ako banner nad textom */
@media (max-width: 820px) {
  .hero { min-height: auto; flex-direction: column; }
  .hero-photo {
    position: relative; width: 100%; height: 260px;
    order: -1;
  }
  .hero-photo img { object-position: center 30%; }
  .hero-inner { padding-top: 28px; padding-bottom: 40px; }
  .hero-copy { max-width: 100%; }
  /* .mapa-section .map-panel (2 triedy) kvôli poradiu v súbore prebije .map-panel { margin: -72px... } nižšie */
  .mapa-section .map-panel { margin-top: 24px; } /* na mobile bez prekrytia */
}
@media (max-width: 480px) {
  .hero-photo { height: 250px; }
}

.features { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.feature {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px; line-height: 1.3;
}
.f-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); color: var(--pine);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(69,58,102,.08);
}
.f-icon svg { width: 24px; height: 24px; }

/* ------------------------------------------------- MAPA (panel) --- */
.map-head {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.map-head h2 {
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  letter-spacing: -.01em; margin: 0;
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px;
  flex: 1 1 260px; max-width: 340px; color: var(--ink-soft);
}
.search svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: .5; }
.search input {
  border: 0; background: none; outline: none; width: 100%;
  font-family: var(--f-body); font-size: 15px; color: var(--ink);
}
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: baseline; }

.map-stats {
  z-index: 1000;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  justify-content: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 28px;
  max-width: 720px; margin: -34px auto 6px; position: relative;
}
@media (max-width: 780px) { .map-stats { display: none; } }
.stat { display: flex; align-items: center; gap: 12px; }
.stat .s-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); color: var(--pine);
  display: flex; align-items: center; justify-content: center;
}
.stat .s-icon svg { width: 20px; height: 20px; }
.stat b { font-family: var(--f-display); font-size: 19px; display: block; line-height: 1.1; }
.stat small { color: var(--ink-soft); font-size: 13.5px; }

.map-dot.dim { opacity: .18; }

/* ------------------------------------------------- MAPA (panel) --- */
.map-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(36,56,43,.13), 0 2px 8px rgba(36,56,43,.07);
  margin: -72px 0 20px; /* negatívny margin – panel "pláva" nad spodkom hero */
  padding: clamp(10px, 3vw, 28px);
  z-index: 10;
}
/* QR zameriavacie rožky */
.qr-corners::before, .qr-corners::after,
.qr-corners > .c3::before, .qr-corners > .c3::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--pine); pointer-events: none;
}
.qr-corners::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.qr-corners::after  { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.qr-corners > .c3::before { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.qr-corners > .c3::after  { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.map-panel svg { width: 100%; height: auto; display: block; }
.map-shape { fill: var(--paper-deep); stroke: var(--line); stroke-width: 2; }

.map-dot { cursor: pointer; }
.map-dot circle {
  r: 7; stroke: #fff; stroke-width: 2;
  transition: r .15s;
}
.map-dot:hover circle, .map-dot:focus circle { r: 10; }
.map-dot text {
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px;
  pointer-events: none; opacity: 0;
  transition: opacity .15s;
}
.map-dot:hover text, .map-dot:focus text { opacity: 1; }
@media (max-width: 640px) {
  .map-dot circle { r: 9; }
  .map-dot text { font-size: 19px; }
}

.map-legend {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  padding: 14px 6px 2px; border-top: 1px dashed var(--line); margin-top: 14px;
}
.map-legend span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-soft);
}
.map-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* ------------------------------------------------- VYHĽADÁVANIE --- */
.map-top { margin-top: -10px; }
.map-top-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 0;
}
.map-top-row h2 { margin: 0; }
.map-top .filters { margin-top: 40px; }
.map-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px;
  min-width: 220px; flex: 0 1 260px;
}
.map-search svg { width: 17px; height: 17px; color: var(--ink-soft); flex-shrink: 0; }
.map-search input {
  border: none; background: transparent; outline: none;
  font-family: var(--f-body); font-size: 14px; color: var(--ink);
  width: 100%;
}
.map-search input::placeholder { color: var(--ink-soft); }

/* ------------------------------------------------------- FILTRE --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 26px; }
.chip {
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all .15s;
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

/* --------------------------------------------------------- GRID --- */












.section-head h2 {
  font-family: var(--f-display); font-weight: 800; font-size: 28px;
  letter-spacing: -.02em; margin: 0;
}
.section-head .count {
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft);
}

/* -------------------------------------------------- BREADCRUMBS --- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 13.5px;
  padding: 18px 0 0;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.crumbs .sep { color: #4f4e4a; }
.crumbs .here { color: var(--ink-soft); font-weight: 400; }

/* ------------------------------------------- KATEGÓRIA / TRASA ---- */
.cat-hero {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding: 22px 0 10px; align-items: flex-start;
}
/* na mobile sa celý úvod (nadpis, popis, kategórie, štatistiky, fotka) skryje –
   hneď pod breadcrumbs je "Objavte miesta"/"Zastavenia" a mriežka/karty */
@media (max-width: 780px) { .cat-hero { display: none; } }
.cat-hero-text { flex: 1 1 420px; min-width: 280px; }
.cat-hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em;
  margin: 6px 0 10px;
}
.cat-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.cat-hero-photo {
  position: relative;
  flex: 1 1 460px; max-width: 100%; align-self: stretch;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: white; min-height: 360px; max-height: 360px;
}
.cat-hero-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.cat-hero-overlay {
  position: absolute; right: 18px; bottom: 18px; left: 18px;
  max-width: 320px; margin-left: auto;
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--pine-deep); color: #fff;
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cat-hero-overlay-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: none;
  display: flex; align-items: center; justify-content: center;
}
.cat-hero-overlay-icon svg { width: 40px; height: 40px; stroke: #b1a254; flex-shrink: 0; }
.cat-hero-overlay strong { display: block; font-family: var(--f-display); font-size: 15px; margin-bottom: 3px; }
.cat-hero-overlay p { margin: 0; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.85); max-width: none; }

/* dva pilulkové tlačidlá pod popisom – mapa + súhrn zastavení */
.cat-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.cat-map-btn { display: inline-flex; align-items: center; gap: 10px; }
.cat-map-btn svg { width: 17px; height: 17px; }
.cat-stat-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 10px 22px 10px 16px;
}
.cat-stat-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine-tint); display: flex; align-items: center; justify-content: center;
}
.cat-stat-icon svg { width: 16px; height: 16px; stroke: var(--pine); }
.cat-stat-pill strong { display: block; font-family: var(--f-body); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.cat-stat-pill small { display: block; font-size: 12px; color: var(--ink-soft); }

/* 3 štatistické karty na projektovej (koreňovej) stránke – lokality / zastavenia / inšpirácia */
.cat-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.cat-stat-card {
  display: flex; align-items: center; gap: 12px;
  background: #fbf9f3; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px;
}
.cat-stat-card svg { width: 32px; height: 32px; stroke: var(--ink); flex-shrink: 0; }
.cat-stat-card span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-soft); }
.cat-stat-card strong { font-family: var(--f-body); font-weight: 700; font-size: 16px; color: var(--ink); text-transform: lowercase; }
@media (max-width: 560px) { .cat-stats-row { grid-template-columns: 1fr; } }

/* 4-stĺpcový pruh s výhodami – len na stránke projektu (koreňa) */
.cat-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin: 44px 0 60px;
}
@media (max-width: 900px) { .cat-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .cat-features { grid-template-columns: 1fr; margin: 24px 0 40px; padding: 24px 22px; }
}
.cat-feature { display: flex; gap: 14px; align-items: flex-start; }
.cat-feature-icon {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background: var(--pine-tint); display: flex; align-items: center; justify-content: center;
}
.cat-feature-icon svg { width: 26px; height: 26px; stroke: var(--pine); }
.cat-feature strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.cat-feature p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* pilulky: primárna/ďalšie kategórie ALEBO počet zastavení/audio/galéria */
.cat-info {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-soft);
}
.cat-info-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
}
.cat-info-pill strong { color: var(--ink); font-weight: 700; }
.cat-info-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.cat-info-plain { display: inline-flex; align-items: center; gap: 6px; }
.cat-info-plain strong { color: var(--ink); font-weight: 700; }
.cat-info .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cat-map-btn { margin-top: 18px; }

.route { padding: 30px 0 70px; }
.route-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin: 0 0 18px;
}
.route-head h2 {
  font-family: var(--f-display); font-weight: 700; font-size: 34px;
  margin: 0; position: relative; padding-bottom: 10px;
}
.route-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 2px; background: var(--pine);
}

/* prepínač Karty / Zoznam */
#catViewToggle { display: flex; gap: 8px; }
.view-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-soft); border: 1px solid var(--line);
}
.view-toggle-btn svg { width: 16px; height: 16px; }
.view-toggle-btn.active { background: var(--pine); color: #fff; border-color: var(--pine); }
.view-toggle-btn:not(.active):hover { border-color: var(--pine); color: var(--pine); }

/* grid podkategórií – max 6 v riadku, karty v štýle .place-card */
.subcat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1100px) { .subcat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .subcat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .subcat-grid { grid-template-columns: 1fr; } }

.card-stops { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 10px; display: block; }
.card-footer .card-stops { margin: 0; display: inline; }

/* grid zastavení – max 5 v riadku, vždy všetky, žiadne skrývanie */
.stops-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1000px) { .stops-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .stops-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .stops-grid { grid-template-columns: 1fr; } }

.stop-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.stop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stop-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.stop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop-no {
  position: absolute; top: 10px; left: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--pine); color: #fff;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.stop-body h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 16px;
  margin: 0 0 6px; line-height: 1.25;
}
.stop-body p { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; flex: 1; line-height: 1.4; }
.stop-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.stop-qr {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-soft); white-space: nowrap;
}
.stop-qr svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.stop-arrow {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--pine); transition: background .15s;
}
.stop-card:hover .stop-arrow { background: var(--pine); color: #fff; border-color: var(--pine); }

/* zoznamové zobrazenie zastavení (prepínač Zoznam) */
.stops-list { display: flex; flex-direction: column; gap: 12px; }
.stop-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.stop-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--pine); }
.stop-row-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pine); color: #fff;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.stop-row-body { flex: 1; min-width: 0; }
.stop-row-body h3 { font-family: var(--f-display); font-weight: 600; font-size: 16px; margin: 0; }
.stop-row-body p { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 0; }
.stop-row .stop-qr { flex: 0 0 auto; }
.stop-row .stop-arrow { flex: 0 0 auto; }

/* navigácia späť na rodiča / na ďalšie miesto */
.cat-sibling-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; margin: 44px 0 60px;
}
.cat-sibling-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
}
.cat-sibling-link:hover { color: var(--pine); }
.cat-sibling-link strong { color: var(--ink); }
.cat-sibling-next { margin-left: auto; }
@media (max-width: 560px) {
  .cat-sibling-nav { padding: 20px 22px; margin: 24px 0 40px; }
  .cat-sibling-next { margin-left: 0; }
}

/* --------------------------------------------- DETAIL ZASTAVENIA -- */
.detail { padding-bottom: 70px; }

/* horná časť – foto+galéria vľavo (plávajúci blok), nadpis/audio/text vpravo;
   ak je textu viac než výška fota, pokračuje pod ním na celú šírku (text obteká float) */
.detail-top::after { content: ""; display: table; clear: both; }
.detail-top-media {
  float: left; width: 50%; max-width: 560px;
  margin: 20px 32px 24px 0;
}
.detail-top-media .detail-cover { margin: 0 0 18px; }
.detail-top-media .gallery-title { margin: 0 0 12px; font-size: 18px; }
.detail-top-media .gallery .g-strip img { height: 90px; }
.detail-top .detail-head { margin-top: 20px; }
@media (max-width: 860px) {
  .detail-top-media { float: none; width: 100%; max-width: none; margin: 20px 0 24px; }
  .detail-top .detail-head { margin-top: 0; }
}

.detail-cover {
  position: relative; margin: 20px 0 26px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.detail-cover-counter {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.55); color: #fff;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.detail-share-btn {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: none; border-radius: 999px; padding: 9px 16px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600; cursor: pointer;
}
.detail-share-btn svg { width: 15px; height: 15px; }
.detail-share-btn:hover { background: #fff; }

.detail h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em;
  margin: 8px 0 4px;
}
.detail-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.detail-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.detail-meta-line svg { width: 15px; height: 15px; flex-shrink: 0; }
.detail-meta-line .dot { color: var(--line); margin: 0 2px; }
.detail-meta-count {
  display: block; margin-top: 4px;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft);
}
/* text obteká plávajúcu fotku vľavo (jeden plynulý blok) a po jej výške pokračuje
   na celú šírku; bez 70ch stropu, lebo ten by sa počítal od okraja spoza fotky
   a text vedľa nej by bol oveľa užší než dostupný priestor */
.detail .text h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 24px;
  margin: 28px 0 8px; letter-spacing: -.01em;
}
.detail .text h2:first-child { margin-top: 0; }
.detail .text h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
  margin: 22px 0 6px; letter-spacing: -.01em;
}
.detail .text h4 {
  font-family: var(--f-body); font-weight: 700; font-size: 15px;
  margin: 18px 0 4px;
}
.detail .text p { color: var(--ink-soft); }
.detail .text strong { color: var(--ink); }
.detail .text img { display: block; margin: 6px auto; border-radius: 14px; box-shadow: var(--shadow); }
.detail .text .video-embed {
  position: relative; aspect-ratio: 16 / 9; margin: 16px 0 20px;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #000;
}
.detail .text .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail .text em { color: var(--ink-soft); font-size: 14px; }
.detail .text table {
  width: 100%; border-collapse: collapse; margin: 16px 0 20px;
  font-size: 14px; color: var(--ink-soft);
}
.detail .text th, .detail .text td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.detail .text th { color: var(--ink); font-weight: 700; background: var(--paper-deep); }
.detail .text tr:last-child td { border-bottom: 0; }
.text-h2-icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pine-tint); display: inline-flex; align-items: center; justify-content: center;
}
.text-h2-icon svg { width: 16px; height: 16px; stroke: var(--pine); }

/* audio prehrávač */
.player {
  display: flex; align-items: center; gap: 14px;
  background: var(--pine-deep); color: #fff;
  border-radius: 999px; padding: 10px 20px 10px 10px;
  margin: 22px 0; box-shadow: var(--shadow);
}
.player button {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: #fff; color: var(--pine-deep);
  display: flex; align-items: center; justify-content: center;
}
.player button.skip { width: 38px; height: 38px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.player button svg { width: 18px; height: 18px; }
.player .bar { position: relative; flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); cursor: pointer; }
.player .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--gold); }
.player .bar-handle {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.player .time { font-family: var(--f-mono); font-size: 12px; opacity: .85; white-space: nowrap; }
.player .volume-btn {
  width: 34px; height: 34px; background: transparent; color: #fff;
  border: none; box-shadow: none;
}
.player .volume-btn svg { width: 18px; height: 18px; }

/* fotogaléria */
.gallery-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  margin: 34px 0 14px;
}
.gallery { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; }
.gallery .g-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--pine);
}
.gallery .g-strip {
  display: flex; gap: 14px; flex: 1; padding: 4px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.gallery .g-strip::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  /* na mobile sa dá pás posúvať aj priamo prstom, šípky netreba */
  .gallery .g-arrow { display: none; }
  .gallery { gap: 0; }
}
.gallery .g-strip img {
  flex: 0 0 auto; width: 130px; height: 130px; object-fit: cover; border-radius: 12px;
  cursor: pointer; border: 2px solid transparent; transition: border-color .15s;
  scroll-snap-align: start;
}
.gallery .g-strip { scroll-snap-type: x proximity; }
.gallery .g-strip img:hover { border-color: var(--pine); }
/* aktívna miniatúra = fotka práve zobrazená hore v #dCover */
.gallery .g-strip img.active { border-color: var(--pine); box-shadow: 0 0 0 2px var(--pine-tint); }

/* GPS mapa + meta */
.gps-box { position: relative; margin: 30px 0 10px; }
.gps-box iframe {
  width: 100%; height: 380px; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gps-open-btn {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: var(--ink); text-decoration: none;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.gps-open-btn svg { width: 15px; height: 15px; }

/* dolná sekcia zastavenia – mapa vľavo, ďalšie zastavenia na trase vpravo */
.detail-bottom {
  display: grid; grid-template-columns: 380px 1fr; gap: 28px;
  align-items: stretch; margin: 36px 0 0;
}
.detail-bottom.detail-bottom-single { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .detail-bottom { grid-template-columns: 1fr; }
}
.detail-bottom-title {
  font-family: var(--f-display); font-weight: 700; font-size: 19px;
  margin: 0 0 16px; color: var(--ink);
}
.detail-bottom-map { display: flex; flex-direction: column; }
.detail-bottom-map .gps-box { margin: 0; flex: 1; min-height: 260px; }
.detail-bottom-map .gps-box iframe { height: 100%; }

.detail-bottom-next { min-width: 0; }
.stop-carousel { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.stop-carousel-track {
  display: flex; gap: 16px; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 2px;
}
.stop-carousel-track::-webkit-scrollbar { display: none; }
/* šírka karty = ako keby v riadku boli vždy presne 3 – pri 3 kartách sedia na celú šírku,
   pri menej ostávajú rovnako veľké (nezväčšujú sa), pri viac sa dá listovať šípkami */
.stop-carousel-track .stop-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.stop-carousel-arrow {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.stop-carousel-arrow svg { width: 18px; height: 18px; }
.stop-carousel-arrow:hover { background: var(--pine); color: #fff; border-color: var(--pine); }
.stop-carousel-arrow[hidden] { display: none; }
@media (max-width: 480px) {
  .stop-carousel-track .stop-card { flex-basis: 200px; }
}
.gps-open-btn:hover { color: var(--pine); }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; margin: 40px 0 60px;
}
.counter {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-family: var(--f-body); font-weight: 800; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .09em;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--pine); }

/* ------------------------------------------------------ KONTAKT --- */
.contact-grid {
  display: grid; gap: 22px; grid-template-columns: 1fr 1fr;
  padding: 26px 0 70px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; padding: 22px 0 30px; } }
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
}
.contact-card h3 { font-family: var(--f-display); font-weight: 600; margin: 0; }
.contact-card p { margin: 4px 0; color: var(--ink-soft); }
.contact-card .mono { font-family: var(--f-mono); font-size: 14px; }

.contact-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-card-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pine-tint); display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 22px; height: 22px; stroke: var(--pine); }

.contact-firma { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.contact-field { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--ink-soft); font-size: 14.5px; }
.contact-field svg { width: 17px; height: 17px; stroke: var(--ink-soft); flex-shrink: 0; margin-top: 1px; }
.contact-field.link svg { stroke: var(--pine); }
.contact-field.link a { color: var(--pine); font-weight: 600; text-decoration: none; }
.contact-field.link a:hover { text-decoration: underline; }
.contact-divider { border: none; border-top: 1px solid var(--line); margin: 20px 0 16px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--f-body); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--pine); }
.contact-form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-soft); opacity: .75; }

/* honeypot (neviditeľné pole pre roboty) a miesto pre Cloudflare Turnstile */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.captcha-host:empty { display: none; }
.captcha-host { min-height: 65px; }
.form-status.err { color: var(--berry); font-weight: 600; }
.contact-form button[disabled] { opacity: .65; cursor: default; transform: none; }
.fake-captcha {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--paper); font-size: 13.5px; color: var(--ink-soft);
}
.fake-captcha input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--pine); cursor: pointer; }
.fake-captcha .captcha-badge {
  margin-left: auto; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); opacity: .6;
}

.contact-submit { align-self: flex-start; border: none; cursor: pointer; }
.contact-submit svg { flex-shrink: 0; }
.form-status { margin: 0; font-size: 13.5px; min-height: 18px; }
.form-status.ok { color: var(--pine); font-weight: 600; }

/* kontaktný formulár na homepage – tmavá zelená karta pod zoznamom miest */
.home-contact-card {
  display: flex; flex-wrap: wrap; gap: 40px;
  background: var(--pine-deep); border-radius: var(--radius);
  padding: 44px 48px; margin: 10px 0 60px;
}
.home-contact-text { flex: 1 1 280px; color: #fff; }
.home-contact-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.home-contact-icon svg { width: 28px; height: 28px; stroke: #fff; }
.home-contact-text h2 {
  font-family: var(--f-display); font-weight: 700; font-size: 29px; line-height: 1.25;
  margin: 0; letter-spacing: -.01em;
}
.home-contact-accent {
  display: block; width: 56px; height: 3px; border-radius: 2px;
  background: var(--gold); margin: 18px 0;
}
.home-contact-text p { margin: 0; font-size: 15px; color: rgba(255,255,255,.7); max-width: 32ch; }
.home-contact-divider { flex: 0 0 auto; align-self: stretch; width: 1px; background: rgba(255,255,255,.18); }
.home-contact-form { flex: 2 1 480px; gap: 14px; }
.home-contact-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.home-consent { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.85); cursor: pointer; }
.home-consent-link { text-decoration: underline; }
.home-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative;
  width: 20px; height: 20px; padding: 0; box-sizing: border-box; flex-shrink: 0; margin: 0;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 5px;
  background: transparent; cursor: pointer;
}
.home-consent input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.home-consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid var(--pine-deep);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.home-contact-submit {
  background: var(--paper); color: var(--ink); border: none; cursor: pointer;
}
.home-contact-submit:hover { background: #fff; }
.home-contact-card .form-status { color: rgba(255,255,255,.85); }
.home-contact-card .form-status.ok { color: #d9f0c9; }
@media (max-width: 900px) { .home-contact-divider { display: none; } }

/* prístupnosť */
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }

/* ================================================= SEKCIA MIESTA === */
.places-head { margin: 52px 0 6px; }
.places-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.places-head-row h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em;
  margin: 0; color: var(--ink);
}
.places-sub { color: var(--ink-soft); margin: 0 0 24px; font-size: 15px; }

/* filtre s ikonkami */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line);
  transition: all .15s;
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.active { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip-icon {
  width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.chip-icon svg { width: 20px; height: 20px; }
.chip-icon svg { width: 18px; height: 18px; }

/* grid kariet */
.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .places-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .places-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .places-grid { grid-template-columns: 1fr; } }

/* karta miesta */
.place-card {
  background: var(--card); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: white;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.place-card:hover .card-photo img { transform: scale(1.04); }
/* erb / logo mesta (m.fotoErb) – celý, nezrezaný, nikdy nezväčšený nad
   vlastnú veľkosť (malé erby zo starého webu by sa rozmazali) */
.card-photo img.erb, .cat-hero-photo img.erb {
  object-fit: scale-down; padding: 18px; box-sizing: border-box;
}
.cat-hero-photo img.erb { padding: 32px; }


.card-cat-icon svg { width: 18px; height: 18px; color: var(--ink); }

.card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}
.card-body h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 17px;
  margin: 0 0 10px; line-height: 1.25; letter-spacing: -.01em;
}
.card-footer {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 8px;
  margin-top: auto;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.card-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--pine);
  transition: background .15s;
}
.place-card:hover .card-arrow { background: var(--pine); color: #fff; border-color: var(--pine); }

/* more button */
.more-wrap { display: flex; justify-content: center; margin: 36px 0 60px; }
.more-btn {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  padding: 14px 32px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--ink); cursor: pointer;
  transition: all .15s;
}
.more-btn:hover { border-color: var(--pine); color: var(--pine); }

/* farebný krúžok s ikonkou vo filtroch */
.chip-icon-circle {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* karta – ikonka je plná farba (definovaná inline), biela SVG */
.card-cat-icon {
  position: absolute; top: 10px; left: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.card-cat-icon svg { width: 17px; height: 17px; }

/* farebné tagy podľa kategórie */
.card-tag {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; border: 1px solid;
  display: inline-block;
}


/* ================================================= PATIČKA === */
/* ================================================= PATIČKA === */


/* Horná časť – 4 rovnaké stĺpce */


/* ------------------------------------------- LEAFLET MAPA --- */
.mapa-section { padding: 0 0 48px; scroll-margin-top: 84px; }
@media (max-width: 780px) { .mapa-section { padding: 0 0 30px; } }
.mapa-section .map-panel {
  position: relative;
  overflow: hidden;
}
/* Fade okraje mapy do pozadia */
#leaflet-map { position: relative; z-index: 1; }

/* Popup štýl */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
  font-family: var(--f-body) !important;
}
.leaflet-popup-tip { display: none; }

/* Zoom tlačidlá */
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}
.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 18px !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}
.leaflet-control-zoom a:hover { background: var(--paper-deep) !important; }

/* ---- LEAFLET úpravy ---- */
.leaflet-bottom.leaflet-right { display: none !important; }

#leaflet-map {
  max-width: 1180px;
  margin: 0 auto;
}

.mapa-section .map-panel {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}


/* ===== PATIČKA ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0 40px;
  padding-top: 36px; padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 900px) { .footer-benefits { grid-template-columns: 1fr 1fr; gap: 28px 32px; } }
@media (max-width: 560px) { .footer-benefits { grid-template-columns: 1fr; gap: 22px; } }

.footer-benefit { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; }
.footer-benefit svg {
  width: 42px; height: 42px; flex-shrink: 0;
  stroke: var(--pine); stroke-width: 1.4; fill: none;
}
.footer-benefit strong {
  display: block; font-family: var(--f-display);
  font-weight: 700; font-size: 16px;
  margin-bottom: 4px; color: var(--ink);
}
.footer-benefit p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* Footer bottom – logo | copyright | QR LINK + sociálne */
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--ink-soft);
}
@media (max-width: 600px) {
  .footer-bottom { justify-content: center; text-align: center; }
}
.footer-bottom-right {
  display: flex; align-items: center; gap: 16px;
}
.footer-bottom-right > span { font-size: 13px; color: var(--ink-soft); }
.footer-bottom .footer-logo img,
.footer-logo img { height: 42px; width: auto; display: block; }
.logo img { height: 42px; width: auto; display: block; }

/* Sociálne siete – outline kruhy v bottom liste */
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.social-links a:hover { border-color: var(--pine); color: var(--pine); }

h1 .herogreen { color: #5c7159;  }

/* ------------------------------------------- CHYBOVÁ STRÁNKA 404 --- */
.err-page { text-align: center; padding: 64px 0 90px; max-width: 760px; margin: 0 auto; }
.err-code {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--f-display); font-weight: 800; color: var(--pine);
  font-size: clamp(88px, 18vw, 150px); line-height: 1; letter-spacing: -.04em;
}
.err-code svg { width: .62em; height: .62em; stroke: var(--berry); flex-shrink: 0; }
.err-page h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 14px 0 10px; }
.err-text { color: var(--ink-soft); max-width: 54ch; margin: 0 auto 26px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-suggest { margin: 38px auto 0; text-align: left; max-width: 560px; }
.err-suggest[hidden] { display: none; }
.err-suggest h2 { font-family: var(--f-display); font-size: 18px; margin: 0 0 10px; }
.err-suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.err-suggest a {
  display: block; padding: 12px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.err-suggest a:hover { border-color: var(--pine); color: var(--pine); }
.err-suggest a small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; }

/* Zásady ochrany osobných údajov + odkaz v pätičke + súhlas pod formulárom Kontakt */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.legal h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal h2 { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--pine); text-decoration: underline; }
.legal-date { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; }
.footer-privacy { font-size: 13px; color: var(--ink-soft); text-decoration: underline; padding: 10px 4px; }
.footer-privacy:hover { color: var(--pine); }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; margin: 4px 0 12px; }
.contact-form .contact-consent input { flex: 0 0 auto; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--pine); }
.contact-consent > span { flex: 1 1 auto; }
.contact-consent a { color: var(--pine); text-decoration: underline; }

/* Mobil: väčšie plochy na ťuknutie (odkazy v omrvinkovej navigácii, Zdieľať, hlasitosť) */
@media (max-width: 780px) {
  .crumbs a { padding: 9px 2px; margin: -9px 0; }
  .cat-sibling-link { padding: 11px 0; }
  .detail-share-btn { padding: 12px 18px; }
  .player .volume-btn { width: 40px; height: 40px; }
  /* písmo polí aspoň 16 px, inak iPhone pri ťuknutí do poľa stránku približuje */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, .contact-form textarea, select { font-size: 16px; }
  #contactData a { display: inline-block; padding: 7px 0; }
}
