/* TravelGenerator Tours Premium Styles */

.tg-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tg-tour-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}

.tg-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tg-tour-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tg-badges-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tg-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tg-badge-marketing {
    background: #f97316; /* Orange for marketing */
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.tg-tour-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tg-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.tg-languages {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.tg-stars {
    color: #f59e0b;
    font-weight: 700;
}

.tg-reviews {
    color: #6b7280;
    font-size: 0.8rem;
}

.tg-tour-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tg-tour-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tg-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 0.9rem;
}

.tg-meta-item svg {
    color: #6b7280;
}

.tg-free-cancel {
    color: #059669;
    font-weight: 500;
}

.tg-free-cancel svg {
    color: #059669;
}

.tg-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: auto;
}

.tg-price-box {
    display: flex;
    flex-direction: column;
}

.tg-price-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.tg-price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.tg-price-unit {
    font-size: 0.8rem;
    color: #6b7280;
}

.tg-book-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.tg-book-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: scale(1.03);
    color: #ffffff;
    text-decoration: none;
}

/* Dark mode support - auto adapts if parent theme has dark mode classes */
@media (prefers-color-scheme: dark) {
    body.dark-mode .tg-tour-card,
    .dark-theme .tg-tour-card {
        background: #1f2937;
        border-color: #374151;
    }
    body.dark-mode .tg-tour-title,
    .dark-theme .tg-tour-title,
    body.dark-mode .tg-price-amount,
    .dark-theme .tg-price-amount {
        color: #f9fafb;
    }
    body.dark-mode .tg-meta-item,
    .dark-theme .tg-meta-item,
    body.dark-mode .tg-reviews,
    .dark-theme .tg-reviews {
        color: #9ca3af;
    }
    body.dark-mode .tg-tour-footer,
    .dark-theme .tg-tour-footer {
        border-color: #374151;
    }
}
