

/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* DETAIL FIRMY                                                                                   */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

/* Obsah —————————————————————————————————————————————————————————————————————————————————————————*/

.container1 {
  padding: 0 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.main-content {
  padding: 1.5rem 0; 
}

.content-layout {
  grid-template-columns: 1fr; 
  display: grid;
  gap: 1.5rem;
}

.content-main {
  flex-direction: column;
  display: flex;
  gap: 1.5rem;
}

.content-sidebar {
  flex-direction: column;
  display: flex;
  gap: 1.5rem;
}

.content-card {
  border: 1px solid #e5e7eb;
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: white;
  border-radius: 12px; 
  padding: 1.25rem; 
}

.content-card h2 {
  word-wrap: break-word;
  margin-bottom: 1rem;
  font-size: 1.25rem; 
  font-weight: 600;
  color: #111827;
}

.content-card p {
  word-wrap: break-word;
  margin-bottom: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

.company-header {
  background: white;
  padding: 1rem 0;
}

.company-header-detail {
  border-bottom: 1px solid #e5e7eb;
}

.company-header-content {
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  display: grid;
  gap: 1.5rem;
}

.company-logo-large {
  justify-content: center;
  border-radius: 12px;
  align-items: center;
  margin: 0 auto; 
  display: flex;
  height: 80px;
  width: 80px; 
}

.company-logo-large img {
  object-fit: contain;
  padding: 12px;
  height: 100%;
  width: 100%;
}

.company-main-info h1 {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  hyphens: auto; 
}

.company-location {
  justify-content: center; 
  align-items: center;
  color: #6b7280;
  font-size: 1rem; 
  flex-wrap: wrap; 
  display: flex;
  gap: 0.5rem;
}

.contact-info {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.contact-item {
  word-wrap: break-word;
  background: #f9fafb;
  align-items: center;
  border-radius: 12px;
  padding: 0.875rem; 
  display: flex;
  gap: 0.75rem; 
}

.contact-icon {
  justify-content: center;
  background: #2bbfbd;
  align-items: center;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
  display: flex;
  height: 36px;
  width: 36px;
}

.contact-text {
  min-width: 0; 
  flex: 1;
}

.contact-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem; 
  color: #6b7280;
}

.contact-value {
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-weight: 500;
  color: #111827;
}

.map-placeholder {
  border: 2px dashed #d1d5db;
  justify-content: center;
  background: #f3f4f6;
  align-items: center;
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  height: 180px; 
  display: flex;
  padding: 1rem;
  width: 100%;
}

.zarovnani_firma_detail {
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: justify;
  hyphens: auto;
}


/* Pribehy zamestnancu ———————————————————————————————————————————————————————————————————————————*/

.popis-sekce {
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 16px;
  color: #666;
}

.pribehy-container {
  flex-direction: column;
  display: flex;
  gap: 25px;
}

.pribeh-karta {
  border: 1px solid #e9ecef;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.pribeh-karta *,
.pribeh-karta *:visited {
  text-decoration: none;
  color: inherit;
}

.pribeh-karta .jmeno {
  color: #2bbfbd;
}

.pribeh-karta:hover {
  border-color: #2bbfbd;
  box-shadow: 0 4px 12px rgba(43, 191, 189, 0.15);
}

.pribeh-obsah {
  align-items: flex-start;
  display: flex;
  gap: 20px;
}

.pribeh-foto {
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.zamestnanec-foto {
  border-radius: 50%;
  object-fit: cover;
  height: 80px;
  width: 80px;
}

.delka-prace {
  background: #2bbfbd;
  border-radius: 15px;
  white-space: nowrap;
  text-align: center;
  font-weight: bold;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
}

.pribeh-text {
  flex-direction: column;
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pribeh-header {
  flex-direction: column;
  display: flex;
  gap: 4px;
}

.jmeno {
  font-weight: bold;
  color: #2bbfbd;
  font-size: 20px;
  margin: 0;
}

.pozice {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.pribeh-obsah-text {
  font-style: italic;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  margin: 0;
}

.pribeh-obsah-text p {
  margin: 0;
}

.pribeh-obsah-text p:empty,
.pribeh-text > p:empty {
  display: none;
}


/* Responzivita ——————————————————————————————————————————————————————————————————————————————————*/

/* min-width: 640px */
@media (min-width: 640px) {
  .container1 {
    padding: 0 1.5rem;
  }
}

/* min-width: 1024px */
@media (min-width: 1024px) {
  .container1 {
    padding: 0 2rem;
  }

  .content-layout {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* min-width: 768px */
@media (min-width: 768px) {
  .company-location {
    justify-content: flex-start;
    font-size: 1.1rem;
  }

  .map-placeholder {
    font-size: 1.1rem;
    height: 200px;
  }
	
  .company-logo-large {
    border-radius: 16px;
    height: 100px;
    width: 100px;
    margin: 0;
  }
	
  .content-card {
    border-radius: 16px;
    padding: 2rem;
  }

  .company-header-content {
    grid-template-columns: auto 1fr;
    text-align: left;
    gap: 2rem;
  }

  .content-card h2 {
    font-size: 1.5rem;
  }

	.content-card {
		padding: 2rem 1.25rem;
	}
	
  .company-main-info h1 {
    font-size: 1.75rem;
  }
	
  .contact-icon {
    height: 40px;
    width: 40px;
  }

  .contact-label {
    font-size: 0.85rem;
  }

  .content-main {
    gap: 2rem;
  }

  .content-sidebar {
    gap: 2rem;
  }

  .content-layout {
    gap: 2rem;
  }

  .main-content {
    padding: 2rem 0;
  }

  .contact-item {
    padding: 1rem;
    gap: 1rem;
  }
}

/* max-width: 768px */
@media (max-width: 768px) {
  .pribeh-obsah {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .zamestnanec-foto {
    height: 100px;
    width: 100px;
  }
  
  .pribeh-text {
    align-items: center;
  }
  
  .pribeh-header {
    align-items: center;
  }
  
  .jmeno {
    font-size: 18px;
  }
  
  .pribeh-obsah-text {
    text-align: center;
    font-size: 15px;
  }
}

/* max-width: 480px */
@media (max-width: 480px) {
  .pribeh-karta {
    padding: 15px;
  }
  
  .pribehy-container {
    gap: 20px;
  }
  
  .zamestnanec-foto {
    height: 80px;
    width: 80px;
  }
  
  .jmeno {
    font-size: 16px;
  }
  
  .pribeh-obsah-text {
    font-size: 14px;
  }
}



/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* SLIDER OBRAZKU - VYLEPŠENÉ ANIMACE                                                             */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.slider-container {
  position: relative;
  width: 100%;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 300px;
}

/* Základní styl pro slidy */
.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05) translateX(30px);
  transition: 
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s;
}

/* Aktivní slide */
.slider-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  z-index: 2;
}

/* Odcházející slide (doleva) */
.slider-slide.slide-out-left {
  opacity: 0;
  visibility: visible;
  transform: scale(0.95) translateX(-30px);
  z-index: 1;
}

/* Odcházející slide (doprava) */
.slider-slide.slide-out-right {
  opacity: 0;
  visibility: visible;
  transform: scale(0.95) translateX(30px);
  z-index: 1;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Navigační tlačítka s vylepšenou animací */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  color: #111827;
  z-index: 10;
  opacity: 0;
}

.slider-container:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: #2bbfbd;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(43, 191, 189, 0.4);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
  left: 16px;
}

.slider-btn-next {
  right: 16px;
}

/* Tečky s vylepšenou animací */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.slider-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.slider-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.slider-dot.active {
  background: #2bbfbd;
  width: 32px;
  border-radius: 6px;
  transform: scale(1);
}

/* Progress bar na aktivní tečce (volitelné - pro auto-play) */
.slider-dot.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  /* animation: progress 5s linear forwards; */ /* Odkomentovat pro auto-play */
}

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

/* Responzivita */
@media (min-width: 640px) {
  .slider-track {
    height: 350px;
  }
  
  .slider-btn {
    opacity: 0.7;
  }
}

@media (min-width: 1024px) {
  .slider-track {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .slider-track {
    height: 220px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }
  
  .slider-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  .slider-dot.active {
    width: 26px;
  }
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* BENEFITY                                                                                       */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.benefity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.benefit-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2bbfbd 0%, #22a5a3 100%);
  border-radius: 12px;
  flex-shrink: 0;
  color: white;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-text {
  flex: 1;
  min-width: 0;
}

.benefit-nazev {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.benefit-popis {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}


/* Responzivita ——————————————————————————————————————————————————————————————————————————————————*/

@media (min-width: 640px) {
  .benefity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .benefit-item {
    padding: 12px;
    gap: 12px;
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
  }
  
  .benefit-icon svg {
    width: 20px;
    height: 20px;
  }
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* BANNER FIRMY                                                                                   */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.company-banner {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.company-banner-image {
  width: 100%;
  line-height: 0;
}

.company-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

/* Volitelný overlay s gradientem */
.company-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Overlay s textem (volitelné) */
.company-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  z-index: 2;
}

.company-banner-overlay h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}


/* Responzivita ——————————————————————————————————————————————————————————————————————————————————*/

@media (min-width: 480px) {
  .company-banner {
    border-radius: 16px;
  }
}

@media (min-width: 640px) {
  .company-banner-overlay h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .company-banner-overlay {
    padding: 30px;
  }

  .company-banner-overlay h2 {
    font-size: 2rem;
  }
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* MODAL FOTOGALERIE                                                                              */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.slider-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-modal.active {
  opacity: 1;
  visibility: visible;
}

.slider-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.slider-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 90%;
  z-index: 1;
}

.slider-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.slider-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  line-height: 1;
}

.slider-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.slider-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-modal-btn-prev {
  left: 0;
}

.slider-modal-btn-next {
  right: 0;
}

@media (max-width: 640px) {
  .slider-modal-content {
    width: 95%;
    height: 80%;
  }

  .slider-modal-btn {
    width: 40px;
    height: 40px;
  }

  .slider-modal-btn svg {
    width: 24px;
    height: 24px;
  }

  .slider-modal-close {
    top: -50px;
    right: 0;
  }
}