/* Formulář pro filtrování */
html {
  scroll-behavior: smooth; /* Plynulé scrollování pro kotvy */
}

.region-filter-wrapper {
  margin-bottom: 20px;
}

.region-filter-wrapper select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  margin-bottom: 10px;
}

.region-filter-wrapper select:focus {
  outline: none;
  border-color: #8bc34a;
  box-shadow: 0 0 5px rgba(139, 195, 74, 0.3);
}

.region-filter-wrapper .js-hide {
  display: none;
}

/* Kategorie tlačítka */
.category-buttons {
  margin-top: 15px;
  gap: 5px;
  display: flex;
  flex-wrap: wrap;
}

.category-buttons .vylet {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background: white;
  transition: all 0.3s ease;
  font-size: 12px;
  min-width: 60px;
  flex: 1;
  max-width: 80px;
}

.category-buttons .vylet:hover {
  border-color: #8bc34a;
  background: #f5f5f5;
  text-decoration: none;
  color: #333;
}

.category-buttons .vylet.active {
  border-color: #8bc34a;
  background: #8bc34a;
  color: white;
}

.category-buttons .vylet img {
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
  display: block;
}

/* Kotva pro mapu */
#mapaanch {
  scroll-margin-top: 20px; /* Offset při scrollování na kotvu */
}

/* Loading indikátor */
.mapa-box.loading {
  position: relative;
  opacity: 0.7;
}

.mapa-box.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.mapa-box.loading::after {
  content: 'Načítání...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #8bc34a;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1001;
}

/* Info box styling */
.count-info {
  padding: 10px;
  margin-bottom: 15px;
}

.count-info p {
  margin: 5px 0;
}

.count-info strong {
  color: #373634;
}

/* Responsive design */
@media (max-width: 768px) {
  .category-buttons {
    gap: 3px;
  }
  
  .category-buttons .vylet {
    flex: 1 1 45%;
    margin-bottom: 5px;
    min-width: 50px;
    max-width: none;
    font-size: 11px;
    padding: 6px;
  }
  
  .category-buttons .vylet img {
    width: 20px;
    height: 20px;
  }
  
  .region-filter-wrapper {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .category-buttons .vylet {
    flex: 1 1 100%;
    max-width: none;
    margin-bottom: 3px;
  }
}

/* Accessibility improvements */
.category-buttons .vylet:focus {
  outline: 2px solid #8bc34a;
  outline-offset: 2px;
}

.region-filter-wrapper select:focus {
  outline: 2px solid #8bc34a;
  outline-offset: 1px;
}

/* Animation pro smooth transitions */
.trips-list {
  transition: opacity 0.3s ease;
}

.mapa-wrapper {
  transition: opacity 0.3s ease;
}

/* ZJEDNODUŠENÉ: Jednotný styl pro všechny markery */
.custom-trip-marker {
  border: none !important;
  background: transparent !important;
}

/* Základní styling pro všechny custom markery - jednotná zelená barva */
.custom-trip-marker-default {
  background: transparent !important;
  border: none !important;
}

/* Vyčištění pro Leaflet DivIcon */
.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

/* Vyčištění pro container markeru */
.leaflet-marker-icon.custom-trip-marker-default {
  background: transparent !important;
  border: none !important;
}

/* Odebrání všech složitých stylů pro kategorie - použije se jen default zelená */
.leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
}