/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Child theme for Divi - Maloney Affordable
Author: Maloney Affordable
Author URI: 
Template: Divi
Version: 1.0.0
*/

/* Custom styles for listing system */
.listing-filters {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

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

.listing-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.listing-type-badge {
    display: inline-block;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.listing-type-badge.condo {
    background: #4a90e2;
    color: white;
}

.listing-type-badge.rental {
    background: #50c878;
    color: white;
}

.listing-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.listing-status-badge.available {
    background: #50c878;
    color: white;
}

.listing-status-badge.waitlist {
    background: #ffa500;
    color: white;
}

.listing-status-badge.not-available {
    background: #999;
    color: white;
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-toggle button {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-toggle button.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.listing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.listing-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-card-content {
    padding: 20px;
}

.listing-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.listing-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.listing-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 15px;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#listings-map {
    width: 100%;
    margin-bottom: 0;
}

.similar-properties {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.similar-properties h2 {
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.advanced-filters {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.advanced-filters.active {
    display: block;
}

.vacancy-notify-button {
    background: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.vacancy-notify-button:hover {
    background: #357abd;
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        flex-direction: column;
    }
    
    .view-toggle button {
        width: 100%;
    }
}

