:root {
    --primary-color: #4a2a1a;
    --secondary-color: #6b4e31;
    --accent-color: #ff6f61;
    --accent-dark: #e65b50;
    --text-primary: #333333;
    --text-secondary: #6b4e31;
    --background-light: #FFF5E8;
    --background-warm: #f5e8d0;
    --background-form: #f8f1e0;
    --background-hover: #e8d9b8;
    --background-muted: #d8c9a8;
    --border-color: #e8d9b8;
    --shadow-light: 0 2px 10px rgba(74, 42, 26, 0.08);
    --shadow-medium: 0 8px 30px rgba(74, 42, 26, 0.12);
    --shadow-heavy: 0 20px 60px rgba(74, 42, 26, 0.15);
    --gradient-primary: linear-gradient(135deg, #4a2a1a 0%, #6b4e31 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6f61 0%, #e65b50 100%);
    --gradient-warm: linear-gradient(135deg, #f5e8d0 0%, #e8d9b8 100%);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
    overflow-x: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-secondary);
    z-index: 1000;
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 111, 97, 0.3);
}

/* Enhanced Hero Section - Fixed for long country names */
.hero-section {
    position: relative;
    min-height: 100vh;
    height: auto; /* Allow dynamic height */
    background: linear-gradient(135deg, rgba(74, 42, 26, 0.4), rgba(107, 78, 49, 0.5)), 
                url('/images/albania.jpg') center/cover;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--background-light);
    overflow: hidden;
    padding: 2rem 0; /* Add padding to prevent content from touching edges */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* Increased from 900px */
    width: 100%;
    padding: 2rem;
    animation: heroFadeIn 1.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4rem); /* Ensure minimum height accounting for padding */
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(74, 42, 26, 0.3));
    border-radius: var(--border-radius);
    z-index: -1;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem); /* Reduced max size */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--background-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6);
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem); /* Slightly reduced */
    margin-bottom: 2rem; /* Reduced from 3rem */
    opacity: 0.95;
    font-weight: 500;
    color: var(--background-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6);
    max-width: 100%;
    line-height: 1.4;
}

/* Enhanced Stats Grid - 2x2 Layout */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    grid-template-rows: repeat(2, 1fr); /* Force 2 rows */
    gap: 1rem;
    margin: 2rem auto 0;
    max-width: 800px; /* Reduced from 1000px for better 2x2 proportions */
    width: 100%;
}

.stat-item {
    background: rgba(255, 245, 232, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 245, 232, 0.3);
    padding: 1.5rem 1rem; /* Reduced padding */
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    cursor: default;
    min-height: 120px; /* Reduced from 140px */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 245, 232, 0.2);
    box-shadow: 0 20px 40px rgba(74, 42, 26, 0.2);
}

.stat-number {
    display: block;
    font-size: clamp(1.3rem, 2.5vw, 2rem); /* Reduced sizes */
    font-weight: 800;
    color: var(--background-light);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    word-break: break-all;
}

.stat-label {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    opacity: 0.9;
    color: rgba(255, 245, 232, 0.9);
    font-weight: 500;
}

/* Scroll Indicator - Better positioning */
.scroll-indicator {
    position: absolute;
    bottom: 20px; /* Reduced from 40px */
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2.5rem;
    color: var(--background-light);
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Quick Facts Section - Better integration */
.quick-facts {
    background: var(--gradient-primary);
    color: var(--background-light);
    padding: 4rem 0; /* Reduced from 5rem */
    margin-top: -80px; /* Reduced overlap */
    position: relative;
    z-index: 5;
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0% 100%);
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 80px; /* Match the clip-path offset */
}

.fact-card {
    background: rgba(255, 245, 232, 0.15);
    backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 245, 232, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 245, 232, 0.1), transparent);
    transition: left 0.5s;
}

.fact-card:hover::before {
    left: 100%;
}

.fact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(74, 42, 26, 0.2);
    background: rgba(255, 245, 232, 0.2);
}

.fact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.fact-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--background-light);
    font-family: 'Playfair Display', serif;
}

.fact-description {
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 245, 232, 0.85);
    line-height: 1.6;
}

/* Main Content */
.country-section {
    padding: 5rem 0;
    background: var(--background-light);
}

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

/* Country Header */
.country-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.country-title p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: flex-start;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 245, 232, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-light);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #5a3a2a 0%, #7b5e41 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-light);
    transform: translateY(-3px);
}

/* Flag Image */
.country-flags .flag-img {
    width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 4px solid white;
}

/* NEW DESIGN FOR TABBED CONTENT */
/* Tabbed Content System - Main Container */
.main-tabs-container {
    background: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Main Tab Navigation */
.main-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: var(--background-warm);
}

.main-tab-btn {
    background: none;
    border: none;
    padding: 1.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-right: 1px solid var(--border-color);
}

.main-tab-btn:last-child {
    border-right: none;
}

.main-tab-btn.active {
    background: var(--gradient-primary);
    color: var(--background-light);
}

.main-tab-btn:hover:not(.active) {
    background: var(--background-hover);
}

.main-tab-icon {
    font-size: 1.5rem;
}

/* Main Tab Content */
.main-tab-content {
    display: none;
    padding: 3rem;
    min-height: 400px;
}

.main-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sub-tabs within main tabs */
.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--background-warm);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sub-tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid var(--border-color);
}

.sub-tab-btn:last-child {
    border-right: none;
}

.sub-tab-btn.active {
    background: var(--primary-color);
    color: var(--background-light);
}

.sub-tab-btn:hover:not(.active) {
    background: var(--background-hover);
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Content Styling */
.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.content-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.content-section h4 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.7;
}

.content-section li:last-child {
    border-bottom: none;
}

.content-section li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced tip items for condensed sections */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: var(--background-warm);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.tip-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.08), rgba(255, 111, 97, 0.12));
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Itinerary Cards */
.itinerary-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.itinerary-card {
    background: var(--background-warm);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.itinerary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.itinerary-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.itinerary-card ul {
    list-style: none;
    padding: 0;
}

.itinerary-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.itinerary-card li:last-child {
    border-bottom: none;
}

/* Enhanced Packing Form */
.packing-form {
    background: linear-gradient(135deg, var(--background-light), var(--background-warm));
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    background: var(--background-light);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* FAQ Popup */
.faq-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.faq-popup.active {
    opacity: 1;
    visibility: visible;
}

.faq-content {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-heavy);
    margin: 2rem;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.faq-list details {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-list summary {
    padding: 1.5rem;
    cursor: pointer;
    background: var(--background-warm);
    font-weight: 600;
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-list summary:hover {
    background: var(--background-hover);
}

.faq-list details[open] summary {
    background: var(--gradient-primary);
    color: var(--background-light);
}

.faq-list details div {
    padding: 2rem 1.5rem;
    background: var(--background-light);
    line-height: 1.7;
}

/* Share Section */
.share-section {
    background: var(--background-warm);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 4rem 0;
    border: 1px solid var(--border-color);
}

.share-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.share-cta {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    color: white;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.x { background: #000000; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: var(--background-light);
}

/* Buy Me a Coffee Section */
.buy-coffee-section {
    background: linear-gradient(135deg, var(--background-warm) 0%, var(--background-hover) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem auto 4rem auto;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.buy-coffee-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(74, 42, 26, 0.03) 10px,
        rgba(74, 42, 26, 0.03) 20px
    );
    animation: coffeePattern 20s linear infinite;
    pointer-events: none;
}

@keyframes coffeePattern {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(20px) translateY(20px); }
}

.coffee-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.coffee-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: coffeeFloat 3s ease-in-out infinite;
}

@keyframes coffeeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.buy-coffee-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(74, 42, 26, 0.1);
}

.buy-coffee-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--background-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    border: 3px solid rgba(255, 245, 232, 0.2);
    position: relative;
    overflow: hidden;
}

.coffee-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 245, 232, 0.2), transparent);
    transition: left 0.5s;
}

.coffee-btn:hover::before {
    left: 100%;
}

.coffee-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #5a3a2a 0%, #7b5e41 100%);
}

.coffee-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.coffee-emoji {
    font-size: 1.3rem;
    animation: coffeeWiggle 2s ease-in-out infinite;
}

@keyframes coffeeWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.coffee-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* Loading state */
.loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-container.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 111, 97, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Donation prompt styles */
.donation-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.donation-prompt.active {
    display: flex;
}

.donation-content {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    margin: 2rem;
}

.donation-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.donation-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.donation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-buttons button,
.donation-buttons a {
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#donate-now {
    background: var(--gradient-secondary);
    color: white;
}

#download-anyway {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Button container for download options */
.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-btn,
.support-btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.download-btn {
    background: var(--gradient-primary);
    color: var(--background-light);
}

.support-btn {
    background: var(--gradient-secondary);
    color: white;
}

.download-btn:hover,
.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-small);
    border-left: 4px solid #e74c3c;
    margin: 1rem 0;
}

/* Packing list content visibility */
#packingListContent {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#packingListContent.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .quick-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        min-height: calc(100vh - 2rem);
    }
    
    .hero-content::before {
        top: -100vh;
        left: -100vw;
        right: -100vw;
        bottom: -100vh;
        border-radius: 0;
        background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(74, 42, 26, 0.4));
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 on mobile */
        gap: 0.75rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem;
        min-height: 100px;
    }
    
    .stat-number {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    
    .stat-label {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    }
    
    .quick-facts {
        margin-top: -40px;
        padding: 3rem 0;
        clip-path: polygon(0 40px, 100% 0, 100% 100%, 0% 100%);
    }
    
    .quick-facts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 40px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .fact-card {
        padding: 2rem 1.5rem;
    }
    
    .country-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .main-tabs {
        grid-template-columns: 1fr;
    }
    
    .main-tab-content {
        padding: 1.5rem;
    }
    
    .sub-tab-content {
        padding: 0;
    }
    
    .content-section {
        padding: 0;
    }
    
    .highlight-box {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .tip-grid {
        grid-template-columns: 1fr;
        margin: 1.5rem 0;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
    
    .sub-tabs {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .faq-content {
        padding: 2rem;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .packing-form {
        padding: 2rem;
    }
    
    /* Buy Me a Coffee responsive adjustments */
    .buy-coffee-section {
        padding: 2rem;
        margin: 1.5rem auto 3rem auto;
        max-width: calc(100% - 2rem);
    }
    
    .coffee-icon {
        font-size: 3rem;
    }
    
    .buy-coffee-section h3 {
        font-size: 1.7rem;
    }
    
    .buy-coffee-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .coffee-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.5rem 0;
    }
    
    .hero-content {
        padding: 0.5rem;
        min-height: calc(100vh - 1rem);
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 10vw, 3rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 even on small screens */
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.6rem;
        min-height: 90px;
    }
    
    .stat-number {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
    
    .stat-label {
        font-size: clamp(0.65rem, 3vw, 0.75rem);
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-indicator::after {
        font-size: 2rem;
    }
    
    .quick-facts {
        margin-top: -25px;
        padding: 2.5rem 0;
        clip-path: polygon(0 25px, 100% 0, 100% 100%, 0% 100%);
    }
    
    .quick-facts-grid {
        padding-top: 25px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .main-tab-content {
        padding: 1rem;
    }
    
    .sub-tab-content {
        padding: 0;
    }
    
    .content-section {
        padding: 0;
    }
    
    .highlight-box {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .tip-grid {
        margin: 1rem 0;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
    
    .faq-content {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .packing-form {
        padding: 1.5rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn,
    .support-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .donation-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .donation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-buttons button,
    .donation-buttons a {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    /* Buy Me a Coffee mobile styles */
    .buy-coffee-section {
        padding: 1.5rem;
        margin: 1rem auto 2rem auto;
        max-width: calc(100% - 1rem);
    }
    
    .coffee-icon {
        font-size: 2.5rem;
    }
    
    .buy-coffee-section h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .buy-coffee-section p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .coffee-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .coffee-note {
        font-size: 0.85rem;
        margin-top: 1.2rem;
    }
}

/* Special handling for very long country names */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 12vw, 2.5rem);
        line-height: 1.3;
    }
    
    .hero-stats {
        margin-top: 0.8rem;
    }
    
    .stat-item {
        min-height: 80px;
        padding: 0.8rem 0.4rem;
    }
}

/* Print Styles */
@media print {
    .faq-popup,
    .share-section,
    .buy-coffee-section,
    .loading-container,
    .donation-prompt,
    .progress-bar,
    .scroll-indicator {
        display: none !important;
    }
    
    .main-tabs-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}