
.main-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    width: 35%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.posts-main {
    width: 65%;
}

.filters-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.filters-header h3 {
    color: #2323a6;
    margin: 0;
    font-size: 1.3rem;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2323a6;
    box-shadow: 0 0 0 2px rgba(35, 35, 166, 0.1);
}

.apply-filters-btn {
    width: 100%;
    background: #2323a6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-filters-btn:hover {
    background: #1a1a8a;
}

.clear-filters-btn {
    width: 100%;
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.clear-filters-btn:hover {
    background: #5a6268;
    text-decoration: none;
    color: white;
}

.breadcrumb-nav {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav a {
    color: #2323a6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #18188B;
    text-decoration: none;
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: #6c757d;
}

.posts-header {
    background: linear-gradient(135deg, #2323a6 0%, #3a3ad1 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: fit-content;
}

.posts-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.pagination-container {
    margin-top: 30px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #2323a6;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #2323a6;
    color: white;
    border-color: #2323a6;
}

.pagination .current {
    background: #2323a6;
    color: white;
    border-color: #2323a6;
}

.pagination .disabled {
    color: #6c757d;
    pointer-events: none;
}


.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 176px);
    gap: 20px;
    padding: 20px 0;
    justify-content: center;
}

.post-card {
    width: 176px;
    height: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-header {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.post-type-badge {
    background: #2323a6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    height: 120px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.post-details {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-description {
    color: #495057;
    line-height: 1.4;
    font-size: 0.8rem;
    margin-bottom: 12px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.post-actions {
    margin-top: auto;
}

.btn-edit {
    width: 100%;
    background: #2323a6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: block;
}

.btn-edit:hover {
    background: #1a1a8a;
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, 160px);
        gap: 15px;
    }
    
    .post-card {
        width: 160px;
        height: 280px;
    }
    
    .post-title {
        font-size: 0.85rem;
    }
    
    .post-meta {
        font-size: 0.7rem;
    }
    
    .post-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, 140px);
        gap: 10px;
    }
    
    .post-card {
        width: 140px;
        height: 260px;
    }
    
    .post-image {
        height: 100px;
    }
}


.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: #18188B;
    box-shadow: 0 0 0 2px rgba(24, 24, 139, 0.1);
}

.price-separator {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}


@media (max-width: 768px) {
    .main-posts-container {
        flex-direction: column;
    }
    
    .filters-sidebar,
    .posts-main {
        width: 100%;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .price-range-inputs {
        flex-direction: column;
        gap: 4px;
    }
    
    .price-separator {
        display: none;
    }
} 

.posts-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
.post-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.post-image-horizontal {
    width: 140px;
    height: 140px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    flex-shrink: 0;
}
.post-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}
.post-details-horizontal {
    flex: 1;
    padding: 18px 18px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post-title-horizontal {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2323a6;
    margin-bottom: 6px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    hyphens: auto;
}
.post-meta-horizontal {
    font-size: 0.92rem;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.post-description-horizontal {
    font-size: 0.92rem;
    color: #495057;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.post-actions-horizontal {
    margin-top: auto;
}
.btn-edit-horizontal {
    background: #2323a6;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}
.btn-edit-horizontal:hover {
    background: #1a1a8a;
    color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 176px);
    gap: 20px;
    padding: 20px 0;
    justify-content: center;
}
.post-card {
    width: 176px;
    height: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
}
.post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
} 

.post-card-horizontal-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    cursor: pointer;
}
.post-card-horizontal-link:visited {
    color: inherit !important;
}
.post-card-horizontal-link:hover {
    text-decoration: none !important;
    color: inherit !important;
} 