.directory_forecast {
  margin-bottom: 2.5rem;
}

.directory_forecast h1 {
  line-height: 1;
  margin-bottom: 1.25rem;
}

.directory_forecast_description {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0;
}

.location-grid {
  display: grid;
  gap: 0.75rem;
  /* grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-item {
  background-color: #f6f3f4;
  border-radius: 0.375rem;
  height: fit-content;
  overflow: hidden;
}

.location-item a {
  color: #4c4b4b;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
  padding: 0.375rem 1rem;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.directory-section:not(:has(.location-grid)) {
  margin-bottom: 1.5rem;
}

.directory-section:has(.location-grid) {
  margin-bottom: 2.5rem;
}

.directory-section a {
  display: block;
  width: fit-content;
}

.directory-section .location-item a {
  width: 100%;
}
.directory-section h2 {
  color: #4c4b4b;
  font-size: 1.375rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  width: fit-content;
}

.directory-section a:hover h2 {
  color: inherit;
}

/* **************** */
/* Responsive */
/* **************** */
@media (max-width: 1024px) {
  .directory-section {
    margin-bottom: 2rem;
  }
  .directory-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  .location-item a {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .location-grid {
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .location-grid {
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
