/**
 * Styles for Vietnam Real Estate Projects templates
 *
 * @author Sơn Lê
 * @version 1.0.1
 */

/* ------ Chung cho tất cả trang -------- */
.vn-real-estate-projects-archive,
.vn-real-estate-project-detail {
    margin: 30px 0;
}

/* ------ Styles cho archive page -------- */
.vn-real-estate-projects-header {
    margin-bottom: 30px;
}

.vn-real-estate-projects-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.vn-real-estate-projects-description {
    margin-bottom: 20px;
}

.vn-real-estate-projects-filter {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.vn-real-estate-projects-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vn-real-estate-projects-filter-field {
    flex: 1;
    min-width: 200px;
}

.vn-real-estate-projects-filter-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vn-real-estate-projects-filter-field select,
.vn-real-estate-projects-filter-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vn-real-estate-projects-filter-buttons {
    margin-top: 15px;
    text-align: right;
}

.vn-real-estate-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.vn-real-estate-project-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vn-real-estate-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vn-real-estate-project-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vn-real-estate-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vn-real-estate-project-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.vn-real-estate-project-card-status.completed {
    background-color: #4CAF50;
}

.vn-real-estate-project-card-status.under-construction {
    background-color: #FF9800;
}

.vn-real-estate-project-card-status.upcoming {
    background-color: #2196F3;
}

.vn-real-estate-project-card-content {
    padding: 15px;
}

.vn-real-estate-project-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.vn-real-estate-project-card-location {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.vn-real-estate-project-card-location i {
    margin-right: 5px;
}

.vn-real-estate-project-card-meta {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 10px;
    gap: 10px;
}

.vn-real-estate-project-card-price,
.vn-real-estate-project-card-area {
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.vn-real-estate-pagination {
    margin-top: 30px;
    text-align: center;
}

.vn-real-estate-pagination .page-numbers {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.vn-real-estate-pagination .page-numbers.current {
    background: #29aae3;
    color: #fff;
    border-color: #29aae3;
}

/* ------ Styles cho single page -------- */
.vn-real-estate-project-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 30px;
}

.vn-real-estate-project-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
}

.vn-real-estate-project-banner-content {
    padding: 30px;
    color: #fff;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.vn-real-estate-project-banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
}

.vn-real-estate-project-banner-address {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.vn-real-estate-project-banner-address i {
    margin-right: 10px;
}

.vn-real-estate-project-info-bar {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 30px;
}

.vn-real-estate-project-info-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

.vn-real-estate-project-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vn-real-estate-project-info-item {
    flex: 1;
    min-width: 150px;
    padding: 10px 0;
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.info-status.completed {
    color: #4CAF50;
}

.info-status.under-construction {
    color: #FF9800;
}

.info-status.upcoming {
    color: #2196F3;
}

.vn-real-estate-project-content-wrapper {
    margin-bottom: 40px;
}

.vn-real-estate-project-content-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.vn-real-estate-project-content-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.vn-real-estate-project-content-main {
    flex: 0 0 70%;
    max-width: 70%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.vn-real-estate-project-content-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.vn-real-estate-project-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.vn-real-estate-project-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vn-real-estate-project-tabs-nav li {
    margin: 0;
    padding: 12px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    background-color: #f5f5f5;
    margin-right: 5px;
    margin-bottom: -1px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.vn-real-estate-project-tabs-nav li:hover {
    background-color: #ededed;
}

.vn-real-estate-project-tabs-nav li.active {
    background-color: #fff;
    border-color: #e5e5e5;
    border-bottom-color: #fff;
    color: #29aae3;
}

.vn-real-estate-project-tabs-nav li.active:after {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: #29aae3;
    left: 0;
    top: -1px;
    border-radius: 3px 3px 0 0;
}

.vn-real-estate-project-tab-content {
    background: #fff;
    padding: 15px 0;
}

.vn-real-estate-project-tab-pane {
    display: none;
}

.vn-real-estate-project-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vn-real-estate-project-overview {
    line-height: 1.6;
}

.vn-real-estate-project-features {
    line-height: 1.6;
}

.vn-real-estate-project-gallery-images {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vn-real-estate-project-virtual-tour {
    margin-top: 30px;
}

.virtual-tour-container {
    margin-top: 15px;
    height: 400px;
}

.vn-real-estate-project-map {
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

.vn-real-estate-project-contact-box,
.vn-real-estate-project-developer-box,
.vn-real-estate-project-documents-box {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.vn-real-estate-project-contact-box h3,
.vn-real-estate-project-developer-box h3,
.vn-real-estate-project-documents-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit button {
    width: 100%;
    padding: 12px;
    background: #29aae3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.form-submit button:hover {
    background: #1e88c3;
}

.developer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.developer-logo img {
    width: 100%;
    height: auto;
}

.developer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.developer-description {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.developer-website a {
    display: inline-block;
    padding: 8px 15px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.documents-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li {
    margin-bottom: 10px;
}

.documents-list a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.documents-list a:hover {
    background: #e5e5e5;
}

.documents-list i {
    margin-right: 10px;
}

.vn-real-estate-related-projects {
    margin-top: 50px;
    margin-bottom: 30px;
}

.vn-real-estate-related-projects-container {
    max-width: 900px;
    margin: 0 auto;
}

.related-title {
    margin-bottom: 30px;
    font-size: 24px;
    position: relative;
    padding-bottom: 10px;
}

.related-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #29aae3;
}

.vn-real-estate-related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vn-real-estate-project-banner {
        height: 300px;
    }
    
    .vn-real-estate-project-banner-content h1 {
        font-size: 28px;
    }
    
    .vn-real-estate-project-content-main {
        flex: 1 1 100%;
    }
    
    .vn-real-estate-project-content-sidebar {
        flex: 1 1 100%;
    }
    
    .vn-real-estate-project-info-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .vn-real-estate-project-banner {
        height: 200px;
    }
    
    .vn-real-estate-project-banner-content h1 {
        font-size: 24px;
    }
    
    .vn-real-estate-project-info-item {
        flex: 1 1 100%;
    }
    
    .vn-real-estate-project-tabs-nav {
        flex-direction: column;
    }
    
    .gallery-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .vn-real-estate-project-content-row {
        flex-direction: column;
    }
    
    .vn-real-estate-project-content-main,
    .vn-real-estate-project-content-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .vn-real-estate-project-content-sidebar {
        margin-top: 30px;
    }
    
    .vn-real-estate-project-tabs-nav li {
        padding: 10px 15px;
        font-size: 14px;
    }
} 