/* Match hover border color for tours card in history panel expanded view */
.history-expanded-view .tours-card:hover {
    border-color: var(--history-color, #db9123);
}
/* Match navigation button style for tours in history panel expanded view */
.history-expanded-view .tours-nav-btn {
    background: var(--history-color, #d1a35364);
}
/* Ensure tours section in history panel matches normal expanded history card style */
.history-expanded-view .tours-card {
    border-color: var(--history-color, #cda370);
    background: rgba(211, 170, 109, 0.211);
}
.history-expanded-view .tours-heading h4 {
    color: var(--history-color, #b07b27);
}
.history-expanded-view .tours-pitch {
    color: var(--history-color, #cfa85f);
}
.history-expanded-view .tours-destination {
    color: var(--history-color, #b07b27);
}
/* Shine effect overlay for tours card (like bookmark card) */
.tours-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 220%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.25) 52%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 70%,
        transparent 100%
    );
    z-index: 10;
    opacity: 0;
    transition: all 0.4s ease-out;
    transform: rotate(25deg);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.tours-card:hover::before {
    left: 120%;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* GTG logo in tours card */
.tours-card .gtg-logo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0.85;
    pointer-events: none;
}
/* Animation for immersive card transitions */
.tours-card {
    /* ...existing code... */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide left (next) */
.tours-card.slide-left {
    animation: tours-slide-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tours-slide-left {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Slide right (previous) */
.tours-card.slide-right {
    animation: tours-slide-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tours-slide-right {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
/* Tours Section Styles */
.tours-section {
    margin-top: 24px;
    margin-bottom: 16px;
}

.tours-heading h4 {
    margin: 0 0 16px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary, #333);
}

/* Type-specific heading colors */
.movie-expanded .tours-heading h4 {
    color: var(--movie-color, #df696f);
}
.book-expanded .tours-heading h4 {
    color: var(--book-color, #df9e6f);
}
.game-expanded .tours-heading h4 {
    color: var(--game-color, #0db5d2);
}
.tvshow-expanded .tours-heading h4 {
    color: var(--tvshow-color, #748fdf);
}
.history-expanded .tours-heading h4 {
    color: var(--history-color, #b07b27);
}

.tours-container {
    position: relative;
    width: 100%;
}

.tours-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
/* Type-specific card border colors */
.movie-expanded .tours-card {
    border-color: var(--movie-color, #9c1017b4);
    background: rgba(181, 47, 54, 0.33);
}

.book-expanded .tours-card {
    border-color: var(--book-color, #8b4513);
    background: rgba(158, 73, 16, 0.241);
}

.game-expanded .tours-card {
    border-color: var(--game-color, #4caf50);
    background: rgba(76, 145, 175, 0.06);
}

.tvshow-expanded .tours-card {
    border-color: var(--tvshow-color, #ff9800);
    background: rgba(17, 2, 65, 0.532);
}

.history-expanded .tours-card {
    border-color: var(--history-color, #cda370);
    background: rgba(211, 170, 109, 0.211);
}

.tours-card:hover {
    /* Copied transform and box-shadow from .bookmark-card:hover in cards-bookmarks.css */
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 191, 0, 0.316), 0 2px 8px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color, #007bff);
    /* Do not change background or border-image */
}

.tours-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

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

.tours-content {
    padding: 16px;
}

.tours-pitch {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* Type-specific pitch color */
.movie-expanded .tours-pitch {
    color: var(--movie-color, #e0bfc0);
}

.book-expanded .tours-pitch {
    color: var(--book-color, #c8916a);
}

.game-expanded .tours-pitch {
    color: var(--game-color, #429a9d);
}

.tvshow-expanded .tours-pitch {
    color: var(--tvshow-color, #8d94b7);
}

.history-expanded .tours-pitch {
    color: var(--history-color, #cfa85f);
}

.tours-destination {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color, #007bff);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation buttons */
.tours-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Bigger navigation buttons */
.tours-nav-btn {
    background: var(--accent-color, #007bff);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.tours-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tours-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.tours-counter {
    font-size: 12px;
    color: var(--text-secondary, #666);
    font-weight: 500;
}

/* Type-specific styling */

.movie-expanded .tours-card {
    border-color: var(--movie-color, #850a10);
}

.book-expanded .tours-card {
    border-color: var(--book-color, #d7a656);
}

.game-expanded .tours-card {
    border-color: var(--game-color, #4ca0af);
}

.tvshow-expanded .tours-card {
    border-color: var(--tvshow-color, #0019be);
}

.history-expanded .tours-card {
    border-color: var(--history-color, #db9123);
}

.movie-expanded .tours-nav-btn {
    background: var(--movie-color, #e50914);
}

.book-expanded .tours-nav-btn {
    background: var(--book-color, #8b4513);
}

.game-expanded .tours-nav-btn {
    background: var(--game-color, #4c96af);
}

.tvshow-expanded .tours-nav-btn {
    background: var(--tvshow-color, #ff9800);
}

.history-expanded .tours-nav-btn {
    background: var(--history-color, #d1a35364);
}

.movie-expanded .tours-destination {
    color: var(--movie-color, #dc7d82);
}

.book-expanded .tours-destination {
    color: var(--book-color, #ffa667);
}

.game-expanded .tours-destination {
    color: var(--game-color, #4798af);
}

.tvshow-expanded .tours-destination {
    color: var(--tvshow-color, #afbfe2);
}

.history-expanded .tours-destination {
    color: var(--history-color, #b07b27);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tours-image-container {
        height: 150px;
    }
    
    .tours-content {
        padding: 12px;
    }
    
    .tours-pitch {
        font-size: 13px;
    }
    
    .tours-destination {
        font-size: 11px;
        margin-top: 8px;
    }
    
    .tours-navigation {
        margin-top: 8px;
    }
    
    .tours-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Error state */
.tours-error {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary, #666);
    font-size: 14px;
    border: 1px dashed var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--card-bg-alt, #f9f9f9);
}

/* Loading state */
.tours-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.tours-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-top: 2px solid var(--accent-color, #007bff);
    border-radius: 50%;
    animation: tours-spin 1s linear infinite;
}

@keyframes tours-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
