/* Custom styles for the jobs module */

/* Updated map container and location dots to work with absolute positioning outside SVG */
.map-container {
  position: relative;
  width: 100%;
}

/* Location dots positioned absolutely on top of map */
.location-dot {
  position: absolute;
  width: 1em;
  height: 1em;
  background: #0083cc;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  outline: 2px solid rgba(0, 0, 0, 0);
}

.location-dot:hover,
.location-dot:focus {
  width: 1.5em;
  height: 1.5em;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translate(-50%, -50%) scale(1.2);
}

.location-dot:focus {
  outline: 2px solid #0083cc;
  outline-offset: 3px;
}

.location-dot.active {
  background: #00a4ff;
  width: 1.5em;
  height: 1.5em;
  border-width: 4px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5);
}

/* Location labels that appear on hover */
.location-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 0.375rem 0.75rem;
  background: #1f2937;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0.375rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.location-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
}

.location-dot:hover .location-label,
.location-dot:focus .location-label {
  opacity: 1;
  margin-bottom: 12px;
}

/* Added smooth fade-in animation for jobs list */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added slide-in animation for filter tags */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Job item styled like accordion header without the expand icon */
.job-item {
  border-top: 1px solid #ddd;
}

.job-link {
  display: block;
  font-size: 1.25em;
  padding: 1em 0;
  line-height: 1.5em;
  color: #000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-link:hover {
  color: #0083cc;
}

.job-title { color: inherit; }

/* Job meta information */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5em;
}

.job-meta span {
  font-size: 0.8em; padding: 0.5em 1em; border: 1px solid #f2f2f2; background: #f2f2f2; border-radius: 1em; line-height: 1em; color: #595959;
}

.job-meta-label {
  font-weight: 600;
}

/* Apply button in accordion */
.job-apply-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #3b82f6;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.job-apply-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.job-apply-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Enhanced filter tags with slide-in animation */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.3s ease forwards;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background: #dbeafe;
  transform: scale(1.05);
}

.filter-tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: #3b82f6;
  color: white;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.filter-tag button:hover {
  background: #2563eb;
  transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Smaller dots on mobile for better touch interaction */
  .location-dot {
    width: 20px;
    height: 20px;
  }

  .location-dot:hover,
  .location-dot:focus,
  .location-dot.active {
    width: 24px;
    height: 24px;
  }
}

/* Enhanced smooth transitions for all interactive elements */
.location-dot,
.filter-tag {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
