/**
 * Version: 3.0.0
 */

 .directory-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.directory-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.directory-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.directory-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.directory-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/**
 * Version: 2.0.0
 */

/* ===== Container ===== */

.directory-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Filter Bar ===== */
.directory-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-column {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.filter-search-column {
    min-width: 200px;
}

.filter-search {
    height: 40px!important;
    border-radius: 0px!important;
}

.filter-dropdown-btn,
.view-toggle-btn {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.filter-dropdown-btn:hover,
.view-toggle-btn:hover {
    background: #ffffff;
}

.filter-dropdown-btn.active {
    background: #ee3897;
    color: white;
    border-color: #ee3897;
}

.filter-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.filter-dropdown-btn.active .filter-arrow {
    transform: rotate(180deg);
}

.view-toggle-btn {
    background: #333;
    color: white;
    border-color: #333;
    justify-content: center;
}

.view-toggle-btn:hover {
    background: #555;
}

/* ===== Dropdowns ===== */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.filter-dropdown.open {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
}

.filter-checkbox:hover {
    background: #f9f9f9;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-checkbox input:checked + .checkbox-custom {
    background: #ee3897;
    border-color: #ee3897;
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-icon {
    width: 20px;
    height: 20px;
}

.price-symbol {
    font-weight: 900;
    color: #ee3897;
}

/* ===== Search Box ===== */
.filter-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #f5f5f5;
}

.filter-search:focus {
    outline: none;
    border-color: #ee3897;
    background: white;
}

.filter-search::placeholder {
    color: #999;
    text-transform: uppercase;
}

/* ===== Active Filters ===== */
.active-filters {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-tag {
    background: #ee3897;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.filter-tag:hover {
    background: #d62d7c;
}

.remove-filter {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.clear-all-btn {
    background: #333;
    color: white;
    padding: 6px 15px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.clear-all-btn:hover {
    background: #555;
}

/* ===== Results Bar ===== */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.results-count {
    font-weight: bold;
    font-size: 14px;
}

.feature-filters {
    display: flex;
    gap: 20px;
}

.feature-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.feature-filter:hover {
    color: #ee3897;
}

.feature-filter img {
    width: 24px;
    height: 24px;
}

/* ===== Grid Layout ===== */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.directory-item {
    background: white;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.directory-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* ===== Item Image ===== */
.item-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lazy-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 0;
}

/* ===== Item Content ===== */
.item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 20px!important;
    
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.item-features {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ee3897;
    font-weight: bold;
}

.content {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.item-price {
    font-size: 13px;
}

.item-feature-icons {
    display: flex;
    gap: 5px;
}

.item-feature-icons img {
    width: 20px;
    height: 20px;
}

.item-menu-link {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: auto;
    transition: color 0.2s ease;
}

.item-menu-link:hover {
    color: #ee3897;
}

/* ===== List View ===== */
.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 30px;
}

.directory-list li {
    padding: 10px 0;
    break-inside: avoid;
}

.list-item-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.2s ease;
}

.list-item-link:hover {
    color: #ee3897;
}

/* ===== Pagination ===== */
.directory-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #ee3897;
    color: white;
    border-color: #ee3897;
}

/* ===== Scrollbar Styling ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #ee3897 #f5f5f5;
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: #f5f5f5;
}

*::-webkit-scrollbar-thumb {
    background: #ee3897;
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #d62d7c;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .directory-filters {
        flex-direction: column;
    }
    
    .filter-column,
    .filter-search-column {
        width: 100%;
        min-width: auto;
    }
    
    .results-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .feature-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .directory-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .directory-list {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .directory-container {
        padding: 10px;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
    }
    
    .item-image {
        height: 180px;
    }
    
    .feature-filters {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .directory-filters,
    .active-filters,
    .results-bar,
    .directory-pagination {
        display: none;
    }
    
    .directory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* ===== Accessibility ===== */
.filter-dropdown-btn:focus,
.view-toggle-btn:focus,
.filter-search:focus,
.page-btn:focus {
    outline: 2px solid #ee3897;
    outline-offset: 2px;
}

.filter-checkbox:focus-within {
    background: #f9f9f9;
}

/* ===== Loading State ===== */
.directory-container.loading .directory-grid {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Empty State ===== */
.directory-grid:empty::after {
    content: 'No results found. Try adjusting your filters.';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

.awb-off-canvas .toggle-content {
    max-height: 400px;
    overflow: auto;
}

#directorySearch {
    background-color: #F7F5F5!important;
    border-width: 0px 0px 1px 0px!important;
    
}