/* WorldRouteGuide Modern Styles with Dark Mode Support */
:root {
    /* Light Mode Variables (Default) */
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --secondary-color: #6c757d;
    --accent-color: #ff9900;
    
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.95);
    --bg-footer: #0f172a; /* Always dark footer */
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(0, 102, 204, 0.3);
    
    --hero-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #94a3b8;
    --accent-color: #f59e0b;
    
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-nav: rgba(15, 23, 42, 0.7);
    --bg-nav-scrolled: rgba(15, 23, 42, 0.9);
    --bg-footer: #020617;
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #f8fafc;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.4);
    
    --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}

/* --- Modern Advanced Navbar --- */
.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-nav); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: var(--bg-nav-scrolled);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-card);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-heading) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fixed logo size for navbar */
.navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-width: 40px !important;
    object-fit: contain;
}

/* Footer logo size fix */
.footer h3 img {
    height: 32px !important;
    width: auto !important;
    max-width: 32px !important;
    object-fit: contain;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-color);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* --- Mobile Menu Styles --- */
.navbar-toggler {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(226, 232, 240, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Collapse */
@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-collapse {
        margin-top: 1.5rem;
        padding: 1.5rem;
        background: var(--bg-card);
        border-radius: 20px;
        box-shadow: var(--shadow-card);
        border: 1px solid var(--border-color);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-track {
        background: var(--bg-body);
        border-radius: 10px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 1.25rem !important;
        margin: 0 !important;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 1rem;
    }
    
    .nav-link:hover, .nav-link:focus {
        background: var(--bg-body);
        color: var(--primary-color) !important;
        transform: translateX(5px);
    }
    
    /* Dropdown Toggle Mobile */
    .nav-link.dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Dropdown Menu Mobile */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        background: var(--bg-body) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        padding: 0.5rem 0 !important;
    }
    
    .dropdown-item {
        padding: 0.875rem 1.5rem !important;
        color: var(--text-main) !important;
        font-size: 0.95rem;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:first-child {
        border-radius: 12px 12px 0 0;
    }
    
    .dropdown-item:last-child {
        border-radius: 0 0 12px 12px;
    }
    
    .dropdown-item:hover, .dropdown-item:focus {
        background: var(--bg-card) !important;
        color: var(--primary-color) !important;
        transform: translateX(5px);
    }
    
    .dropdown-item i {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }
    
    /* Language Selector Mobile */
    .language-selector-wrapper {
        width: 100%;
        margin: 0 !important;
        padding: 0.5rem 0;
    }
    
    .language-selector-wrapper .goog-te-gadget-simple {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Theme Toggle Mobile */
    .theme-toggle {
        width: 100%;
        margin: 0.5rem 0 !important;
        border-radius: 12px;
        height: auto;
        padding: 1rem 1.25rem !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
    
    .theme-toggle::after {
        content: 'Dark Mode';
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-main);
    }
    
    [data-theme="dark"] .theme-toggle::after {
        content: 'Light Mode';
    }
    
    /* Explore Now Button Mobile */
    .btn-nav-action {
        width: 100%;
        margin: 0.5rem 0 !important;
        text-align: center;
        justify-content: center;
        padding: 1rem 1.5rem !important;
        border-radius: 12px;
    }
    
    /* Navbar Brand Mobile */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
    }
}

/* --- Futuristic Buttons --- */
.btn {
    border-radius: 50px; /* Pill shape */
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-2px);
}

.btn-nav-action {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-heading);
}

.btn-nav-action:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}


/* --- Language Selector --- */
.language-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#google_translate_element {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Google Translate Widget Styling */
/* Prevent page jump */
body {
    top: 0 !important;
    position: relative !important;
}

html {
    margin-top: 0 !important;
}

/* Hide Google Translate Banner */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-banner {
    display: none !important;
}

/* Hide Google Translate Branding */
.goog-te-gadget {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0 !important;
    color: transparent !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide all Google Translate default text */
.goog-te-gadget-simple .goog-te-gadget-simple-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom text replacement - Show language name */
.goog-te-gadget-simple::before {
    content: attr(data-lang);
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--text-main) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Fallback if data-lang is not set */
.goog-te-gadget-simple:not([data-lang])::before {
    content: 'Language';
}

.goog-logo-link {
    display: none !important;
}

.goog-te-footer {
    display: none !important;
}

/* Main Widget Container - Site Design Match */
.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: 120px !important;
    max-width: 200px !important;
    height: auto !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    vertical-align: middle !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Ensure no text shows from children */
.goog-te-gadget-simple > * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.goog-te-gadget-simple:hover {
    background-color: var(--bg-card) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3) !important;
    transform: translateY(-1px) !important;
}

[data-theme="dark"] .goog-te-gadget-simple:hover {
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4) !important;
}

/* Hide Google Icon */
.goog-te-gadget-simple .goog-te-gadget-icon {
    display: none !important;
}

/* Dropdown Arrow */
.goog-te-gadget-simple::after {
    content: '\f4a9';
    font-family: 'bootstrap-icons' !important;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.goog-te-gadget-simple:hover::after {
    transform: translateY(2px);
}

/* Selected Language Value - Hide completely */
.goog-te-gadget-simple .goog-te-menu-value {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Dark Mode Support */
[data-theme="dark"] .goog-te-gadget-simple {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .goog-te-gadget-simple:hover {
    background-color: var(--bg-card) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .goog-te-gadget-simple .goog-te-gadget-simple-text,
[data-theme="dark"] .goog-te-gadget-simple .goog-te-menu-value,
[data-theme="dark"] .goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--text-main) !important;
}

/* Dropdown Menu */
.goog-te-menu-value {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--text-main) !important;
}

.goog-te-menu-value span {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--text-main) !important;
}

.goog-te-menu-frame {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-hover) !important;
    margin-top: 0.5rem !important;
    overflow: hidden !important;
    z-index: 10000 !important;
    position: absolute !important;
    max-width: 300px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.goog-te-menu2 {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    padding: 0.5rem 0 !important;
}

.goog-te-menu2-item {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--text-main) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.goog-te-menu2-item:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.goog-te-menu2-item-selected {
    background: var(--primary-color) !important;
    color: white !important;
}

.goog-te-menu2-item div {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: inherit !important;
    font-weight: 500 !important;
}

/* --- Toggle Switch --- */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    background: var(--hero-overlay), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 120px 0;
    margin-bottom: 4rem;
    border-radius: 0 0 60px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section h1,
.hero-section .display-3,
.hero-section .display-4 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.hero-section p,
.hero-section .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-body), transparent);
}

.hero-content h1 {
    color: white;
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-card {
    background: rgba(255, 255, 255, 0.05); /* Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    color: white; /* Hero card always text-white for contrast */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-card .form-label { color: rgba(255, 255, 255, 0.8); }
.hero-card .form-select, .hero-card .form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.hero-card .form-select:focus, .hero-card .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}

/* --- Cards --- */
.feature-card, .destination-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.feature-card.h-100,
.destination-card.h-100 {
    height: 100%;
    min-height: 100%;
}

.card-body {
    background: transparent;
}

.feature-card:hover, .destination-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px) scale(1.01);
    border-color: var(--primary-color);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-consent-banner {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.cookie-consent-banner p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent-banner a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    min-height: 300px;
}

.footer .container {
    padding-bottom: 2rem;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    max-width: 100%;
}

.footer-title { 
    color: white; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a { 
    color: #94a3b8; 
    text-decoration: none; 
    transition: 0.3s;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover { 
    color: var(--primary-color); 
    padding-left: 5px; 
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer {
        padding-top: 4rem;
        min-height: auto;
    }
    
    .footer-title {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* Admin Panel Styles */
.admin-container { margin-top: 100px; min-height: 80vh; }
.sidebar { background: var(--bg-card); border-right: 1px solid var(--border-color); height: 100%; padding: 20px; }

/* --- Image Styles --- */
/* Global image reset - prevent overflow */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
}

.destination-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: var(--bg-body);
    margin: 0;
    padding: 0;
}

.destination-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.destination-card {
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    padding: 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--bg-body);
    border-color: var(--border-color);
}

/* Blog Post Images */
.card-img-top {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

.feature-card img,
.card img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.feature-card.overflow-hidden,
.card.overflow-hidden {
    overflow: hidden;
}

/* Hero Background Images */
.hero-section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* General Image Fixes */
.img-fluid {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Card container fixes */
.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.25rem;
}

.destination-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.destination-card .card-body .card-title {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.destination-card .card-body > .mb-2 {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.destination-card .card-body p {
    flex: 1;
    margin-bottom: 1rem;
    min-height: 4.5rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.destination-card .card-body .d-grid {
    flex-shrink: 0;
    margin-top: auto;
}

/* Blog featured image */
.blog-featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.blog-featured-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive image containers */
.row img,
.col img,
[class*="col-"] img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Fallback for broken images */
img[src=""],
img:not([src]),
img[src*="undefined"],
img[src*="null"] {
    background: linear-gradient(135deg, var(--bg-body), var(--bg-card));
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

img[src=""]::after,
img:not([src])::after,
img[src*="undefined"]::after,
img[src*="null"]::after {
    content: "Image not available";
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px;
}

/* Prevent image overflow in all containers */
.container img,
.row img,
.col img,
.card img,
.feature-card img {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .destination-img-wrapper {
        height: 200px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .hero-section {
        background-attachment: scroll !important;
        padding: 120px 0 80px 0 !important;
    }
    
}

/* Additional overflow protection */
.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 0;
    padding-right: 0;
}

[class*="col-"] {
    overflow: hidden;
}

/* Ensure cards don't break layout */
.destination-card,
.feature-card {
    min-height: 0;
    max-width: 100%;
}

/* Fix for Bootstrap grid */
.g-4 > * {
    padding-left: 1rem;
    padding-right: 1rem;
}

.g-4 > * > .card {
    margin: 0;
}

/* Coming Soon Styles */
.coming-soon-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.coming-soon-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.coming-soon-notify {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .coming-soon-title {
        font-size: 2.5rem;
    }
    
    .coming-soon-subtitle {
        font-size: 1.1rem;
    }
    
    .coming-soon-icon svg {
        width: 80px;
        height: 80px;
    }
    
    /* Google Translate Responsive */
    .goog-te-gadget-simple {
        min-width: 100px !important;
        max-width: 150px !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        height: auto !important;
        line-height: 1.4 !important;
    }
    
    .goog-te-gadget-simple .goog-te-gadget-simple-text,
    .goog-te-gadget-simple .goog-te-menu-value,
    .goog-te-gadget-simple .goog-te-menu-value span {
        font-size: 0.75rem !important;
    }
    
    .language-selector-wrapper {
        margin-right: 0.5rem;
    }
    
    #google_translate_element {
        width: auto !important;
        max-width: 150px !important;
    }
    
    .goog-te-menu-frame {
        max-width: 250px !important;
        left: auto !important;
        right: 0 !important;
    }
    
    .goog-te-menu2-item {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem !important;
    }
}

/* ===== MODERN EXPLORE PAGE STYLES ===== */
.explore-page-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(255, 153, 0, 0.03) 100%);
}

[data-theme="dark"] .explore-page-wrapper {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.explore-header {
    animation: fadeInUp 0.6s ease-out;
}

.explore-title {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.explore-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.explore-card-wrapper {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

[data-theme="dark"] .explore-card-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.explore-form-title {
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.explore-form-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Modern Category Cards */
.category-card {
    cursor: pointer;
    margin: 0;
    position: relative;
    height: 100%;
    display: flex;
}

.row.align-items-stretch > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.modern-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    width: 100%;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 204, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.modern-card:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.category-icon {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    transition: transform 0.4s ease;
}

.modern-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-card:hover .category-icon-wrapper::after {
    opacity: 1;
}

/* Gradient Backgrounds for Icons */
.nature-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.peace-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.adventure-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.culture-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.beaches-gradient {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.city-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.food-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.nightlife-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.history-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.category-content {
    flex: 1;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 0.5rem;
}

.category-title {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    line-height: 1.4;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-description {
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.3s ease;
    margin: 0;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-checkmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
}

.category-checkmark i {
    color: white;
    font-size: 1.1rem;
}

.category-card input:checked + .modern-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(255, 153, 0, 0.05) 100%);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2);
    transform: translateY(-4px);
}

.category-card input:checked + .modern-card .category-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.4);
}

.category-card input:checked + .modern-card .category-checkmark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.category-card input:checked + .modern-card .category-title {
    color: var(--primary-color);
}

/* Modern Buttons */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

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

.btn-modern-primary .btn-content,
.btn-modern-primary .btn-loader {
    position: relative;
    z-index: 1;
}

.btn-modern-primary .btn-loader.d-none {
    display: none !important;
}

.btn-modern-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

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

/* Responsive */
@media (max-width: 768px) {
    .explore-card-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .explore-form-title {
        font-size: 1.5rem;
    }
    
    .modern-card {
        padding: 1.5rem 1rem;
        height: 260px;
    }
    
    .category-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-content {
        padding: 0 0.25rem;
    }
    
    .category-title {
        font-size: 1.1rem;
        height: 2.8rem;
        margin-bottom: 0.5rem;
    }
    
    .category-description {
        font-size: 0.875rem;
        height: 2.25rem;
    }
    
    .btn-modern-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Progress Bar Styles - Remove red backgrounds, outlines and shapes */
.progress {
    background-color: var(--bg-body) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.progress:focus,
.progress:focus-visible,
.progress:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.progress-bar {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.progress-bar:focus,
.progress-bar:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove red background from danger progress bars - change to primary color */
.progress-bar.bg-danger {
    background-color: var(--primary-color) !important;
}

/* Remove any red backgrounds, outlines or borders from cost breakdown */
#costBreakdown {
    background-color: var(--bg-body) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#costBreakdown:focus,
#costBreakdown:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

#costBreakdown .progress-bar {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#costBreakdown .progress-bar:focus,
#costBreakdown .progress-bar:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove red backgrounds and borders from danger elements */
.bg-danger {
    background-color: var(--primary-color) !important;
}

.text-danger {
    color: var(--primary-color) !important;
}

.alert-danger {
    background-color: rgba(0, 102, 204, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-main) !important;
}

/* Visa Page - Completely separate containers to prevent overlap */
#visaFormCard {
    margin-bottom: 2rem !important;
}

#visaResult {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}

#visaResult[style*="display:none"] {
    display: none !important;
}

#visaResult[style*="display:block"] {
    display: block !important;
}

/* Visa form select elements - red borders to black in dark mode */
[data-theme="dark"] #visaFormCard .form-select:focus,
[data-theme="dark"] #visaFormCard .form-select.is-invalid,
[data-theme="dark"] #visaFormCard #origin:focus,
[data-theme="dark"] #visaFormCard #destination:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
    outline: 2px solid #000000 !important;
    outline-offset: 2px !important;
}

/* ===== DARK MODE TEXT READABILITY FIXES ===== */
/* Bootstrap text utility classes - Dark mode support */
[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-heading) !important;
}

/* Card text elements - Dark mode support */
[data-theme="dark"] .card-text {
    color: var(--text-main) !important;
}

[data-theme="dark"] .card-title {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .card-subtitle {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .card-body {
    color: var(--text-main) !important;
}

[data-theme="dark"] .card-body p {
    color: var(--text-main) !important;
}

[data-theme="dark"] .card-body h1,
[data-theme="dark"] .card-body h2,
[data-theme="dark"] .card-body h3,
[data-theme="dark"] .card-body h4,
[data-theme="dark"] .card-body h5,
[data-theme="dark"] .card-body h6 {
    color: var(--text-heading) !important;
}

/* Feature card and destination card text - Dark mode */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .destination-card {
    color: var(--text-main) !important;
}

[data-theme="dark"] .feature-card h4,
[data-theme="dark"] .feature-card h5,
[data-theme="dark"] .destination-card h4,
[data-theme="dark"] .destination-card h5 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .destination-card p {
    color: var(--text-main) !important;
}

[data-theme="dark"] .feature-card .text-muted,
[data-theme="dark"] .destination-card .text-muted {
    color: var(--text-muted) !important;
}

/* All card types - Dark mode text */
[data-theme="dark"] .card {
    color: var(--text-main) !important;
}

[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .card p {
    color: var(--text-main) !important;
}

/* List items - Dark mode */
[data-theme="dark"] .list-unstyled {
    color: var(--text-main) !important;
}

[data-theme="dark"] .list-unstyled li {
    color: var(--text-main) !important;
}

[data-theme="dark"] .list-unstyled.text-success {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .list-unstyled.text-success li {
    color: var(--primary-color) !important;
}

/* Lead text - Dark mode */
[data-theme="dark"] .lead {
    color: var(--text-main) !important;
}

/* Section headings and text - Dark mode */
[data-theme="dark"] section h1,
[data-theme="dark"] section h2,
[data-theme="dark"] section h3,
[data-theme="dark"] section h4,
[data-theme="dark"] section h5,
[data-theme="dark"] section h6 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] section p {
    color: var(--text-main) !important;
}

/* Container text - Dark mode */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid {
    color: var(--text-main) !important;
}

[data-theme="dark"] .container h1,
[data-theme="dark"] .container h2,
[data-theme="dark"] .container h3,
[data-theme="dark"] .container h4,
[data-theme="dark"] .container h5,
[data-theme="dark"] .container h6 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .container p {
    color: var(--text-main) !important;
}

/* Bootstrap form elements - Dark mode */
[data-theme="dark"] .form-label {
    color: var(--text-main) !important;
}

[data-theme="dark"] .form-text {
    color: var(--text-muted) !important;
}

/* Small text - Dark mode */
[data-theme="dark"] small,
[data-theme="dark"] .small {
    color: var(--text-muted) !important;
}

/* Links in cards - Dark mode */
[data-theme="dark"] .card a,
[data-theme="dark"] .feature-card a,
[data-theme="dark"] .destination-card a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .card a:hover,
[data-theme="dark"] .feature-card a:hover,
[data-theme="dark"] .destination-card a:hover {
    color: var(--primary-dark) !important;
}

/* Button text in dark mode - ensure visibility */
[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
}

/* Price badge - Dark mode */
[data-theme="dark"] .price-badge {
    color: white !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

/* Icon colors - Dark mode */
[data-theme="dark"] .bi-check-circle-fill,
[data-theme="dark"] .bi-sun-fill {
    color: var(--primary-color) !important;
}

/* Ensure all text in dark mode uses proper colors */
[data-theme="dark"] * {
    color: inherit;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] p {
    color: var(--text-main) !important;
}

/* Override any white text that might be invisible on dark backgrounds */
[data-theme="dark"] .text-white {
    color: var(--text-heading) !important;
}

/* Ensure text in sections is visible */
[data-theme="dark"] section {
    color: var(--text-main) !important;
}

/* CTA section - Dark mode */
[data-theme="dark"] .bg-card {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .bg-card h1,
[data-theme="dark"] .bg-card h2,
[data-theme="dark"] .bg-card h3,
[data-theme="dark"] .bg-card h4,
[data-theme="dark"] .bg-card h5,
[data-theme="dark"] .bg-card h6 {
    color: var(--text-heading) !important;
}

[data-theme="dark"] .bg-card p {
    color: var(--text-main) !important;
}

[data-theme="dark"] .bg-card .lead {
    color: var(--text-muted) !important;
}

/* ===== DARK MODE RED HIGHLIGHTS TO BLACK ===== */
/* Form select borders - red to black in dark mode */
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-control:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .form-select.is-invalid,
[data-theme="dark"] .form-control.is-invalid {
    border-color: #000000 !important;
}

[data-theme="dark"] .form-select.is-invalid:focus,
[data-theme="dark"] .form-control.is-invalid:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Any red borders in dark mode should be black */
[data-theme="dark"] *[style*="border"][style*="red"],
[data-theme="dark"] *[style*="border-color: red"],
[data-theme="dark"] *[style*="border-color:#f00"],
[data-theme="dark"] *[style*="border-color:#ff0000"],
[data-theme="dark"] *[style*="border-color:rgb(255,0,0)"] {
    border-color: #000000 !important;
}

/* Red text highlights in visa results - make them black in dark mode */
[data-theme="dark"] .fw-bold[style*="color: red"],
[data-theme="dark"] .fw-bold[style*="color:#f00"],
[data-theme="dark"] .fw-bold[style*="color:#ff0000"],
[data-theme="dark"] span[style*="color: red"],
[data-theme="dark"] span[style*="color:#f00"],
[data-theme="dark"] span[style*="color:#ff0000"] {
    color: #000000 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Bootstrap validation red borders to black in dark mode */
[data-theme="dark"] .border-danger,
[data-theme="dark"] .was-validated .form-select:invalid,
[data-theme="dark"] .was-validated .form-control:invalid {
    border-color: #000000 !important;
}

[data-theme="dark"] .was-validated .form-select:invalid:focus,
[data-theme="dark"] .was-validated .form-control:invalid:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Visa result card specific - processing time and fee values */
[data-theme="dark"] #visaResult .fw-bold {
    color: var(--text-heading) !important;
}

[data-theme="dark"] #visaResult span.fw-bold {
    color: var(--text-heading) !important;
}

/* ===== ADSENSE OPTIMIZED DESTINATION PAGE STYLES ===== */

/* Experience Badge */
.experience-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffe5e5 0%, #ffc8c8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

[data-theme="dark"] .experience-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.3) 100%);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff8e5 0%, #fff3cc 100%);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
}

[data-theme="dark"] .highlight-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-left-color: var(--accent-color);
    color: var(--text-main);
}

/* Map Container */
.map-container {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.map-container iframe {
    display: block;
}

/* Tip Cards */
.tip-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.tip-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* Expectation Items */
.expectation-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.rating-stars {
    font-size: 0.9rem;
}

.rating-stars i {
    margin-left: 2px;
}

/* Budget Cards */
.budget-card {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.budget-low {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.budget-mid {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-color);
}

.budget-high {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
}

[data-theme="dark"] .budget-low {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.25) 100%);
}

[data-theme="dark"] .budget-mid {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 102, 204, 0.25) 100%);
}

[data-theme="dark"] .budget-high {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.25) 100%);
}

.budget-icon {
    font-size: 2rem;
}

/* Budget Breakdown */
.cost-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Season Cards */
.season-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.season-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.season-peak {
    border-left: 4px solid #f59e0b;
}

.season-shoulder {
    border-left: 4px solid #10b981;
}

.season-off {
    border-left: 4px solid #06b6d4;
}

/* Widget Cards in Sidebar */
.card.feature-card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
}

.card.feature-card.bg-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.4);
}

/* Responsive adjustments for destination page */
@media (max-width: 768px) {
    .tip-card {
        padding: 1rem !important;
    }
    
    .tip-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }
    
    .budget-card {
        padding: 1rem !important;
    }
    
    .budget-icon {
        font-size: 1.5rem;
    }
    
    .map-container {
        height: 250px !important;
    }
    
    .map-container iframe {
        height: 250px !important;
    }
    
    .experience-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .season-card {
        padding: 0.75rem !important;
    }
}

/* ===== HOME PAGE ENHANCED STYLES ===== */

/* Icon Circle */
.icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

/* Step List */
.step-list {
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 23px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-top: 48px;
    opacity: 0.3;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Quick Stats */
.quick-stats {
    padding: 2rem;
    background: var(--bg-body);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Badge Styles */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--accent-color), #e68a00) !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Home Page Responsive */
@media (max-width: 768px) {
    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
    
    .step-item:not(:last-child)::before {
        left: 19px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .quick-stats {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
    }
}