/* =========================
   LAYOUT
========================= */
.directory-layout {
  background: #fff;
  margin: 0;
  padding: 60px 30px;
  }
  
  .directory-main {
    display: flex;
    gap: 20px;
  }
  
  .directory-sidebar {
    width: 280px;
    position: sticky;
    top: 90px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow-y: auto;
    background: #fff;
    padding: 12px;
    z-index: 10;
  }
  
  /* =========================
     FILTER GROUPS
  ========================= */
  .filter-group {
    margin-bottom: 16px;
  }
  .filter-group h4 {
    font-size: 15px;
text-transform: uppercase;
padding: 15px;
line-height: 1;
margin: 12px 0;
background: var(--ast-global-color-2);
width: 100%;
display: flex;
color: var(--ast-global-color-8);
}
  /* Each filter-list dynamically scroll if too long */
  .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; /* max-height for scroll */
    overflow-y: auto;
  }
  
  /* Short lists expand naturally */
  .filter-list li {
    margin: 10px 0;
}
  
  .filter-list label {
    display: flex;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.1;
  }
  
  /* Scrollbar */
  .filter-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .filter-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
  
  .filter-list::-webkit-scrollbar-track {
    background: #f5f5f5;
  }
  
  /* =========================
     ACCORDION
  ========================= */
  .accordion-group .accordion-item {
    margin: 0 0 12px;
    overflow: hidden;
  }
  
  .accordion-header {
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
    padding: 15px;
    line-height: 1;
    margin: 0;
    background: var(--ast-global-color-2) !important;
    border: none !important;
    width: 100%;
    display: flex;
    color: var(--ast-global-color-8) !important;
    justify-content: space-between;
    cursor: pointer;
  }
  
  .accordion-body {
    display: none;
    padding: 8px;
  }
  
  /* Open state */
  .accordion-item.open .accordion-body {
    display: block;
  }
  
  /* =========================
     DIRECTORY CONTENT GRID
  ========================= */
  .directory-content {
    flex: 1;
  }
  
  .directory-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
    gap: 15px;
  }
  
  .directory-card {
    border: 1px solid #e5e5e5;
    padding: 12px;
    border-radius: 6px;
  }
  .directory-card h2 {
    font-size: 18px;
    line-height: 1.1;
}
@media (max-width: 768px) {
  .directory-card h2 {
    font-size: 16px;
  }
}
  
  /* =========================
     MOBILE STYLES
  ========================= */
  .filter-toggle {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .filter-close {
    display: none;
    background: #f00;
    color: #fff;
    border: none;
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
  }
  
  @media(max-width: 768px) {
    .directory-main {
      display: block;
    }
  
    .filter-toggle {
      display: block;
    }
  
    .directory-sidebar {
      position: fixed;
      left: -100%;
      top: 0;
      height: 100vh;
      width: 85%;
      max-width: 320px;
      transition: left 0.3s ease-in-out;
      z-index: 9999;
    }
  
    .directory-sidebar.active {
      left: 0;
    }
  
    .filter-header-mobile {
      display: flex;
      justify-content: flex-end;
      padding-bottom: 10px;
    }
  
    .filter-close {
      display: block;
    }
  
    body.filter-open {
      overflow: hidden;
    }
  
    .directory-grid {
      grid-template-columns: 1fr;
    }
  }
  

  .filter-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.1;
    margin: 0 0 15px;
}  
  .filter-tag button {
    width: 16px;
    height: 16px;
    padding: 0;
    font-size: 14px;
    border-radius: 100px;
    color: #fff;
}

.directory-breadcrumbs ul {
  margin: 0 0 15px;
  padding: 0;
  display: flex;
  gap: 5px 10px;
  list-style: none;
  flex-wrap: wrap;
}
.directory-links ul {list-style: none;margin: 0;padding: 0;display: flex;flex-wrap: wrap;gap: 5px 20px;}

.directory-links ul li {
    line-height: 1.1;
    margin: 0;
    padding: 5px 0;
}

.directory-links ul li a {
    text-decoration: underline;
    color: var(--ast-global-color-3);
}

.directory-links > section {
    margin: 30px 0;
}

.directory-links > section h2 {
    line-height: 1.1;
    margin: 0;
    padding: 0 0 10px;
}

.directory-links ul li a:hover {
    color: var(--e-a-color-accent);
    text-decoration: none;
}

@media(max-width: 768px) {
.directory-layout {
  padding: 30px 15px;
}
}