.country-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none;
}

.country-card .card-body {
    position: relative;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover::before {
    opacity: 1;
}

.region-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none;
}

.region-image-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.region-card:hover .region-image {
    transform: scale(1.1);
}

.card-hover-shadow {
    transition: all 0.3s ease;
}

.card-hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.esim-category-tabs .nav-link {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.esim-category-tabs .nav-link:hover {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.esim-category-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Additional styles for home page */
#eSimCategoryTabs .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem 0.375rem 0 0;
}

#eSimCategoryTabs .nav-link.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

#eSimCategoryTabs .nav-link:not(.active):hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.esim-category-grid .card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}

.esim-category-grid .card:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.esim-category-grid .card:hover .card-title {
    color: var(--bs-primary);
}
        
/* Datalist styling for country search */
#searchDestinationForm::-webkit-calendar-picker-indicator {
    opacity: 0;
}

/* Make the dropdown appear with cleaner styling */
datalist {
    max-height: 300px;
    overflow-y: auto;
}

/* Custom styling for autocomplete dropdown (these will be applied through JS) */
.country-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-autocomplete-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}