.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
    padding: 0;
}




/* CSS Custom Properties for unified gradient system */
:root {
    --gradient-popular: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-express: linear-gradient(135deg, #007ADF 0%, #00ECBC 100%);
    --gradient-exotic: linear-gradient(135deg, #A27CFF 0%, #FF5156 100%);
    --gradient-all: linear-gradient(135deg, #E31D1C 0%, #0E51A0 100%);
    
    /* Light versions with opacity for backgrounds */
    --gradient-popular-light: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(247, 147, 30, 0.08) 100%);
    --gradient-express-light: linear-gradient(135deg, rgba(0, 122, 223, 0.08) 0%, rgba(0, 236, 188, 0.08) 100%);
    --gradient-exotic-light: linear-gradient(135deg, rgba(162, 124, 255, 0.08) 0%, rgba(255, 81, 86, 0.08) 100%);
    --gradient-all-light: linear-gradient(135deg, rgba(227, 29, 28, 0.08) 0%, rgba(14, 81, 160, 0.08) 100%);
}

/* Unified gradient backgrounds - using CSS custom properties */
.grid-bg-popular { 
    background: var(--gradient-popular-light);
    padding: 40px 100px;
    margin: 0;
}

.grid-bg-express { 
    background: var(--gradient-express-light);
    padding: 40px 100px;
    margin: 0;
}

.grid-bg-exotic { 
    background: var(--gradient-exotic-light);
    padding: 40px 100px;
    margin: 0;
}

.grid-bg-all { 
    background: var(--gradient-all-light);
    padding: 40px 100px;
    margin: 0;
}

/* Category header spacing and typography */
.category-header { 
    padding: 80px 100px 0px; 
    margin: 0;
}

/* Category header will inherit background from grid-bg classes */



/* Default category header styles */
.category-header h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 36px */
letter-spacing: -0.72px;

}

.category-header h2 {
    margin: 0;
    color: #555;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 24px */
letter-spacing: -0.4px;

}

/* Popular tab header styling */
.category-header.grid-bg-popular h1 {
color: #F7640E;


}

/* Express tab header styling */
.category-header.grid-bg-express h1 {
    color: #0091D8;
}



/* Exotic tab header styling */
.category-header.grid-bg-exotic h1 {
    color: #F35777;
}



/* All tab header styling */
.category-header.grid-bg-all h1 {
  color: #254C93;
}



@media (max-width: 1200px) {
    .category-header { 
        padding: 100px 60px 0px; 
        margin: 0;
    }
    .category-header h1 { font-size: 28px; }
    .category-header h2 { font-size: 16px; }
    .grid-bg-popular, .grid-bg-express, .grid-bg-exotic, .grid-bg-all {
        padding: 60px 60px 0px  60px;
        margin: 0;
    }
}
@media (max-width: 900px) {
    .category-header { 
        padding: 80px 32px 0px; 
        margin: 0;
    }
    .category-header h1 { font-size: 24px; }
    .category-header h2 { font-size: 14px; }
    .grid-bg-popular, .grid-bg-express, .grid-bg-exotic, .grid-bg-all {
        padding: 40px 32px;
        margin: 0;
    }
}
@media (max-width: 700px) {
    .category-header { 
        padding: 80px 16px 0px; 
        margin: 0;
    }
    .category-header h1 { font-size: 20px; }
    .category-header h2 { font-size: 13px; }
    .grid-bg-popular, .grid-bg-express, .grid-bg-exotic, .grid-bg-all {
        padding: 50px 16px 0px 16px;
        margin: 0;
    }
}

/* Lightweight AOS animations */
.aos-init { opacity: 0; transform: translateY(12px); }
.aos-animate { opacity: 1; transform: none; transition: opacity 400ms ease, transform 400ms ease; }

/*@media (max-width: 1200px) {*/
/*    .country-grid {*/
/*        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
/*    }*/
/*}*/

@media (max-width: 900px) {
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 700px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .country-price-row {
        gap: 4px;
    }
    
    .country-price-row a {
        font-size: 11px;
    }
}

.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;
    min-height: 54px; /* Ensure consistent height for all cards */
}

.country-name {
    color: #0E51A0;
    font-size: 18px;
    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;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px; /* Ensure consistent height for price row */
}

.country-price-text {
    color: #555555;
    font-size: 14px;
    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: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.12px;
    word-wrap: break-word;
}

.country-price-row a {
    color: #0E51A0;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #0E51A0;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

/* New badge style for Express Visa tab */
.badge-new {
    background: #0E51A0; /* Blue background when Express tab is not selected */
    color: white; /* White text when Express tab is not selected */
    font-size: 11px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid #0E51A0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* When Express tab is active/selected, change badge to white background with blue text */
.tab-item.active[data-filter="express"] .badge-new {
    background: white;
    color: #0E51A0;
    border: 1px solid #e5e5e5;
}

/* New button style for View details */
.view-details-btn {
    background: #0E51A0;
    color: white !important;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    height: 24px; /* Fixed height to match price row */
    line-height: 12px; /* Center text vertically */
    flex-shrink: 0; /* Prevent button from shrinking */
}

.view-details-btn:hover {
    background: #0a3d7a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14, 81, 160, 0.3);
}

/* Placeholder for cards without View details button */
.view-details-placeholder {
    height: 24px; /* Same height as button */
    width: 80px; /* Approximate width of button */
    flex-shrink: 0; /* Prevent shrinking */
}

.country-price-row a:hover {
    opacity: 0.8;
}

.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: 32px auto 40px; /* Add bottom margin and center horizontally */
}

/* 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%; }
} 