/* ============================================================
   visa.css — Trip Designer Visa Listing Page
   ============================================================ */

/* ── Hero ── */
.visa-hero {
    position: relative;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
    overflow: visible;
}
.visa-hero-inner { position: relative; z-index: 3; }
.visa-hero-search { position: relative; z-index: 10; }
.visa-ac-dropdown { z-index: 100; }
.visa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,17,84,.82) 0%, rgba(30,64,175,.55) 50%, rgba(4,16,124,.82) 100%);
    z-index: 0;
}
.visa-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}
.visa-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.visa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.4);
    color: #fcd34d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(251,191,36,.18);
}
.visa-hero h1 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.visa-hero h1 span { color: #fbbf24; }
.visa-hero-sub {
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    margin: 0 0 18px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Stats row */
.visa-hero-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.visa-hero-stat {
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px;
    padding: 8px 18px;
    min-width: 100px;
    backdrop-filter: blur(8px);
    transition: transform .2s, background .2s;
}
.visa-hero-stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.18);
}
.visa-hero-stat-num {
    font-size: 1.35rem;
    font-weight: 900;
    display: block;
    color: #fbbf24;
    line-height: 1;
}
.visa-hero-stat-lbl {
    font-size: .7rem;
    color: rgba(255,255,255,.85);
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-top: 3px;
}

/* Search inside hero */
.visa-hero-search {
    display: flex;
    background: #fff;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 5px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    position: relative;
}
.visa-search-field { flex: 1; position: relative; min-width: 0; }
.visa-hero-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 11px 18px;
    font-size: .9rem;
    color: #1e293b;
}

/* Autocomplete dropdown */
.visa-ac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    text-align: left;
}
.visa-ac-dropdown.open { display: block; }
.visa-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f1f5f9;
}
.visa-ac-item:last-child { border-bottom: none; }
.visa-ac-item:hover,
.visa-ac-item.active {
    background: #eef2ff;
}
.visa-ac-flag {
    width: 28px; height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.visa-ac-flag-ph {
    width: 28px; height: 20px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #f1f5f9; border-radius: 3px;
    font-size: 14px;
    flex-shrink: 0;
}
.visa-ac-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.visa-ac-item:hover .visa-ac-name { color: var(--tp, #04107C); }

/* Scrollbar */
.visa-ac-dropdown::-webkit-scrollbar { width: 6px; }
.visa-ac-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
.visa-hero-search input::placeholder { color: #94a3b8; }
.visa-hero-search button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--tp, #04107C);
    border: none;
    padding: 0 26px;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}
.visa-hero-search button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateX(2px);
}

.visa-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 40px;
    background: #f1f5f9;
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 0;
    pointer-events: none;
}

/* ── Page ── */
.visa-page {
    background: #f1f5f9;
    min-height: 60vh;
    padding: 36px 0 60px;
}

/* ── Section heading ── */
.visa-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.visa-section-head h5 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.visa-section-head-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* ── Country Flag Grid ── */
.visa-country-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}
@media (max-width: 1199px) { .visa-country-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 991px)  { .visa-country-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .visa-country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .visa-country-grid { grid-template-columns: repeat(2, 1fr); } }

.visa-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 5px;
    padding: 16px 10px 12px;
    text-decoration: none;
    color: #374151;
    border: 2px solid #e2e8f0;
    transition: all .2s;
    text-align: center;
    cursor: pointer;
}
.visa-country-card:hover {
    border-color: var(--tp, #04107C);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4,16,124,.12);
    color: var(--tp, #04107C);
    text-decoration: none;
}
.visa-country-flag {
    width: 52px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.visa-country-flag-ph {
    width: 52px;
    height: 36px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.visa-country-name {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

/* ── Visa Cards Grid ── */
.visa-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.visa-results-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.visa-results-count {
    font-size: .82rem;
    background: #e0e7ff;
    color: var(--tp, #04107C);
    padding: 4px 12px;
    border-radius: 5px;
    font-weight: 700;
}
.visa-results-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.visa-results-back:hover { color: var(--tp, #04107C); text-decoration: none; }

.visa-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 991px) { .visa-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .visa-cards-grid { grid-template-columns: 1fr; } }

.visa-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(4,16,124,.06);
    border: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    text-decoration: none;
    color: inherit;
}
.visa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(4,16,124,.13);
    border-color: var(--tp, #04107C);
    text-decoration: none;
    color: inherit;
}
.visa-card-img {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    overflow: hidden;
}
.visa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.visa-card:hover .visa-card-img img { transform: scale(1.05); }
.visa-card-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.visa-card-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 25px;
    border-radius: 5px;
    box-shadow: 0 1px 6px rgba(0,0,0,.2);
    object-fit: cover;
}
.visa-card-flag-ph {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 25px;
    border-radius: 5px;
    background: rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.visa-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.visa-card-country {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.visa-card-title {
    font-size: .97rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.visa-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}
.visa-card-price {
    display: flex;
    flex-direction: column;
}
.visa-card-price-lbl {
    font-size: .7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.visa-card-price-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tp, #04107C);
}
.visa-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tp, #04107C);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: background .18s;
}
.visa-card-btn:hover { background: #0a1fa8; color: #fff; text-decoration: none; }

/* ── Empty State ── */
.visa-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 5px;
    border: 2px dashed #e2e8f0;
    text-align: center;
}
.visa-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.visa-empty-icon i { font-size: 2rem; color: #6366f1; }
.visa-empty h5 { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 0 0 6px; }
.visa-empty p  { font-size: .88rem; color: #94a3b8; margin: 0; }

/* ── Why Choose Us strip ── */
.visa-why {
    background: #fff;
    border-radius: 5px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(4,16,124,.05);
    display: flex;
    gap: 0;
    justify-content: space-around;
    flex-wrap: wrap;
}
.visa-why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
}
.visa-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--tp, #04107C);
}
.visa-why-text {
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
    max-width: 100px;
    line-height: 1.3;
}
