/* ============================================================
   ASSOCIATION COUNTRY MAP — CSS
   File: assets/css/country-map.css
   Version: 1.0
   ============================================================ */

/* ── Section Wrapper ─────────────────────────────────────── */
.acm-section {
    width: 100%;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ── Info Panel ──────────────────────────────────────────── */
.acm-info-panel {
    max-width: 790px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 160px;
}

/* Individual country card */
.acm-card {
    display: none;
    animation: acmFadeIn 0.3s ease;
}
.acm-card--active {
    display: block;
}

@keyframes acmFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Country title */
.acm-card__title {
    font-family: 'Fjalla One';
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25em;
    color: #2E4155;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 16px;
}
.acm-card--active .acm-card__title {
    color: #00963E;
}
/* Two-column body */
.acm-card__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Address column */
.acm-card__address {
    font-family: 'Source Sans Pro';
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0;
    color: #2E4155;
}
.acm-card__address p strong {
    text-transform: uppercase;
}
.acm-card__address p {
    margin: 0;
}

/* Meta list (phone, fax, email, url) */
.acm-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 25px;
}
.acm-card__meta li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2E4155;
    font-family: 'Source Sans Pro';
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
}
.acm-card__meta li:last-child {
    margin-bottom: 0;
}
.acm-card__meta a {
    color: inherit;
    text-decoration: underline !important;
    word-break: break-all;
}
.acm-card__meta a:hover {
    text-decoration: underline;
}

/* Icon badges */
.acm-icon {
    color: #2E4155;
}
.acm-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

/* ── Map Wrapper ─────────────────────────────────────────── */
.acm-map-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;  /* remove inline-block gap */
    overflow: hidden;
}
.acm-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #828D99 100%);
    z-index: -1;
}

/* SVG container — fill full width */
.acm-svg-map {
    width: 100%;
    display: block;
}
.acm-svg-map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Markers Overlay ─────────────────────────────────────── */
.acm-markers-overlay {
    position: absolute;
    inset: 0;          /* top:0 right:0 bottom:0 left:0 */
    pointer-events: none;
}

/* Individual marker button */
.acm-marker {
    position: absolute;
    width: 24px;
    height: 38px;
    transform: translate(-50%, -100%); /* pin ke bottom ko coordinate pe rakh */
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    pointer-events: all;
    transition: transform 0.2s ease;
    z-index: 2;
}
.acm-marker:hover {
    transform: translate(-50%, -100%) scale(1.1);
    background-color: transparent;
}
.acm-marker:focus {
    outline: none;
    background-color: transparent;
}

/* Marker SVG icons */
.acm-marker svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Default: show green icon, hide white */
.acm-marker__default { display: block; }
.acm-marker__active  { display: none; }

/* Active state: swap icons + scale up */
.acm-marker--active .acm-marker__default { display: none; }
.acm-marker--active .acm-marker__active  { display: block; }
.acm-marker--active {
    transform: translate(-50%, -100%) scale(1.7);
    z-index: 20;
    background-color: transparent;
}
.acm-marker--active:hover {
    transform: translate(-50%, -100%) scale(1.1);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .acm-section {
        gap: 30px;
    }
    .acm-card__body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .acm-marker {
        width: 20px;
        height: 30px;
    }
    .acm-section {
        gap: 30px;
    }
    .acm-card__meta li,
    .acm-card__address {
        text-align: center;
        justify-content: center;
    }
    .acm-card__meta {
        padding-top: 0;
    }
    .acm-card__title {
        font-size: 20px;
        margin: 0 0 10px;
    }
}

@media (max-width: 480px) {
    .acm-marker {
        width: 16px;
        height: 24px;
    }
}
