/* ============================= */
/* FIXED HYBRID CSS – Modern header + original everything else */
/* Desktop: flags stay on right next to nav (original behavior) */
/* Mobile: flags LEFT of hamburger (original absolute positioning) */
/* Modern: glass header + gradient ticker */
/* Date: 05.01.2026 */
/* ============================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors only for modern header & ticker */
    --primary-500: #1a5f3a;
    --accent-500: #4a9c6a;
    --neutral-50: #fafbfd;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-900: #0f172a;
    --border: #e2e8f0;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-md: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* ============================= */
/* Header – MODERN glassmorphism */
/* ============================= */
.header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--neutral-900);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation – adapted for modern header colors */
.nav ul {
    display: flex;
    flex-wrap: wrap;          /* allows wrapping */
    justify-content: center;  /* keeps it tidy */
    gap: 0.5em 1em;           /* row + column spacing */
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav a {
    color: var(--neutral-900);
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a:hover, .nav a.active {
    background: var(--primary-500);
    color: white;
}

.mobile-toggle {
    display: none;
    font-size: 1.9rem;
    color: var(--neutral-900);
    cursor: pointer;
}

/* ============================= */
/* News Ticker – MODERN gradient */
/* ============================= */
.ticker-section {
    background: linear-gradient(135deg, #134d2e, #1a5f3a);
    color: white;
    padding: 15px 0;
    overflow: hidden;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.ticker-wrap {
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker span {
    margin-right: 60px;
    font-size: 1.1rem;
}

.ticker i {
    margin-right: 10px;
    color: #a8e6a8;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================= */
/* BELOW TICKER → 100% YOUR ORIGINAL CLASSIC STYLE */
/* ============================================= */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/public/images/zoo-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 120px;
}

.hero-overlay {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: forestgreen;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    background: #0a950a;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0a6b0a;
    transform: scale(1.05);
}

.main-content {
    padding: 100px 0 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-preview h2, .main-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #0a6b0a;
}

.main-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.main-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.main-content li {
    margin-bottom: 8px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
}

.feature i {
    font-size: 3rem;
    color: #0a950a;
    margin-bottom: 15px;
}

.footer {
    background: #0a3d0a;
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.footer .copyright {
    font-size: 1.05rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 55px;
    height: 55px;
    background: #0a6b0a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 26px;
    transition: 0.25s ease;
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.social-icon.instagram:hover { background: #E4405F; }
.social-icon.facebook:hover  { background: #1877F2; }
.social-icon.youtube:hover   { background: #FF0000; }

.social-icon:hover i {
    color: white !important;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.price-table-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 15px;
}

table thead {
    background: #f0f0f0;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-align: left;
}

table th {
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #f3faff;
}

.video-wrapper, .instagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: 640px;
    margin: 30px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 177.78%;
}

.video-wrapper iframe, .instagram-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-primary.large-btn {
    padding: 18px 45px;
    font-size: 20px;
    margin: 0 15px;
    min-width: 280px;
    border: none;
    border-radius: 12px;
    background: #0a6b0a;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-primary.large-btn:hover {
    background: #083608;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============================= */
/* RESPONSIVE – YOUR ORIGINAL RULES */
/* ============================= */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        font-size: 2rem;                    /* already good */
        cursor: pointer;
        color: #000000;
        z-index: 1001;
    }


        .nav ul {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: #0a6b0a;
            padding: 20px;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

    .nav ul::-webkit-scrollbar {
        width: 0.75rem;                     /* 12px → 0.75rem */
        -webkit-appearance: none;
    }
    .nav ul::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.2);
        border-radius: 0.375rem;            /* 6px → 0.375rem */
    }
    .nav ul::-webkit-scrollbar-thumb {
        background: #032603;
        border-radius: 0.375rem;
        min-height: 5rem;                   /* 80px → 5rem – still large enough at scale */
        border: 0.1875rem solid rgba(255,255,255,0.2);  /* 3px → 0.1875rem */
    }
    .nav ul::-webkit-scrollbar-thumb:hover {
        background: #054008;
    }

    .nav ul.show {
        display: flex;
    }

    .nav ul li {
        width: 100%;
        margin: 0.1875rem 0;                /* 3px → 0.1875rem */
        text-align: center;
    }

    .nav ul li a {
        /*display: block;*/
        width: 100%;
        padding: 0.5625rem 1.125rem;        /* 9px vert → 0.5625rem; 18px horiz → 1.125rem */
        font-size: 1.05rem;                 /* already rem – good */
        line-height: 1.3;
        color: #000000;
        border-radius: 0.5rem;              /* 8px → 0.5rem */
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        text-align: center;
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        background: #032603;
    }

    .nav ul * {
        max-width: 100%;
    }
}

    /* Original mobile flag positioning - LEFT of hamburger */
    .header .container {
        position: relative !important;
        padding: 0 16px;
        justify-content: flex-start !important;
    }

    .lang-toggle {
        position: absolute !important;
        top: 50% !important;
        left: auto !important;
        right: 70px !important;
        transform: translateY(-50%) !important;
        width: 27px !important;
        height: 16px !important;
        z-index: 1002 !important;
    }

    .mobile-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        transform: translateY(-50%) !important;
        font-size: 1.9rem !important;
        color: #000000;
        cursor: pointer;
        z-index: 1003 !important;
    }

    .nav ul.show {
        padding-top: 80px !important;
    }

    .btn-primary.large-btn {
        display: block;
        width: 90%;
        max-width: 400px;
        margin: 15px auto;
        padding: 18px 30px;
    }


@media (max-width: 480px) {
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .social-links {
        gap: 20px;
    }
}

@media (max-width: 868px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    table {
        min-width: 650px;
        border-collapse: separate;
        border-spacing: 0;
    }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    table th,
    table td {
        padding: 6px 8px;
        font-size: 13.5px;
    }
}

.accessibility-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accessibility-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.section-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #f0f8f0;
}

.btn-primary, .btn-contact {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,107,10,0.25);
}

html {
    font-size: 100%; /* 16px default */
}

/* AI Assistant Styles */
#ai-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Minimized button */
#ai-assistant-minimized {
    background: linear-gradient(135deg, #169846 0%, #146739 100%);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#ai-assistant-minimized:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#ai-assistant-minimized .ai-icon {
    background: white;
    color: #215723;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Chat window */
#ai-assistant-window {
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rest of CSS from earlier example... */
/* (Include the full CSS from previous messages) */
/* AI Assistant Container */
#ai-assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Minimized State (Default) */
#ai-assistant-minimized {
    background: linear-gradient(135deg, #169846 0%, #146739 100%);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
}

#ai-assistant-minimized:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#ai-assistant-minimized .ai-icon {
    background: white;
    color: #09532c;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Maximized Chat Window */
#ai-assistant-window {
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.ai-header {
    background: linear-gradient(135deg, #169846 0%, #146739 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-header .ai-avatar {
    background: white;
    color: #215723;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Area */
.ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 400px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.message.bot .avatar {
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.message.user {
    flex-direction: row-reverse;
}

.message.user .content {
    background: #078539;
    color: white;
}

.message .content {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: white;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.4;
}

.message.bot .content {
    border-top-left-radius: 4px;
}

.message.user .content {
    border-top-right-radius: 4px;
}

/* Input Area */
.ai-input-area {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    background: white;
}

.ai-input-wrapper {
    display: flex;
    gap: 8px;
}

#ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#ai-input:focus {
    border-color: #169846;
}

#ai-send-btn {
    background: #09532c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

#ai-send-btn:hover {
    background: #078539;
}

#ai-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #19331a;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingAnimation {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    #ai-assistant-container {
        bottom: 10px;
        right: 10px;
    }

    #ai-assistant-window {
        width: calc(100vw - 20px);
        max-height: 70vh;
    }
}

/* Avatar / profile picture - make everything smaller and consistent */
.ai-avatar-img,
.avatar-img,
.ai-icon-img {
    width: 28px !important;           /* smaller size for most places */
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;                /* keeps proportions nice */
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Header avatar - a bit larger but still compact */
.ai-header .ai-avatar-img {
    width: 36px !important;
    height: 36px !important;
}

/* Bot message avatar - slightly bigger for visibility in chat */
.message.bot .avatar-img {
    width: 32px !important;
    height: 32px !important;
}

/* Minimized button icon - smallest */
.ai-icon-img {
    width: 24px !important;
    height: 24px !important;
}

/* Optional: reduce padding/margin if it still feels too big */
.ai-header h3 {
    gap: 8px;  /* space between image and name */
}

.message.bot {
    gap: 8px;  /* space between avatar and message bubble */
}

.message.bot .avatar-img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;          /* force visible */
    flex-shrink: 0 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    background: #215723;                /* fallback color if image fails */
}

/* Hide any text fallback */
.message.bot .avatar {
    display: none !important;
}

.quick-replies-container {
    margin: 12px 0 16px 44px;
    max-width: 85%;
}

.quick-replies-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #2e7d32;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.quick-replies-toggle:hover {
    background: #d0f0d4;
}

.quick-replies-toggle .arrow {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.quick-replies-toggle.active .arrow {
    transform: rotate(180deg);
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 0 8px;
}

/* smaller buttons – same as previous mobile-optimized version */
.quick-reply-btn {
    background: #f0f9f0;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-height: 36px;
    display: flex;
    align-items: center;
}

.quick-reply-btn:hover {
    background: #e0f2e9;
    transform: translateX(3px);
}

.quick-reply-btn:active {
    background: #c8e6c9;
}

/* mobile adjustments */
@media (max-width: 480px) {
    .quick-replies-container {
        margin-left: 40px;
    }
    .quick-replies-toggle {
        font-size: 13.5px;
        padding: 9px 12px;
    }
    .quick-reply-btn {
        font-size: 13px;
        padding: 7px 12px;
    }
}

