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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --theme-primary: #667eea;
    --theme-secondary: #764ba2;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --safe-color: #00b894;
    --caution-color: #fdcb6e;
    --danger-color: #d63031;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Enable smooth color transitions */
    --transition-duration: 0.6s;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background for Search Screen */
body.has-destination-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

body.has-destination-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(240, 240, 240, 0.8) 100%
    );
    z-index: -1;
}

/* Enhance content cards for better visibility on background */
body.has-destination-bg .search-card,
body.has-destination-bg .section,
body.has-destination-bg .ad-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

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

/* Onboarding Screen */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.logo-container {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

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

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

.onboarding-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease;
}

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

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-duration) ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.privacy-notice svg {
    color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color var(--transition-duration) ease;
}

.privacy-notice p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Buttons */
.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: all var(--transition-duration) ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    width: 100%;
}

.btn-with-icon {
    justify-content: space-between;
}

.btn-with-icon svg {
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

/* Emergency Floating Button */
.emergency-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff3838 0%, #ff0844 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 18px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 56, 56, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-duration) ease, transform 0.3s ease;
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 56, 56, 0.5), 0 0 0 0 rgba(255, 56, 56, 0.7);
    }
    50% {
        box-shadow: 0 10px 35px rgba(255, 56, 56, 0.7), 0 0 0 15px rgba(255, 56, 56, 0);
    }
}

.emergency-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 56, 56, 0.7);
    animation: none;
}

.emergency-floating-btn svg {
    animation: alertBlink 1.5s infinite;
}

@keyframes alertBlink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 24px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.4s ease;
}

.close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

/* Search Screen */
.app-header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.user-greeting h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-greeting p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-lg);
}

/* Results Container */
#resultsContainer {
    animation: fadeIn 0.5s ease;
}

.section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: slideUp 0.5s ease;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.section-title svg {
    color: #667eea;
    transition: color var(--transition-duration) ease;
}

/* Safety Assessment */
.safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.safety-badge.safe {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.safety-badge.caution {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
}

.safety-score {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    transition: all var(--transition-duration) ease;
}

.safety-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.considerations-list {
    list-style: none;
    margin-bottom: 30px;
}

.considerations-list li {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.considerations-list li:before {
    content: '✓';
    background: var(--primary-gradient);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: background var(--transition-duration) ease;
}

.news-item {
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color var(--transition-duration) ease, transform 0.3s ease, background-color 0.3s ease;
}

.news-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.news-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Attractions Grid */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.attraction-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.attraction-card::after {
    content: 'Click to learn more';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease, background var(--transition-duration) ease;
}

.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.attraction-card:hover::after {
    opacity: 1;
}

.attraction-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.attraction-content {
    padding: 20px;
}

.attraction-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.attraction-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffa502;
    font-weight: 600;
}

/* Cost Section */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cost-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
}

.cost-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cost-item {
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-label {
    color: var(--text-light);
}

.cost-value {
    font-weight: 600;
    color: var(--text-dark);
}

.daily-budget {
    background: var(--primary-gradient);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-top: 20px;
    transition: background var(--transition-duration) ease;
}

.daily-budget h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.budget-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.budget-option {
    text-align: center;
}

.budget-option .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.budget-option .amount {
    font-size: 2rem;
    font-weight: 700;
}

/* Hotels Grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.hotel-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hotel-card::after {
    content: 'Click to view details';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(79, 172, 254, 0.3);
}

.hotel-card:hover::after {
    opacity: 1;
}

.hotel-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hotel-content {
    padding: 20px;
}

.hotel-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.hotel-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    transition: color var(--transition-duration) ease;
}

/* Emergency Modal Content */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.emergency-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emergency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.emergency-card:hover::before {
    transform: translateX(0);
}

.emergency-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 56, 56, 0.4);
}

.emergency-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.emergency-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.emergency-section {
    margin-bottom: 30px;
}

.emergency-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.guide-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.guide-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    transition: color var(--transition-duration) ease;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: '•';
    color: #667eea;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color var(--transition-duration) ease;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Info Text */
.info-text {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 1.1rem;
}

/* Ad Container */
.ad-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: slideUp 0.5s ease;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 500;
}

.ad-unit {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    padding: 20px;
}

.ad-unit ins.adsbygoogle {
    background: transparent !important;
}

/* Regional Safety Styles */
.regional-safety-section {
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border-left: 5px solid #667eea;
}

.regional-advice-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-left: 4px solid #667eea;
}

.regional-advice-box svg {
    color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.regional-advice-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.region-category {
    margin-bottom: 30px;
}

.region-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.region-icon {
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.safe-title {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.caution-title {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
}

.danger-title {
    background: linear-gradient(135deg, #d63031 0%, #ff6b6b 100%);
    color: white;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.region-card {
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.region-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.safe-region {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #00b894;
}

.caution-region {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}

.danger-region {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #dc2626;
}

.region-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.region-level {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.region-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .onboarding-card {
        padding: 30px 25px;
    }

    .section {
        padding: 25px 20px;
    }

    .modal-content {
        margin: 10% 15px;
        padding: 30px 20px;
    }

    .emergency-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 0.8rem;
    }

    .attractions-grid,
    .hotels-grid {
        grid-template-columns: 1fr;
    }

    .regional-safety-section {
        padding: 20px 15px;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .region-category-title {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .flag-banner {
        padding: 1rem !important;
    }

    .flag-banner img {
        max-width: 150px !important;
    }

    .flag-banner h2 {
        font-size: 1.2rem !important;
    }
}

/* ================================
   Flag Banner Styles
   ================================ */

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

@keyframes flagWave {
    0%, 100% {
        transform: perspective(300px) rotateY(0deg);
    }
    25% {
        transform: perspective(300px) rotateY(2deg);
    }
    75% {
        transform: perspective(300px) rotateY(-2deg);
    }
}

#flagBanner {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

#flagBanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#flagImage {
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    animation: flagWave 4s ease-in-out infinite;
}

#flagImage:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

#destinationTitle {
    margin: 0.75rem 0 0 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

#flagBanner .flag-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Flag as page background */
#flagBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#flagBackground::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
}

/* ================================
   Navigation Header Styles
   ================================ */

.nav-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-logo svg {
    width: 40px;
    height: 40px;
}

.nav-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--primary-gradient);
    color: white;
}

.nav-links a.active {
    background: var(--primary-gradient);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ================================
   Article Content Styles
   ================================ */

.article-hero {
    background: var(--primary-gradient);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.article-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.article-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
    min-height: 100vh;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--theme-primary);
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 35px 0 20px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 30px 25px;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

.article-content strong {
    color: var(--text-dark);
}

/* ================================
   Breadcrumb Styles
   ================================ */

.breadcrumb {
    padding: 15px 0;
    background: #f8f9fa;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb-list a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list .separator {
    color: var(--text-light);
}

.breadcrumb-list .current {
    color: var(--text-light);
}

/* ================================
   Guide Card Styles
   ================================ */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.guide-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.guide-card-content {
    padding: 25px;
}

.guide-card-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.guide-card-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.guide-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.guide-card-meta .read-time {
    color: var(--text-light);
}

.guide-card-meta .read-more {
    color: var(--theme-primary);
    font-weight: 600;
}

/* ================================
   Static Page Footer
   ================================ */

.page-footer {
    background: var(--dark);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ================================
   CTA Section
   ================================ */

.cta-section {
    background: var(--primary-gradient);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin: 50px 0 0;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    border: none;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    color: white;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--theme-primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ================================
   Static Page Ad Container
   ================================ */

.static-ad-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0;
    text-align: center;
}

.static-ad-container .ad-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* ================================
   Tip Cards for Tips Page
   ================================ */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--theme-primary);
}

.tip-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ================================
   Quick Facts Box
   ================================ */

.quick-facts {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.quick-facts h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fact-icon {
    font-size: 1.5rem;
}

.fact-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.fact-content span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================================
   Mobile Navigation
   ================================ */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .article-hero h1 {
        font-size: 2rem;
    }

    .article-hero .subtitle {
        font-size: 1.1rem;
    }

    .article-content {
        padding: 40px 20px;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }
}
