/* Property Grid */
.property-grid {
    display: grid;
    grid-gap: 20px;
    margin: 20px 0;
}

.property-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.property-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.property-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Property Card */
.property-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.property-status.for-sale {
    background-color: #4caf50;
}

.property-status.for-rent {
    background-color: #2196f3;
}

.property-status.sold {
    background-color: #f44336;
}

.property-details {
    padding: 15px;
}

.property-details h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.property-details h3 a {
    color: #333;
    text-decoration: none;
}

.property-details h3 a:hover {
    color: #0073aa;
}

.property-address {
    color: #666;
    margin: 0 0 10px;
    font-size: 14px;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin: 0 0 10px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.property-view-details {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.property-view-details:hover {
    background-color: #005a87;
}

/* Calculator Styles */
.real-estate-calculator {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

.real-estate-calculator h3 {
    margin-top: 0;
    color: #0073aa;
}

.calculator-options {
    margin-bottom: 15px;
}

.calculator-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.calculator-fields {
    margin-bottom: 15px;
}

.calculator-fields .field {
    margin-bottom: 10px;
}

.calculator-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.calculator-fields input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.calculate-payment {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.calculate-payment:hover {
    background-color: #005a87;
}

.calculation-result {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.result-container h4 {
    margin-top: 0;
    color: #0073aa;
}

.monthly-payment {
    font-size: 18px;
    font-weight: bold;
    color: #4caf50;
}

.savings {
    font-weight: bold;
    color: #4caf50;
}

.error {
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-grid.columns-3,
    .property-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .property-grid.columns-2,
    .property-grid.columns-3,
    .property-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .real-estate-chat-box {
        max-width: 100%;
    }
}
/* assets/css/frontend.css */

/* --- Styling cho trang chi tiết BĐS --- */
.single-property-layout .entry-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-property-layout .entry-title {
    margin-bottom: 5px;
}

.property-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    color: #555;
}

.property-meta-header .property-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #c0392b;
}

.section-box {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.section-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Sắp xếp lại danh sách chi tiết BĐS */
.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 15px;
}

.details-list li {
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.details-list li strong {
    margin-right: 10px;
    color: #333;
}

/* Responsive cho di động */
@media screen and (max-width: 600px) {
    .details-list {
        grid-template-columns: 1fr; /* 1 cột */
    }
    .property-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }
}