/* =============================================================
   Contact Footer Section — gm-contact-section
   ============================================================= */

.gm-contact-section {
    background: #FAF6F1;
    padding-block: 4rem 3rem;
    border-top: 1px solid #EEE5D4;
    margin-top: -55px;
}

.gm-contact-inner {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

/* ── Header ─────────────────────────────────────────────────── */
.gm-contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.gm-contact-heading {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #5E3E2E;
    margin: 0;
    line-height: 1.25;
}

.gm-contact-tagline {
    font-size: 0.9rem;
    color: #88735E;
    margin: 0;
    max-width: 260px;
    line-height: 1.6;
    padding-left: 20px;
    padding-right: 20px;
}



/* ── LINE block ─────────────────────────────────────────────── */
.gm-contact-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.gm-contact-line__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #EEE5D4;
    border-radius: 0.75rem;
    padding: 0.5rem 1.25rem 0.5rem 0.6rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gm-contact-line__badge:hover {
    background: #D7BDA4;
}

.gm-contact-line__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.gm-contact-line__id {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5E3E2E;
    letter-spacing: 0.01em;
}

.gm-contact-line__reply {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5E3E2E;
    margin: 0;
}

.gm-contact-line__qr {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 3px solid #EEE5D4;
    display: block;
}

/* ── Phone ──────────────────────────────────────────────────── */
.gm-contact-phone__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #5E3E2E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gm-contact-phone__link:hover {
    color: #C9A227;
}

.gm-contact-phone__icon {
    width: 22px;
    height: 22px;
    color: #C9A227;
    flex-shrink: 0;
}

/* ── Branches ───────────────────────────────────────────────── */
.gm-contact-branches {
    width: 100%;
}

.gm-contact-branches__heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5E3E2E;
    margin: 0 0 1rem;
}

/* ── Branch Tabs ────────────────────────────────────────────── */
.gm-branches-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.gm-branches-tab {
    padding: 0.45rem 1.2rem;
    border-radius: 100px;
    border: 2px solid #D7BDA4;
    background: transparent;
    color: #88735E;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.gm-branches-tab:hover {
    background: #EEE5D4;
    border-color: #C9A227;
    color: #5E3E2E;
}

.gm-branches-tab.is-active {
    background: #8B6349;
    border-color: #8B6349;
    color: #fff;
}

/* ── Branch Panels ──────────────────────────────────────────── */
.gm-branches-panels {
    width: 100%;
}

.gm-branches-panel {
    display: none;
}

.gm-branches-panel.is-active {
    display: block;
}

/* Two-column inner layout */
.gm-branches-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    text-align: left;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(90,58,26,0.10);
    min-height: 320px;
}

/* Left: map */
.gm-branches-panel__map {
    position: relative;
    min-height: 280px;
    background: #F7EDE6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-branches-panel__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gm-branches-panel__map-link,
.gm-branches-panel__no-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #5E3E2E;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    transition: color 0.2s;
}

.gm-branches-panel__map-link svg,
.gm-branches-panel__no-map svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.gm-branches-panel__map-link:hover {
    color: #C9A227;
}

/* Right: info */
.gm-branches-panel__info {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gm-branch-info__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #5E3E2E;
    line-height: 1.3;
}

.gm-branch-info__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.gm-branch-info__name a:hover {
    color: #C9A227;
}

.gm-branch-info__row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #5E3E2E;
    line-height: 1.6;
    min-width: 0;
}

.gm-branch-info__row > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    flex: 1;
}

.gm-branch-info__row p {
    margin: 0;
    width: 100%;
}

.gm-branch-info__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #C9A227;
    margin-top: 2px;
}

.gm-branch-info__phone {
    color: #5E3E2E;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1.25rem;
}

.gm-branch-info__phone:hover {
    color: #C9A227;
}

.gm-branch-info__license {
    font-size: 0.82rem;
    color: #88735E;
    margin-top: auto;
}

/* ── Social links ───────────────────────────────────────────── */
.gm-contact-social {
    width: 100%;
}

.gm-contact-social__heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5E3E2E;
    margin: 0 0 1.1rem;
}

.gm-contact-social__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gm-contact-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.gm-contact-social__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gm-contact-social__btn svg {
    width: 60px;
    height: 60px;
    display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 700px) {
    .gm-branches-panel__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .gm-branches-panel__map {
        min-height: 240px;
        aspect-ratio: 16 / 9;
        max-width: 100%;
        position: relative;
        overflow: hidden;
    }
    .gm-branches-panel__map iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .gm-branches-panel__info {
        padding: 1.25rem 1rem;
        min-width: 0;
        overflow: hidden;
    }

    .gm-branch-info__row {
        font-size: 0.85rem;
    }

    .gm-branch-info__phone {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .gm-contact-social__btn {
        width: 52px;
        height: 52px;
    }

    .gm-contact-social__btn svg {
        width: 52px;
        height: 52px;
    }
}
