/* --- Gazi Turizm Tour Listing CSS (Phase 3) --- */

/* Base & Layout */
.tour-listing-page {
    background-color: #f4f6f8;
    padding: 30px 0 80px;
    font-family: 'Inter', sans-serif;
}

.tour-listing-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Filter */
.tour-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 25px 20px;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #009fbf;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group > label,
.filter-group > .filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #009fbf;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-inputs span {
    color: #888;
}

.filter-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-filter-submit {
    background: #009fbf;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.btn-filter-submit:hover {
    background: #007c96;
}

.btn-filter-clear {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-filter-clear:hover {
    background: #f8f9fa;
    color: #333;
}

/* Main Content */
.tour-main-content {
    flex: 1;
    min-width: 0;
}

/* Topbar */
.tour-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.result-count {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.result-count strong {
    color: #2c3e50;
    font-weight: 700;
}

.tour-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-sort label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.tour-sort select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    background: #f9f9f9;
}

/* List Layout (Horizontal Cards) */
.tour-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-horizontal-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.tour-horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tour-card-image {
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.badge-primary { background: #e74c3c; }
.badge-secondary { background: #f39c12; }

.tour-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    text-decoration: none;
}

.tour-card-title:hover {
    color: #009fbf;
}

.tour-card-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.tour-card-info i {
    color: #009fbf;
    margin-right: 5px;
}

.tour-card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dates */
.tour-card-dates {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.date-chip {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    color: #0056b3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Price & Action */
.tour-card-right {
    width: 220px;
    padding: 25px;
    background: #fcfdfd;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.price-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #009fbf;
    line-height: 1;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 700;
}

.price-suffix {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: 5px;
}

.tour-card-actions {
    display: grid;
    width: 100%;
    gap: 9px;
    margin-top: 20px;
}

.btn-detail,
.btn-cart {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-detail {
    background: #009fbf;
    color: #fff;
}

.btn-cart {
    border: 1px solid #009fbf;
    background: #fff;
    color: #007c96;
}

.btn-detail:hover {
    background: #007c96;
}

.btn-cart:hover {
    background: #eef9fb;
    color: #006f87;
}

/* No Results */
.tour-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.tour-no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.tour-no-results h3 {
    font-size: 1.5rem;
    color: #333;
}

/* Mobile Sidebar Toggle */
.mobile-filter-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .tour-horizontal-card {
        flex-direction: column;
    }
    
    .tour-card-image {
        width: 100%;
        height: 220px;
    }
    
    .tour-card-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
    }
    
    .tour-card-actions {
        width: auto;
        margin-top: 0;
    }

    .btn-detail,
    .btn-cart {
        padding: 12px 30px;
    }
}

@media (max-width: 768px) {
    .tour-listing-container {
        flex-direction: column;
    }
    
    .tour-sidebar {
        width: 100%;
        position: static;
        display: none; /* Hide by default on mobile, can be toggled */
    }
    
    .tour-sidebar.active {
        display: block;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        background: #fff;
        border: 1px solid #ddd;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        margin-bottom: 20px;
        cursor: pointer;
    }
    
    .tour-card-right {
        flex-direction: column;
        text-align: center;
    }
    
    .tour-card-actions {
        width: 100%;
        margin-top: 15px;
    }
}
