.hero--obyvatel {
  background: url('../assets/img/hero-obyvatel.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero--obyvatel .hero__inner {
  background-color: rgba(50,50,50,0.6);
  padding: 1.5em 2em;
  border-radius: 8px;
  text-align: center;
}
@media (max-width: 768px) {
  .hero--obyvatel {
    justify-content: end;
  }
  .hero--obyvatel .hero__inner {
    padding: 0.5em 0.5em;
  }
}
.hlaseni-karta {
  background: #f9f9f9;
  padding: 1.1em;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border-left: 5px solid  var(--color-obyvatel);
  border-right: 5px solid  var(--color-obyvatel);
  border-top: 1px solid  var(--color-obyvatel);
  border-bottom: 1px solid  var(--color-obyvatel);
}

.hlaseni-karta:hover {
  transform: translateY(-4px);
}

.hlaseni-karta a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hlaseni-karta h3 {
  margin-top: 0.5em;
  font-size: 1.2em;
  color: #222;
}

.hlaseni-karta time {
  font-size: 0.9em;
  color: #666;
  display: block;
  margin-bottom: 0.4em;
}

.hlaseni-karta p {
  font-size: 1em;
  color: #444;
}


.hlaseni-text {
  font-size: 1em;
  color: #444;
  margin-bottom: 0.8em;
}

.hlaseni-link {
  font-weight: bold;
  text-decoration: none;
  color:  var(--barva-obyvatel);
  transition: color 0.3s ease;
}

.hlaseni-link:hover {
  opacity: 0.8;
}
.obyvatel-vse-btn {
  text-align: center;
  margin-top: 2em;
}
.hero-hlaseni {
  background: url('/wp-content/themes/francovalhota/assets/img/hlaseni-hero.jpg') center/cover no-repeat;
  height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-hlaseni .hero-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2em;
  margin-bottom: 2em;
  border-radius: 8px;
}

.hlaseni-vypis {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 1em;
}
.btn-obyvatel {
  display: inline-block;
  background:  var(--color-obyvatel);
  color: var(--color-obyvatel-light);
  padding: 0.8em 1.6em;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-obyvatel:hover {
  background:  var(--color-obyvatel-light);
  color:  var(--color-obyvatel);
}
nav.pagination,
.strankovani .navigation.pagination {
  text-align: center;
  margin-top: 3em;
}

.page-numbers {
  display: inline-block;
  margin: 0 0.4em;
  padding: 0.6em 1.1em;
  background-color: #eee;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-numbers:hover {
  background-color: var(--color-obyvatel);
  color: white;
}

.page-numbers.current {
  background-color: var(--color-obyvatel);
  color: white;
  pointer-events: none;
}


/* Graf wrapper bude flexbox pro přizpůsobení obsahu */
.chart-wrapper {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Canvas by měl zabírat plnou šířku kontejneru */
.chart-wrapper canvas {
  width: 100% !important;
  height: auto !important;
   max-height: 600px;
}

/* Obrázky (potok) také responzivně */
.chart-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}