/* =========================================
   Popular Routes Widget
   [visa_popular_routes] shortcode
   popular-routes.css
========================================= */

.vpr-section {
    width: 100%;
    padding: 16px 0;
}

.vpr-heading {
    text-align: center;
    margin-bottom: 36px;
}

.vpr-heading h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.vpr-heading p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Grid */
.vpr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.vpr-card {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    position: relative;
    overflow: hidden;
}

/* Blue top accent line — reveals on hover */
.vpr-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.vpr-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 36px rgba(37,99,235,0.12);
    transform: translateY(-5px);
}

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

/* Flags */
.vpr-card-flags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vpr-flag-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    flex-shrink: 0;
    line-height: 0;
}

.vpr-flag-wrap img {
    width: 40px;
    height: 28px;
    object-fit: cover;
    display: block;
}

.vpr-flag-arrow {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 400;
    flex-shrink: 0;
}

/* Body */
.vpr-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vpr-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    align-self: flex-start;
}

.vpr-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.vpr-card-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Footer */
.vpr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.vpr-price {
    font-size: 13px;
    color: #64748b;
}

.vpr-price strong {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 2px;
}

.vpr-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    transition: gap 0.2s ease;
}

.vpr-card:hover .vpr-cta {
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vpr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .vpr-grid { grid-template-columns: 1fr; gap: 14px; }
    .vpr-card  { padding: 20px; }
}