/* Single house — gallery, info, tabs, documents. Variables: site.css */

.house-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid var(--main-red);
}

.info-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
    font-size: 1rem;
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list i {
    color: var(--main-red);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.stat-list .stat-label {
    color: #666;
}

.stat-list .stat-value {
    font-weight: 700;
    color: var(--main-blue);
}

.manager-block {
    background-color: var(--bg-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid var(--main-blue);
}

.manager-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 700;
    margin-bottom: 5px;
}

.manager-name {
    font-weight: 800;
    color: var(--main-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.manager-contact {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: var(--main-red);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.manager-contact:hover {
    background-color: #c90b0b;
    color: #fff;
}

.custom-tabs {
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 30px;
}

.custom-tabs .nav-link {
    color: #666;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    padding: 15px 25px;
    position: relative;
    background: transparent;
}

.custom-tabs .nav-link:hover {
    color: var(--main-blue);
}

.custom-tabs .nav-link.active {
    color: var(--main-blue);
    background: transparent;
    font-weight: 800;
}

.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--main-red);
    border-radius: 3px 3px 0 0;
}

.detail-table th {
    background-color: var(--bg-gray);
    width: 40%;
    font-weight: 600;
    color: var(--main-blue);
}

.detail-table td {
    color: #555;
}

.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list li {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.doc-list li:hover {
    border-color: var(--main-blue);
    box-shadow: 0 4px 10px rgba(4, 31, 74, 0.08);
    transform: translateX(5px);
}

.doc-icon {
    font-size: 2rem;
    color: var(--main-red);
    margin-right: 20px;
}

.doc-info {
    flex-grow: 1;
}

.doc-title {
    font-weight: 600;
    color: var(--main-blue);
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    font-size: 1.05rem;
}

.doc-title:hover {
    color: var(--main-red);
}

.doc-meta {
    font-size: 0.8rem;
    color: #888;
}

.doc-download-btn {
    background-color: var(--bg-gray);
    color: var(--main-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.doc-download-btn:hover {
    background-color: var(--main-blue);
    color: #fff;
}

@media (max-width: 768px) {
    .house-main-img {
        height: 250px;
    }

    .custom-tabs .nav-link {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .detail-table th {
        width: 50%;
    }
}

.tab-content-box .table-responsive {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .house-news-card .col-md-4 {
        max-height: 220px;
        overflow: hidden;
    }

    .custom-tabs .nav-link {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
