﻿.layout-main {
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
}

.layout-main > .col-12 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
}

/* ================================================
   CONTACT HEADER & TYPOGRAPHY
   ================================================ */
.contact-header {
    text-align: left;
    margin-bottom: 32px;
}

.contact-subtitle-container {
    width: 100%;
    mix-blend-mode: multiply;
    justify-content: flex-start;
    align-items: flex-start;
    display: inline-flex;
}

.contact-subtitle-wrap {
    padding: 4px 12px;
    background: #ECFDF3;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.contact-subtitle {
    text-align: center;
    color: #027A48;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
}

.contact-title {
    width: 100%;
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    word-wrap: break-word;
    margin: 12px 0;
    letter-spacing: -0.72px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    color: #475467;
}

/* ================================================
   CONTACT CARDS GRID
   ================================================ */
.contact-cards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.contact-card.active {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.contact-card .contact-card-title {
    transition: color 0.3s ease;
}

.contact-card:hover .contact-card-title,
.contact-card.active .contact-card-title {
    color: #0D9C4A;
}

.contact-card-icon {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    border-radius: 28px;
    border: 8px solid #ECFDF3;
    background: #D1FADF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.contact-card:hover .contact-card-icon,
.contact-card.active .contact-card-icon {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, #0D9C4A 0%, #0a7a3a 100%);
}

.contact-card:hover .contact-card-icon svg path,
.contact-card.active .contact-card-icon svg path {
    stroke: white;
}

.contact-card-title {
    color: #101828;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.contact-card-text {
    color: #475467;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.contact-card-value {
    color: #027A48;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

/* ================================================
   MAP SECTION
   ================================================ */
.map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-map-label {
    display: inline-flex;
    align-self: flex-start;
    background: #ECFDF3;
    color: #027A48;
    padding: 4px 12px;
    mix-blend-mode: multiply;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    animation: slideIn 0.4s ease-in-out forwards;
    flex-shrink: 0;
}

.map-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 400px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.map-wrapper iframe.fade-out {
    opacity: 0;
    animation: fadeOut 0.5s ease-in-out;
}

.map-wrapper iframe.fade-in {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.map-wrapper iframe.d-none {
    display: none;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   RESPONSIVE — Tablet (≤ 768px)
   stack dọc: cards trên, map dưới
   ================================================ */
@media (max-width: 768px) {
    .layout-main {
        flex-direction: column;
        gap: 24px;
    }

    .contact-title {
        font-size: 28px;
        line-height: 36px;
    }

    .contact-description {
        font-size: 16px;
        line-height: 24px;
    }

    .map-wrapper {
        min-height: 360px;
    }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 576px)
   ================================================ */
@media (max-width: 576px) {
    .contact-header {
        margin-bottom: 20px;
    }

    .contact-title {
        font-size: 22px;
        line-height: 30px;
        letter-spacing: -0.44px;
    }

    .contact-description {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 14px;
        gap: 10px;
    }

    .map-wrapper {
        min-height: 280px;
    }
}

