/* =====================================================
   TOUR CARDS - Modern UI/UX Styles
   Tuareg Tours - Custom Tour Card Enhancements
   ===================================================== */

/* Base Card Styles */
.card-project.tour-card {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-project.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(237, 28, 37, 0.1);
}

/* Image Container */
.card-project.tour-card .image {
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-project.tour-card .tour-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-project.tour-card .image img {
    display: block;
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-project.tour-card:hover .image img {
    transform: scale(1.08);
}

/* Category Badge - Glassmorphism */
.card-project.tour-card .tour-image-top {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.card-project.tour-card:hover .tour-image-top {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-project.tour-card .tour-image-top i {
    font-size: 11px;
    color: var(--primary, #ed1c25);
}

.card-project.tour-card .tour-image-top__text {
    white-space: nowrap;
}

/* Price Badge - Premium Look */
.card-project.tour-card .tour-image-price {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary, #ed1c25) 0%, #c41920 100%);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(237, 28, 37, 0.35);
    transition: all 0.3s ease;
}

.card-project.tour-card:hover .tour-image-price {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(237, 28, 37, 0.45);
}

/* Bottom Overlay - Enhanced Gradient */
.card-project.tour-card .tour-image-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 20px 20px;
    color: #fff;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.85) 100%);
}

.card-project.tour-card .tour-image-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-project.tour-card .tour-image-route {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.card-project.tour-card .content {
    padding: 20px;
    background: #ffffff;
}

.card-project.tour-card .tour-card-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0;
}

.card-project.tour-card .tour-card-meta__center {
    width: 100%;
}

/* Date Display - Enhanced */
.card-project.tour-card .tour-image-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-project.tour-card .tour-image-dates::before {
    content: "\e91a";
    font-family: 'icomoon' !important;
    font-size: 16px;
    color: var(--primary, #ed1c25);
}

/* CTA Button - Enhanced */
.card-project.tour-card .btn-wrap.btn-2 {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    background: #1a1a1a;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-project.tour-card .btn-wrap.btn-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary, #ed1c25) 0%, #c41920 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.card-project.tour-card .btn-wrap.btn-2:hover::before {
    left: 0;
}

.card-project.tour-card .btn-wrap.btn-2 .text_btn {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.card-project.tour-card .btn-wrap.btn-2 .icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card-project.tour-card .btn-wrap.btn-2:hover .icon {
    transform: translateX(4px);
}

.card-project.tour-card .btn-wrap.btn-2 .icon i {
    color: #fff;
}

/* Swiper Specific - Home Page */
.section-related .swiper-slide .card-project.tour-card {
    height: 100%;
}

/* Grid Layout - Tours Page */
.tf-grid-layout .wg-work .card-project.tour-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tf-grid-layout .wg-work .card-project.tour-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .card-project.tour-card .image img {
        height: 200px;
    }
    
    .card-project.tour-card .tour-image-title {
        font-size: 16px;
    }
    
    .card-project.tour-card .tour-image-price {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 575px) {
    .card-project.tour-card .image img {
        height: 180px;
    }
    
    .card-project.tour-card .content {
        padding: 16px;
    }
    
    .card-project.tour-card .tour-image-dates {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .card-project.tour-card .btn-wrap.btn-2 {
        padding: 12px 20px;
    }
}

/* Desktop Enhancements */
@media (min-width: 1200px) {
    .card-project.tour-card .content {
        padding: 24px;
    }
    
    .card-project.tour-card .image img {
        height: 260px;
    }
    
    .card-project.tour-card .tour-image-title {
        font-size: 20px;
    }
    
    .card-project.tour-card .tour-image-bottom {
        padding: 70px 24px 24px;
    }
}

/* Focus States - Accessibility */
.card-project.tour-card .tour-image-link:focus {
    outline: none;
}

.card-project.tour-card .tour-image-link:focus-visible {
    outline: 2px solid var(--primary, #ed1c25);
    outline-offset: 4px;
    border-radius: 20px;
}

.card-project.tour-card .btn-wrap.btn-2:focus-visible {
    outline: 2px solid var(--primary, #ed1c25);
    outline-offset: 2px;
}

/* Animation for cards entering viewport */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tf-grid-layout .wg-work {
    animation: cardFadeIn 0.6s ease forwards;
}

.tf-grid-layout .wg-work:nth-child(2) {
    animation-delay: 0.1s;
}

.tf-grid-layout .wg-work:nth-child(3) {
    animation-delay: 0.2s;
}

.tf-grid-layout .wg-work:nth-child(4) {
    animation-delay: 0.3s;
}

.tf-grid-layout .wg-work:nth-child(5) {
    animation-delay: 0.4s;
}

.tf-grid-layout .wg-work:nth-child(6) {
    animation-delay: 0.5s;
}
