.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: linear-gradient(135deg, #3a7d44 0%, #ffce00 50%, #3a7d44 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.loader {
    width: 160px;
    height: 160px;
    object-fit: contain;
    animation: logoFloat 2.5s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3));
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 4px solid transparent;
    border-top: 4px solid #ffce00;
    border-right: 4px solid rgba(255, 206, 0, 0.6);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.logo-ring-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 190px;
    height: 190px;
    border: 3px solid transparent;
    border-bottom: 3px solid #3a7d44;
    border-left: 3px solid rgba(58, 125, 68, 0.5);
    border-radius: 50%;
    animation: spin 2.5s linear infinite reverse;
}

.logo-ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 206, 0, 0.4);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ffce00, #3a7d44);
    border-radius: 50%;
    margin: 0 6px;
    animation: dotPulse 1.6s ease-in-out infinite both;
    box-shadow: 0 0 10px rgba(255, 206, 0, 0.5);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0; }

.progress-bar {
    width: 250px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 35px auto 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 206, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffce00, #3a7d44, #ffce00);
    border-radius: 2px;
    animation: progressFill 2.5s ease-in-out forwards;
    box-shadow: 0 0 15px rgba(255, 206, 0, 0.6);
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3)) brightness(1); }
    100% { filter: drop-shadow(0 15px 40px rgba(255, 206, 0, 0.4)) brightness(1.1); }
}



            /* Redesigned sidebar button container with center panel positioning */
        .sidebar-button-container {
            position: fixed;
            right: 0;
            top: 70%;
            transform: translateY(-50%);
            z-index: 1000;
        }

        /* Modern professional button design */
        .sidebar-button {
            background: linear-gradient(135deg, #cc7f0c 0%, #db4905 100%);
            color: white;
            padding: 18px 25px;
            border: none;
            border-radius: 30px 0 0 30px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 320px;
            position: relative;
            border-right: 4px solid #0bf52a;
        }

        .sidebar-button:hover {
            opacity: 0;
            transform: translateX(20px) translateY(-50%);
        }

        /* Professional logo with SafariBookings colors */
        .safari-logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: white;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }

        /* Centered hover panel with professional SafariBookings design */
        .hover-panel {
            position: fixed;
            left: 27%;
            top: -120%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            padding: 0;
            width: 480px;
            max-height: 900px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            overflow: hidden;
            border: 1px solid #e5e7eb;
        }

        .sidebar-button-container:hover .hover-panel {
            opacity: 1;
            visibility: visible;
        }
        .safari-logo img{
            width: 100%;
            height: 100%;
            border-radius: 8px;
        }
        .partner-text {
            display: inline;
            }
        /* Professional header section */
        .panel-headers {
            background: linear-gradient(135deg, #f58e07 0%, #db5314 100%);
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
        }

        .panel-headers h3 {
            font-size: 25px;
            font-weight: 900;
            margin-bottom: 8px;
        }

        .panel-headers p {
            font-size: 14px;
            opacity: 0.9;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        .close-btn:hover {
            opacity: 1;
        }

        /* Trust indicators section */
        .trust-section {
            padding: 20px 25px;
            background: #f8fafc;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .rating-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stars {
            color: #f59e0b;
            font-size: 18px;
        }

        .rating-text {
            font-weight: 600;
            color: #1f2937;
        }

        .verified-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #dcfce7;
            color: #166534;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        /* Professional reviews section matching SafariBookings design */
        .reviews-section {
            padding: 25px;
            max-height: 260px;
            overflow-y: auto;
        }

        .review {
            margin-bottom: 20px;
            padding: 20px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .review-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .reviewer-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 16px;
        }

        .reviewer-info {
            flex: 1;
        }

        .reviewer-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 14px;
        }

        .reviewer-details {
            font-size: 12px;
            color: #6b7280;
            margin-top: 2px;
        }

        .review-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .review-stars {
            color: #f59e0b;
            font-size: 14px;
        }

        .review-score {
            font-weight: 600;
            color: #1f2937;
            font-size: 14px;
        }

        .review-text {
            color: #374151;
            line-height: 1.6;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .review-meta {
            font-size: 11px;
            color: #9ca3af;
            border-top: 1px solid #f3f4f6;
            padding-top: 8px;
        }

        /* Professional action section */
        .action-section {
            max-height: 200px;
            padding: 20px 15px;
            background: #f8fafc;
            border-top: 1px solid #e5e7eb;
            text-align: center;
        }

        .review-count {
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 15px;
        }

        .action-button {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
        }

        .action-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
        }

        /* Custom scrollbar for reviews */
        .reviews-section::-webkit-scrollbar {
            width: 6px;
        }

        .reviews-section::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }

        .reviews-section::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .reviews-section::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .sidebar-button {
                min-width: 80px;
                font-size: 14px;
                padding: 15px 20px;
            }
            
            .hover-panel {
                left: -180%;
                width: 90vw;
                max-width: 500px;
                max-height: 80vh;
            }
              .partner-text {
                display: none;
            }
        
        }