/* Main */

/* Override .main padding for home page — costs-panel spans full width */
.main {
  padding: 0;
}

/* Costs Panel */

.costs-panel h1 {
  font-size: 56px;
  color: #fff;
}

.costs-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.costs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 48px 24px;
  gap: 48px;
  background-color: #113120;
}

.costs-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.costs-panel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 896px;
  gap: 32px;
}

.search-panel {
  display: flex;
  align-items: center;
  border: 1px solid #e3e3de;
  border-radius: 12px;
  background-color: white;
  overflow: hidden;
  width: 100%;
}

.search-input-container {
  padding: 16px 24px;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  border-right: 1px solid #e3e3de;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -2%;
}

.search-icon {
  width: 24px;
  height: 24px;
}

.state-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iso-code {
  font-size: 0.8em;
  color: #888;
}

.dropdown-container {
  width: 100%;
}

.dropdown-container.project-list {
  border-right: 0 !important;
}

.dropdown-container.city-list {
  border-left: 1px solid #e3e3de;
  width: 55%;
}

.dropdown-button {
  background-color: white;
  width: 100%;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.search-tag {
  border-radius: 28px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.32px;
}

.search-tag:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-tag.active {
  background-color: #079455;
  border-color: #079455;
  color: #fff;
}

.costs-panel-label {
  width: auto;
}

.dropdown-button-content {
  gap: 20px;
}

/* End Costs panel */

/* Job List */
.job-list-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 24px 40px 24px;
  min-height: 400px;
}

.load-more-button {
  background-color: #079455;
  color: white;
  padding: 12px 48px;
  border-radius: 100px;
  outline: none;
  border: none;
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.load-more-button:hover {
  background-color: #067a47;
}

.job-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  width: 100%;
}

.city-list {
  width: auto;
}

/* Comprehensive styling for job-item as <a> elements */
.job-item {
  border: 1px solid #e3e3de;
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  min-width: 896px;
  display: block;
  /* Link-specific styling */
  text-decoration: none;
  color: inherit;
}

.job-item:hover {
  border: 1px solid #079455;
  text-decoration: none;
  color: inherit;
}

.job-item:hover h2 {
  color: #079455;
}

/* Ensure all text elements inside maintain proper styling */
.job-item h2 {
  margin-top: 0;
  text-transform: capitalize;
  color: inherit;
  font-family: "Bricolage Grotesque", sans-serif;
}

.job-item .job-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}

.job-item .job-tag {
  color: inherit;
  font-family: "Geist", sans-serif;
}

.job-item .job-location span {
  color: inherit;
  font-family: "Geist", sans-serif;
}

/* Force all text inside job-item to inherit colors */
.job-item * {
  color: inherit;
}

/* End Job List */

/* Extra costs section styles */
.extra-costs-container {
  margin-top: 64px;
  width: 100%;
  padding: 0 24px;
}

.extra-costs-container h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.extra-costs-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Styling for extra costs items as <a> elements */
.extra-costs-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e3e3de;
  border-radius: 8px;
  background-color: #ffffff;
  gap: 8px;
  cursor: pointer;
  /* Link-specific styling to maintain original look */
  text-decoration: none;
  color: inherit;
}

.extra-costs-item:hover {
  border-color: #008042;
  text-decoration: none;
  color: inherit;
}

.extra-costs-item:hover .extra-costs-item-title {
  color: #008042;
}

/* Ensure all text elements inside maintain proper styling */
.extra-costs-item * {
  color: inherit;
}

.extra-costs-item-title {
  font-weight: 600;
  font-size: 16px;
  color: #333; /* Ensure consistent text color */
}

.extra-costs-item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extra-costs-item-tag {
  background-color: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.extra-costs-item-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}

/* Ensure images inside links don't have borders */
.extra-costs-item img {
  border: none;
}

/* Job tag styling to match extra-costs-item-tag */
.job-tag {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #e3e3de;
  text-align: left;
  color: #757573;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0%;
  text-transform: uppercase;
  display: inline-block;
}

/* Job tags container */
.job-tags {
  display: flex;
  gap: 8px;
}

/* Job location styling to match extra-costs-item-location */
.job-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0%;
}

.job-location img {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .costs-panel h1 {
    font-size: 42px;
    text-align: center;
  }
  .job-item {
    min-width: 0;
  }

  .search-panel {
    flex-direction: column;
  }

  .search-tags {
    max-width: none;
  }

  .costs-panel {
    padding: 120px 24px 48px 24px;
  }

  .costs-panel-wrapper {
    max-width: none;
  }

  .search-panel .dropdown-container {
    border-bottom: 1px solid #e3e3de;
  }

  .dropdown-container.city-list {
    border-left: 0 !important;
    width: 100%;
  }
}
