﻿/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.visa-hero {
    min-height: auto;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 120px 24px 0px;
    gap: 24px;
    background: linear-gradient(170deg, #03111f 0%, #061e38 55%, #051929 100%);
    z-index: 10; /* Add z-index to create stacking context */
}

    .visa-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(1px 1px at 18% 22%, rgba(255,255,255,0.3) 0%, transparent 100%), radial-gradient(1px 1px at 42% 10%, rgba(255,255,255,0.2) 0%, transparent 100%), radial-gradient(1px 1px at 70% 18%, rgba(255,255,255,0.25) 0%, transparent 100%), radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,0.18) 0%, transparent 100%), radial-gradient(1px 1px at 60% 75%, rgba(255,255,255,0.15) 0%, transparent 100%), radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.2) 0%, transparent 100%);
        pointer-events: none;
        z-index: 0;
    }


/* ── BADGE ── */
.hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
}

    .hero-badge i {
        font-size: 14px;
    }


/* ── SEARCH BOX ── */
.search-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,0.35);
    padding: 0;
    gap: 0;
}

    .search-box i {
        padding: 0 14px;
        color: #9ca3af;
        font-size: 16px;
        flex-shrink: 0;
        line-height: 1;
    }

    .search-box input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 15px;
        color: #111;
        padding: 8px 0;
        background: transparent;
        font-family: inherit;
    }

        .search-box input::placeholder {
            color: #9ca3af;
            font-weight: 400;
        }

    .search-box button {
        background: #1d6fa8;
        border: none;
        border-radius: 0;
        padding: 8px 30px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
        font-family: inherit;
        align-self: stretch;
    }

        .search-box button:hover {
            background: #1a5f90;
        }


/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filter-bar {
    position: relative;
    z-index: 100; /* Increased z-index */
    width: 100%;
    max-width: 780px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 4px 28px rgba(0,0,0,0.3);
    padding: 0;
    gap: 0;
    margin-bottom: -30px !important;
}

.filter-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    min-width: 0;
}

    .filter-pill:hover {
        background: #f8fafc;
    }

    .filter-pill + .filter-pill {
        border-left: 1px solid #e5e7eb;
    }

    /* First pill - rounded left corners */
    .filter-pill:first-child {
        border-radius: 16px 0 0 16px;
    }

    /* Last pill - rounded right corners */
    .filter-pill:last-child {
        border-radius: 0 16px 16px 0;
    }

.filter-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

    .filter-icon.green {
        background: #dcfce7;
        color: #16a34a;
    }

    .filter-icon.blue {
        background: #dbeafe;
        color: #2563eb;
    }

    .filter-icon.orange {
        background: #fef3c7;
        color: #d97706;
    }

    .filter-icon.pink {
        background: #fce7f3;
        color: #db2777;
    }

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: static; /* Changed to static for proper dropdown positioning */
}

    .filter-item label {
        font-size: 11px;
        font-weight: 500;
        color: #9ca3af;
        white-space: nowrap;
        line-height: 1;
        display: block;
    }


    /* ══════════════════════════════════════
   NICE SELECT OVERRIDES
   (Nice Select replaces <select> with
    div.nice-select at runtime)
══════════════════════════════════════ */
    .filter-item .nice-select {
        /* reset all nice-select defaults */
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        float: none !important;
        height: auto !important;
        line-height: 1.4 !important;
        padding: 0 20px 0 0 !important;
        margin: 0 !important;
        width: 100% !important;
        /* text style — bold dark value */
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #111111 !important;
        font-family: inherit !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        position: static !important; /* Ensure static positioning */
    }

        /* the current selected value text */
        .filter-item .nice-select .current {
            font-size: 14px !important;
            font-weight: 700 !important;
            color: #111111 !important;
        }

        /* the dropdown arrow */
        .filter-item .nice-select::after {
            border-color: #9ca3af !important;
            border-width: 1.5px !important;
            height: 7px !important;
            width: 7px !important;
            right: 4px !important;
            margin-top: -5px !important;
        }

        /* open state arrow */
        .filter-item .nice-select.open::after {
            margin-top: -2px !important;
        }

        /* the dropdown list */
        .filter-item .nice-select .list {
            border-radius: 12px !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
            border: 1px solid #e5e7eb !important;
            min-width: 180px !important;
            margin-top: 8px !important;
            padding: 6px 0 !important;
            z-index: 9999 !important; /* Very high z-index */
            position: absolute !important;
            left: 0 !important;
            top: 100% !important;
        }

        /* each dropdown option */
        .filter-item .nice-select .option {
            font-size: 13px !important;
            font-weight: 400 !important;
            color: #374151 !important;
            padding: 10px 16px !important;
            line-height: 1.4 !important;
            min-height: unset !important;
        }

            .filter-item .nice-select .option:hover,
            .filter-item .nice-select .option.focus,
            .filter-item .nice-select .option.selected.focus {
                background: #f0f9ff !important;
                color: #1d6fa8 !important;
            }

            .filter-item .nice-select .option.selected {
                font-weight: 600 !important;
                color: #1d6fa8 !important;
            }


/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.visa-section {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Lower than hero section */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 32px;
        margin-bottom: 6px;
    }

    .section-title p {
        color: #6b7280;
    }


/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.country-card {
    position: relative;
    height: 420px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    transition: .35s;
    /* Fix for border-radius clipping in Safari/Chrome */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

    .country-card:hover {
        transform: translateY(-6px);
    }

.country-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
    filter: brightness(.9);
    display: block; /* Removes any inline spacing issues */
}

.country-card:hover .country-image {
    filter: brightness(1);
}

.country-flag {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.country-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,0) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    /* Round bottom corners to match parent */
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 1;
}

.country-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.country-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    transition: margin-bottom 0.35s;
}

.country-card:hover .country-meta {
    margin-bottom: 12px;
}

    .country-meta span {
        font-size: 10px;
        opacity: .7;
        display: block;
    }

    .country-meta strong {
        font-size: 14px;
        font-weight: 600;
    }

.price {
    color: #ffd700;
}

.hover-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.country-card:hover .hover-content {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.country-docs {
    font-size: 12px;
    margin-bottom: 8px;
}

.country-guarantee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    color: white;
}
.country-guarantee i{
    color: green;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

    .apply-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
    }