:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --accent: #40916c;
  --orange: #e87722;
  --orange-dark: #c45f10;
  --orange-light: #fff4ec;
  --light-bg: #f8faf8;
  --text-dark: #1a2f26;
  --radius: 1rem;
  /* Odkazy bez vlastní třídy dědily Bootstrap modrou — na zeleném webu cizí prvek. */
  --bs-link-color: #2d6a4f;
  --bs-link-hover-color: #1b4332;
  --bs-link-color-rgb: 45, 106, 79;
}
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Neutralize GLightbox's margin-right hack — gutter is already reserved. */
@supports (scrollbar-gutter: stable) {
  body.gscrollbar-fixer { margin-right: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
.text-muted { color: #5a5f64 !important; }
/* Bootstrap's .text-primary defaults to blue — pin it to the brand green so
   icons (weather, rozcestník, etc.) match the rest of the site. */
.text-primary { color: var(--primary) !important; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1 0 auto; }
.navbar {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(45,106,79,0.08);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary) !important;
}
.navbar-mascot {
  height: 28px;
  width: 28px;
  object-fit: contain;
  transform: scaleX(-1);
  transition: transform 0.3s ease;
}
.navbar-brand:hover .navbar-mascot {
  transform: scaleX(-1) rotate(8deg) scale(1.08);
}
@media (max-width: 991.98px) { .navbar-mascot { display: none; } }
.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--orange) !important;
}
.hero {
  min-height: 85vh;
  padding-top: 68px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}
.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.55) 0%, rgba(45,106,79,0.35) 55%, rgba(64,145,108,0.25) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
}
.hero .container { z-index: 2; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
}
.notice-card {
  background: rgba(255,255,255,0.98);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-left: 5px solid var(--orange);
}
/* Status/aktuality badge is filled by JS — don't show an empty white box until then. */
.notice-card:empty { display: none; }
.section-title {
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.bg-light-custom {
  background: var(--light-bg);
}
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(45,106,79,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45,106,79,0.15);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark), #a04d0c);
  transform: translateY(-1px);
}
/* Solid green secondary button — pairs with the orange .btn-primary. */
.btn-brand-green {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
}
.btn-brand-green:hover, .btn-brand-green:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: translateY(-1px);
}
/* Brand the outline button (was Bootstrap blue) to match the green primary. */
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-focus-shadow-rgb: 45, 106, 79;
  font-weight: 600;
  border-radius: 0.75rem;
}
.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
}
footer a {
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
footer a:hover {
  color: #fff;
}
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
  transition: background 0.2s, transform 0.2s;
}
.social-icon:hover {
  background: var(--orange);
  transform: scale(1.08);
}
.table-cenik thead {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.table-cenik th {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: none;
}
.table-cenik td {
  vertical-align: middle;
}
/* Otevírací doba — rounded, soft-shadowed table + clearer current-season row */
.oteviraci-table {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,106,79,0.08);
}
.oteviraci-table .table-cenik { margin-bottom: 0; }
.table-cenik tbody tr.table-success { --bs-table-bg: #eaf4ee; }
.table-cenik tbody tr.table-success td:first-child {
  box-shadow: inset 4px 0 0 var(--accent);
}
.sezona-ikona { color: var(--accent); margin-right: 0.45rem; }
.sezona-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
}
.card-trasa-img {
  height: 340px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}
.card-o-parku-img {
  height: 340px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}
.weather-widget { min-height: 100px; }
.weather-widget .temp { font-size: 2rem; font-weight: 700; color: var(--primary); }
.weather-day {
  background: var(--light-bg);
  border: 1px solid #e9efe9;
  border-radius: 1rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.weather-day--today {
  background: linear-gradient(160deg, #eef6f0, #ffffff);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(45,106,79,0.10);
}
.weather-icon { font-size: 2.4rem; line-height: 1; }
.weather-temp { font-size: 1.05rem; }
.weather-temp .fw-700 { color: var(--text-dark); }
.map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  height: 320px;
  background: var(--light-bg);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.text-primary-dark { color: var(--primary-dark); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(45,106,79,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#back-to-top i { font-size: 1.25rem; line-height: 1; }
.rozcestnik-card { border-radius: var(--radius); transition: transform 0.18s, box-shadow 0.18s; color: inherit; }
.rozcestnik-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(45,106,79,0.13); }
@media (max-width: 576px) {
  #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
  .hero { min-height: 70vh; }
  .map-wrap { height: 280px; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .topbar-link { padding-top: 12px; padding-bottom: 12px; min-height: 44px; }
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover { background: var(--orange-dark); transform: translateY(-2px); }
#aktualni-stav-badge { font-size: 1rem; }

/* MultiSport přepínač */
.multisport-toggle { border: 2px solid #e9ecef; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Partneři v navbaru */
.partner-logo-nav { height: 44px; width: auto; object-fit: contain; opacity: 0.9; transition: opacity 0.2s; }
.partner-logo-nav:hover { opacity: 1; }
@media (max-width: 576px) { .partner-logo-nav { height: 24px; } }
@media (max-width: 400px) { .navbar-brand { font-size: 0.9rem; } .partner-logo-nav { height: 20px; } }

/* Statistiky tras */
.trasy-stats li { padding: 0.2rem 0; line-height: 1.4; }
.trasy-stats .bi { color: var(--orange) !important; }

/* FAQ accordion */
.accordion-button:not(.collapsed) { background-color: var(--orange); color: #fff; box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(232,119,34,0.25); border-color: var(--orange); }
.accordion-item { border-radius: 0.75rem !important; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--primary-dark); }
.accordion-button:hover { background-color: #fde8d4; color: var(--primary-dark); }

/* Offset pro podstránky pod fixed navbar+topbar */
.page-top { margin-top: 114px; }
@media (max-width: 1199.98px) { .page-top { margin-top: 100px; } }

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  background: var(--primary-dark);
  height: 34px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}
.topbar-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.topbar-link:hover { color: #fff; }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 280px; }
.cookie-banner-text strong { display: block; margin-bottom: 0.2rem; font-size: 0.9rem; }
.cookie-banner-text p { margin: 0 0 0.25rem; font-size: 0.8rem; opacity: 0.85; line-height: 1.45; }
.cookie-banner-link { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-decoration: underline; }
.cookie-banner-link:hover { color: #fff; }
.cookie-banner-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner-btns .btn-outline-secondary {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}
.cookie-banner-btns .btn-outline-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }

/* Map placeholder (cookies odmítnuty) */
.map-placeholder {
  height: 320px;
  background: var(--light-bg);
  border-radius: 1rem;
  border: 2px dashed #c8d8c8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
@media (max-width: 576px) { .map-placeholder { height: 240px; } }

/* Galerie */
.gallery-date-heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary, #2d6a4f);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0ebe2;
}
.gallery-date-heading:first-of-type { margin-top: 0; }
.gallery-section { margin-bottom: 0.5rem; }
/* Collapse each date section to the first N photos; the "Zobrazit více" button
   toggles .is-expanded to reveal the rest. Specificity must beat .gallery-grid a. */
.gallery-grid a.gallery-extra { display: none; }
.gallery-section.is-expanded .gallery-grid a.gallery-extra { display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.75rem; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(45,106,79,0.2); }
.gallery-grid img.gallery-placeholder, .gallery-grid img[src=""] {
  background: var(--light-bg);
  border: 2px dashed #c8d8c8;
}
.gallery-grid img:not([src]), .gallery-grid img[src$=".jpg"]:not([complete]) {
  background: var(--light-bg);
}
/* Fallback při broken/chybějícím obrázku */
.gallery-grid a { display: block; border-radius: 0.75rem; overflow: hidden; background: var(--light-bg); }
.gallery-grid img[alt]::after {
  content: attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--light-bg);
  color: #aaa;
  font-size: 0.85rem;
  border-radius: 0.75rem;
  border: 2px dashed #c8d8c8;
}
.alert-groups {
  background: linear-gradient(135deg, rgba(45,106,79,0.08), rgba(64,145,108,0.12));
  border: 1px solid rgba(45,106,79,0.25);
  border-left: 4px solid var(--primary);
  color: var(--text-dark);
  border-radius: var(--radius);
}
.alert-groups i { color: var(--primary); }
.alert-groups strong { color: var(--primary-dark); }

/* ---- Kontakt ---------------------------------------------------------- */
.kontakt-lead { max-width: 62ch; }
/* Hlavní kontaktní panel: záměrně NENÍ .card — nemá se zvedat při hoveru,
   je to statický blok informací, ne odkaz. */
.kontakt-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(45,106,79,0.08);
}
.kontakt-tel {
  display: inline-block;
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary-dark);
  text-decoration: none;
}
.kontakt-tel:hover, .kontakt-tel:focus { color: var(--orange); }
.kontakt-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9efe9;
}
.kontakt-row p:last-child { margin-bottom: 0; }
.kontakt-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eef6f0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.kontakt-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef6f0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.kontakt-social:hover, .kontakt-social:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
/* Mapa vedle panelu — dorovná jeho výšku místo fixních 320 px. */
.map-tall { height: 100%; min-height: 460px; }
@media (max-width: 991.98px) { .map-tall { height: 340px; min-height: 0; } }
@media (max-width: 575.98px) { .map-tall { height: 280px; } }
.doprava-item .kontakt-ico { background: var(--orange-light); color: var(--orange); }

/* ---- Mobil ------------------------------------------------------------ */
/* Web jezdí hlavně z telefonů — tyhle bloky mají přednost před desktopem. */

/* Sbalené menu: položky pod 44 px se na dotyk trefují špatně. */
@media (max-width: 1199.98px) {
  .navbar-collapse .nav-link { padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .navbar-toggler { padding: 0.5rem 0.8rem; }
}

/* Fotky s pevnou výškou 340 px sežerou na telefonu celou obrazovku. */
@media (max-width: 767.98px) {
  .card-trasa-img, .card-o-parku-img { height: 220px; }
}

@media (max-width: 575.98px) {
  /* Bootstrapích 12 px u kraje displeje je málo. */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Rozcestník: na telefonu řádky s ikonou vlevo místo čtyř vysokých karet
     pod sebou (sekce měla 851 px, tj. přes celou obrazovku, pro čtyři odkazy). */
  .rozcestnik-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left !important;
    padding: 1rem 1.15rem !important;
  }
  .rozcestnik-card .rozcestnik-ikona {
    flex: 0 0 2rem;
    font-size: 1.75rem !important;
    margin-bottom: 0 !important;
    line-height: 1;
  }
  .rozcestnik-card .rozcestnik-text { min-width: 0; }
  .rozcestnik-card h2 { font-size: 1.05rem; margin-bottom: 0.15rem !important; }

  /* Počasí: tři dny se na 390 px nevešly vedle sebe a třetí padal pod ně.
     min-width je v JS inline, proto !important. */
  #weather-content { gap: 0.5rem !important; }
  .weather-day {
    min-width: 0 !important;
    padding: 0.75rem 0.35rem !important;
  }
  .weather-day-label { font-size: 0.78rem; }
  .weather-icon { font-size: 1.9rem; }
  .weather-temp { font-size: 0.95rem; }

  /* Ceník: užší buňky, ať se ceny nelámou přes dva řádky. */
  .table-cenik th, .table-cenik td {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.93rem;
  }
}

/* fw-800 používá 404.php, ale nikdy nebyla definovaná — nadpis se kreslil tenkým řezem. */
.fw-800 { font-weight: 800; }

/* Obtížnost tras: dřív Bootstrap zelená / modrá / žlutá. Modrá byla jediná
   na celém webu; teď jedna škála v brandových barvách. */
.badge-obtiznost {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.badge-obtiznost--1 { background: #eef6f0; color: var(--primary-dark); }
.badge-obtiznost--2 { background: var(--orange-light); color: #8f4409; }
.badge-obtiznost--3 { background: #8f4409; color: #fff; }

/* Ikonové odkazy v topbaru měly dotykovou plochu 13 px na šířku. Jen na dotykových
   šířkách – na desktopu 44px boxy ikony od sebe rozháněly. */
@media (max-width: 991.98px) {
  .topbar-link { min-width: 44px; justify-content: center; }
  .topbar .topbar-link:first-child { min-width: 0; justify-content: flex-start; }
}

/* Trasy: výška lezce je jediné kritérium, podle kterého se rodič rozhoduje,
   tak ať není stejně nenápadná jako počet plošin. */
.trasa-vyska {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-dark);
}
.trasa-vyska-note {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a5f64;
}

/* Ceník: skupiny řádků podle trasy, ať se pozná, ke které trase patří „Dospělí". */
.table-cenik .cenik-group th {
  background: #eef6f0;
  color: var(--primary-dark);
  font-weight: 700;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.cenik-group-note {
  font-weight: 400;
  color: #5a5f64;
  font-size: 0.875rem;
}
