/*
Theme Name: Astra Child - Bất Động Sản
Theme URI: https://wpastra.com/
Template: astra
Author: Your Name
Description: Theme child từ Astra chuyên cho rao vặt bất động sản
Version: 1.0.0
*/

/* Import styles từ parent theme */
@import url("../astra/style.css");
/*
 * Bố cục Footer cao cấp
 */
.advanced-footer-wrap {
    background-color: #222; /* Màu nền footer "fat" */
    color: #aaa;
    padding: 60px 0;
    border-top: 1px solid #333;
}

.advanced-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột */
    gap: 30px;
}

.advanced-footer-wrap .widget-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.advanced-footer-wrap a {
    color: #fff;
    text-decoration: none;
}
.advanced-footer-wrap a:hover {
    color: var(--ast-global-color-0); /* Màu nhấn chính của theme */
}

/* Thanh Copyright (Sub-footer) */
.site-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
.footer-navigation li {
    margin-left: 20px;
}

/* Responsive cho Footer */
@media (max-width: 768px) {
    .advanced-footer-widgets {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
    }
    
    .footer-navigation ul {
        justify-content: center;
        margin-top: 15px;
    }
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .advanced-footer-widgets {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
    .footer-navigation li {
        margin-left: 10px;
        margin-right: 10px;
    }
}
/*
 * ========================================
 * CSS CHO SIDEBAR TABS (CAO CẤP)
 * ========================================
 */
.widget-property-tabs {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 30px;
}

/* Thanh điều hướng Tab (Phổ biến / Mới nhất) */
.property-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}
.property-tabs-nav .tab-link {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.property-tabs-nav .tab-link:not(.active):hover {
    background-color: #f0f0f0;
}
.property-tabs-nav .tab-link.active {
    color: var(--ast-global-color-0); /* Màu nhấn chính của theme */
    background-color: #fff;
    border-bottom: 2px solid var(--ast-global-color-0);
}

/* Nội dung các Tab */
.property-tabs-content .tab-pane {
    display: none; /* Ẩn tất cả các tab */
    padding: 20px;
}
.property-tabs-content .tab-pane.active {
    display: block; /* Chỉ hiện tab active */
}

/* Danh sách bài đăng trong tab */
.property-tabs-content .property-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.property-tabs-content .property-list li {
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px dashed #eee;
}
.property-tabs-content .property-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.property-tabs-content .property-list .post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Thumbnail */
.property-tabs-content .post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
}
.property-tabs-content .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* Tiêu đề và giá */
.property-tabs-content .post-content .post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    /* Giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-tabs-content .post-content .post-meta-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ast-global-color-3); /* Màu đỏ hoặc màu giá */
}
.property-tabs-content .post-item:hover .post-title {
    color: var(--ast-global-color-0); /* Màu nhấn chính */
}


/*
 * ========================================
 * CSS CHO FOOTER (CAO CẤP)
 * ========================================
 */

/* 1. Footer "Fat" (4 cột widget) */
.advanced-footer-wrap {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 60px 0 40px 0;
}

.advanced-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advanced-footer-wrap .widget-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ast-global-color-0); /* Màu nhấn chính */
    display: inline-block;
}

.advanced-footer-wrap,
.advanced-footer-wrap p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Định dạng widget chung trong footer */
.advanced-footer-wrap .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.advanced-footer-wrap .widget li {
    margin-bottom: 12px;
}
.advanced-footer-wrap .widget li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.2s ease;
}
.advanced-footer-wrap .widget li a:before {
    content: '\f105'; /* Icon mũi tên sang phải */
    font-family: 'FontAwesome'; /* Giả sử theme có FontAwesome */
    font-weight: 900;
    margin-right: 10px;
    color: var(--ast-global-color-0);
}
.advanced-footer-wrap .widget li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Widget Text (Giới thiệu) */
.advanced-footer-wrap .widget_text {
    line-height: 1.8;
}

/* 2. Thanh Copyright (Sub-footer) */
.site-footer {
    background-color: #111;
    color: #888;
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid #333;
}
.site-footer .footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}
.site-footer .footer-copyright a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
}
.site-footer .footer-copyright a:hover {
    color: var(--ast-global-color-0);
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
.footer-navigation li {
    margin-left: 25px;
}
.footer-navigation li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-navigation li a:hover {
    color: #fff;
}

/* Responsive cho Footer */
@media (max-width: 768px) {
    .advanced-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-navigation ul,
    .site-footer .ast-row > div {
        justify-content: center;
        text-align: center;
    }
    .footer-navigation ul {
        margin-top: 15px;
    }
}
@media (max-width: 544px) {
    .advanced-footer-widgets {
        grid-template-columns: 1fr;
    }
}