/* Phase 3 dynamic frontend helpers. Does not change layout; only supports DB-driven images. */
.gvw-country-visual {
    overflow: hidden;
}

.gvw-country-visual-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.gvw-destination-code.gvw-country-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gvw-opportunity-flag.gvw-country-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic country visual fixes */
.gvw-country-visual {
    overflow: hidden;
    text-decoration: none;
}

.gvw-country-visual-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

/* Explore Destinations abbreviation */
.gvw-destination-code.gvw-country-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold) !important;
    font-family: var(--en);
    font-weight: 800;
    letter-spacing: 0.015em;
    text-decoration: none;
}

/* Latest Visa Opportunities country badge */
.gvw-opportunity-flag.gvw-country-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--n900) !important;
    font-family: var(--en);
    font-weight: 900;
    letter-spacing: 0.035em;
    text-decoration: none;
}

/* If uploaded country image exists inside opportunity badge */
.gvw-opportunity-flag.gvw-country-visual .gvw-country-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* If uploaded country image exists inside destination grid */
.gvw-destination-code.gvw-country-visual .gvw-country-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}