/* Book Now Button - Final Solution */
/* Only apply to buttons outside booking modal */
body .tour-actions .btn.product-btn-book-now.book-now-btn,
body .city-tour-card .tour-actions .btn.product-btn-book-now.book-now-btn,
body .tour-nav-card .tour-nav-card-action .book-now-btn,
body .btn.product-btn-book-now:not(.book-now-confirm-btn),
body .product-btn-book-now:not(.book-now-confirm-btn),
body .book-now-btn:not(.book-now-confirm-btn),
a.btn.product-btn-book-now.book-now-btn {
    background: #8c6a2f !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: background 0.3s ease !important;
    text-align: center !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1 !important;
    transform: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Exclude buttons inside booking modal */
body .booking-modal .book-now-btn,
body .booking-modal .book-now-confirm-btn,
body .booking-modal .btn.product-btn-book-now {
    background: initial !important;
    padding: initial !important;
    border-radius: initial !important;
    font-size: initial !important;
    font-weight: initial !important;
    white-space: initial !important;
    z-index: initial !important;
    transform: initial !important;
    text-transform: initial !important;
    letter-spacing: initial !important;
}

body .tour-actions .btn.product-btn-book-now.book-now-btn:hover,
body .city-tour-card .tour-actions .btn.product-btn-book-now.book-now-btn:hover,
body .tour-nav-card .tour-nav-card-action .book-now-btn:hover,
body .btn.product-btn-book-now:not(.book-now-confirm-btn):hover,
body .product-btn-book-now:not(.book-now-confirm-btn):hover,
body .book-now-btn:not(.book-now-confirm-btn):hover,
a.btn.product-btn-book-now.book-now-btn:hover {
    background: #a07d3f !important;
    transform: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Cart Button Styles - Egyptian Theme */
.cart-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%) !important;
    color: #1a1a1a !important;
    border: 2px solid #d4af37 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    margin-left: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Glassmorphism Cart/Wishlist Button for Tour Cards */
.tour-nav-cart-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #a07d3a !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    text-shadow: none !important;
    min-width: 40px !important;
}

.cart-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%) !important;
    border-color: #f4d03f !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
    color: #1a1a1a !important;
}

.tour-nav-cart-btn:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    color: #d4af37 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
}

.cart-btn:hover::before {
    left: 100% !important;
}

.cart-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.tour-nav-cart-btn:active {
    transform: scale(0.95) !important;
}

.cart-btn i {
    position: relative !important;
    z-index: 2 !important;
    transition: transform 0.3s ease !important;
}

.cart-btn:hover i {
    transform: scale(1.1) !important;
}

.tour-nav-cart-btn i {
    position: relative !important;
    z-index: 2 !important;
    transition: transform 0.3s ease !important;
}

.tour-nav-cart-btn:hover i {
    transform: scale(1.15) !important;
}

/* Tour Card Actions Container */
.tour-nav-card-action,
.tour-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-top: 20px !important;
    padding: 0 10px !important;
}

.tour-nav-card-footer {
    padding: 14px 20px 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    border-top: 1px solid rgba(160, 125, 58, 0.12) !important;
}

/* Cart Icon in Navbar */
.cart-icon {
    position: relative !important;
    cursor: pointer !important;
    padding: 10px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.2) 100%) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.cart-icon:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.3) 100%) !important;
    transform: scale(1.1) rotate(5deg) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.cart-count {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 3px 6px !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    text-align: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
    border: 2px solid white !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-nav-card-action,
    .tour-card-actions {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }
    
    .cart-btn {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 200px !important;
        height: 48px !important;
        font-size: 15px !important;
    }
    
    .tour-nav-cart-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .book-now-btn {
        width: 100% !important;
        max-width: 200px !important;
    }
}

/* Add subtle animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.cart-btn.loading {
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%) !important;
    background-size: 200px 100% !important;
    animation: shimmer 1.5s infinite !important;
}

.tour-nav-cart-btn.loading {
    background: rgba(212, 175, 55, 0.3) !important;
    animation: shimmer 1.5s infinite !important;
}

