/* Vlastní styly pro Web šablonu 4: Servis */
body {
  scroll-behavior: smooth;
  font-family: 'Roboto', sans-serif;
  background: #1f2937;
}

nav {
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #b91c1c;
  animation: underline 0.3s ease forwards;
}

@keyframes underline {
  from { width: 0; }
  to { width: 100%; }
}

.cta-button {
  font-weight: 600;
  background: #b91c1c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: #991b1b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

section {
  background: #1f2937;
}

section:nth-child(even) {
  background: #374151;
}

section img {
  transition: transform 0.3s ease;
}

section img:hover {
  transform: scale(1.05);
}

/* === STYLY PRO "PŘED A PO" POSUVNÍK === */
.before-after-container { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 4 / 3; 
  overflow: hidden; 
  border-radius: 0.5rem; 
  border: 2px solid #4b5563;
}
.before-after-slider { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}
.before-after-slider img { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  pointer-events: none; 
}
.after-img { 
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); 
}
.slider { 
  position: absolute; 
  bottom: 1rem; 
  left: 10%; 
  width: 80%; 
  cursor: ew-resize; 
  -webkit-appearance: none; 
  appearance: none; 
  height: 4px; 
  background: #d1d5db; /* Světle šedá pro lepší viditelnost */
  border-radius: 2px; 
  outline: none;
  opacity: 1; /* Plná viditelnost */
}
.slider::-webkit-slider-thumb { 
  -webkit-appearance: none; 
  appearance: none; 
  width: 24px; 
  height: 24px; 
  background: #b91c1c;
  cursor: pointer; 
  border-radius: 50%; 
  border: 3px solid white; 
  box-shadow: 0 0 5px rgba(0,0,0,0.5); 
}
.slider::-moz-range-thumb { 
  width: 24px; 
  height: 24px; 
  background: #b91c1c;
  cursor: pointer; 
  border-radius: 50%; 
  border: 3px solid white; 
  box-shadow: 0 0 5px rgba(0,0,0,0.5); 
}

/* === STYLY PRO PLOVOUCÍ NAVIGAČNÍ TLAČÍTKA === */
.floating-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #b91c1c; /* Červená barva tématu */
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.floating-nav-button:hover {
  background-color: #991b1b; /* Tmavší červená */
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* === STYLY PRO MOBILNÍ MENU === */
.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d1d5db;
  padding: 0.5rem 1rem;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 0.5rem;
}
.mobile-nav-link:hover {
  color: #ffffff;
  background-color: #b91c1c;
}


#map-container {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .md\:flex {
    display: none;
  }
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}