/* Custom Post Grid & List Plugin Styles */
.content-layout .post-grid-wrapper .results-header{
    display: none;
}
.post-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 30px;
}

.post-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.post-search-input:focus {
    border-color: #007bff;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.search-btn:hover {
    color: #007bff;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 16px;
    color: #666;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-dropdown {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.view-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #e9e9e9;
}

.view-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Content Layout */
.content-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar-filters {
    flex: 0 0 250px;
    min-width: 250px;
    position: relative;
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

.mobile-filter-toggle:hover {
    background: #0056b3;
}

.mobile-filter-toggle svg {
    margin-left: 10px;
}
.view-controls button svg{
    vertical-align: sub;
}

.filters-content {
    display: block;
}

.filter-section {
    margin-bottom: 35px;
}

.filter-section h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 15px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.filter-checkbox:hover {
    color: #007bff;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.filter-checkbox .count {
    color: #999;
    font-size: 13px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Price Range Slider */
.price-range-slider {
    padding: 10px 0;
}

.slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    outline: none;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Posts Container */
.posts-container {
    flex: 1;
}

/* Grid View */
.posts-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* List View */
.posts-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.posts-grid.list-view .post-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.posts-grid.list-view .post-thumbnail {
    flex: 0 0 200px;
}

.posts-grid.list-view .post-content {
    flex: 1;
}

/* Post Item */
.post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #007bff;
}

.post-author {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.post-meta {
    margin-bottom: 10px;
}

.post-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts svg {
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 18px;
    color: #999;
    margin: 0;
}

.clear-filters-btn {
    width: 100%;
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.clear-filters-btn:hover {
    background: #d32f2f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar-filters {
        flex: 1;
        min-width: auto;
        max-width: 100%;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .filters-content {
        display: none;
    }

    .filters-content.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .posts-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .posts-grid.list-view .post-item {
        flex-direction: column;
    }

    .posts-grid.list-view .post-thumbnail {
        flex: 1;
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-controls {
        width: 100%;
        justify-content: space-between;
    }

    .sort-dropdown {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .posts-grid.grid-view {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}