/* Tour Cards CSS - Modern Design Based on Images */

/* Reset and Base Styles */
.tourbo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tourbo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.tourbo-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tourbo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tourbo-card:hover .tourbo-card-image img {
    transform: scale(1.05);
}

/* Featured Badge */
.tourbo-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tourbo-featured-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Action Buttons */
.tourbo-card-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.tourbo-action-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.tourbo-action-btn * {
    pointer-events: none;
}

.tourbo-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 1);
}

.tourbo-action-btn .tourbo-icon-heart,
.tourbo-action-btn .tourbo-icon-share {
    font-size: 20px;
    color: #666;
    line-height: 1;
    display: block;
    transition: all 0.2s ease;
}

.tourbo-action-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: all 0.2s ease;
}
.tourbo-action-btn {
    padding: 0px;
}

.tourbo-action-btn:hover .tourbo-icon-heart,
.tourbo-action-btn:hover .tourbo-icon-share {
    color: #0073aa;
}

.tourbo-action-btn:hover svg {
    color: #0073aa;
}

.tourbo-favorite-btn .tourbo-icon-heart {
    position: relative;
}

.tourbo-favorite-btn .tourbo-icon-outline {
    display: block !important;
    color: #666;
    transition: all 0.2s ease;
}

.tourbo-favorite-btn .tourbo-icon-filled {
    display: none !important;
    color: #ff6b6b;
    fill: #ff6b6b;
    transition: all 0.2s ease;
}

.tourbo-favorite-btn.active .tourbo-icon-outline {
    display: none !important;
}

.tourbo-favorite-btn.active .tourbo-icon-filled {
    display: block !important;
}

.tourbo-favorite-btn.active {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.tourbo-favorite-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.tourbo-favorite-btn.loading svg {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Bold card icon styling */
.tourbo-card-bold .tourbo-action-btn .tourbo-icon-heart,
.tourbo-card-bold .tourbo-action-btn .tourbo-icon-share {
    color: white;
}

.tourbo-card-bold .tourbo-action-btn:hover .tourbo-icon-heart,
.tourbo-card-bold .tourbo-action-btn:hover .tourbo-icon-share {
    color: #0073aa;
}

/* Elementor Widget Specific Styling */
.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-favorite-btn {
    padding-left: 0px;
    padding-right: 0px;
    transform: translatex(0px) translatey(0px);
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-action-btn {
    padding-left: 0px;
    padding-right: 0px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.elementor-widget-tourbo-tour-listing .tourbo-favorite-btn span {
    font-size: 40px;
    color: #ffffff;
    line-height: 1;
}

.elementor-widget-tourbo-tour-listing .tourbo-favorite-btn span:hover {
    font-size: 40px;
    color: #cd2121;
}

.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-icon-share {
    font-size: 20px;
    color: #666;
    line-height: 1;
}

.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-icon-share:hover {
    font-size: 20px;
    color: #0073aa;
}

.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-action-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.elementor-widget-tourbo-tour-listing .tourbo-tours-grid .tourbo-action-btn:hover svg {
    color: #0073aa;
}

/* Card Content */
.tourbo-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.tourbo-card-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* Card Header */
.tourbo-card-header {
    margin-bottom: 12px;
}

.tourbo-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.tourbo-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tourbo-card-title a:hover {
    color: #0073aa;
}

.tourbo-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.tourbo-card-location svg {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

/* Card Description */
.tourbo-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.tourbo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.tourbo-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tourbo-card-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.tourbo-card-duration svg {
    width: 14px;
    height: 14px;
    color: #999;
}

/* Rating Stars */
.tourbo-stars {
    display: flex;
    gap: 2px;
}

.tourbo-stars .dashicons {
    font-size: 14px;
    color: #ddd;
    transition: color 0.2s ease;
}

.tourbo-stars .dashicons.active {
    color: #ffc107;
}

/* Pricing */
.tourbo-card-pricing {
    text-align: right;
}

.tourbo-card-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.tourbo-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
    line-height: 1.2;
}

/* Design Variations */

/* Modern Card (Default) */
.tourbo-card-modern {
    /* Uses default styles above */
}

/* Modern Card - Green Theme */
.tourbo-card-modern .tourbo-featured-badge {
    background: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.tourbo-card-modern .tourbo-card-title {
    color: #065f46;
}

.tourbo-card-modern .tourbo-card-title a:hover {
    color: #047857;
}

.tourbo-card-modern .tourbo-card-location svg {
    color: #10b981;
}

.tourbo-card-modern .tourbo-card-category {
    background: #f5f5f5;
    color: #065f46;
}

.tourbo-card-modern .tourbo-card-duration {
    background: #f5f5f5;
    color: #065f46;
}

.tourbo-card-modern .tourbo-card-duration svg {
    color: #10b981;
}

.tourbo-card-modern .tourbo-card-price {
    color: #065f46;
}

/* Classic Card */
.tourbo-card-classic {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.tourbo-card-classic .tourbo-card-image {
    height: 200px;
}

.tourbo-card-classic .tourbo-card-content {
    padding: 16px;
}

/* Classic Card - Blue Theme */
.tourbo-card-classic .tourbo-featured-badge {
    background: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tourbo-card-classic .tourbo-card-title {
    color: #1e40af;
}

.tourbo-card-classic .tourbo-card-title a:hover {
    color: #1d4ed8;
}

.tourbo-card-classic .tourbo-card-location svg {
    color: #3b82f6;
}

.tourbo-card-classic .tourbo-card-category {
    background: #f5f5f5;
    color: #1e40af;
}

.tourbo-card-classic .tourbo-card-duration {
    background: #f5f5f5;
    color: #1e40af;
}

.tourbo-card-classic .tourbo-card-duration svg {
    color: #3b82f6;
}

.tourbo-card-classic .tourbo-card-price {
    color: #1e40af;
}

/* Minimal Card */
.tourbo-card-minimal {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.tourbo-card-minimal .tourbo-card-image {
    height: 180px;
}

.tourbo-card-minimal .tourbo-card-content {
    padding: 16px;
}

.tourbo-card-minimal .tourbo-card-category {
    display: none;
}

.tourbo-card-minimal .tourbo-card-description {
    display: none;
}

/* Elegant Card */
.tourbo-card-elegant {
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.tourbo-card-elegant .tourbo-card-image {
    height: 260px;
}

.tourbo-card-elegant .tourbo-card-content {
    padding: 24px;
}

.tourbo-card-elegant .tourbo-card-title {
    font-size: 18px;
}

/* Elegant Card - Purple Theme */
.tourbo-card-elegant .tourbo-featured-badge {
    background: #8f7fb5;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.tourbo-card-elegant .tourbo-card-title {
    color: #6b21a8;
}

.tourbo-card-elegant .tourbo-card-title a:hover {
    color: #7c3aed;
}

.tourbo-card-elegant .tourbo-card-location svg {
    color: #8b5cf6;
}
.tourbo-card-elegant .tourbo-card-location {
    color: #6b21a8;
}

.tourbo-card-elegant .tourbo-card-category {
    background: #f5f5f5;
    color: #6b21a8;
}

.tourbo-card-elegant .tourbo-card-duration {
    background: #f5f5f5;
    color: #6b21a8;
}

.tourbo-card-elegant .tourbo-card-duration svg {
    color: #8b5cf6;
}

.tourbo-card-elegant .tourbo-card-price {
    color: #6b21a8;
}

/* Bold Card */
.tourbo-card-bold {
    background: #fff;
    color: #333;
    position: relative;
    overflow: hidden;
    height: 400px; /* Make bold cards taller */
}

.tourbo-card-bold .tourbo-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
}

.tourbo-card-bold .tourbo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tourbo-card-bold .tourbo-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    z-index: 3;
}

.tourbo-card-bold .tourbo-card-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tourbo-card-bold .tourbo-card-title {
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tourbo-card-bold .tourbo-card-title a {
    color: white;
}

.tourbo-card-bold .tourbo-card-title a:hover {
    color: #f0f0f0;
}

.tourbo-card-bold .tourbo-card-location {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.tourbo-card-bold .tourbo-card-location svg {
    color: white;
}

.tourbo-card-bold .tourbo-card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tourbo-card-bold .tourbo-card-duration {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tourbo-card-bold .tourbo-card-duration svg {
    color: white;
}

.tourbo-card-bold .tourbo-card-price {
    color: white;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tourbo-card-bold .tourbo-card-original-price {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tourbo-card-bold .tourbo-card-actions {
    top: 20px;
    right: 20px;
    z-index: 4;
}

.tourbo-card-bold .tourbo-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4;
    background: #065f46;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tourbo-card-bold .tourbo-action-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.tourbo-card-bold .tourbo-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.tourbo-card-bold .tourbo-action-btn svg {
    color: #333;
}


.tourbo-card-bold .tourbo-stars .dashicons {
    color: rgba(255, 255, 255, 0.8);
}

.tourbo-card-bold .tourbo-stars .dashicons.active {
    color: #ffc107;
}

/* Compact Card */
.tourbo-card-compact {
    flex-direction: row;
    height: 160px;
}

.tourbo-card-compact .tourbo-card-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.tourbo-card-compact .tourbo-card-content {
    padding: 16px;
    flex: 1;
}

.tourbo-card-compact .tourbo-card-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.tourbo-card-compact .tourbo-card-description {
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
}

.tourbo-card-compact .tourbo-card-meta {
    gap: 12px;
}

.tourbo-card-compact .tourbo-card-duration {
    padding: 4px 8px;
    font-size: 11px;
}

.tourbo-card-compact .tourbo-card-price {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tourbo-card-image {
        height: 200px;
    }
    
    .tourbo-card-content {
        padding: 16px;
    }
    
    .tourbo-card-title {
        font-size: 18px;
    }
    
    .tourbo-card-compact {
        flex-direction: column;
        height: auto;
    }
    
    .tourbo-card-compact .tourbo-card-image {
        width: 100%;
        height: 180px;
    }
    
    .tourbo-card-actions {
        top: 12px;
        right: 12px;
    }
    
    .tourbo-action-btn {
        width: 28px;
        height: 28px;
    }
    
    .tourbo-action-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .tourbo-card-image {
        height: 180px;
    }
    
    .tourbo-card-content {
        padding: 12px;
    }
    
    .tourbo-card-title {
        font-size: 16px;
    }
    
    .tourbo-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .tourbo-card-pricing {
        text-align: right;
    }
}

/* Premium Card */
.tourbo-card-premium {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.tourbo-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.tourbo-card-premium .tourbo-card-image {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.tourbo-card-premium .tourbo-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tourbo-card-premium:hover .tourbo-card-image::before {
    opacity: 1;
}

.tourbo-card-premium .tourbo-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Premium Card - Gold Theme */
.tourbo-card-premium .tourbo-featured-badge {
    background: linear-gradient(135deg, #f5ee90, #c2953a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    font-weight: 700;
}

.tourbo-card-premium .tourbo-featured-badge svg {
    color: #ffffff;
}

.tourbo-card-premium .tourbo-card-title {
    color: #875c06;
    font-weight: 700;
}

.tourbo-card-premium .tourbo-card-title a {
    color: #875c06;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tourbo-card-premium .tourbo-card-title a:hover {
    color: #c2953a;
}

.tourbo-card-premium .tourbo-card-location {
    color: #8b4513;
    font-weight: 600;
}

.tourbo-card-premium .tourbo-card-location svg {
    color: #72380e;
}

.tourbo-card-premium .tourbo-card-category {
    background: #f5f5f5;
    color: #72380e;
    font-weight: 700;
}

.tourbo-card-premium .tourbo-card-duration {
    background: #f5f5f5;
    color: #72380e;
    font-weight: 600;
}

.tourbo-card-premium .tourbo-card-duration svg {
    color: #72380e;
}

.tourbo-card-premium .tourbo-card-price {
    color: #72380e;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 20px;
}

.tourbo-card-premium .tourbo-card-description {
    color: #666666;
    font-weight: 500;
}

/* Premium Card Action Buttons */
.tourbo-card-premium .tourbo-action-btn {
    background: rgba(255, 215, 0, 0.95);
    border: 2px solid #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.tourbo-card-premium .tourbo-action-btn:hover {
    background: #20b4d6;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgb(32 180 214 / 30%);
}

.tourbo-card-premium .tourbo-action-btn svg {
    color: #8b4513;
}

.tourbo-card-premium .tourbo-action-btn:hover svg {
    color: #fff;
}

/* Premium Card Stars */
.tourbo-card-premium .tourbo-stars .dashicons.active {
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.tourbo-tours-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.tourbo-tours-grid.columns-1 {
    grid-template-columns: 1fr;
}

.tourbo-tours-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tourbo-tours-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tourbo-tours-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .tourbo-tours-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tourbo-tours-grid.columns-3,
    .tourbo-tours-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tourbo-tours-grid.columns-2,
    .tourbo-tours-grid.columns-3,
    .tourbo-tours-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Loading and Empty States */
.tourbo-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.tourbo-no-tours {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tourbo-no-tours h3 {
    margin-bottom: 16px;
    color: #333;
}

/* Accessibility */
.tourbo-action-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .tourbo-card-actions {
        display: none;
    }
    
    .tourbo-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}