/*
Theme Name: 1cesta Travel Blog
Description: WordPress theme for 1cesta travel blog
Version: 1.0
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.site-logo .logo-img {
  height: 50px;
  width: auto;
}

.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-navigation .nav-menu a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

.main-navigation .nav-menu a:hover {
  color: #e88329;
}

.main-navigation .special-nav a {
  color: #e88329;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333333;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-navigation {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.mobile-nav-menu {
  list-style: none;
  padding: 20px 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  font-size: 18px;
}

.mobile-nav-menu .special-nav a {
  color: #e88329;
  font-weight: 700;
}

/* Main Content - ODSTRANĚNÍ MARGIN TOP */
.main-content {
  margin-top: 0;
  padding-top: 80px;
}

/* Hero Section - OPRAVA ŠEDÉ LIŠTY */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* ANIMACE - HERO CONTENT */
/* ANIMACE */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ANIMACE - HERO CAROUSEL */
.hero-carousel {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
}

/* SJEDNOCENÍ VELIKOSTI BANNERŮ */
.carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
}

.post-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 350px; /* PEVNÁ VÝŠKA */
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-card .post-image {
  position: relative;
  height: 200px; /* PEVNÁ VÝŠKA OBRÁZKU */
  overflow: hidden;
  flex-shrink: 0;
}

.post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.1);
}

.post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category i {
  width: 14px;
  height: 14px;
  color: white !important; /* BÍLÉ IKONY */
}

.post-card .post-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card .post-title a {
  color: #333333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-card .post-excerpt {
  color: #666666;
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.5;
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #e88329;
  transform: scale(1.2);
}

/* Section Styles */
section {
  padding: 80px 0;
}

/* ANIMACE - SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Section */
.categories {
  background: linear-gradient(135deg, #e6e2d6 0%, #f0ede3 50%, #e6e2d6 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ANIMACE - CATEGORY CARDS */
.category-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}
.category-card:nth-child(2) {
  animation-delay: 0.2s;
}
.category-card:nth-child(3) {
  animation-delay: 0.3s;
}
.category-card:nth-child(4) {
  animation-delay: 0.4s;
}
.category-card:nth-child(5) {
  animation-delay: 0.5s;
}

.category-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-card.special {
  border-color: #e88329;
  background: rgba(232, 131, 41, 0.05);
}

.category-card a {
  text-decoration: none;
  color: inherit;
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

/* BÍLÉ IKONY KATEGORIÍ */
.category-icon i {
  width: 32px;
  height: 32px;
  color: white !important;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
}

.category-card.special .category-name {
  color: #e88329;
}

.category-description {
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Featured Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ANIMACE - FEATURED POSTS */
.post-card-featured {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.post-card-featured:nth-child(1) {
  animation-delay: 0.1s;
}
.post-card-featured:nth-child(2) {
  animation-delay: 0.2s;
}
.post-card-featured:nth-child(3) {
  animation-delay: 0.3s;
}
.post-card-featured:nth-child(4) {
  animation-delay: 0.4s;
}

.post-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.post-card-featured .post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-card-featured .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card-featured:hover .post-image img {
  transform: scale(1.05);
}

.post-card-featured .post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-featured .post-category i {
  width: 14px;
  height: 14px;
  color: white !important;
}

.post-card-featured .post-content {
  padding: 25px;
}

.post-card-featured .post-title a {
  color: #333333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-card-featured .post-excerpt {
  color: #666666;
  margin: 15px 0;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666666;
  margin-top: 20px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* OPRAVA DEFORMOVANÉHO LOGA */
.author-avatar {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 24px;
  max-height: 24px;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Affiliate Banners */
.affiliate-banners {
  background-color: #ffffff;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ANIMACE - BANNER CARDS */
.banner-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.banner-card:nth-child(1) {
  animation-delay: 0.1s;
}
.banner-card:nth-child(2) {
  animation-delay: 0.2s;
}
.banner-card:nth-child(3) {
  animation-delay: 0.3s;
}

.banner-card:hover {
  transform: scale(1.05);
}

.banner-equipment {
  background: linear-gradient(135deg, #375f4d 0%, #2c3e50 100%);
}

.banner-accommodation {
  background: linear-gradient(135deg, #e88329 0%, #8d6b4e 100%);
}

.banner-services {
  background: linear-gradient(135deg, #2c3e50 0%, #375f4d 100%);
}

.banner-content {
  text-align: center;
  color: white;
  padding: 40px 30px;
}

.banner-icon {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.banner-icon i {
  width: 48px;
  height: 48px;
  color: white;
}

.banner-card:hover .banner-icon {
  transform: scale(1.1);
}

.banner-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.banner-content p {
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.banner-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.banner-link:hover {
  border-color: white;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #e6e2d6 0%, #f0ede3 50%, #e6e2d6 100%);
}

/* ANIMACE - ABOUT CONTENT */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #666666;
}

/* CTA Banner - MENŠÍ BANNER NA BÍLÉM POZADÍ */
.cta-banner {
  background-color: white;
  color: #333333;
}

.cta-banner-container {
  max-width: 600px; /* MENŠÍ ŠÍŘKA */
  margin: 0 auto;
  background: linear-gradient(135deg, #375f4d 0%, #2c3e50 50%, #8d6b4e 100%);
  border-radius: 16px;
  padding: 40px 30px; /* MENŠÍ PADDING */
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.cta-banner-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 1.8rem; /* MENŠÍ VELIKOST */
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #e88329;
  color: white;
}

.btn-primary:hover {
  background-color: #d67420;
  transform: translateY(-2px);
}

.btn-cta {
  background-color: white;
  color: #375f4d;
  font-size: 1rem;
  padding: 15px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
}

.btn-cta i {
  width: 18px;
  height: 18px;
  color: #375f4d;
}

/* Footer */
.site-footer {
  background-color: #375f4d;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #e88329;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background-color: #e88329;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #d67420;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link i {
  width: 20px;
  height: 20px;
  color: white;
}

.social-link:hover {
  background-color: #e88329;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* ========================================
   PLÁNOVAČ CEST - NOVÉ STYLY
   ======================================== */

/* Planner Hero */
.planner-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.planner-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e8832910 0%, #e6e2d6 100%);
}

.planner-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.planner-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #333333;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.planner-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #e88329 0%, #d67420 100%);
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(232, 131, 41, 0.3);
}

.planner-hero-icon i {
  width: 50px;
  height: 50px;
  color: white;
}

.planner-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
}

.planner-hero-subtitle {
  font-size: 1.2rem;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
}

/* Territories Section */
.planner-territories {
  padding: 80px 0;
}

.territories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.territory-card-link {
  text-decoration: none;
  color: inherit;
}

.territory-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.territory-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.territory-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.territory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.territory-card:hover .territory-image img {
  transform: scale(1.1);
}

.territory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.territory-icon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 10px;
}

.territory-icon-badge i {
  width: 20px;
  height: 20px;
  color: #e88329;
}

.territory-routes-count {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.territory-content {
  padding: 25px;
}

.territory-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
}

.territory-description {
  color: #666666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.territory-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666666;
}

.territory-difficulty {
  background: rgba(232, 131, 41, 0.1);
  color: #e88329;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.territory-link-text {
  color: #e88329;
  font-weight: 600;
}

.territory-card:hover .territory-link-text {
  text-decoration: underline;
}

/* Tools Section */
.planner-tools {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tool-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  text-decoration: none;
}

.tool-card:hover {
  transform: scale(1.05);
}

.tool-maps {
  background: linear-gradient(135deg, #375f4d 0%, #2c3e50 100%);
}

.tool-gps {
  background: linear-gradient(135deg, #e88329 0%, #8d6b4e 100%);
}

.tool-apps {
  background: linear-gradient(135deg, #2c3e50 0%, #375f4d 100%);
}

.tool-content {
  text-align: center;
  color: white;
  padding: 40px 30px;
}

.tool-icon {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.tool-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
}

.tool-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.tool-content p {
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 20px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.tool-card:hover .tool-link {
  border-color: white;
}

/* Territory Detail Page */
.territory-header {
  padding: 40px 0;
  background: linear-gradient(135deg, #e8832905 0%, #e6e2d650 100%);
}

.territory-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #e88329;
  text-decoration: none;
  margin-bottom: 30px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #d67420;
}

.back-link i {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.territory-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.territory-header-description {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.territory-featured-image {
  margin-bottom: 40px;
}

.territory-image-container {
  max-width: 800px;
  margin: 0 auto;
}

.territory-image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Routes Section */
.territory-routes {
  padding: 80px 0;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.route-card-link {
  text-decoration: none;
  color: inherit;
}

.route-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.route-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.route-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.route-card:hover .route-image img {
  transform: scale(1.1);
}

.route-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.route-difficulty-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.route-difficulty-lehka {
  background: #dcfce7;
  color: #166534;
}

.route-difficulty-stredni {
  background: #fef3c7;
  color: #92400e;
}

.route-difficulty-narocna {
  background: #fee2e2;
  color: #991b1b;
}

.route-content {
  padding: 25px;
}

.route-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.route-description {
  color: #666666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.route-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #666666;
}

.route-stat {
  display: flex;
  align-items: center;
}

.route-stat i {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.route-poi {
  font-size: 12px;
  color: #666666;
  margin-bottom: 15px;
}

.poi-more {
  color: #e88329;
}

.route-link-text {
  color: #e88329;
  font-weight: 600;
  font-size: 14px;
}

.route-card:hover .route-link-text {
  text-decoration: underline;
}

/* Route Detail Page */
.route-header {
  padding: 40px 0;
  background: linear-gradient(135deg, #e8832905 0%, #e6e2d650 100%);
}

.route-header-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.route-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.route-header-description {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.route-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.route-stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.route-stat-card i {
  width: 24px;
  height: 24px;
  color: #e88329;
  margin: 0 auto 10px;
}

.stat-label {
  font-size: 12px;
  color: #666666;
  margin-bottom: 5px;
}

.stat-value {
  font-weight: 700;
  color: #333333;
}

.route-sidebar {
  position: sticky;
  top: 100px;
}

.route-quick-info {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 25px;
}

.route-quick-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
}

.quick-info-item {
  margin-bottom: 15px;
  font-size: 14px;
}

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

.info-value {
  color: #333333;
  margin-top: 2px;
}

.route-featured-image {
  margin-bottom: 40px;
}

.route-image-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.route-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.route-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.route-image-caption i {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.route-details {
  padding: 40px 0;
}

.route-details-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.route-map-section h2,
.route-poi-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
}

.route-map-placeholder {
  height: 400px;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  margin-bottom: 20px;
}

.map-placeholder-content {
  text-align: center;
}

.map-placeholder-content i {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.map-external-link {
  text-align: center;
}

.btn-map-external {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 2px solid #e88329;
  color: #e88329;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-map-external:hover {
  background-color: #e88329;
  color: white;
}

.btn-map-external i {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.poi-path {
  position: relative;
  padding-left: 30px;
}

.poi-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.poi-item:last-child {
  margin-bottom: 0;
}

.poi-connector {
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background: #e88329;
  z-index: 0;
}

.poi-marker {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e88329;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(232, 131, 41, 0.3);
}

.poi-marker i {
  width: 14px;
  height: 14px;
}

.poi-card {
  margin-left: 20px;
  flex-grow: 1;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px;
  transition: box-shadow 0.3s ease;
}

.poi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.poi-card span {
  font-weight: 600;
  color: #333333;
  font-size: 14px;
}

.no-territories,
.no-routes {
  text-align: center;
  padding: 40px;
  color: #666666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title,
  .planner-hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle,
  .planner-hero-subtitle {
    font-size: 1rem;
  }

  .carousel-item {
    flex: 0 0 100%;
  }

  .carousel-btn {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .categories-grid,
  .territories-grid,
  .routes-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .banners-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cta-banner-container {
    padding: 30px 20px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .route-header-grid,
  .route-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .route-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .territory-header-title,
  .route-header-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 50px 0;
  }

  .hero-title,
  .planner-hero-title {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }

  .route-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* BÍLÉ IKONY */
.category-icon i,
.post-category i,
.post-card-featured .post-category i {
  width: 32px;
  height: 32px;
  color: white !important;
}
