/**
 * Real Estate Properties - Public Styles
 * Styles for frontend property listings
 */

.rep-properties-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.rep-property-public-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rep-property-public-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.rep-property-public-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.rep-property-public-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rep-property-public-card:hover .rep-property-public-image img {
    transform: scale(1.1);
}

.rep-property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rep-badge-funded {
    background: #10b981;
    color: #fff;
}

.rep-badge-completed {
    background: #749DC9;
    color: #fff;
}

.rep-badge-progress {
    background: #f59e0b;
    color: #fff;
}

.rep-badge-sold {
    background: #6366f1;
    color: #fff;
}

.rep-property-public-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rep-property-public-header {
    margin-bottom: 16px;
}

.rep-property-public-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rep-property-public-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.rep-property-public-address .dashicons {
    color: #2271b1;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rep-property-public-use {
    font-size: 14px;
    color: #888;
}

.rep-property-public-details {
    flex: 1;
    margin: 16px 0;
}

.rep-public-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.rep-public-detail-row:last-child {
    border-bottom: none;
}

.rep-public-detail-label {
    color: #666;
    font-weight: 500;
}

.rep-public-detail-value {
    color: #1d1d1f;
    font-weight: 700;
    text-align: right;
}

.rep-public-detail-value.highlight {
    color: #2271b1;
    font-size: 16px;
}

.rep-public-detail-value.loan-amount {
    color: #749DC9;
    font-size: 16px;
    font-weight: 700;
}

.rep-property-public-cta {
    margin-top: auto;
    padding-top: 16px;
}

.rep-view-property-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #999999;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rep-view-property-btn:hover {
    background: #777777;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 153, 153, 0.3);
}

.rep-no-properties {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 40px 0;
}

.rep-no-properties p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Filter Section */
.rep-properties-filter {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.rep-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 16px 0;
}

.rep-filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.rep-filter-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rep-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rep-filter-select,
.rep-filter-input {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.rep-filter-select:focus,
.rep-filter-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Property Count */
.rep-properties-count {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.rep-properties-count strong {
    color: #2271b1;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rep-properties-public-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .rep-property-public-image {
        height: 200px;
    }
    
    .rep-property-public-content {
        padding: 20px;
    }
    
    .rep-property-public-title {
        font-size: 20px;
    }
    
    .rep-properties-filter {
        padding: 20px;
    }
    
    .rep-filter-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rep-properties-public-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .rep-properties-public-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
