@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap");
:root {
  --accent-clr: #662fff;
}
* {
  box-sizing: border-box;
}
.accent-clr {
  color: var(--accent-clr);
}
.filter-img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.rotate-180 {
  transform: rotate(180deg);
}
.rotate-360 {
  transform: rotate(360deg) !important;
}
@media (min-width: 768px) {
  .filter-inputs {
    display: block;
  }
  .filter-img {
    transform: rotate(180deg);
  }
}
.acf-map {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-clr);
}
.kh-container {
  width: 95%;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 1px,
    rgba(6, 24, 44, 0.65) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
  display: flex;
  gap: 6rem;
}
.kh-single-container {
  width: 95%;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 1px,
    rgba(6, 24, 44, 0.65) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
}
.kh-container-filters {
  width: 250px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.filter-title,
.post-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
}
.filter-inputs {
  overflow: hidden;
  transition: height 0.3s ease;
}
.filter-form-group {
  margin: 0.5rem 0;
}
.filter_form_group input[type="checkbox"]:checked + label {
  color: var(--accent-clr);
}
.filter_form_group input[type="checkbox"]:checked {
  accent-color: var(--accent-clr);
}
.filter-label {
  color: black;
  font-size: 1rem;
}
.active {
  height: auto !important;
}
.kh-posts {
  width: calc(100% - 250px);
}
.single-post {
  border-bottom: 1px solid black;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-category {
  font-size: 1.1rem;
  margin: 0;
  color: black;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-resource-address {
  margin: 0.4rem 0;
  color: black;
}
.post-contact {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.post-contact p {
  margin: 0.4rem 0;
  color: var(--accent-clr);
}
.post-contact p a {
  color: var(--accent-clr);
}
.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.resource-content {
  display: flex;
  justify-content: space-between;
}
.resource-left,.resource-right {
  width: 50%;
}
.resource-title {
  margin: 0;
  font-size: 1.5rem;
  color: black;
  font-weight: 600;
}
.resource-category {
  font-size: 1.1rem;
  margin: 0;
  color: black;
}
.resource-contact {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}
.resource-contact p {
  margin: 0;
  font-weight: 500;
}
.resource-details-title {
  font-size: 1.1rem;
  color: black;
  font-weight: 600;
  margin: 0 0 1rem 0;
}
.resource-details-description {
  margin: 0;
  color: black;
}
.map-container {
  width: 40%;
}
.map {
  height: 400px;
  width: 100%;
}
.get-direction-btn {
  display: block;
  text-decoration: none;
  background-color: var(--accent-clr);
  color: white;
  width: fit-content;
  margin: 1rem 0 1rem auto;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
}
.get-direction-btn:hover{
  color: inherit;
}
@media (max-width: 1199px) {
  .kh-container {
    width: 95%;
  }
}
@media (max-width: 768px) {
  .kh-container {
    flex-direction: column;
    gap: 1rem;
  }
  .kh-container-filters {
    width: 100%;
  }
  .kh-posts {
    width: 100%;
  }
  .filter-title {
    font-size: 1.1rem;
  }
  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-name {
    font-size: 1rem;
    font-weight: 600;
  }
  .post-category {
    font-size: 0.8rem;
  }
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-contact {
    width: 100%;
    align-items: flex-start;
    gap: 0;
  }
  .post-contact p:not(:first-child) {
    margin-right: 1rem;
  }
  #category-form-inputs,
  #city-form-inputs {
    height: 0;
  }
  .resource-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .resource-category {
    color: rgb(76 86 100);
  }
  .resource-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .resource-content {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .resource-details-title {
    margin-bottom: 0.5rem;
  }
  .map-container {
    width: 100%;
  }
  .map {
    height: 400px;
  }
  .resource-left,.resource-right {
    width: 100%;
  }
  .get-direction-btn {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 769px) {
  #category-form-inputs,
  #city-form-inputs {
    height: auto;
  }
}
@media (max-width: 768px) {
  .filter-inputs {
    display: none;
  }
  .filter-inputs.active {
    display: block;
  }
}
@media (min-width: 769px) {
  .filter-inputs {
    display: block;
  }
  .filter-inputs.active {
    display: none;
  }
}
