/* ========================================
   VISA REQUIREMENTS ARCHIVE PAGE STYLES
   Modern, Clean Design matching Blog Page
   Uses theme primary (#2b2d42) and secondary (#f8961e) colors
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.visa-archive-hero-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.page-template-template-visa-requirements-archive .visa-archive-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

body.page-template-template-visa-requirements-archive .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 45, 66, 0.85) 0%, rgba(248, 150, 30, 0.75) 100%);
    z-index: 1;
}

body.page-template-template-visa-requirements-archive .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    text-align: left;
}

body.page-template-template-visa-requirements-archive .hero-container {
    max-width: 800px;
    margin: 0;
}

body.page-template-template-visa-requirements-archive .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.page-template-template-visa-requirements-archive .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ARCHIVE CONTAINER & GRID
   ======================================== */

body.page-template-template-visa-requirements-archive .ts-breadcrumbs {
    margin-bottom: 2rem;
    padding: 0;
}

.visa-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ========================================
   FILTERS SECTION
   ======================================== */

.visa-archive-filters {
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(222.2, 84%, 4.9%);
}

.filter-group select {
    padding: 0.625rem 0.875rem;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: hsl(222.2, 84%, 4.9%);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: hsl(221.2, 83.2%, 53.3%);
    box-shadow: 0 0 0 3px hsla(221.2, 83.2%, 53.3%, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-button {
    padding: 0.625rem 1.5rem;
    background: var(--color-secondary, #f8961e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-button:hover {
    background: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.filter-reset {
    color: hsl(215.4, 16.3%, 46.9%);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.filter-reset:hover {
    color: hsl(222.2, 84%, 4.9%);
}

/* ========================================
   RESULTS COUNT
   ======================================== */

.visa-archive-count {
    margin-bottom: 1.5rem;
}

.visa-archive-count p {
    font-size: 0.9375rem;
    color: hsl(215.4, 16.3%, 46.9%);
    margin: 0;
}

/* ========================================
   VISA ARCHIVE GRID
   ======================================== */

.visa-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ========================================
   VISA CARD - MODERN DESIGN
   ======================================== */

.ts-visa-card {
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ts-visa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

/* Card Header */
.ts-visa-card__header {
    padding: 1.25rem;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visa-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.visa-route svg {
    flex-shrink: 0;
}

.route-from,
.route-to {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visa-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    align-self: flex-start;
}

.visa-type-badge.no-visa {
    background: rgba(34, 197, 94, 0.2);
}

.visa-type-badge.visa-on-arrival {
    background: rgba(59, 130, 246, 0.2);
}

.visa-type-badge.e-visa {
    background: rgba(168, 85, 247, 0.2);
}

.visa-type-badge.visa-required {
    background: rgba(239, 68, 68, 0.2);
}

/* Card Body */
.ts-visa-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ts-visa-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: hsl(222.2, 84%, 4.9%);
}

.ts-visa-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-visa-card__title a:hover {
    color: var(--color-secondary, #f8961e);
}

.ts-visa-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(215.4, 16.3%, 46.9%);
    margin: 0;
    flex: 1;
}

.ts-visa-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: hsl(215.4, 16.3%, 46.9%);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-item svg {
    flex-shrink: 0;
}

/* Card Footer Button */
.ts-visa-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--color-secondary, #f8961e);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    margin-top: auto;
    margin: 20px;
}

.ts-visa-card__button:hover {
    background: #f97316;
    color: white;
}

.ts-visa-card__button svg {
    transition: transform 0.2s ease;
}

.ts-visa-card__button:hover svg {
    transform: translateX(4px);
}

/* ========================================
   PAGINATION
   ======================================== */

.visa-archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.visa-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 8px;
    color: hsl(222.2, 84%, 4.9%);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.visa-archive-pagination .page-numbers:hover {
    background: hsl(210, 40%, 98%);
    border-color: var(--color-secondary, #f8961e);
    color: var(--color-secondary, #f8961e);
}

.visa-archive-pagination .page-numbers.current {
    background: var(--color-secondary, #f8961e);
    border-color: var(--color-secondary, #f8961e);
    color: #ffffff;
}

.visa-archive-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ========================================
   NO RESULTS STATE
   ======================================== */

.visa-archive-no-results {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.visa-archive-no-results svg {
    width: 64px;
    height: 64px;
    color: hsl(215.4, 16.3%, 46.9%);
    margin-bottom: 1.5rem;
}

.visa-archive-no-results h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 1rem 0;
}

.visa-archive-no-results p {
    font-size: 1rem;
    color: hsl(215.4, 16.3%, 46.9%);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.visa-archive-no-results .button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: var(--color-secondary, #f8961e);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.visa-archive-no-results .button:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    body.page-template-template-visa-requirements-archive .visa-archive-hero {
        height: 45vh;
        min-height: 350px;
    }

    .visa-archive-container {
        padding: 3rem 1.25rem;
    }

    .visa-archive-grid {
        gap: 1.75rem;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: 1;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    body.page-template-template-visa-requirements-archive .visa-archive-hero {
        height: 40vh;
        min-height: 300px;
    }

    body.page-template-template-visa-requirements-archive .hero-content {
        padding: 0 1rem 2rem;
    }

    body.page-template-template-visa-requirements-archive .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    body.page-template-template-visa-requirements-archive .hero-subtitle {
        font-size: 0.9375rem;
    }

    .visa-archive-container {
        padding: 2rem 1rem 3rem;
    }

    .visa-archive-filters {
        padding: 1.25rem;
    }

    .visa-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .ts-visa-card__header {
        padding: 1rem;
    }

    .visa-route {
        font-size: 0.9375rem;
        flex-wrap: wrap;
    }

    .ts-visa-card__body {
        padding: 1.25rem;
    }

    .ts-visa-card__title {
        font-size: 1rem;
    }

    .ts-visa-card__excerpt {
        font-size: 0.875rem;
    }

    .ts-visa-card__meta {
        font-size: 0.8125rem;
    }

    .ts-visa-card__button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .visa-archive-pagination {
        gap: 0.375rem;
        flex-wrap: wrap;
    }

    .visa-archive-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .visa-archive-no-results {
        padding: 3rem 1rem;
    }

    .visa-archive-no-results h2 {
        font-size: 1.5rem;
    }

    .visa-archive-no-results p {
        font-size: 0.9375rem;
    }

    .filter-button,
    .filter-reset {
        width: 100%;
        text-align: center;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .visa-type-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    .ts-visa-card__header {
        padding: 0.875rem;
    }

    .visa-route {
        font-size: 0.875rem;
    }
}

