

/*————————————————————————————————————————————————————————————————————————————————————————————————*/
/* INZERATY DETAIL                                                                                */
/*————————————————————————————————————————————————————————————————————————————————————————————————*/

/* Obsah —————————————————————————————————————————————————————————————————————————————————————————*/
.main-content-detail {
  grid-template-columns: 2fr 1fr;
  padding: 2rem 0;
  display: grid;
  gap: 2rem;
}

.formatovany_obsah_inzeratu {
  margin: 0.4rem 0 0 1.5rem;
  line-height: 2rem;
}

.job-detail {
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
}

.job-header1 {
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
}

.company-logo {
  border-radius: 0.75rem;
  flex-shrink: 0;
  height: 80px;
  width: 80px;
}

.company-logo img {
  object-fit: contain;
  padding: 0.5rem;
  height: 100%;
  width: 100%;
}

.job-info { flex: 1; }

.job-title-row {
  justify-content: space-between;
  margin-bottom: 0.5rem;
  align-items: center;
  display: flex;
}

.job-title1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}

.company-info {
  align-items: center;
  margin-bottom: 1rem;
  color: #6b7280;
  display: flex;
}

.company-name {
  text-decoration: none;
  font-weight: 500;
  color: #6b7280;
}

.separator {
  margin: 0 0.5rem;
  color: #9ca3af;
}

.location {
  align-items: center;
  margin-left: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.location i { color: #2bbfbd; }

.tags {
  flex-wrap: wrap;
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-primary { background: rgba(43, 191, 189, 0.1); color: #2bbfbd; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-info    { background: #dbeafe; color: #1e40af; }
.tag-success { background: #d1fae5; color: #065f46; }

.action-buttons {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  background: #2bbfbd;
  color: white;
  border: none;
  flex: 1;
}

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

.btn-secondary {
  border: 1px solid #d1d5db;
  text-decoration: none;
  background: white;
  color: #374151;
}

.btn-secondary:hover { background: #f9fafb; }
.btn-secondary i     { color: #2bbfbd; }

.job-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 0;
  margin-top: 0;
}

.section-title1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0;
}

.section-title1-odsazeni { margin-top: 1.75rem; }

.section-subtitle {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.job-description { color: #374151; }

.job-list {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.job-list li {
  margin-bottom: 0.5rem;
  color: #374151;
}

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

.info-item {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.info-item i {
  text-align: center;
  color: #2bbfbd;
  width: 1.25rem;
}

.map-container {
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background: #e5e7eb;
  overflow: hidden;
  height: 256px;
}

.map-container img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.job-footer {
  border-top: 1px solid #f3f4f6;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 2rem;
  display: flex;
}

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

.job-meta p { margin-bottom: 0.25rem; }

.job-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  transition: background 0.2s;
  background: #f3f4f6;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  border: none;
}

.icon-btn:hover { background: #e5e7eb; }
.icon-btn i 		{ color: #6b7280; }


/* Sidebar ———————————————————————————————————————————————————————————————————————————————————————*/

.sidebar {
  height: fit-content;
  top: 112px;
}

.sidebar-panel-first { margin-top: 0.25rem; }
.sidebar-job-detail { margin-top: 0.5rem; }

.sidebar-panel {
  border: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
}

.sidebar-panel-action-buttons {
  border: none !important;
  padding: 0 !important;
}

.sidebar-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111827;
}

.sidebar-subtitle {
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #111827;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-item {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  align-items: center;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

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

.summary-item i {
  font-size: 1.1rem;
  color: #33bebb;
  margin-top: 2px;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.summary-content {
  flex-direction: column;
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.summary-value {
  font-size: 0.95rem;
  line-height: 1.15;
  color: #1e293b;
  font-weight: 500;
}

.contact-person {
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

.contact-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  height: 48px;
  width: 48px;
}

.contact-avatar img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.contact-info h4 {
  margin-bottom: 0.125rem;
  font-weight: 500;
  color: #111827;
}

.contact-info p {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-buttons {
  flex-direction: column;
  display: flex;
  gap: 0.75rem;
}

.btn-contact {
  border: 1px solid #d1d5db;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  background: white;
  align-items: center;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
}

.btn-contact:hover { background: #f9fafb; }
.btn-contact i 		 { color: #2bbfbd; }

.similar-jobs {
  margin: 2rem 0 6rem;
}

.job-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  display: grid;
  gap: 1.5rem;
}

.job-card1 {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.3s;
  background: white;
  padding: 1.25rem;
}

.job-card1:hover { border-color: #2bbfbd; }

.job-card1 h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.job-card1 h3 a {
  transition: color 0.2s;
  text-decoration: none;
  color: inherit;
}

.job-card1 .company-info { margin-bottom: 0.75rem; }
.job-card1 h3 a:hover { color: #2bbfbd; }
.job-card1 .tags { gap: 0.5rem; }

.simple-modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  position: fixed;
  display: flex;
  z-index: 9999;
  padding: 20px;
  inset: 0;
}

.simple-modal-content {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  background: white;
  border-radius: 12px;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  width: 100%;
}

.simple-modal-header {
  border-bottom: 1px solid #e5e7eb;
  justify-content: space-between;
  background: #f9fafb;
  align-items: center;
  padding: 20px;
  display: flex;
}

.simple-modal-header h2 {
  font-size: 1.2rem;
  color: #111827;
  font-weight: 600;
  margin: 0;
}

.simple-modal-close {
  transition: all 0.2s;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #6b7280;
  background: none;
  cursor: pointer;
  border: none;
  padding: 8px;
  height: 40px;
  width: 40px;
}

.simple-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.simple-modal-body {
  overflow: hidden;
  height: 600px;
  padding: 0;
}

.simple-modal-body iframe {
  height: 100%;
  border: none;
  width: 100%;
}

.company-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #2bbfbd;
  gap: 0.5rem;
}

.company-link:hover { color: #25a5a3; }


/* Podobne inzeraty ——————————————————————————————————————————————————————————————————————————————*/

.job-error-not-found {
  background-color: white !important;
  border: 1px solid #e5e7eb;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  min-height: 300px;
  margin-top: 20px;
  display: flex;
}

.error-icon {
  margin-bottom: 24px;
  opacity: 0.7;
}

.error-icon svg {
  height: 64px;
  width: 64px;
}

.error-title {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
}

.error-description {
  margin: 0 0 32px 0;
  color: #6b7280;
  line-height: 1.6;
  max-width: 500px;
  font-size: 1rem;
}

.error-actions {
  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  gap: 16px;
}

.similar-jobs1 .job-cards {
	grid-template-columns: repeat(3, 1fr);
	display: grid;
	gap: 1.5rem;
}

.similar-jobs1 .job-cards:has(.job-card1:only-child) {
	grid-template-columns: 1fr 1fr 1fr;
}

.similar-jobs1 .job-cards .job-card1:only-child {
	grid-column: 1 / 2;
}

.similar-jobs1 .job-cards:has(.job-card1:nth-child(2):last-child) {
	grid-template-columns: 1fr 1fr 1fr;
}

.similar-jobs1 .job-cards {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.similar-jobs1 .job-cards.cards-count-1 {
	grid-template-columns: 1fr 1fr 1fr;
}

.similar-jobs1 .job-cards.cards-count-1 .job-card1:first-child {
	grid-column: 1 / 2;
}

.similar-jobs1 .job-cards.cards-count-2 {
	grid-template-columns: 1fr 1fr 1fr;
}

.similar-jobs1 .job-cards.cards-count-2 .job-card1:first-child {
	grid-column: 1 / 2;
}

.similar-jobs1 .job-cards.cards-count-2 .job-card1:last-child {
	grid-column: 2 / 3;
}

.similar-jobs1 .job-cards.cards-count-3, .similar-jobs1 .job-cards.cards-count-4, .similar-jobs1 .job-cards.cards-count-5 {
	grid-template-columns: repeat(3, 1fr);
}


/* Animace ———————————————————————————————————————————————————————————————————————————————————————*/
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


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

/* max-width: 1024px */
@media (max-width: 1024px) {
	.similar-jobs1 .job-cards,
	.similar-jobs1 .job-cards.cards-count-1,
	.similar-jobs1 .job-cards.cards-count-2,
	.similar-jobs1 .job-cards.cards-count-3,
	.similar-jobs1 .job-cards.cards-count-4,
	.similar-jobs1 .job-cards.cards-count-5 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.similar-jobs1 .job-cards.cards-count-1 .job-card1:first-child,
	.similar-jobs1 .job-cards.cards-count-2 .job-card1:first-child,
	.similar-jobs1 .job-cards.cards-count-2 .job-card1:last-child {
		grid-column: auto;
	}

  .main-content-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sidebar {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    position: static;
    display: grid;
    gap: 1.25rem;
  }
  
  .job-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* max-width: 768px */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .main-content-detail { padding: 1.5rem 0; gap: 1.5rem; }
  .job-detail { padding: 1.5rem; }
  .job-header1 { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .company-logo { width: 64px; height: 64px; }
  .job-title1 { font-size: 1.5rem; }
  .job-title-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .company-info { flex-wrap: wrap; gap: 0.5rem; }
  .separator { display: none; }
  .action-buttons { flex-direction: column; gap: 0.75rem; }
  .info-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .info-item { padding: 0.75rem; background: #f9fafb; border-radius: 0.5rem; }
  .job-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .sidebar { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .sidebar-panel { padding: 1.25rem; }
  .contact-buttons { flex-direction: row; gap: 0.5rem; }
  .btn-contact { flex: 1; }
  .job-cards { grid-template-columns: 1fr; }
  .similar-jobs { margin-bottom: 4rem; }
  .simple-modal-overlay { padding: 10px; }
  .simple-modal-content { max-width: 100%; max-height: 95vh; }
  .simple-modal-header { padding: 15px; }
  .simple-modal-header h2 { font-size: 1.1rem; }
  .simple-modal-body { height: 500px; }

	.similar-jobs1 .job-cards,
	.similar-jobs1 .job-cards.cards-count-1,
	.similar-jobs1 .job-cards.cards-count-2,
	.similar-jobs1 .job-cards.cards-count-3,
	.similar-jobs1 .job-cards.cards-count-4,
	.similar-jobs1 .job-cards.cards-count-5 {
		grid-template-columns: 1fr;
	}
	
	.similar-jobs1 .job-cards.cards-count-1 .job-card1:first-child,
	.similar-jobs1 .job-cards.cards-count-2 .job-card1:first-child,
	.similar-jobs1 .job-cards.cards-count-2 .job-card1:last-child {
		grid-column: auto;
	}
}

/* max-width: 640px */
@media (max-width: 640px) {
  .container { padding: 0 0.75rem; }
  .main-content-detail { padding: 1rem 0; }
  .job-detail { padding: 1.25rem; }
  .job-title1 { font-size: 1.375rem; line-height: 1.3; }
  .section-title1 { font-size: 1.125rem; }
  .section-subtitle { font-size: 1rem; }
  .tags { gap: 0.375rem; }
  .tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; }
  .btn-primary, .btn-secondary { padding: 0.625rem 1rem; font-size: 0.875rem; }
  .map-container { height: 200px; }
  .sidebar-panel { padding: 1rem; }
  .sidebar-title { font-size: 1rem; }
  .contact-buttons { flex-direction: column; gap: 0.5rem; }
  .btn-contact { padding: 0.5rem 0.75rem; font-size: 0.875rem; }

	.job-error-not-found {
    padding: 40px 16px;
    min-height: 250px;
  }
  
  .error-title {
    font-size: 1.25rem;
  }
  
  .error-description {
    font-size: 0.95rem;
  }
  
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }
}

/* max-width: 480px */
@media (max-width: 480px) {
  .container { padding: 0 0.5rem; }
  .job-detail { padding: 1rem; border-radius: 0.75rem; }
  .job-title1 { font-size: 1.25rem; }
  .company-logo { width: 56px; height: 56px; }
  .job-header1 { gap: 0.75rem; }
  .company-info { font-size: 0.875rem; }
  .tags { gap: 0.25rem; }
  .tag { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
  .job-section { padding-top: 1.5rem; margin-top: 1.5rem; }
  .section-title1 { font-size: 1.05rem; }
  .section-subtitle { font-size: 0.95rem; }
  .job-description { font-size: 0.9rem; line-height: 1.5; }
  .job-list { padding-left: 1rem; }
  .job-list li { font-size: 0.9rem; line-height: 1.4; }
  .info-item { padding: 0.625rem; font-size: 0.875rem; }
  .info-item i { width: 1rem; font-size: 0.875rem; }
  .map-container { height: 160px; }
  .job-footer { padding-top: 1.5rem; margin-top: 1.5rem; }
  .job-meta { font-size: 0.8rem; }
  .sidebar-panel { padding: 0.875rem; }
  .sidebar-title { font-size: 0.95rem; }
  .summary-item { font-size: 0.875rem; }
  .contact-person { gap: 0.5rem; }
  .contact-avatar { width: 40px; height: 40px; }
  .contact-info h4 { font-size: 0.9rem; }
  .contact-info p { font-size: 0.8rem; }
  .btn-contact { padding: 0.5rem; font-size: 0.8rem; }
  .similar-jobs { margin-top: 1.5rem; margin-bottom: 3rem; }
  .job-card1 { padding: 1rem; }
  .job-card1 h3 { font-size: 1rem; }
  .simple-modal-overlay { padding: 5px; }
  .simple-modal-content { border-radius: 8px; }
  .simple-modal-header { padding: 12px; }
  .simple-modal-header h2 { font-size: 1rem; line-height: 1.3; }
  .simple-modal-body { height: 400px; }
  .simple-modal-close { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* max-width: 360px */
@media (max-width: 360px) {
  .container { padding: 0 0.25rem; }
  .job-detail { padding: 0.75rem; }
  .job-title1 { font-size: 1.125rem; }
  .company-logo { width: 48px; height: 48px; }
  .btn-primary, .btn-secondary { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .sidebar-panel { padding: 0.75rem; }
  .simple-modal-overlay { padding: 2px; }
  .simple-modal-header { padding: 10px; }
  .simple-modal-header h2 { font-size: 0.9rem; }
  .simple-modal-body { height: 350px; }
}
