/* ============ TOURS PAGE STYLING ============ */

/* ============ HERO SECTION ============ */
.tours-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1a1f3a 100%);
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.tours-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tours-hero .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.2);
}

.tours-hero .hero-content p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 0;
}

/* ============ TOURS SECTION ============ */
.tours-section {
    background: #F8FAFC;
    padding: 60px 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

.tours-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ============ FILTER TOGGLE BUTTON ============ */
.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.filter-toggle-btn:active {
    transform: scale(0.98);
}

.filter-close-btn {
    display: none;
}

/* ============ FILTERS SIDEBAR ============ */
.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 20px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 15px;
}

.filters-header h3 {
    font-size: 1.2rem;
    color: #0F172A;
    font-weight: 600;
}

.reset-filters {
    background: none;
    border: none;
    color: #F97316;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reset-filters:hover {
    color: #EA580C;
}

/* Filter Group */
.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 1rem;
    color: #0F172A;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    transition: color 0.2s ease;
}

.filter-label:hover {
    color: #F97316;
}

.filter-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #F97316;
}

.filter-label input[type="checkbox"]:checked + span {
    color: #F97316;
    font-weight: 600;
}

/* Price Range Input */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #475569;
    transition: border-color 0.3s ease;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: #F97316;
}

.price-range-inputs span {
    color: #94a3b8;
    font-weight: 600;
}

/* ============ TOURS MAIN CONTENT ============ */
.tours-main {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

/* Tours Header */
.tours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.results-count span {
    color: #F97316;
    font-weight: 700;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: white;
    color: #0F172A;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-options select:hover,
.sort-options select:focus {
    outline: none;
    border-color: #F97316;
}

/* ============ TOURS GRID ============ */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Tour Card */
.tour-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.15);
    border-color: #F97316;
}

/* Tour Card Image */
.tour-card-image {
    position: relative;
    overflow: hidden;
    height: 260px;
}

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

.tour-card:hover .tour-card-image img {
    transform: scale(1.1);
}

/* Tour Badges */
.tour-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tour-badge.discount {
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.tour-difficulty {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.tour-card-content h3 {
    font-size: 1.2rem;
    color: #0F172A;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Tour Meta */
.tour-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Tour Highlights */
.tour-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #475569;
}

.tour-highlights span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tour Footer */
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-price {
    font-size: 1.4rem;
    color: #F97316;
    font-weight: 700;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.tour-rating .stars {
    color: #F97316;
    font-weight: 600;
}

.tour-rating .reviews {
    color: #94a3b8;
}

/* Tour Buttons */
.tour-buttons {
    display: flex;
    gap: 12px;
}

.btn-details,
.btn-enquire {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-details {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-enquire {
    background: transparent;
    color: #F97316;
    border: 2px solid #F97316;
}

.btn-enquire:hover {
    background: #F97316;
    color: white;
}

/* ============ CTA SECTION ============ */
.tours-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1a1f3a 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tours-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.btn-cta {
    padding: 15px 40px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 968px) {
    .tours-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-sidebar {
        position: static;
    }

    .tours-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .tours-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Hide Hero Section */
    .tours-hero {
        display: none !important;
    }

    /* Filter Toggle Button */
    .filter-toggle-btn {
        display: block !important;
        margin-bottom: 20px;
    }

    .filter-close-btn {
        display: none !important;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 60px 20px 20px 20px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filters-sidebar.active {
        display: grid !important;
    }

    .filter-close-btn.active {
        display: block !important;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: #f97316;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
    }

    .filter-group {
        border-bottom: 1px solid #E2E8F0;
        border-right: none;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .filter-group:nth-child(even) {
        border-right: none;
    }

    .tours-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-options {
        width: 100%;
    }

    .sort-options select {
        flex: 1;
    }

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

    .tour-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .filter-toggle-btn {
        display: block !important;
        margin-bottom: 20px;
        width: 100%;
    }

    .tours-wrapper {
        gap: 15px;
        grid-template-columns: 1fr !important;
    }

    .filters-sidebar {
        grid-template-columns: 1fr;
        padding: 50px 15px 15px 15px;
    }

    .filter-group {
        border-right: none !important;
        padding-right: 0;
    }

    .tours-main {
        padding: 15px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tour-card-image {
        height: 180px;
    }

    .tour-card-content {
        padding: 15px;
    }

    .tour-card-content h3 {
        font-size: 1rem;
    }

    .discount-price {
        font-size: 1.2rem;
    }

    .tours-hero .hero-content h1 {
        font-size: 1.8rem;
    }

    .tours-hero .hero-content p {
        font-size: 1rem;
    }

    .tour-buttons {
        flex-direction: column;
    }

    .btn-details,
    .btn-enquire {
        width: 100%;
    }
}
