/* TW Tours Frontend Styles */

.tw-tours-wrapper,
.tw-tours-archive-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Custom animations */
.tw-tours-wrapper .animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.tw-tours-wrapper .animate-fade-in-up {
    animation: fadeInUp 1s ease-in-out;
}

.tw-tours-wrapper .animate-fade-in-up.delay-100 {
    animation-delay: 0.1s;
}

.tw-tours-wrapper .animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.tw-tours-wrapper .animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Tour Package Hero Section */
.tw-tours-wrapper .tour-hero {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #111827, #1e40af, #111827);
}

.tw-tours-wrapper .breadcrumb {
    margin-bottom: 2rem;
}

.tw-tours-wrapper .breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.tw-tours-wrapper .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #60a5fa;
}

.tw-tours-wrapper .breadcrumb a {
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.2s;
}

.tw-tours-wrapper .breadcrumb a:hover {
    color: #fff;
}

/* Booking Widget */
.tw-tours-wrapper .booking-widget {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.tw-tours-wrapper .price-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tw-tours-wrapper .price-display .amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.tw-tours-wrapper .price-display .per-person {
    color: #4b5563;
    font-size: 0.875rem;
    display: block;
}

/* Tour Overview */
.tw-tours-wrapper .tour-overview {
    padding: 4rem 0;
    background: #fff;
}

.tw-tours-wrapper .quick-facts {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Detailed Itinerary */
.tw-tours-wrapper .tour-itinerary {
    padding: 4rem 0;
    background: #f9fafb;
}

.tw-tours-wrapper .itinerary-day {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
}

.tw-tours-wrapper .day-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tw-tours-wrapper .day-number {
    background: #2563eb;
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.tw-tours-wrapper .day-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tw-tours-wrapper .stat-item {
    text-align: center;
}

.tw-tours-wrapper .stat-icon {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.tw-tours-wrapper .stat-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.tw-tours-wrapper .stat-value {
    color: #4b5563;
    font-size: 0.875rem;
}

/* Inclusions & Exclusions */
.tw-tours-wrapper .inclusions-exclusions {
    padding: 4rem 0;
    background: #fff;
}

.tw-tours-wrapper .inclusions-exclusions .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.tw-tours-wrapper .inclusion-item,
.tw-tours-wrapper .exclusion-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tw-tours-wrapper .inclusion-icon {
    color: #16a34a;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.tw-tours-wrapper .exclusion-icon {
    color: #dc2626;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.tw-tours-wrapper .inclusion-text,
.tw-tours-wrapper .exclusion-text {
    color: #374151;
}

/* CTA Section */
.tw-tours-wrapper .cta-section {
    padding: 4rem 0;
    background: #2563eb;
    text-align: center;
}

.tw-tours-wrapper .cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.tw-tours-wrapper .cta-description {
    color: #bfdbfe;
    font-size: 1.25rem;
    max-width: 44rem;
    margin: 0 auto 2rem;
}

.tw-tours-wrapper .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tw-tours-wrapper .book-button {
    background: #fff;
    color: #2563eb;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tw-tours-wrapper .book-button:hover {
    background: #f3f4f6;
}

.tw-tours-wrapper .brochure-button {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tw-tours-wrapper .brochure-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tour Archive Styles */
.tw-tours-archive-wrapper .archive-header {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #111827, #1e40af, #111827);
    text-align: center;
}

.tw-tours-archive-wrapper .archive-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.tw-tours-archive-wrapper .archive-description {
    color: #bfdbfe;
    font-size: 1.25rem;
    max-width: 44rem;
    margin: 0 auto;
}

.tw-tours-archive-wrapper .filters {
    margin-bottom: 3rem;
}

.tw-tours-archive-wrapper .filter-button {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.2s;
}

.tw-tours-archive-wrapper .filter-button.active,
.tw-tours-archive-wrapper .filter-button:hover {
    background: #2563eb;
    color: #fff;
}

.tw-tours-archive-wrapper .filter-button:not(.active) {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.tw-tours-archive-wrapper .tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tw-tours-archive-wrapper .tour-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.tw-tours-archive-wrapper .tour-card:hover {
    transform: scale(1.025);
}

.tw-tours-archive-wrapper .tour-image {
    height: 12rem;
    overflow: hidden;
}

.tw-tours-archive-wrapper .tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tw-tours-archive-wrapper .tour-content {
    padding: 1.5rem;
}

.tw-tours-archive-wrapper .tour-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.tw-tours-archive-wrapper .tour-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
}

.tw-tours-archive-wrapper .tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tw-tours-archive-wrapper .duration {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.tw-tours-archive-wrapper .duration-icon {
    margin-right: 0.25rem;
}

.tw-tours-archive-wrapper .difficulty {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.tw-tours-archive-wrapper .difficulty.easy {
    background: #dcfce7;
    color: #166534;
}

.tw-tours-archive-wrapper .difficulty.moderate {
    background: #fef9c3;
    color: #854d0e;
}

.tw-tours-archive-wrapper .difficulty.challenging,
.tw-tours-archive-wrapper .difficulty.difficult {
    background: #fee2e2;
    color: #991b1b;
}

.tw-tours-archive-wrapper .tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tw-tours-archive-wrapper .tour-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.tw-tours-archive-wrapper .view-details {
    background: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.tw-tours-archive-wrapper .view-details:hover {
    background: #1d4ed8;
}

.tw-tours-archive-wrapper .no-tours {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.tw-tours-archive-wrapper .no-tours-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.tw-tours-archive-wrapper .no-tours-description {
    color: #6b7280;
}

.tw-tours-archive-wrapper .pagination {
    margin-top: 3rem;
    text-align: center;
}

.tw-tours-archive-wrapper .pagination a,
.tw-tours-archive-wrapper .pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #2563eb;
}

.tw-tours-archive-wrapper .pagination a:hover {
    background: #eff6ff;
}

.tw-tours-archive-wrapper .pagination .current {
    background: #2563eb;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tw-tours-wrapper .day-stats {
        grid-template-columns: 1fr;
    }
    
    .tw-tours-archive-wrapper .tour-grid {
        grid-template-columns: 1fr;
    }
    
    .tw-tours-wrapper .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}