/* ===== OPTIMALIZOVANÝ STYLE.CSS - De la Corte Magica ===== */

/* Reset a základní nastavení */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #d4af37;
  background: url('img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #000000;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* ===== HEADER & NAVIGACE ===== */
/* --- Úprava existujícího .logo (textové i s obrázkem) --- */
header .logo a { /* Zaměřujeme se na odkaz uvnitř .logo, který obaluje img i text */
    display: flex; /* Použijeme flexbox */
    align-items: center; /* Zarovnáme svisle na střed (logo a text budou vedle sebe) */
    text-decoration: none; /* Odstranit podtržení odkazu */
    color: #d4af37; /* Barva textu */
    font-size: 1.8em; /* Velikost textu */
    font-family: 'Cinzel', serif; /* Font */
    white-space: nowrap; /* Zabrání zalomení textu */
}

header .logo {
    /* Dovolí tomuto bloku se zmenšit */
    flex-shrink: 1;
    
    /* Povolí zmenšení i pod "přirozenou" šířku obsahu (textu) */
    min-width: 0; 
    
    /* Zajistí, že se blok loga nebude snažit být zbytečně velký */
    flex-basis: auto;
}

/* --- Styly pro logo obrázek v hlavičce (header) --- */
.header-logo {
    height: 50px; /* Pevná výška loga */
    width: auto; /* Šířka se přizpůsobí, aby se zachoval poměr stran */
    max-width: 150px; /* Maximální šířka, aby nebylo příliš velké */
    margin-right: 10px; /* Mezera mezi logem a textem */
    display: block; /* Pro jistotu */
}


/* --- Celkový header (pro zarovnání s nav) --- */
header {
    display: flex; /* Aby logo s textem a nav menu byly vedle sebe */
    justify-content: space-between; /* Roztáhne logo/text doleva a menu doprava */
    align-items: center; /* Vertikálně zarovná vše na střed */
    padding: 10px 20px; /* Trocha odsazení v headeru */
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding: 5px 0;
}

nav a:hover {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: #d4af37;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(5px);
}

.menu-toggle.is-active .hamburger {
  background-color: transparent;
}

.menu-toggle.is-active .hamburger::before {
  transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== HERO SEKCE ===== */
.hero-intro {
  min-height: 70vh;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(17,17,17,0.2) 50%, rgba(26,26,26,0.15) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  position: relative;
  padding: 40px 20px;
}

.hero-intro::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212,175,55,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  padding: 20px 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 280px;
  height: auto;
  
}

.hero-intro h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-family: "Cinzel", serif;
  color: #ffd700;
  margin-bottom: 15px;
}

.hero-intro p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #d4af37;
  margin-bottom: 25px;
}

/* ===== TLAČÍTKA ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid #d4af37;
}

.btn:hover {
  background: #ffd700;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  background: transparent;
  color: #ffd700;
  border: 2px solid #d4af37;
  padding: 8px 15px;
}

.back-btn:hover {
  background: #d4af37;
  color: #000;
  transform: translateY(-2px);
}

.btn-gallery {
  display: inline-block;
  padding: 5px 15px;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 1px solid #d4af37;
  margin-left: auto; /* This will push the button to the right */
}

.btn-gallery:hover {
  background: #ffd700;
  border-color: #ffd700;
  transform: translateY(-1px);
}

/* ===== SEKCE ===== */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h1,
section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: "Cinzel", serif;
  color: #ffd700;
}

section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

section p {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
}

/* ===== PLEMENA SEKCE ===== */
.breeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.breed-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.breed-link:hover {
  transform: translateY(-5px);
}

.breed {
  background: rgba(17, 17, 17, 0.9);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.breed:hover {
  border-color: #ffd700;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.breed h2 {
  color: #ffd700;
  margin-bottom: 20px;
}

.breed img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 15px;
  display: block;
}

/* ===== PSI - KARTY ===== */
.dogs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dog-card {
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid #d4af37;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dog-card:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.dog-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.3s;
  display: block
}

.dog-info {
  padding: 20px;
  flex-grow: 1;
}

.dog-info h3 {
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
  color: #ffd700;
}

.dog-info p {
  text-align: left;
  margin: 8px 0;
}

/* ===== PROFIL PSA ===== */
.dog-profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.dog-profile-header img {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #d4af37;
}

.dog-details {
  flex: 1;
  min-width: 250px;
}

.dog-details p {
  margin: 10px 0;
  text-align: left;
}

/* ===== RODOKMEN STYLY ===== */
    /* Responzivní rodokmen pomocí CSS Grid */
    .pedigree-container {
      background: rgba(0, 0, 0, 0.6);
      padding: 30px 15px;
      border-radius: 10px;
      margin: 50px auto;
      overflow-x: auto;
    }

    .pedigree-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
      max-width: 1200px;
      margin: 0 auto;
      min-width: 600px;
    }

    .pedigree-box {
      background: rgba(17, 17, 17, 0.95);
      border: 2px solid #d4af37;
      border-radius: 8px;
      padding: 15px;
      text-align: center;
      position: relative;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
      color: #d4af37; /* Default text color for pedigree box */
    }

    .pedigree-box.main {
      grid-column: 1;
      grid-row: 3 / 5;
      background: rgba(212, 175, 55, 0.1);
      border-color: #ffd700;
      border-width: 3px;
      align-self: center;
    }

    .pedigree-box.parent {
      grid-column: 2;
    }

    .pedigree-box.parent:nth-of-type(2) {
      grid-row: 2 / 4;
    }

    .pedigree-box.parent:nth-of-type(3) {
      grid-row: 5 / 7;
    }

    .pedigree-box.grandparent {
      grid-column: 3;
    }

    .pedigree-box.grandparent:nth-of-type(4) {
      grid-row: 1 / 3;
    }

    .pedigree-box.grandparent:nth-of-type(5) {
      grid-row: 3 / 5;
    }

    .pedigree-box.grandparent:nth-of-type(6) {
      grid-row: 5 / 7;
    }

    .pedigree-box.grandparent:nth-of-type(7) {
      grid-row: 7 / 9;
    }

    .pedigree-box.great-grandparent {
      grid-column: 4;
    }

    .pedigree-box.great-grandparent:nth-of-type(8) { grid-row: 1; }
    .pedigree-box.great-grandparent:nth-of-type(9) { grid-row: 2; }
    .pedigree-box.great-grandparent:nth-of-type(10) { grid-row: 3; }
    .pedigree-box.great-grandparent:nth-of-type(11) { grid-row: 4; }
    .pedigree-box.great-grandparent:nth-of-type(12) { grid-row: 5; }
    .pedigree-box.great-grandparent:nth-of-type(13) { grid-row: 6; }
    .pedigree-box.great-grandparent:nth-of-type(14) { grid-row: 7; }
    .pedigree-box.great-grandparent:nth-of-type(15) { grid-row: 8; }

    /* Gender-specific colors removed, inheriting from .pedigree-box */
    .pedigree-box.male {
      /* border-color: #4a9eff; */
      /* background: #f0f8ff; */
    }

    /* Gender-specific colors removed, inheriting from .pedigree-box */
    .pedigree-box.female {
      /* border-color: #ff6b9d; */
      /* background: #fff0f5; */
    }

    .pedigree-name {
      font-weight: bold;
      color: #d4af37; /* Changed to gold */
      margin-bottom: 8px;
      font-size: 0.95rem;
    }

    .pedigree-info {
      font-size: 0.8rem;
      color: #d4af37; /* Changed to gold */
      line-height: 1.4;
    }

    .gender-symbol {
      font-size: 1.2rem;
      margin-right: 5px;
    }

    .male .gender-symbol {
      color: #4a9eff;
    }

    .female .gender-symbol {
      color: #ff6b9d;
    }

    @media (max-width: 768px) {
      .pedigree-grid {
        min-width: 500px;
      }

      .pedigree-box {
        padding: 10px;
      }

      .pedigree-name {
        font-size: 0.85rem;
      }

      .pedigree-info {
        font-size: 0.7rem;
      }
    }

    .parents-container {
      display: flex;
      justify-content: space-around;
      gap: 15px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 2px solid #d4af37;
      position: relative;
      width: 100%;
    }

    #pedigree-chart {
      display: flex;
      flex-direction: column;
      align-items: center;
    }


/* ===== RODOKMEN SVG ===== */
.pedigree-svg {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 15px;
  border-radius: 10px;
  margin: 50px auto;
  overflow-x: auto;
}

.pedigree-svg h2 {
  margin-bottom: 30px;
}

.pedigree-svg svg {
  max-width: 100%;
  height: auto;
}

.pedigree-svg svg rect {
  fill: #fff;
  stroke: #d4af37;
  stroke-width: 2;
}

.pedigree-svg svg rect.main-dog {
  fill: #fffbe6;
  stroke: #ffd700;
  stroke-width: 3;
}

.pedigree-svg svg rect.male {
  stroke: #4a9eff;
}

.pedigree-svg svg rect.female {
  stroke: #ff6b9d;
}

.pedigree-svg svg text {
  font-size: 11px;
  fill: #000;
  font-weight: 500;
}

/* ===== ÚSPĚCHY ===== */
.achievements ul {
  list-style: none;
  max-width: 600px;
  margin: 20px auto;
}

.achievements li {
  background: rgba(17, 17, 17, 0.8);
  padding: 3px 15px;
  margin: 1px 0;
  border-left: 4px solid #d4af37;
  border-radius: 4px;
  display: flex; /* Use flexbox */
  justify-content: space-between; /* Space between text and button */
  align-items: center; /* Vertically align items */
}

/* ===== FOTOGALERIE ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.photo-item,
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

.photo-item:hover,
.gallery-item:hover {
  transform: scale(1.05);
}

.photo-item img,
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #d4af37;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2001;
}

.lightbox-close:hover {
  color: #ffd700;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: #d4af37;
  font-weight: bold;
  font-size: 30px;
  transition: all 0.3s;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(212, 175, 55, 0.3);
  color: #ffd700;
}

/* ===== TIMELINE ===== */
.timeline-section {
  margin-top: 60px;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #d4af37;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #d4af37;
  border: 4px solid #000;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid #d4af37;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.timeline-item.past .timeline-content {
  border-left: 5px solid #28a745;
}

.timeline-item.future .timeline-content {
  border-left: 5px solid #ffc107;
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
  color: #ffd700;
  font-size: 1.2rem;
}

.timeline-content p {
  margin: 8px 0;
  text-align: left;
}

.timeline-content a {
  color: #d4af37;
  text-decoration: underline;
}

.timeline-content a:hover {
  color: #ffd700;
}

/* ===== NOVINKY ===== */
.news-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.news-card {
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid #d4af37;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.news-card-image {
    /* Přidáme pozadí sem, aby černé pruhy nebyly průhledné */
    background-color: #000; 
}

.news-card-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
}

.news-card-image a:hover img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

.news-card-title {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.news-card-title a {
  text-decoration: none;
  color: #ffd700;
  transition: color 0.3s;
}

.news-card-title a:hover {
  color: #fff;
}

.news-card-excerpt {
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

/* ===== KONTAKTNÍ FORMULÁŘ ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 30px auto;
}

.contact-form label {
  font-weight: bold;
  color: #ffd700;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #d4af37;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(17, 17, 17, 0.8);
  color: #ffd700;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.contact-form button {
  padding: 12px;
  border: none;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.contact-form button:hover {
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* ===== MAPA ===== */
.map-container {
  margin: 30px auto;
  max-width: 100%;
  border: 2px solid #d4af37;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.address-box {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #d4af37;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* ===== PATIČKA ===== */
footer {
  text-align: center;
  padding: 15px 20px;
  background: rgba(17, 17, 17, 0.95);
  color: #d4af37;
  margin-top: 40px;
  border-top: 1px solid #d4af37;
}

/* ===== RESPONSIVITA - TABLET ===== */
@media (max-width: 1024px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 70px !important;
    padding-right: 20px !important;
  }

  .timeline-item::after {
    left: 20px !important;
  }

  .news-card {
    flex-direction: column;
  }
}

/* ===== RESPONSIVITA - MOBIL ===== */
@media (max-width: 768px) {
  .menu-toggle {
        display: block; /* Řekne hamburgeru, aby se zobrazil */
    }
  .header-logo {
        height: 40px; /* Menší logo na mobilu */
        max-width: 120px;
        margin-right: 8px; /* Menší mezera na mobilu */
    }
    
    header .logo a {
        font-size: 1em; /* Menší text na mobilu */
        white-space: normal;
    }

    header {
        padding: 10px 15px; /* Menší padding na mobilu */
    }


  /* --- Přepnutí 3 tlačítek pod sebe na mobilu --- */
   .button-container-trio {
        flex-direction: column;  /* Na mobilu pod sebe */
        gap: 15px;               /* Menší mezera na mobilu */
        margin-top: 30px;
        margin-bottom: 30px;
        max-width: 90%;          /* Na mobilu zmenšíme max-width, aby nebyla tlačítka moc široká */
    }
    
    /* Navíc, pokud chceš, aby tlačítka na mobilu vyplňovala celou šířku kontejneru */
    .button-container-trio .btn {
        width: 100%; 
        max-width: 300px; /* Aby nebyla zase až moc široká na obřích mobilech */
    }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.98);
    padding-top: 80px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.is-active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 15px;
  }

  /* Fixed header & footer na mobilu */
  header {
    position: fixed;
    width: 100%;
    top: 0;
  }

  body {
    padding-top: 60px;
  }

  /* Sekce */
  section {
    padding: 40px 15px;
  }

  /* Hero */
  .hero-intro {
    min-height: 50vh;
    padding: 30px 15px;
  }

  .hero-logo {
    max-width: 200px;
  }

  /* Plemena */
  .breeds {
    grid-template-columns: 1fr;
  }

  /* Psi */
  .dogs-container {
    grid-template-columns: 1fr;
  }

  /* Profil psa */
  .dog-profile-header {
    flex-direction: column;
    align-items: center;
  }

  .dog-profile-header img {
    max-width: 100%;
  }

  /* Rodokmen */
  .pedigree-svg {
    padding: 20px 10px;
  }

  .pedigree-svg svg {
    min-width: 800px;
  }

  /* Fotogalerie */
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  /* Timeline */
  .timeline {
    padding: 10px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px !important;
    padding-right: 10px !important;
  }

  .timeline-item::after {
    left: 10px !important;
  }

  .timeline-content {
    padding: 15px;
  }

  /* Lightbox navigace */
  .lightbox-prev,
  .lightbox-next {
    padding: 10px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  /* Mapa */
  .map-container iframe {
    height: 300px;
  }
}

/* ===== RESPONSIVITA - MALÉ MOBILY ===== */
@media (max-width: 480px) {
  header .logo a {
    font-size: 1.4rem; /* Zmenšení textu loga */
  }

  .hero-intro h1 {
    font-size: 1.8rem;
  }

  .hero-intro p {
    font-size: 1rem;
  }

  section {
    padding: 30px 10px; /* Menší odsazení sekcí */
  }

  section h1 {
    font-size: 1.6rem; /* Menší hlavní nadpisy */
  }

  section h2 {
    font-size: 1.3rem; /* Menší vedlejší nadpisy */
  }

  /* --- Přepnutí 3 tlačítek pod sebe na mobilu --- */
    .button-container-trio {
        flex-direction: column;  /* Klíčová změna: Řadit pod sebe (do sloupce) */
        gap: 15px;               /* Můžeme trochu zmenšit mezeru */
    }

  .btn {
    padding: 10px 15px; /* Menší padding tlačítek */
    font-size: 0.9rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 5px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }
}

/* ===== ANIMACE ===== */
.animated-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY TŘÍDY ===== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

/* --- Styly pro nadpisy v galerii --- */
.gallery-heading {
    margin-top: 50px; /* Vytvoří mezeru nad nadpisem */
    margin-bottom: 20px; /* Menší mezera pod nadpisem */
    border-bottom: 2px solid #d4af37; /* Decentní zlatá linka */
    padding-bottom: 10px;
    text-align: left; /* Zarovnáme doleva, ať to vypadá jako sekce */
}


/* --- Kontejner pro 3 tlačítka --- */
.button-container-trio {
    display: flex;
    flex-direction: row;       /* Standardně vedle sebe (PC) */
    justify-content: center;   /* Centruj celou skupinu horizontálně */
    align-items: center;       /* Vertikálně zarovnej jednotlivá tlačítka */
    flex-wrap: wrap;           /* Kdyby se nevešly, zalomí se */
    gap: 20px;                 /* Mezera mezi tlačítky */
    margin-top: 50px;          /* Odsazení shora od obsahu */
    margin-bottom: 50px;       /* Odsazení zdola */
    width: 100%;               /* Ujistíme se, že zabírá celou šířku kontejneru */
    max-width: 1200px;         /* Max šířka pro větší obrazovky, aby to nebylo moc roztažené */
    margin-left: auto;         /* Centruje kontejner itself (potřebuje max-width) */
    margin-right: auto;        /* Centruje kontejner itself */
    }

/* --- Styly pro filter-buttons --- */
.filter-buttons {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.filter-btn {
  background: transparent;
  color: #d4af37;
  border: 2px solid #d4af37;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
  background: #d4af37;
  color: #000;
}

/* ===== POROVNÁNÍ PLEMEN STYLY ===== */
    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    h1 {
      font-family: 'Cinzel', serif;
      text-align: center;
      font-size: clamp(2rem, 5vw, 3rem);
      color: #ffd700;
      margin-bottom: 20px;
      text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    .subtitle {
      text-align: center;
      margin-bottom: 50px;
      color: #d4af37;
      font-size: 1.1rem;
    }

    /* Hlavní porovnání - side by side */
    .breeds-comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      margin-bottom: 60px;
    }

    .breed-card {
      background: rgba(17, 17, 17, 0.95);
      border: 2px solid #d4af37;
      border-radius: 15px;
      padding: 30px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .breed-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .breed-card:hover::before {
      opacity: 1;
    }

    .breed-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
      border-color: #ffd700;
    }

    .breed-card.continental {
      border-color: #4a9eff;
    }

    .breed-card.corso {
      border-color: #ff6b9d;
    }

    .breed-header {
      text-align: center;
      margin-bottom: 25px;
    }

    .breed-header h2 {
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      margin-bottom: 10px;
      color: #ffd700;
    }

    .breed-header img {
      width: 100%;
      max-width: 300px;
      height: 250px;
      object-fit: cover;
      border-radius: 10px;
      border: 2px solid #d4af37;
      margin: 15px auto;
      display: block;
    }

    .breed-info {
      margin-top: 20px;
    }

    .info-item {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    }

    .info-label {
      font-weight: 600;
      color: #ffd700;
    }

    .info-value {
      color: #d4af37;
    }

    /* Charakteristiky se slidery */
    .characteristics-section {
      margin-top: 60px;
      background: rgba(17, 17, 17, 0.95);
      border: 2px solid #d4af37;
      border-radius: 15px;
      padding: 40px;
    }

    .characteristics-section h2 {
      font-family: 'Cinzel', serif;
      text-align: center;
      font-size: 2rem;
      color: #ffd700;
      margin-bottom: 40px;
    }

    .characteristic {
      margin-bottom: 35px;
    }

    .characteristic-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .characteristic-name {
      font-weight: 600;
      font-size: 1.1rem;
      color: #ffd700;
    }

    .characteristic-legend {
      display: flex;
      gap: 20px;
      font-size: 0.9rem;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .legend-color {
      width: 20px;
      height: 20px;
      border-radius: 3px;
    }

    .legend-color.continental {
      background: linear-gradient(135deg, #4a9eff, #2d7dd2);
    }

    .legend-color.corso {
      background: linear-gradient(135deg, #ff6b9d, #e84a7f);
    }

    .bars-container {
      position: relative;
      height: 50px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .bar {
      height: 35px;
      border-radius: 25px;
      position: relative;
      overflow: hidden;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .bar.continental {
      background: linear-gradient(135deg, #4a9eff, #2d7dd2);
      box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
    }

    .bar.corso {
      background: linear-gradient(135deg, #ff6b9d, #e84a7f);
      box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    }

    .bar::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    .bar-value {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: white;
      font-weight: bold;
      font-size: 0.9rem;
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Kvíz sekce */
    .quiz-section {
      margin-top: 60px;
      background: rgba(17, 17, 17, 0.95);
      border: 2px solid #d4af37;
      border-radius: 15px;
      padding: 40px;
      text-align: center;
    }

    .quiz-section h2 {
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      color: #ffd700;
      margin-bottom: 20px;
    }

    .quiz-section p {
      margin-bottom: 30px;
      font-size: 1.1rem;
    }

    .quiz-btn {
      display: inline-block;
      padding: 15px 40px;
      background: linear-gradient(135deg, #d4af37, #ffd700);
      color: #000;
      font-weight: bold;
      text-decoration: none;
      border-radius: 30px;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .quiz-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    }

/* ===== 404 STRÁNKA ===== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-page h1 {
  font-size: 6rem;
  color: #ffd700;
  margin-bottom: 0;
}

.error-page h2 {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 20px;
}

.error-page p {
  margin-bottom: 30px;
}

/* ===== KONTAKTNÍ STRÁNKA ===== */
.contact-info-container {
  text-align: center;
  margin: 30px 0;
}
.contact-info-list {
  list-style: none;
  padding: 0;
}
.contact-info-item {
  margin: 15px 0;
  font-size: 1.1rem;
}
.contact-info-link {
  color: #ffd700;
}
#form-success-message {
  display: none;
  text-align: center;
  color: #ffd700;
  border: 2px solid #ffd700;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}
.map-container iframe {
  border: 0;
}
    /* Přepínací tlačítka */
    .view-toggle {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-bottom: 40px;
    }

    .toggle-btn {
      padding: 12px 30px;
      background: rgba(17, 17, 17, 0.8);
      border: 2px solid #d4af37;
      color: #d4af37;
      border-radius: 25px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 600;
    }

    .toggle-btn.active {
      background: linear-gradient(135deg, #d4af37, #ffd700);
      color: #000;
      border-color: #ffd700;
    }

    .toggle-btn:hover {
      transform: translateY(-2px);
    }

    /* Tabulkové porovnání */
    .table-view {
      display: none;
      overflow-x: auto;
    }

    .table-view.active {
      display: block;
    }

    .comparison-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      background: rgba(17, 17, 17, 0.95);
      border-radius: 15px;
      overflow: hidden;
      border: 2px solid #d4af37;
    }

    .comparison-table th {
      background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
      color: #ffd700;
      padding: 20px;
      font-family: 'Cinzel', serif;
      font-size: 1.2rem;
      border-bottom: 2px solid #d4af37;
    }

    .comparison-table td {
      padding: 15px 20px;
      border-bottom: 1px solid rgba(212, 175, 55, 0.2);
      text-align: center;
    }

    .comparison-table tr:hover {
      background: rgba(212, 175, 55, 0.1);
    }

    .comparison-table .category {
      font-weight: 600;
      color: #ffd700;
      text-align: left;
    }

    /* Responsivita */
    @media (max-width: 968px) {
      .breeds-comparison {
        grid-template-columns: 1fr;
      }

      .characteristic-legend {
        flex-direction: column;
        gap: 10px;
      }
    }

    @media (max-width: 768px) {
      .characteristic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .bars-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
      }

      .bar {
        width: 100%;
      }
    }

