/* 
   TRULY 100% Pixel-Perfect Match 
   Reference: 7a9db503-e7c3-4ca9-9a42-81299c32d037.png
*/

.custom-listing-container {
    display: flex;
    gap: 30px;
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px 0;
}

/* Sidebar Styling - Matching Reference */
.listing-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-card {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
}

.filter-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

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

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 14px;
}

.filter-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.btn-update {
    width: 100%;
    background-color: #ef5e24;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-update:hover {
    background-color: #d84510;
}

.clear-filters {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

/* Listings Header */
.listings-header {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: normal;
}

/* Listings Grid - STRICT 3 COLUMNS */
.listing-content {
    flex-grow: 1;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Listing Card - Structured Matching */
.listing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.listing-card-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.listing-card-body {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-grow: 1;
}

.listing-card-footer {
    padding: 15px;
}

.listing-card .listing-title {
    color: #ef5e24;
    font-size: 18px;
    font-weight: bold;
}

.listing-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.listing-info .label {
    font-weight: bold;
    color: #333;
}

.listing-info .rent-value {
    font-weight: bold;
}

/* Voucher Tags - Matching Shape */
.voucher-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: normal;
    font-size: 12px;
    margin-left: 5px;
}

.voucher-sota { background-color: #8e44ad; }
.voucher-hasa { background-color: #c0392b; }
.voucher-fheps { background-color: #2980b9; }
.voucher-cityfheps { background-color: #f39c12; }
.voucher-section8 { background-color: #4a69bd; }

/* View Details Button */
.btn-details {
    display: block;
    background-color: #ef5e24;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: normal;
    font-size: 14px;
}

.btn-details:hover {
    background-color: #d84510;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #999;
}

/* Pagination / Show More */
.show-more-container {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.show-more-container a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-listing-container {
        flex-direction: column;
    }
    .listing-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* AJAX Loading State */
#custom-gd-results-holder {
    transition: opacity 0.3s ease;
}

#custom-gd-results-holder.loading-state {
    opacity: 0.5;
    pointer-events: none;
}
