/* ===== From Foshan to Global Markets (homepage module) ===== */
.gm-section {
    --gm-gold: #c9a050;            /* theme accent */
    --gm-gold-soft: #cfb27a;       /* low-saturation gold for routes */
    --gm-gold-deep: #a9823a;
    --gm-land: #e9e4da;
    --gm-ink: #1a1a1a;
    padding: var(--section-padding);
    background: #fff;
}
.gm-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gm-gold-deep);
    margin-bottom: 10px;
}
.gm-section .section-title { margin-bottom: 22px; }
.gm-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-text-light);
}
.gm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-areas: "map caps" "cta caps";
    grid-template-rows: auto 1fr;
    column-gap: 44px;
    row-gap: 26px;
    align-items: start;
}
.gm-map-col { grid-area: map; min-width: 0; }
.gm-caps { grid-area: caps; min-width: 0; }
.gm-cta { grid-area: cta; min-width: 0; }

/* Region chips */
.gm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.gm-chip {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--gm-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.gm-chip:hover { border-color: var(--gm-gold); color: var(--gm-gold-deep); }
.gm-chip[aria-pressed="true"] {
    background: var(--gm-ink);
    border-color: var(--gm-ink);
    color: #fff;
}
.gm-chip:focus { outline: none; }
.gm-chip:focus-visible {
    outline: 3px solid var(--gm-gold);
    outline-offset: 2px;
}

/* Map */
.gm-map {
    margin: 0;
    background: #faf8f4;
    border: 1px solid #efe9de;
    border-radius: 6px;
    padding: 18px 14px 12px;
}
.gm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gm-land { fill: var(--gm-land); stroke: #fff; stroke-width: .6; }
/* ---- Routes ---- */
.gm-route,
.gm-route-flow {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}
.gm-route {
    stroke: #c8a76a;            /* pale, low-saturation gold */
    stroke-width: 1.5px;
    opacity: .85;
    transition: opacity .35s ease, stroke .35s ease, stroke-width .35s ease;
}
.gm-route-flow { stroke: transparent; stroke-width: 0; }

.gm-node-dot { fill: #c8a76a; stroke: #fff; stroke-width: 1.2; transition: fill .3s ease; }
.gm-node-halo { fill: var(--gm-gold); opacity: .14; transition: opacity .3s ease; }
.gm-node { cursor: pointer; transition: opacity .3s ease; }
.gm-node-label {
    font-size: 15px;
    font-weight: 600;
    fill: #6b5a3a;
    paint-order: stroke;
    stroke: #faf8f4;
    stroke-width: 4px;
    stroke-linejoin: round;
    transition: opacity .3s ease;
}
.gm-origin-dot { fill: var(--gm-gold-deep); stroke: #fff; stroke-width: 1.5; }
.gm-origin-ring { fill: none; stroke: var(--gm-gold-deep); stroke-width: 1; opacity: .5; }
.gm-origin-pulse {
    fill: var(--gm-gold);
    opacity: .45;
    transform-box: fill-box;
    transform-origin: center;
    animation: gm-pulse 2.4s ease-out infinite;
}
.gm-origin-label {
    font-size: 16px;
    font-weight: 700;
    fill: var(--gm-ink);
    paint-order: stroke;
    stroke: #faf8f4;
    stroke-width: 4.5px;
    stroke-linejoin: round;
}
@keyframes gm-pulse {
    0%   { transform: scale(1);   opacity: .5; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* Narrow maps: region names live in the chips/cards; keep the map uncluttered */
.gm-map.gm-compact .gm-node-label { display: none; }

/* ---- Region selected ---- */
.gm-map:not([data-active="all"]) .gm-route { opacity: .22; }
.gm-map:not([data-active="all"]) .gm-route.is-active {
    opacity: 1;
    stroke: #c9a050;
    stroke-width: 2.25px;
}
/* subtle dash flowing out from Foshan along the active route */
.gm-map:not([data-active="all"]) .gm-route-flow.is-active {
    stroke: #fff6df;
    stroke-width: 1.5px;
    stroke-dasharray: 3 15;
    opacity: .95;
    animation: gm-flow 1.6s linear infinite;
}
@keyframes gm-flow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -18; }
}
.gm-map:not([data-active="all"]) .gm-node { opacity: 0; pointer-events: none; }
.gm-map:not([data-active="all"]) .gm-node.is-active { opacity: 1; }
.gm-map:not([data-active="all"]) .gm-node .gm-node-label { opacity: 0; }
.gm-node.is-active .gm-node-dot { fill: var(--gm-gold-deep); }
.gm-node.is-active .gm-node-halo { opacity: .25; }


.gm-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-light);
}
.gm-caption-tag {
    font-weight: 700;
    color: var(--gm-gold-deep);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}
.gm-status {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--color-text);
}

/* Fact strip under the map */
.gm-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.gm-fact {
    border-left: 2px solid var(--gm-gold);
    padding: 2px 0 2px 14px;
}
.gm-fact strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    color: var(--gm-ink);
}
.gm-fact span { font-size: 13px; color: var(--color-text-light); }

/* Right column */
.gm-photo { margin: 0 0 22px; }
.gm-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #efe9de;
}
.gm-photo figcaption {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gm-gold-deep);
}
.gm-cap-list { display: grid; gap: 18px; }
.gm-cap { display: flex; gap: 14px; align-items: flex-start; }
.gm-cap-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f6efe2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-cap-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gm-gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gm-cap h3 { font-size: 17px; margin: 0 0 4px; color: var(--gm-ink); line-height: 1.35; }
.gm-cap h3 a { color: inherit; }
.gm-cap h3 a:hover { color: var(--gm-gold-deep); }
.gm-cap p { font-size: 14px; color: var(--color-text-light); margin: 0; line-height: 1.6; }
.gm-cap-link { color: var(--gm-gold-deep); font-weight: 600; white-space: nowrap; }
.gm-cap a:focus-visible,
.gm-cta-btn:focus-visible {
    outline: 3px solid var(--gm-gold);
    outline-offset: 3px;
}

/* CTA */
.gm-cta {
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
}
.gm-confidential {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: 16px;
}
.gm-lock { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--gm-gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gm-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-align: center;
}
.gm-cta-hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Tablet / mobile */
@media (max-width: 992px) {
    .gm-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "map" "cta" "caps";
        grid-template-rows: auto;
    }
    .gm-cta { border-top: 0; padding-top: 0; }
}
@media (max-width: 768px) {
    .gm-intro { margin-bottom: 24px; font-size: 15px; }
    .gm-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        margin: 0 -20px 14px;
        padding: 4px 20px 6px;
        scrollbar-width: none;
    }
    .gm-chips::-webkit-scrollbar { display: none; }
    .gm-chip { scroll-snap-align: start; flex: 0 0 auto; }
    .gm-map { padding: 8px 4px 8px; margin: 0 -14px; border-radius: 0; border-left: 0; border-right: 0; }
    .gm-caption { padding: 0 10px; }
    .gm-cta {
        background: #faf8f4;
        border: 1px solid #efe9de;
        border-radius: 6px;
        padding: 18px;
    }
    .gm-cta-btn { display: flex; width: 100%; }
    .gm-facts { gap: 10px; }
    .gm-fact { padding-left: 10px; }
    .gm-fact strong { font-size: 16px; white-space: nowrap; }
    .gm-fact span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-origin-pulse { animation: none; opacity: .25; transform: scale(1.8); }
    .gm-route, .gm-node, .gm-node-dot, .gm-node-halo, .gm-node-label, .gm-chip { transition: none; }
    .gm-route-flow { animation: none !important; display: none; }
    .gm-route { transition: none; }
}
