/* ==========================================================================
   Visa Services Page Stylesheet (Venus Travels)
   ========================================================================== */

/* ==========================================================================
   VISA SERVICES HERO SECTION (Desktop & Base)
   ========================================================================== */
.visa-hero-section {
    position: relative;
    width: 100%;
    /* Hero section height: 80vh in desktop and 60vh in mobile */
    height: 80vh;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    /* Extra padding-top to account for the absolute floating header */
    padding-top: 80px;
}

.visa-hero-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.visa-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.visa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 2;
}

.visa-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.visa-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Breadcrumbs: 15px poppins medium in mobile it is 12px */
.visa-hero-breadcrumbs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.visa-hero-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.visa-hero-breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb-current {
    color: #ffffff;
}

/* Heading: 80px in the desktop manrope medium and in mobile it is 45px */
.visa-hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 80px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* Description: 18px in the desktop and 16px in the mobile */
.visa-hero-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 860px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   VISA COUNTRY LISTING SECTION
   ========================================================================== */
.visa-listing-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0 120px;
    box-sizing: border-box;
}

.visa-listing-container {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Heading Block */
.visa-search-heading-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.visa-search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 780px;
}

/* Heading: 42px Manrope medium */
.visa-search-title {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Description: 16px Poppins regular */
.visa-search-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* ==========================================================================
   SEARCH BAR & RESULTS META ROW
   ========================================================================== */
.visa-filter-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Search Combobox Container */
.visa-search-combobox {
    position: relative;
    width: 340px;
    max-width: 100%;
    box-sizing: border-box;
}

.visa-search-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.visa-search-input-wrap:focus-within {
    border-color: #111111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.visa-search-icon {
    display: flex;
    align-items: center;
    color: #777777;
    margin-right: 10px;
    flex-shrink: 0;
}

.visa-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #111111;
    padding: 0;
    box-sizing: border-box;
}

.visa-search-input::placeholder {
    color: #888888;
    font-size: 15px;
}

.visa-search-clear {
    border: none;
    background: #eeeeee;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555555;
    font-size: 15px;
    line-height: 1;
    margin-left: 6px;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.visa-search-clear:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Countries Dropdown Menu */
.visa-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #ebebeb;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    padding: 8px 0;
    box-sizing: border-box;
}

.visa-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visa-dropdown-item {
    padding: 10px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.visa-dropdown-item:hover,
.visa-dropdown-item.is-highlighted {
    background-color: #f5f5f5;
    color: #000000;
    font-weight: 500;
}

.visa-no-dropdown-results {
    padding: 14px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888888;
    text-align: center;
}

/* Results Count Text: 18px desk and 16px mobile */
.visa-results-meta {
    display: flex;
    align-items: center;
}

.visa-results-count-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #555555;
    line-height: 1.4;
}

/* ==========================================================================
   VISA CARDS GRID (4 Cards in a row, 16px gap)
   ========================================================================== */
.visa-cards-grid-wrap {
    position: relative;
    width: 100%;
    min-height: 250px;
    box-sizing: border-box;
}

.visa-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Visa Card Styles (Matching Homepage Popular Visas Card) */
.visa-cards-grid .visa-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 231px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f2f2f2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.visa-cards-grid .visa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.visa-cards-grid .visa-card-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
}

.visa-cards-grid .visa-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.visa-cards-grid .visa-card:hover .visa-card-img {
    transform: scale(1.04);
}

/* Gradient overlay: bottom to top */
.visa-cards-grid .visa-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.visa-cards-grid .visa-card-fallback-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    z-index: 1;
}

.visa-cards-grid .visa-card-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visa-cards-grid .visa-card-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.visa-cards-grid .visa-card-learn-more {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease;
}

.visa-cards-grid .visa-card:hover .visa-card-learn-more {
    opacity: 0.9;
}

.visa-cards-grid .visa-card-learn-more svg {
    stroke: #ffffff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.visa-cards-grid .visa-card:hover .visa-card-learn-more svg {
    transform: translate(2px, -2px);
}

/* Empty State Message */
.visa-cards-grid .no-visas-msg {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    background: #fbfbfb;
    border-radius: 16px;
    border: 1px dashed #dedede;
}

.visa-cards-grid .no-visas-msg p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #777777;
    margin: 0;
}

/* AJAX Loading State */
.visa-grid-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 16px;
}

.visa-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000000;
    border-radius: 50%;
    animation: visaSpin 0.75s linear infinite;
}

@keyframes visaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   PAGINATION (1 2 3 ... 6 Next)
   ========================================================================== */
.visa-pagination-container {
    margin-top: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.visa-ajax-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.pagination-num-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-num-btn:hover {
    background-color: #f0f0f0;
}

.pagination-num-btn.is-active {
    background-color: #000000;
    color: #ffffff;
}

.pagination-prev-btn,
.pagination-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    border: 1px solid #e2e2e2;
    background: #ffffff;
}

.pagination-prev-btn:hover,
.pagination-next-btn:hover {
    background-color: #f7f7f7;
    border-color: #cccccc;
}

.pagination-ellipsis {
    color: #888888;
    padding: 0 4px;
    font-size: 16px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
    .visa-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
        row-gap: 20px;
    }
}

@media (max-width: 991px) {
    .visa-hero-section {
        /* Hero section height: 60vh in mobile */
        height: 60vh;
        min-height: 60vh;
        padding-top: 70px;
    }

    .visa-hero-container {
        padding: 0 20px;
    }

    /* Breadcrumbs: 12px in mobile */
    .visa-hero-breadcrumbs {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .breadcrumb-separator {
        font-size: 11px;
    }

    /* Heading: 45px in mobile */
    .visa-hero-title {
        font-size: 45px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    /* Description: 16px in mobile */
    .visa-hero-desc {
        font-size: 16px;
        line-height: 1.55;
    }

    .visa-listing-section {
        padding: 60px 0 80px;
    }

    .visa-listing-container {
        padding: 0 20px;
    }

    /* Heading: 32px on mobile */
    .visa-search-title {
        font-size: 32px;
    }

    /* Description: 14px on mobile */
    .visa-search-desc {
        font-size: 14px;
    }

    .visa-search-heading-block {
        margin-bottom: 30px;
    }

    .visa-filter-meta-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .visa-search-combobox {
        width: 100%;
    }

    /* Results count: 16px on mobile */
    .visa-results-count-text {
        font-size: 16px;
    }

    /* Card typography on mobile */
    .visa-cards-grid .visa-card-title {
        font-size: 16px;
    }

    .visa-cards-grid .visa-card-learn-more {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .visa-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .visa-cards-grid .visa-card {
        height: 220px;
    }
}

/* ==========================================================================
   VISA COUNTRY TAXONOMY PAGE: VISAS LISTING SECTION
   ========================================================================== */
.visa-country-listing-section {
    width: 100%;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Container: padding is 80px on top and bottom and 40px on sides; mobile: 60px on top/bottom, 20px on sides */
.visa-country-listing-container {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 80px 40px;
    box-sizing: border-box;
}

/* Two Cards Grid: distance between the two cards is 16px */
.visa-country-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Card: padding is 12px on desktop and 10px on mobile; gap between image and contents is 20px */
.visa-country-card {
    background-color: #ffffff;
    border: 1px solid #EBECEF;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.visa-country-card:hover {
    border-color: #D6DADE;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Image container: width is 255px on desktop; full width in mobile with 16:9 ratio */
.visa-country-card-media {
    position: relative;
    width: 255px;
    min-width: 255px;
    max-width: 255px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #F3F4F6;
    display: flex;
}

.visa-country-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.visa-country-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.visa-country-card:hover .visa-country-card-img {
    transform: scale(1.03);
}

/* Days Badge on Image (e.g. 120 Days / 21 Days) */
.visa-country-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffffff;
    color: #111111;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.2px;
}

/* Card Content: distance between heading, points, and button is 16px */
.visa-country-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Title: 24px */
.visa-country-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #111111;
    margin: 0 0 16px 0;
}

.visa-country-card-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.visa-country-card-title a:hover {
    color: #000000;
}

/* Specifications / Points List */
.visa-country-specs-list {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
    padding: 0;
}

/* Points item: 16px desktop, 14px mobile; distance between each point is 16px (8px top + 8px bottom) */
.visa-country-spec-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #4A4D53;
    padding: 8px 0;
    border-bottom: 1px solid #ECEEF1;
    box-sizing: border-box;
}

.visa-country-spec-item:first-child {
    padding-top: 0;
}

.visa-country-spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.visa-country-spec-label {
    font-weight: 500;
    color: #1E2024;
    white-space: nowrap;
}

.visa-country-spec-value {
    font-weight: 400;
    color: #4A4D53;
}

/* Button: Enquire Now with right arrow */
.visa-country-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
    width: fit-content;
    align-self: flex-start;
    margin-top: auto;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.visa-country-card-btn:hover {
    background-color: #222630;
    color: #ffffff;
    transform: translateY(-1px);
}

.visa-country-card-btn svg {
    display: block;
    transition: transform 0.2s ease;
}

.visa-country-card-btn:hover svg {
    transform: translateX(3px);
}

/* No Visas Message */
.visa-country-no-posts {
    text-align: center;
    padding: 40px 20px;
    background-color: #FAFAFA;
    border: 1px dashed #E0E0E0;
    border-radius: 12px;
}

.visa-country-no-posts p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666666;
    margin: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .visa-country-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Container: 60px on top and bottom, 20px on sides */
    .visa-country-listing-container {
        padding: 60px 20px;
    }

    /* Card: padding is 10px on mobile */
    .visa-country-card {
        padding: 10px;
        flex-direction: column;
        gap: 16px;
    }

    /* Image: full width in mobile with 16:9 ratio */
    .visa-country-card-media {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 8px;
    }

    .visa-country-card-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    /* Other details: 14px on mobile */
    .visa-country-spec-item {
        font-size: 14px;
        padding: 7px 0;
    }

    .visa-country-card-btn {
        font-size: 13px;
        padding: 9px 20px;
    }
}

