/* Tours Page Styles - Enhanced Premium Design */

/* Container Max Width */
.container-max {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===============================================
   ADVANCED ANIMATIONS
   =============================================== */

/* Floating Animations with 3D Effect */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(5deg) scale(1.02);
    }
    50% {
        transform: translateY(-50px) translateX(0) rotate(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-25px) translateX(-15px) rotate(-5deg) scale(1.02);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(40px) translateX(-20px) rotate(-8deg) scale(1.03);
    }
    50% {
        transform: translateY(75px) translateX(0) rotate(0deg) scale(1.08);
    }
    75% {
        transform: translateY(35px) translateX(20px) rotate(8deg) scale(1.03);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    33% {
        transform: translateY(-35px) scale(1.08) rotate(3deg);
    }
    66% {
        transform: translateY(-18px) scale(0.95) rotate(-3deg);
    }
}

.animate-float {
    animation: float 25s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 30s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 20s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 300% 300%;
    animation: gradient 4s ease-in-out infinite;
}

/* Slide Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.animate-slide-down {
    animation: slideDown 1s ease-out 0.3s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.9s forwards;
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.animate-fade-in-delayed {
    animation: fadeIn 1s ease-out 0.7s forwards;
}

/* Pulse and Bounce Animations */
@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 5s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ===============================================
   TOUR FILTER BUTTONS - Enhanced Design
   =============================================== */

.tour-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: #1a3a52;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tour-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.tour-filter-btn:hover::before {
    left: 100%;
}

.tour-filter-btn:hover {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
}

.tour-filter-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: #1a3a52;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.tour-filter-btn.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.875rem;
    padding: 2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: glowPulse 2s ease-in-out infinite;
}

.tour-filter-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    transition: transform 0.3s ease;
}

.tour-filter-btn:hover svg {
    transform: rotate(5deg) scale(1.1);
}

.tour-filter-btn.active svg {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* ===============================================
   TOUR CARD STYLES - Gujarat Famous Places Design
   =============================================== */

.tour-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.tour-card.in-view {
    opacity: 1;
    transform: translateY(0);
animation: slideInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.tour-card:hover {
    transform: translateY(-8px);
}

.tour-card .shadow-lg {
    transition: all 0.4s ease;
}

.tour-card:hover .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(26, 58, 82, 0.25);
}

/* Image Zoom Effect */
.tour-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover img {
    transform: scale(1.05);
}

/* Famous Places Number Badges */
.tour-card .from-yellow-400.to-orange-500 {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    transition: transform 0.3s ease;
}

.tour-card:hover .from-yellow-400.to-orange-500 {
    transform: scale(1.1);
}

/* Stats Section Hover */
.tour-card .from-blue-50.to-indigo-50 {
    transition: all 0.3s ease;
}

.tour-card:hover .from-blue-50.to-indigo-50 {
    background: linear-gradient(to bottom right, rgb(239 246 255), rgb(224 231 255));
}

/* CTA Button Enhancement */
.tour-card a[href*="/booking"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tour-card a[href*="/booking"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -10px rgba(26, 58, 82, 0.5);
}

/* Final CTA - Premium Panel */
.tours-final-cta {
    padding: 72px 0 90px;
    background: #ffffff;
}

.tours-final-card {
    position: relative;
    border-radius: 28px;
    padding: 56px 48px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(140deg, #1a3a52 0%, #102536 55%, #0b1d2b 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.tours-final-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.6;
    pointer-events: none;
}

.tours-final-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    pointer-events: none;
}

.tours-final-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 199, 59, 0.2);
    border: 1px solid rgba(255, 199, 59, 0.35);
    color: #ffe08a;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    z-index: 1;
}

.tours-final-badge-icon {
    width: 18px;
    height: 18px;
    color: #ffd84d;
}

.tours-final-title {
    position: relative;
    font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    z-index: 1;
}

.tours-final-subtitle {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto 32px;
    z-index: 1;
}

.tours-final-actions {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 1;
}

.tours-final-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tours-final-btn-primary {
    background: #f9c521;
    color: #1a3a52;
    box-shadow: 0 14px 28px rgba(249, 197, 33, 0.3);
}

.tours-final-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(249, 197, 33, 0.4);
}

.tours-final-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.tours-final-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tours-final-btn-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .tours-final-cta {
        padding: 56px 0 72px;
    }

    .tours-final-card {
        padding: 44px 24px;
    }

    .tours-final-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .tours-final-subtitle {
        font-size: 1rem;
    }
}

/* Hidden State for Filtering */
.tour-card.hidden {
    display: none !important;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===============================================
   RESPONSIVE DESIGN & UTILITIES
   =============================================== */

/* Tour Card Content */
.tour-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-max {
        padding: 0 1rem;
    }
    
    .tour-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .tour-card-image-wrapper {
        height: 12rem;
    }
}

@media (max-width: 640px) {
    .tour-filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .tour-filter-btn span {
        display: none;
    }
    
    .tour-filter-btn svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .tour-filter-btn.active span {
        display: inline;
    }
}

/* Loading State */
.tours-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #fbbf24;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions for Grid */
#toursGrid {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Print Styles */
@media print {
    .tour-filter-btn,
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        display: none !important;
    }
    
    .tour-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}