﻿/* ==================== CONTACT HOME SECTION ==================== */
.contact-home-section {
    padding: 60px 0 80px;
    background: #fff; /* ⭐ NỀN TRẮNG */
}

/* ⭐ HEADER - GIẢM MARGIN BOTTOM ⭐ */
.contact-home-section__header {
    text-align: center;
    margin-bottom: 30px; /* ⭐ GIẢM TỪ 50px XUỐNG 30px */
}

.contact-home-section__title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* ⭐ WRAPPER 2 CỘT: OFFICES (TRÁI) + MAP (PHẢI) ⭐ */
.contact-home-section__wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ⭐ CỘT TRÁI: DANH SÁCH CHI NHÁNH ⭐ */
.contact-home-section__offices {
    flex: 1;
    min-width: 0;
}

/* ⭐ CỘT PHẢI: GOOGLE MAP CỐ ĐỊNH ⭐ */
.contact-home-section__map {
    width: 450px;
    min-width: 450px;
    flex-shrink: 0;
    position: sticky;
    top: 120px; /* Sticky khi scroll */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.contact-home-section__map iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ==================== OFFICE ITEM ==================== */
.office-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.office-item:last-child {
    margin-bottom: 0;
}

.office-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ⭐ ACTIVE STATE - HIGHLIGHT CHI NHÁNH ĐANG CHỌN ⭐ */
.office-item.office-item--active {
    box-shadow: 0 4px 20px rgba(3, 78, 162, 0.15);
}

.office-item.office-item--active .office-item__header {
    background: rgba(3, 78, 162, 0.03);
}

/* HEADER */
.office-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    background: #fff;
}

.office-item__header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.office-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.office-item__header:hover .office-item__icon {
    transform: scale(1.1);
}

.office-item__icon i {
    font-size: 10px;
    font-weight: 700;
}

.office-item__header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ⭐ CONTENT - CHỈ THÔNG TIN ⭐ */
.office-item__content {
    padding: 15px 20px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.office-item__content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.office-item__content p:last-child {
    margin-bottom: 0;
}

.office-item__content strong {
    color: #333;
    font-weight: 600;
}

.office-item__content a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.office-item__content a:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .contact-home-section__map {
        width: 400px;
        min-width: 400px;
    }
    
    .contact-home-section__map iframe {
        height: 450px;
    }
}

@media (max-width: 991px) {
    .contact-home-section {
        padding: 50px 0 60px;
    }
    
    .contact-home-section__header {
        margin-bottom: 25px; /* ⭐ GIẢM TƯƠNG ỨNG */
    }
    
    .contact-home-section__title {
        font-size: 28px;
    }
    
    /* CHUYỂN SANG LAYOUT DỌC */
    .contact-home-section__wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-home-section__map {
        width: 100%;
        min-width: unset;
        position: relative;
        top: unset;
        order: -1; /* Map lên trên đầu */
    }
    
    .contact-home-section__map iframe {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .contact-home-section {
        padding: 40px 0 50px;
    }
    
    .contact-home-section__header {
        margin-bottom: 20px; /* ⭐ GIẢM TƯƠNG ỨNG */
    }
    
    .contact-home-section__title {
        font-size: 24px;
    }
    
    .contact-home-section__map iframe {
        height: 300px;
    }
    
    .office-item__header {
        padding: 14px 15px;
        gap: 10px;
    }
    
    .office-item__icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
    
    .office-item__icon i {
        font-size: 9px;
    }
    
    .office-item__header h4 {
        font-size: 12px;
    }
    
    .office-item__content {
        padding: 12px 15px 15px;
    }
    
    .office-item__content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-home-section__title {
        font-size: 20px;
    }
    
    .contact-home-section__header {
        margin-bottom: 15px; /* ⭐ GIẢM TƯƠNG ỨNG */
    }
    
    .contact-home-section__map iframe {
        height: 250px;
    }
    
    .office-item__header h4 {
        font-size: 11px;
    }
    
    .office-item__content p {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .office-item {
        margin-bottom: 10px;
    }
}