:root {
  --brand-blue: #0065ab;
  --brand-blue-alt: #0082df;
  --brand-gold: #cda349;
  --brand-gold-alt: #b98e2f;
  --skel-bg: #dadada;
}

.job-cards-wrapper {
  width: 100%;
}

.skeletons-wrapper,
.cards-wrapper {
  display: grid;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 28px;
  grid-template-columns: 1fr 1fr 1fr;
}

.job-card {
  background: #fff;
  border: 1px solid #ededed;
  box-shadow: 3px 3px 30px 0 rgba(0, 0, 0, 0.05);
  padding: 12px;
  box-sizing: border-box;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
}


.job-title {
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
  margin-bottom: 20px;
}

.skeleton .job-title {
  height: 1.8em;
  background: var(--skel-bg);
  border-radius: 2px;
  animation: skeleton 1.5s infinite;
}

.location {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pin-icon {
  width: 14px;
}

.city,
.state,
.department {
  font-size: 1rem;
}

.skeleton .city {
  height: 1em;
  width: 36%;
  background: var(--skel-bg);
  border-radius: 2px;
  animation: skeleton 1.5s infinite;
}

.skeleton .state {
  height: 1em;
  width: 10%;
  background: var(--skel-bg);
  border-radius: 2px;
  animation: skeleton 1.5s infinite;
}

.department {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.skeleton .department {
  height: 1em;
  width: 60%;
  background: var(--skel-bg);
  border-radius: 2px;
  margin-bottom: 20px;
  animation: skeleton 1.5s infinite;
}

.view-details {
  width: 100%;
}

.details-btn {
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1.4em;
  font-weight: 700;
  padding: 8px 20px;
  width: 100%;
}

a.details-btn {
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  transition: all 400ms ease;
}

a.details-btn:hover {
  background: var(--brand-blue-alt);
}

.skeleton .details-btn {
  height: 1.8em;
  background: var(--skel-bg);
  animation: skeleton 1.5s infinite;
}

#jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.prev,
.next {
  width: 18px;
  display: flex;
  cursor: pointer;
}

.prev:hover svg,
.next:hover svg {
  fill: var(--brand-blue)
}

.prev.hide,
.next.hide {
  display: none;
}

#jobs-pagination .page-number {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
}

#jobs-pagination .page-number.active,
#jobs-pagination .page-number:hover {
  background: var(--brand-blue);
  color: #fff;
  border: 1px solid var(--brand-blue);
}

#jobs-pagination .page-number.active {
  cursor: default;
}


.job-filters {
  margin-bottom: 20px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 5px;
}

.filters-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.job-filters label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.filter-select,
.zip-input,
.radius-select,
.location-input,
.filter-field {
  font-size: 16px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
}

.clear-filters {
  padding: 12px 24px;
  background: var(--brand-gold);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 400ms ease;
}

.clear-filters:hover {
  background: var(--brand-gold-alt);
}

.counts-wrapper {
  display: flex;
  justify-content: space-between;
}

.result-texts {
  display: flex;
  gap: 20px;
}

.results-count,
.pages-count,
.search-term {
  font-size: 18px;
}

.search-term .divider {
  margin-right: 16px;
}

.zip-search-btn,
.location-search-btn,
.title-search-btn {
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 400ms ease;
  width: initial;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  text-transform: uppercase;
}

.zip-search-btn:hover,
.location-search-btn:hover,
.title-search-btn:hover {
  background: var(--brand-blue-alt);
}

.location-search-group {
  position: relative;
  min-width: 300px;
  flex-grow: initial;
}

.location-search-container {
  display: flex;
  gap: 5px;
  align-items: stretch;
}

.location-input {
  min-width: 300px;
}

/* Autocomplete Suggestions */
.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.location-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.location-suggestion-item:hover,
.location-suggestion-item.active {
  background-color: #f8f9fa;
}

.location-suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-main-text {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
  font-size: 16px;
}

.suggestion-secondary-text {
  font-size: 12px;
  color: #666;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .location-search-container {
    flex-direction: column;
    gap: 8px;
  }

  .location-search-group {
    min-width: auto;
    width: 100%;
  }

  .location-input {
    min-width: auto;
  }

  .location-suggestions {
    left: 0;
    right: 0;
  }
}

/* Filter row adjustments */
.filters-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.filter-group label {
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
}

/* Loading state */
.location-input.loading {
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZT0iIzk5OSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1kYXNoYXJyYXk9IjQgNCIgZmlsbD0ibm9uZSI+CjxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiB2YWx1ZXM9IjAgOCA4OzM2MCA4IDgiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+CjwvY2lyY2xlPgo8L3N2Zz4K') no-repeat right 12px center;
  background-size: 16px 16px;
}

/* Error state */
.location-suggestions.error {
  padding: 12px 16px;
  color: #d63384;
  font-size: 14px;
}

/* No results state */
.location-suggestions.no-results {
  padding: 12px 16px;
  color: #6c757d;
  font-style: italic;
  font-size: 14px;
}


@keyframes skeleton {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}
