

/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* VYPIS INZERATU           													                                            */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

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

.jobs-section {
  background: white;
}

.jobs-section-main-page {
  padding: 6rem 0;
}

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

.jobs-button-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.job-card {
  --transition: all 0.3s ease;
  --border-color: #e5e7eb;
  --padding-bottom: 1rem;
  --padding-start: 1rem;
  --border-radius: 1rem;
  --border-width: 1px;
  --padding-top: 1rem;
  --padding-end: 1rem;
  --box-shadow: none;
  
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: white;
  margin: 0;
}

.job-card:hover {
  --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  --border-color: #2bbfbd;
}

.job-content {
  align-items: flex-start;
	padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.job-header-podobne, .job-content-podobne {
  flex-direction: column !important;
  gap: .5rem;
}

.job-icon {
  justify-content: center;
  border-radius: 0.5rem;
  align-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
  display: flex;
  height: 6rem;
  width: 6rem;
}

.job-icon img {
  border-radius: 0.5rem;
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.job-details {
  flex: 1;
}

.job-header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  display: flex;
}

.job-title {
  padding-right: 1.5rem;
	text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.job-title:hover{
  color: #2bbfbd;
	transition: .5s;
}

.job-salary {
  background: rgba(43, 191, 189, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  white-space: nowrap;
  color: #2bbfbd;
  font-weight: 500;
}

.job-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0;
}

.job-time {
  font-size: 0.875rem;
  align-items: center;
  color: #6b7280;
  display: flex;
  gap: 0.4rem;
}

.odsazeni_inzerat_karty {
  margin-top: 15px;
}

.job-top-vip {
  transform: translateX(-3px) translateY(-3px) rotate(-45deg);
  background: linear-gradient(135deg, #ff6b35, #ff4757);
  transform-origin: center;
  border-radius: 0 0 4px 0;
  letter-spacing: 0.5px;
  text-align: center;
  position: absolute;
  padding: 4px 12px;
  font-weight: bold;
  min-width: 100px;
  font-size: 10px;
  color: white;
  z-index: 10;
  left: -21px;
  top: 17px;
}

.job-details.job-details-margin {
  margin-left: 1.25rem;
}

.job-top-vip.purple {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.job-top-vip.teal {
	background: linear-gradient(135deg, #2bbfbd 0%, #25a5a3 50%, #0f766e 100%);
}

.job-card {
  position: relative;
  overflow: hidden;
}

.main-content {
  padding: 60px 0;
}

.job-listings {
  flex-direction: column;
  display: flex;
}

.results-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  display: flex;
}

.results-header-margin {
	margin-top: .5rem;
	margin-bottom: 1.5rem;
}

.results-count {
  font-weight: 500;
  color: #374151;
}

.sort-options {
  align-items: center;
  font-weight: 500;
  color: #374151;
  display: flex;
  gap: 8px;
}

.sort-options select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.content-grid {
  justify-content: center;
  justify-items: center;
  display: grid;
  gap: 2rem;
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* FILTR INZERATU           													                                            */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.filters {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: white;
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  padding: 2rem;
  top: 100px;
}

.filter-filters {
  transition: height 0.3s ease;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 35px;
  height: auto;
}

.filter-filters h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
}

.filter-section {
  transition: all 0.3s ease;
}

.filter-section h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
  color: #374151;
}

.filter-section h4:first-child {
  margin-top: 0;
}

.filter-search-input {
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: "Poppins", sans-serif;
  border: 1px solid #d1d5db;
  background: #f9fafb;
	margin-bottom: 1rem;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
}

.filter-search-input:focus {
  box-shadow: 0 0 0 3px rgba(43, 191, 189, 0.1);
  border-color: #2bbfbd;
  background: white;
  outline: none;
}

.filter-search-input::placeholder {
  color: #9ca3af;
}

.filter-options {
  transition: all 0.3s ease;
  flex-direction: column;
  display: flex;
  gap: 8px;
}

.filter-option {
  align-items: center;
  display: flex;
  gap: 8px;
}

.filter-category-group {
  transition: all 0.3s ease; 
  flex-direction: column;
  display: flex;
  gap: 4px;
}

.filter-category-header {
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  display: flex;
  gap: 8px;
}

.filter-category-title {
  align-items: center;
  display: flex;
  gap: 6px;
  flex: 1;
}

.filter-category-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.filter-category-bold {
  font-weight: 600;
  color: #111827;
}

.filter-search-count {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.85rem;
}

.filter-category-count {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.filter-expand-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  font-weight: bold;
  color: #6b7280;
  padding: 2px 6px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  min-width: 24px;
  display: flex;
  border: none;
  height: 24px;
}

.filter-expand-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.filter-subcategories {
  border-left: 2px solid #e5e7eb;
  transition: all 0.3s ease; 
  flex-direction: column;
  padding-left: 12px;
  margin-left: 6px;
  overflow: hidden;
  margin-top: 2px;
  display: flex;
  gap: 6px;
}

.filter-subcategory {
  font-size: 0.9em;
  color: #6b7280;
  transition: opacity 0.2s ease; 
}

.filter-subcategory label {
  color: #6b7280;
}

.filter-option input[type="checkbox"] {
  border: 2px solid #d1d5db;
  accent-color: #2bbfbd;
  background: white;
  border-radius: 3px;
  position: relative;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

.filter-option input[type="checkbox"]:checked {
  border-color: #2bbfbd;
  background: #2bbfbd;
}

.filter-option input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%);
  position: absolute;
  font-weight: bold;
  font-size: 12px;
  color: white;
  content: '✓';
  top: 50%;
  left: 50%;
}

.filter-option label {
  word-wrap: break-word;
  color: #6b7280;
  cursor: pointer;
  flex: 1;
}

.filter-no-results {
  transition: opacity 0.3s ease; 
  font-style: italic;
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 8px;
}

.filter-hidden {
    display: none;
}

.filter-show-more {
  font-family: "Poppins", sans-serif;
  transition: color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2bbfbd;
  background: none;
  margin-top: 8px;
  cursor: pointer;
  border: none;
  padding: 0;
}

.filter-show-more:hover {
  color: #25a5a3;
}

.filter-show-more-subcategory {
  font-size: 0.85rem;
  color: #2bbfbd;
  margin-top: 4px;
}

.filter-show-more-subcategory:hover {
  color: #25a5a3;
}

.filter-buttons {
  flex-direction: column;
  display: flex;
  gap: 8px;
}

.filter-buttons-company {
	justify-content: space-between;
	align-items: center;
	flex-direction: row;
	padding: 0px 10px;
  display: flex;
	gap: 20px;
}

.filter-buttons-company-job-counter {
	align-items: center;
	font-weight: 400;
	font-size: 14px;
	color: #888;
	display: flex;
	gap: 6px;
}

.filter-buttons-company-job-counter-dot {
	background-color: #2bbfbd;
	border-radius: 50%;
	height: 6px;
	width: 6px;
}

.filter-buttons-company-type {
	background-color: #ffffff;
	border: 1px solid #e9ecef;
	padding: .25rem .5rem;
	border-radius: 8px;
	display: flex;
	gap: .5rem;
}

.filter-buttons-company-type-button {
	background-color: transparent;
	transition: all 0.2s ease;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
	font-size: 14px;
	min-width: 80px;
	color: #666;
	border: none;
}

.filter-buttons-company-type-button:hover {
	background-color: #f0f0f0;
	color: #333;
}

.filter-buttons-company-type-button.active {
	background-color: #2bbfbd;
	font-weight: 600;
	color: white;
}

.filter-buttons-company-type-button.active:hover {
	background-color: #2bbfbd;
	color: white;
}

.filter-btn-apply {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  font-family: "Poppins", sans-serif;
	text-decoration: none;
  border-radius: 8px;
	text-align: center;
  font-weight: 500;
  cursor: pointer;
  color: white;
  padding: 12px;
  border: none;
	margin-top: 1.5rem;
	width: 100%;
	font-size: 14px;
}

.filter-btn-apply:hover {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.filter-btn-reset {
  font-family: "Poppins", sans-serif;
	text-decoration: none;
	text-align: center;
  font-weight: 500;
  color: #6b7280;
  background: none;
  cursor: pointer;
  border: none;
  padding: 8px;
	width: 100%;
}

.filter-btn-reset:hover {
  color: #374151;
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* VYPIS INZERATU CHYBA          													                                        */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

.inzeraty-chyba {
  animation: fadeInUp 0.6s ease-out;
	border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  background: white;
  text-align: center;
  padding: 3rem;
}

.inzeraty-chyba__content {
  max-width: 28rem;
  margin: 0 auto;
}

.inzeraty-chyba__icon {
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: #f3f4f6;
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 6rem;
  width: 6rem;
}

.inzeraty-chyba__icon i {
  font-size: 2.5rem;
  color: #9ca3af;
}

.inzeraty-chyba__title {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

.inzeraty-chyba__description {
  margin: 0 0 2rem 0;
  line-height: 1.625;
  color: #4b5563;
}

.inzeraty-chyba__buttons {
  flex-direction: column;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.inzeraty-chyba__button {
  transition: all 0.3s ease;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
	text-decoration: none;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  border: none;
  width: 100%;
  gap: 0.5rem;
}

.inzeraty-chyba__button:focus {
  box-shadow: 0 0 0 2px rgba(43, 191, 189, 0.5);
  outline: none;
}

.inzeraty-chyba__button--primary {
  background: #2bbfbd;
  color: white;
}

.inzeraty-chyba__button--primary:hover {
  transform: scale(1.05);
  background: #25a5a3;
}

.inzeraty-chyba__button--secondary {
  border: 2px solid #2bbfbd;
  background: transparent;
  color: #2bbfbd;
}

.inzeraty-chyba__button--secondary:hover {
  background: #2bbfbd;
  color: white;
}

.inzeraty-chyba__tips {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-top: 2rem;
}

.inzeraty-chyba__tips-title {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.inzeraty-chyba__tips-list {
  font-size: 0.875rem;
  list-style: none;
  color: #4b5563;
  padding: 0;
  margin: 0;
}

.inzeraty-chyba__tips-list li {
  margin-bottom: 0.25rem;
  text-align: left;
}


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* AUTOCOMPLETE (pozice + lokalita)                                                                  */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/
.autocomplete-wrap {
  position: relative;
}

.autocomplete-chips {
  flex-wrap: wrap;
  display: flex;
  gap: 6px;
}

.autocomplete-chips:not(:empty) {
  margin-bottom: 8px;
}

.autocomplete-chip {
  background: rgba(43, 191, 189, 0.12);
  border: 1px solid rgba(43, 191, 189, 0.3);
  align-items: center;
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  font-size: 0.85rem;
  color: #0f766e;
  display: inline-flex;
  font-weight: 500;
  gap: 6px;
  animation: chipIn 0.15s ease;
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.autocomplete-chip-text {
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-chip-remove {
  transition: background-color 0.15s ease, color 0.15s ease;
  background: rgba(15, 118, 110, 0.15);
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #0f766e;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  border: none;
  padding: 0;
  height: 18px;
  width: 18px;
  line-height: 1;
}

.autocomplete-chip-remove:hover {
  background: #0f766e;
  color: white;
}

.autocomplete-input-box {
  position: relative;
}

.autocomplete-icon {
  transform: translateY(-50%);
  pointer-events: none;
  position: absolute;
  color: #9ca3af;
  height: 16px;
  width: 16px;
  left: 12px;
  top: 50%;
}

.autocomplete-input {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: "Poppins", sans-serif;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  width: 100%;
}

.autocomplete-input:focus {
  box-shadow: 0 0 0 3px rgba(43, 191, 189, 0.15);
  border-color: #2bbfbd;
  background: white;
  outline: none;
}

.autocomplete-input::placeholder {
  color: #9ca3af;
}

.autocomplete-dropdown {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  pointer-events: none;
  background: white;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  box-sizing: border-box;
  z-index: 100;
  margin-top: 4px;
  display: none;
  opacity: 0;
  right: 0;
  left: 0;
  top: 100%;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid white;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #2bbfbd;
}

.autocomplete-dropdown.show {
  pointer-events: auto;
  transform: translateY(0);
  display: block;
  opacity: 1;
}

.autocomplete-item {
  transition: background-color 0.1s ease;
  border-bottom: 1px solid #f3f4f6;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  color: #374151;
  min-width: 0;
  gap: 2px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item.active,
.autocomplete-item:hover {
  background: #f0fdfc;
  color: #0f766e;
}

.autocomplete-item-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
  max-width: 100%;
  display: block;
}

.autocomplete-item-name mark {
  background: rgba(43, 191, 189, 0.2);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
  color: inherit;
}

.autocomplete-item-meta {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #9ca3af;
  max-width: 100%;
  display: block;
}

.autocomplete-empty {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 14px;
}

.filter-submitting {
  transition: opacity 0.2s ease;
  pointer-events: none;
  opacity: 0.6;
}

.mobile-filter-toggle {
  margin-bottom: 20px;
  display: none;
}

.mobile-filter-toggle-btn {
  background: linear-gradient(135deg, #2bbfbd 0%, #25a5a3 50%, #0f766e 100%);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  padding: 15px;
  color: white;
  border: none;
}


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


/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* RESPONZIVITA              													                                            */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

@media (prefers-reduced-motion: no-preference) {
  .filter-filters, .filter-section, .filter-options, .filter-category-group, .filter-subcategories {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-filters, .filter-section, .filter-options, .filter-category-group, .filter-subcategories {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
		gap: 0px;
	}
	
  .filters {
    display: none;
  }

	#filter-content { 
		display: none; 
	}

	#filter-content.show { 
		display: block; 
	} 

	.mobile-filter-toggle {
		display: block !important;
		width: 100%;
	}

	.mobile-filter-toggle-btn {
		width: 100%;
	}

	.sidebar-filter {
		width: 100%;
	}

}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 300px 1fr !important;
    justify-items: normal !important;
    gap: 3rem !important;
  }

	.article-container{
		grid-template-columns: 2fr 1fr !important;
	}
}
		
@media (max-width: 480px) {
  .job-top-vip {
    padding: 3px 10px;
    font-size: 9px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-buttons { display: none; }
  .nav-links { display: none; }

  .job-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .job-salary {
    align-self: flex-start;
  }

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

  .header-text {
    text-align: center;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .search-inputs {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .job-header {
    flex-direction: column;
    gap: 1rem;
  }
  
	.job-info {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .inzeraty-chyba {
    padding: 2rem;
    border-radius: 1rem;
  }
  
  .inzeraty-chyba__content {
    max-width: 100%;
  }
  
  .inzeraty-chyba__icon {
    width: 5rem;
    height: 5rem;
  }
  
  .inzeraty-chyba__icon i {
    font-size: 2rem;
  }
  
  .inzeraty-chyba__title {
    font-size: 1.25rem;
  }
}


@media (max-width: 380px) {
	.job-card{
		margin: 0rem .5rem;
	}
}