/* ========================================
   Tours Listing Page Styles
   ======================================== */

.tours-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/hero-registan.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tours-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.60) 100%);
    z-index: 1;
}

.tours-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
}

.tours-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.tours-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a5490 0%, #2c7abf 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
    background: linear-gradient(135deg, #2c7abf 0%, #1a5490 100%);
}

.hero-cta-btn i {
    font-size: 14px;
    animation: bounce 2s infinite;
}

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

@media (max-width: 768px) {
    .tours-hero {
        height: 300px;
        margin-top: 100px;
    }

    .tours-hero__title {
        font-size: 36px;
    }

    .tours-hero__subtitle {
        font-size: 16px;
    }

    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ========================================
   Trust Badges Section
   ======================================== */

.trust-badges {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.trust-badges__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 32px;
    color: #1a5490;
}

.trust-badge__number {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.trust-badge__label {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* ========================================
   Tours Intro Section
   ======================================== */

.tours-intro {
    padding: 60px 0;
    background: white;
}

.tours-intro__content {
    max-width: 900px;
    margin: 0 auto;
}

.tours-intro__title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
}

.tours-intro__text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.tours-intro__text p {
    margin: 0 0 16px 0;
}

.tours-intro__text p:last-child {
    margin-bottom: 0;
}

.tours-grid {
    padding: 80px 0;
}

.tours-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.tours-grid__title {
    font-size: 2.5rem;
    color: #1a1a1a;
}

.tours-grid__count {
    font-size: 1.1rem;
    color: #666;
}

.tours-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tour-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tour-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tour-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card__category {
    display: inline-block;
    background: #e3f2fd;
    color: #1a5490;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.tour-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.tour-card__description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.tour-card__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.tour-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tour-card__price {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5490;
}

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    height: 420px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: #1a5490;
    color: #1a5490;
}

.filter-tab.active {
    background: #1a5490;
    color: white;
    border-color: #1a5490;
}

/* ========================================
   FAQ Section
   ======================================== */

.tours-faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.tours-faq__title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 12px 0;
}

.tours-faq__subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin: 0 0 48px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item__question {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-item__question i {
    color: #1a5490;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0; /* Keep for mobile */
}

.faq-item__answer {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ========================================
   Floating WhatsApp Button
   ======================================== */

.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.floating-whatsapp i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .tours-hero {
        padding: 120px 0 60px;
    }

    .tours-hero::before {
        background: linear-gradient(135deg, rgba(26,84,144,0.7) 0%, rgba(44,122,191,0.6) 100%),
                    linear-gradient(rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.80) 100%);
    }

    .tours-hero__title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        line-height: 1.3;
    }

    .tours-hero__subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .tours-grid {
        padding: 60px 0;
    }

    .tours-grid .container {
        padding-inline: 0 !important;
    }

    .tours-grid__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-inline: 1rem;
    }

    .tours-grid__title {
        font-size: 2rem;
    }

    .tours-grid__container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-inline: 0.25rem;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filter-tab {
        white-space: nowrap;
    }

    .tour-card {
        border-radius: 8px;
    }

    /* Mobile trust badges */
    .trust-badges__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-badge {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .trust-badge i {
        font-size: 28px;
    }

    .trust-badge__number {
        font-size: 18px;
    }

    /* Mobile intro */
    .tours-intro {
        padding: 40px 0;
    }

    .tours-intro__title {
        font-size: 24px;
    }

    .tours-intro__text {
        font-size: 15px;
    }

    /* Mobile FAQ */
    .tours-faq {
        padding: 60px 0;
    }

    .tours-faq__title {
        font-size: 28px;
    }

    .tours-faq__subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item__question {
        font-size: 16px;
    }

    .faq-item__answer {
        font-size: 14px;
    }

    /* Mobile WhatsApp button */
    .floating-whatsapp {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }

    .floating-whatsapp__text {
        display: inline;
    }
}

/* =====================================================
   TOURS FILTERS SECTION
   ===================================================== */
.tours-filters {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Category Filter Pills - Horizontal Scrollable with Icons */
.tours-categories-wrapper {
    width: 100%;
    position: relative;
}

.tours-categories {
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    gap: 12px;
    align-items: center;
    
    
    padding: 8px 0;
    
    
    
    
}

/* Hide scrollbar for cleaner look */
.tours-categories::-webkit-scrollbar {
    height: 4px;
}

.tours-categories::-webkit-scrollbar-track {
    background: transparent;
}

.tours-categories::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
}

.tours-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

.tours-category-btn {
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    color: #4A5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 200ms ease;
    position: relative;
    flex-shrink: 0; /* Keep for mobile */
}

.tours-category-btn .category-icon {
    font-size: 18px;
    line-height: 1;
}

.tours-category-btn .category-label {
    font-weight: 500;
}

.tours-category-btn .category-count {
    background: #F8F9FA;
    color: #718096;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.tours-category-btn:hover {
    background: #F8F9FA;
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.tours-category-btn.active {
    background: #1C54B2;
    border-color: #1C54B2;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(28,84,178,0.3);
}

.tours-category-btn.active .category-icon {
    filter: brightness(1.2);
}

.tours-category-btn.active .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tours-category-btn.active:hover {
    background: #143d85;
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tours-category-btn {
        font-size: 13px;
        padding: 10px 12px;
        min-height: 36px;
    }
    
    .tours-category-btn .category-count {
        font-size: 11px;
        min-width: 18px;
        height: 18px;
    }
}

/* Desktop: Centered wrap layout */
@media (min-width: 769px) {
    .tours-categories {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }
    
    .tours-category-btn {
        flex-shrink: 1;
    }
}

/* Mobile: Horizontal scroll */
@media (max-width: 768px) {
    .tours-categories {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    
    .tours-category-btn {
        flex-shrink: 0;
    }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-wrapper nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper nav a,
.pagination-wrapper nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-wrapper nav a:hover {
    background: #f9fafb;
    border-color: #1a5490;
    color: #1a5490;
}

.pagination-wrapper nav span[aria-current="page"] {
    background: #1a5490;
    color: white;
    border-color: #1a5490;
}

.pagination-wrapper nav span[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Fix oversized SVG arrows */
.pagination-wrapper nav svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* Responsive */
@media (max-width: 640px) {
    .pagination-wrapper nav a,
    .pagination-wrapper nav span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0.375rem 0.5rem;
    }
    
    .pagination-wrapper nav svg {
        width: 14px !important;
        height: 14px !important;
    }
}
