/*
Theme Name: GetVisa
Theme URI: https://www.getvisa.co.za
Author: GetVisa (help@getvisa.co.za)
Description: A travel theme for South African travelers
Version: 1.2.3
License: Commercial. All Rights Reserved.
*/

/* Variables */
:root {
    --primary-color: #0b409c;
    --secondary-color: #ffc947;
    --accent-color: #192a53;
    --light-bg: #f2f7ff;
    --text-color: #333333;
    --border-color: #d9dbe9;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
}

body.home.blog {
    margin: 0;
}

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

/* Header */
.site-header {
    background: var(--accent-color);
    padding: 0;
    margin: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0 1.5rem;
    position: relative;
}
.landing-header .header-top {
    justify-content: center;
}
.landing-header .site-branding {
    margin: 0 auto;
    text-align: center;
}

.site-logo {
    height: 100px;
    width: auto;
}

.site-branding {
    margin: 0 auto;
}

.header-menu {
    background: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation Menu */
.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .menu-item {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
}

.nav-menu .menu-item:hover .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    margin: 0;
}

.hero-section .container {
    max-width: 800px;
}

.success-rate {
    text-align: center;
    margin-bottom: 0.5rem;
}

.success-rate span {
    color: #4ade80;
    font-size: 0.875rem;
}

.hero-section h1 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.archive-header h1 {
    text-align: center;
    text-transform: capitalize;
}

/* Modern Search */
.modern-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.modern-search form {
    position: relative;
}

.modern-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-search input:focus {
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-search input::placeholder {
    color: #666;
}

.modern-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Visa Categories */
.visa-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.visa-category {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.visa-category:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.visa-category h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.visa-category p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.country-count {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.9rem;
}

/* Visa Toggle */
.visa-toggle {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.visa-toggle-wrapper {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.visa-filter {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    color: #666;
    transition: all 0.2s ease;
    cursor: pointer;
}

.visa-filter:hover {
    color: var(--primary-color);
    background: white;
}

.visa-filter.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Modern Country Cards */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modern-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card a {
    text-decoration: none;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-card .card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.modern-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-card:hover .card-image img {
    transform: scale(1.05);
}

.modern-card .visa-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.modern-card .card-content {
    padding: 1rem;
}

.modern-card .card-content h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-color);
}

.modern-card .card-content p {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Flag Layout */
.flag-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.flag-container {
    width: 300px;
    aspect-ratio: 3/2;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.country-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Country Single Page */
.country-single .flag-title {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.country-single .flag-container, 
.country-single .sa-flag {
    width: 300px;
    flex: 0 0 300px;
    aspect-ratio: 3/2;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.country-single h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* Visa Info Box */
.visa-requirements-box {
    background: white;
    border: 1px solid var(--primary-color);
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.visa-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #BAE6FD;
}

.visa-info h2, 
.visa-requirements-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.visa-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Map Styles */
.map-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.world-map-container {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    padding: 1rem;
    overflow-x: hidden;
}

.map-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.map-wrapper svg {
    width: 100%;
    height: auto;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

path {
    fill: #ccc;
    cursor: pointer;
    transition: fill 0.3s;
}

path.visa-free { fill: #4CAF50; }
path.eta { fill: #2196F3; }
path.e-visa { fill: #9C27B0; }
path.visa-on-arrival { fill: #FFC107; }
path.visa-required { fill: #F44336; }
path:hover { opacity: 0.8; }

.map-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.legend-item::before {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
}

.legend-item.visa-free::before { background-color: #4CAF50; }
.legend-item.eta::before { background-color: #2196F3; }
.legend-item.e-visa::before { background-color: #9C27B0; }
.legend-item.visa-on-arrival::before { background-color: #FFC107; }
.legend-item.visa-required::before { background-color: #F44336; }

/* Footer & Meta */
.site-footer {
    background: var(--accent-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.copyright a {
    color: white;
    text-decoration: none;
}

.footer-menu {
    margin: 1.5rem 0;
}

.footer-menu > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.footer-column {
  text-align: left;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
  opacity: 0.95;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-column ul li {
  margin: 0;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer-column ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}


/* Mobile Menu Base Styles */
.burger-menu {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-container {
        padding: 1rem 1rem 0;
    }

    /* Navigation */
    .header-menu {
        display: none;
    }

    .burger-menu {
        display: block;
        position: absolute;
        top: 2rem;
        right: 1rem;
        z-index: 1000;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 999;
        padding: 4rem 1rem 1rem;
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block !important;
    }

    .mobile-menu .nav-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
        gap: 0;
    }

    .mobile-menu .nav-menu a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        display: block;
        text-align: left;
        width: 100%;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }

    .nav-menu .sub-menu a {
        padding-left: 2rem;
    }

    /* Map specific mobile styles */
    .map-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .map-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .map-wrapper svg {
        min-width: 800px;
        height: auto;
        display: block;
    }

    path {
        stroke-width: 0.5;
        touch-action: pan-x pan-y;
    }

    .tooltip {
        padding: 8px 12px;
        font-size: 12px;
        background-color: rgba(51, 51, 51, 0.95);
        border-radius: 4px;
        max-width: 200px;
        white-space: nowrap;
    }

    .map-legend {
        gap: 0.5rem;
        margin: 1rem 0;
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-item {
        font-size: 12px;
        padding: 4px 0;
        width: 100%;
    }

    .legend-item::before {
        width: 12px;
        height: 12px;
        margin-right: 8px;
    }

    .map-scroll-indicator {
        display: block;
        text-align: center;
        color: #666;
        font-size: 0.8rem;
        margin: 0.5rem 0;
        opacity: 0.8;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .header-menu {
        display: block !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .burger-menu {
        display: none !important;
    }
    
    .map-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .map-wrapper svg {
        width: 100%;
        max-width: 1200px;
        height: auto;
    }
}

/* Generic Button Styles */
button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--accent-color);
}

/* iOS-specific styles */
@supports (-webkit-overflow-scrolling: touch) {
    .map-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* === Worker additions === */

/* === Phase 2 additions === */

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Trust strip */
.trust-strip {
  background: var(--primary-color);
  padding: 1rem 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}
.trust-check {
  background: var(--secondary-color);
  color: var(--accent-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* How It Works */
.how-it-works {
  background: #fff;
  padding: 3rem 0;
  border-bottom: 1px solid #e8e8e8;
}
.how-it-works h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; padding: 1rem; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; color: var(--text-color); margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: #666; line-height: 1.65; margin: 0; }

/* Popular Destinations */
.popular-destinations {
  background: var(--light-bg, #f2f7ff);
  padding: 2.5rem 0;
}
.popular-destinations h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.pop-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.pop-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.pop-flag { width: 64px; height: 43px; object-fit: cover; border-radius: 3px; }
.pop-card-name { font-size: 0.82rem; font-weight: 600; color: var(--primary-color); line-height: 1.3; }

/* Section heading for All Countries */
.section-heading {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb { padding: 0.75rem 0 1rem; }
.breadcrumb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after { content: '\203A'; margin: 0 0.4rem; color: #aaa; }
.breadcrumb-list a { color: var(--primary-color); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li:last-child { color: #666; }

/* Quick Facts Panel */
.quick-facts-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8fbff;
  border-radius: 8px;
  border: 1px solid #dde8f8;
}
.quick-fact { display: flex; flex-direction: column; gap: 0.2rem; }
.qf-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}
.qf-value { font-size: 0.95rem; font-weight: 600; color: var(--primary-color); }

/* FAQ Accordion */
.faq-section {
  margin-top: 2rem;
  border-top: 2px solid #e8e8e8;
  padding-top: 1.5rem;
}
.faq-section h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-color, #222);
  cursor: pointer;
  gap: 1rem;
  border-radius: 0;
}
.faq-question:hover { color: var(--primary-color); background: none; }
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--primary-color);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1rem; }
.faq-answer p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: #555; }

/* Last Updated */
.last-updated { margin-top: 1.5rem; color: #999; font-size: 0.82rem; }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }

/* Override old absolute-positioned badge — badges are now inline in .card-body */
.modern-card .visa-badge {
  position: static;
  background: unset;
  color: unset;
  padding: unset;
  border-radius: unset;
  font-size: unset;
  font-weight: unset;
}
/* Also ensure a.modern-card is the positioned ancestor */
a.modern-card { position: relative; }

/* Country cards as links */
a.modern-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}
.country-flag {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body {
  padding: 0.75rem 1rem 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--primary-color);
}
.visa-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.visa-badge.visa-free { background: #d4edda; color: #155724; }
.visa-badge.e-visa { background: #cce5ff; color: #004085; }
.visa-badge.eta { background: #fff3cd; color: #856404; }
.visa-badge.visa-on-arrival { background: #d1ecf1; color: #0c5460; }
.visa-badge.visa-required { background: #f8d7da; color: #721c24; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #fff;
}

/* Hero subtitle */
.hero-subtitle { color: rgba(255,255,255,0.85); text-align: center; font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Autocomplete */
.modern-search { position: relative; }
.search-container { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 6px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.autocomplete-list li {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.autocomplete-list li:hover { background: #f5f5f5; }

/* Country page layout */
.country-hero {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 0 2rem;
}
.country-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-flag {
  width: 80px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.country-hero h1 { margin: 0; font-size: 2rem; }

.country-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.country-layout.has-form {
  grid-template-columns: 1fr 420px;
}
@media (max-width: 1024px) {
  .country-layout.has-form {
    grid-template-columns: 1fr;
  }
}

.visa-requirements-box {
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.visa-requirements-box.visa-free { background: #d4edda; border-left: 5px solid #28a745; }
.visa-requirements-box.e-visa { background: #cce5ff; border-left: 5px solid #007bff; }
.visa-requirements-box.eta { background: #fff3cd; border-left: 5px solid #ffc107; }
.visa-requirements-box.visa-on-arrival { background: #d1ecf1; border-left: 5px solid #17a2b8; }
.visa-requirements-box.visa-required { background: #f8d7da; border-left: 5px solid #dc3545; }
.visa-requirements-box h2 { margin-top: 0; font-size: 1.3rem; }
.country-content { line-height: 1.7; }

/* Sticky form sidebar */
.sticky-form { align-self: start; position: sticky; top: 1rem; }
.visa-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}
.visa-form h3 { margin-top: 0; color: var(--primary-color); }
.form-intro { font-size: 0.9rem; color: #666; margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: #444; }
.form-group input, .form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(11,64,156,0.15);
}
.btn-submit {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-color); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-response {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.form-response.success { background: #d4edda; color: #155724; }
.form-response.error { background: #f8d7da; color: #721c24; }

/* Map legend */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}
.legend-item.visa-free { background: #d4edda; color: #155724; }
.legend-item.e-visa { background: #cce5ff; color: #004085; }
.legend-item.eta { background: #fff3cd; color: #856404; }
.legend-item.visa-on-arrival { background: #d1ecf1; color: #0c5460; }
.legend-item.visa-required { background: #f8d7da; color: #721c24; }

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; color: #ccc; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #aaa; text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 1rem 0; text-align: center; }
.footer-bottom p { margin: 0.5rem auto; }
.disclaimer { font-size: 0.8rem; color: #888; line-height: 1.5; max-width: 800px; margin: 0 auto; }
.footer-bottom a { color: #aaa; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
