html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--dark-grey);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
a:hover {
  color: var(--primary-green);
}
/* Horní lišta */
.top-bar {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  font-size: 13px;
  color: #666;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}
.top-icons span {
  margin-right: 15px;
}
.top-icons i {
  color: var(--primary-green);
  margin-right: 5px;
}

/* Navigace */
header {
  background: white;
  padding: 20px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  position: relative;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo span {
  color: var(--primary-green);
}
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.menu a {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.menu a.active {
  color: var(--primary-green);
}
/* Obsah stránky */
.content-area {
  flex: 1;
  background: var(--light-bg);
  padding: 40px 0;
}
.page-title {
  text-align: center;
  margin-bottom: 30px;
}
.page-title h1 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  letter-spacing: 2px;
}
.separator {
  height: 2px;
  width: 50px;
  background: var(--primary-green);
  margin: 15px auto;
}

/* Mapa */
#map-container {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  background: #e0e0e0;
  border: 5px solid white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Tlačítka GeoJSON */
.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 25px;
}
.geo-btn {
  background-color: white;
  border: 2px solid var(--primary-green);
  color: var(--dark-grey);
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.geo-btn:hover {
  background-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Vlastní styl markerů na mapě */
.custom-map-marker {
  background-color: var(--primary-green);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.custom-map-marker:hover {
  transform: scale(1.1);
  background-color: #5e7a3b;
  z-index: 1000 !important;
}
/* Patička */
footer {
  background-color: #222;
  color: #aaa;
  padding: 60px 0 20px;
  font-size: 14px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  background-color: #222;
}
.footer-col h4 {
  color: white;
  text-transform: uppercase;
  margin-top: 0;
  letter-spacing: 1px;
  font-family: var(--font-head);
  background-color: #222;
}
.footer-col p {
  line-height: 1.6;
  margin-bottom: 10px;
  background-color: #222;
}
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 12px;
  background-color: #222;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .nav-flex {
    flex-direction: column;
    gap: 20px;
  }
  .menu {
    flex-direction: column;
    gap: 10px;
  }
  #map-container {
    height: 400px;
    min-height: auto;
  }
  .video-hero h1 {
    font-size: 10vw !important;
    letter-spacing: 1px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}
:root {
  --primary-green: #7da14f;
  --dark-grey: #333333;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

/* Kontejner pro video na pozadí a nadpis */
.video-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

/* Styl videa - přes celou šířku a výšku kontejneru */
.video-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Překrytí (overlay) pro lepší čitelnost textu */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Styl nadpisu */
.video-hero h1 {
  position: relative;
  z-index: 3;
  color: white;
  font-family: var(--font-head);
  font-size: 4em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 5px;
}

/* Nový styl pro nadpis galerie přes celou šířku */
.full-width-title {
  text-align: center;
  padding: 30px 15px;
  background-color: white;
  margin-bottom: 30px;
}
.full-width-title h2 {
  font-family: var(--font-head);
  color: var(--dark-grey);
  margin: 0;
}
.full-width-title .separator {
  margin: 10px auto 15px;
}

/* Sekce pro galerii - ZAROVNÁNÍ NA STŘED */
.container-gallery {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.galerie-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
  /* Přidáno pro zarovnání na střed, pokud mřížka nezabírá celou šířku */
  justify-content: center;
}

/* STYL HORIZONTÁLNÍHO SCROLLU PRO FOTKY - ZAROVNÁNÍ NA STŘED */
.horizontal-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 20px;
  margin-bottom: 30px;
  text-align: center; /* Zde se zarovná na střed, pokud je obsah menší než kontejner */
}

.photo-grid {
  display: inline-flex;
  gap: 20px;
  padding: 0 15px;
  /* Nastaveno pro centrování, ale v praxi u horizontal scrollu funguje hůře, proto použijeme margin */
}

/* NOVÝ STYL: VIDEO PÁSY - ZAROVNÁNÍ NA STŘED */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin: 30px auto 50px auto; /* Auto margin pro Grid zarovnání na střed */
  max-width: 900px; /* Omezení šířky pro lepší centrování videí */
}

.galerie-item {
  display: inline-block;
  width: 300px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  overflow: hidden;
  white-space: normal;
  cursor: pointer; /* Naznačení rozkliknutí */
}

/* PŘIřazení: Pro video položky (které jsou v Gridu), nechceme pevnou šířku */
.video-grid .galerie-item {
  width: auto;
}

.placeholder {
  height: 250px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  overflow: hidden;
}

/* Styl pro obrázky uvnitř placeholderu */
.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galerie-item:hover .placeholder img {
  transform: scale(1.05);
}

.galerie-item p {
  padding: 15px;
  font-weight: 600;
  margin: 0;
}

/* STYLY PRO ŠIPKU zůstávají beze změny */
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: white;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
  animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
  color: var(--primary-green);
}

/* Definice animace pro šipku */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -15px);
  }
  60% {
    transform: translate(-50%, -7px);
  }
}

/* --- STYLY PRO MODALNÍ OKNO (Zvětšení fotky) --- */
.modal {
  display: none; /* Skryto ve výchozím nastavení */
  position: fixed;
  z-index: 1001; /* Nad vším ostatním */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Černá s průhledností */
}
.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1002;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* --- OPRAVA A ŠTÝLOVANIE MAPY --- */

/* 1. Oprava chýbajúcej ikonky Fullscreen pomocou FontAwesome */
.leaflet-control-fullscreen a {
  background-image: none !important; /* Skryje pôvodný (nefunkčný) obrázok */
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaflet-control-fullscreen a::before {
  content: "\f065"; /* Kód ikonky 'expand' z FontAwesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  color: #333;
}

/* 2. Krajší dizajn prepínača vrstiev */
.leaflet-control-layers {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 10px !important;
  font-family: "Montserrat", sans-serif;
}
.leaflet-control-layers-toggle {
  width: 44px !important;
  height: 44px !important;
}
.leaflet-control-layers-expanded {
  padding: 15px !important;
  background: white;
  color: #333;
}
.leaflet-control-layers label {
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.leaflet-control-layers-base label:last-child {
  margin-bottom: 0;
}
/* Zväčšenie rádio buttonov */
.leaflet-control-layers input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: var(--primary-green, #7da14f);
}

/* --- ŠTÝLOVANIE MAPY --- */

/* 1. Štýl pre naše vlastné fullscreen tlačidlo */
.custom-fullscreen-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: white;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.custom-fullscreen-link svg {
  width: 16px;
  height: 16px;
  fill: #333; /* Farba ikonky */
  transition: transform 0.2s;
}

.custom-fullscreen-link:hover svg {
  fill: #000;
  transform: scale(1.1);
}

/* 2. Krajší dizajn prepínača vrstiev */
.leaflet-control-layers {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 10px !important;
  font-family: "Montserrat", sans-serif;
}
.leaflet-control-layers-toggle {
  width: 44px !important;
  height: 44px !important;
}
.leaflet-control-layers-expanded {
  padding: 15px !important;
  background: white;
  color: #333;
}
.leaflet-control-layers label {
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.leaflet-control-layers-base label:last-child {
  margin-bottom: 0;
}
.leaflet-control-layers input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: var(--primary-green, #7da14f);
}
