.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 48px;
    padding-left: 160px;
    padding-right: 160px;
}

@media (max-width: 1200px) {
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 900px) {
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 700px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 48px;
        padding-bottom: 24px;
    }
}

@media (max-width: 500px) {
    .country-grid {
        grid-template-columns: 1fr;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.country-card {
    position: relative;
    height: 240px;
    border-radius: 16px;
    outline: 1px solid #f5f5f7;
    overflow: hidden;
}

.country-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.country-card-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: 8px;
    padding-right: 8px;
    padding-left: 0;
    z-index: 2;
    background: none;
    pointer-events: none;
}

.country-flag.right {
    position: static;
    margin-left: auto;
    margin-right: 0;
    top: unset;
    right: unset;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.country-badge {
    height: 24px;
    padding-left: 8px;
    padding-right: 8px;
    background: rgba(255, 255, 255, 0.90);
    overflow: hidden;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    color: black;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    line-height: 14.4px;
    word-wrap: break-word;
    pointer-events: auto;
    margin-left: 0;
    margin-right: 0;
}

.country-card-label {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 70px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(7px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    box-sizing: border-box;
}

.country-label-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-name {
    color: #0E51A0;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 21px;
    word-wrap: break-word;
}

.country-price-row {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.country-price-text {
    color: #555555;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 14.4px;
    word-wrap: break-word;
}

.country-price-value {
    color: black;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.12px;
    word-wrap: break-word;
}

.country-card-hidden {
    display: none;
}

.view-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 56px;
    width: 200px;
    border-radius: 8px;
    background: #EDF0F4;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border: none;
    margin: 32px auto 0;
    cursor: pointer;
    transition: background 0.2s;
}

.view-more-btn:hover {
    background: #e0e3e8;
}

.svg-icon {
    transition: transform 0.3s;
}

.svg-icon.rotated {
    transform: rotate(180deg);
}

.country-flag {
    display: flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 64px;
    border: 1px solid #FFF;
    background: #fff;
    position: absolute;
    top: 5px;
    right: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 64px;
    display: block;
}

.country-grid-more-btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0; /* Remove top margin since it's now inside the grid */
}

/* Skeleton placeholder */
.country-card.skeleton {
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}
.country-card.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.2s infinite;
}
@keyframes loading {
    0% { left: -150px; }
    100% { left: 100%; }
} 