/* Container Layout */

/* Collapsible filter base */
.collapsible-filter .filter-body,
.collapsible-filter .filter-search {
    display: none;
}

/* Header styling */
.filter-header {
      
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
       margin-bottom: 12px;
    border:solid 1px #dce3eb;
 
    border-radius: 12px;
}

/* Toggle icon */
.toggle-icon::after {
    content: "+";
    font-size: 18px;
    transition: transform 0.3s ease;
    padding: 20px;
    margin-bottom: 12px;
}

/* When open */
.collapsible-filter.open .filter-body,
.collapsible-filter.open .filter-search {
    display: block;
}

.collapsible-filter.open .toggle-icon::after {
    content: "−";
}
.filter-body{
    margin-left:10px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgb(2, 89, 88, 0.1) !important; /* Light blueish tint from image */
  border: 1px solid #dce3eb;
  border-radius: 4px;
  font-family: sans-serif;
  color: #334155;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 25px; /* Spacing between controls */
}


.filter-card {
    margin-bottom: 22px;
}

.filter-title {
    padding:15px;
    font-size: 20px;
    font-weight: 600;
    margin-top:10px;
 
}

.listing-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);

}

.filter-card {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
   
}

.state-group {
    border-top: 1px solid #eee;
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 4px;
    transition: background 0.2s;
}

.state-header:hover {
    background: #f7f7f7;
}

.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(-45deg);
    transition: transform 0.3s;
}

.state-group.open .chevron {
    transform: rotate(45deg);
}

.city-list {
    max-height: 0px; /* fixed height for the list */
    overflow-y: auto;  /* enable vertical scroll */
    padding-left: 16px;
    transition: max-height 0.35s ease;
    margin-top: 4px;
    border-left: 2px solid #eee; /* optional: highlight hierarchy */
}

.state-group.open .city-list {
    max-height: 500px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: #198754;
}
