/* YENİLƏNMİŞ QLOBAL RƏNGLƏR VƏ DƏYİŞƏNLƏR */
:root {
    --dark-bg: #121212;
    --light-bg: #F7F9FC; /* Satış yönümlü təmiz fon */
    --accent-color: #D4AF37; /* Premium Qızılı */
    --text-main: #1C1C1C;
    --text-muted: #6B6B6B;
    --border-color: #EBEBEB;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; border: none; outline: none; transition: all 0.3s ease; }

/* INNER PAGE HERO (Turlar Səhifəsi üçün kiçik başlıq) */
.inner-hero {
    height: 400px;
    background-image: linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.8)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2560&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 60px;
}
.inner-hero h1 { font-size: 42px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.breadcrumbs { font-size: 13px; font-weight: 400; color: var(--accent-color); letter-spacing: 1px; text-transform: uppercase; }
.breadcrumbs a { color: #fff; }

/* TURLAR SƏHİFƏSİNİN LAYOUT-u (Filterlər və Grid) */
.tours-page-layout {
    padding: 40px 0 120px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* SOL TƏRƏF: FİLTERLƏR BÖLMƏSİ */
.sidebar-filters {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.filter-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Inputs & Checkboxes */
.filter-search-box {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color);
    border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 13px;
    outline: none; box-sizing: border-box; background: var(--light-bg);
}
.filter-search-box:focus { border-color: var(--accent-color); }

.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input {
    width: 100%; padding: 10px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 13px; outline: none; text-align: center;
}
.price-inputs span { color: var(--text-muted); font-size: 14px; }

.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-label {
    display: flex; align-items: center; gap: 10px; font-size: 14px;
    color: var(--text-muted); cursor: pointer; transition: color 0.2s;
}
.checkbox-label:hover { color: var(--text-main); }
.checkbox-label input {
    appearance: none; width: 18px; height: 18px; border: 2px solid #ccc;
    border-radius: 4px; cursor: pointer; position: relative; transition: all 0.2s;
}
.checkbox-label input:checked { background-color: var(--accent-color); border-color: var(--accent-color); }
.checkbox-label input:checked::after {
    content: '✔'; position: absolute; color: #fff; font-size: 12px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.filter-count { margin-left: auto; font-size: 12px; color: #A0A0A0; background: var(--light-bg); padding: 2px 8px; border-radius: 10px; }

.apply-filters-btn {
    width: 100%; background: var(--dark-bg); color: #fff; padding: 15px;
    border-radius: 8px; font-weight: 600; font-size: 14px; letter-spacing: 1px;
    text-transform: uppercase; margin-top: 10px;
}
.apply-filters-btn:hover { background: var(--accent-color); }

/* SAĞ TƏRƏF: TURLAR SİYAHISI */
.tours-content { display: flex; flex-direction: column; gap: 30px; }

/* Top Bar (Sıralama) */
.tours-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; padding: 15px 25px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02); border: 1px solid var(--border-color);
}
.results-count { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.results-count span { color: var(--text-main); font-weight: 700; }
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-box select {
    padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 6px;
    font-family: 'Poppins', sans-serif; font-size: 13px; outline: none; cursor: pointer; background: var(--light-bg);
}

/* Kartların Grid Layout-u */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* KART DİZAYNI (Sizin verdiyiniz satış yönümlü kodlar) */
.tour-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease;
    position: relative; border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.tour-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.tour-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.tour-card:hover .tour-img { transform: scale(1.05); }

/* Badges */
.discount-badge { position: absolute; top: 15px; left: 15px; background: #E63946; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.urgency-badge { position: absolute; bottom: 15px; left: 15px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; backdrop-filter: blur(4px); }

.tour-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.tour-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tour-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.tour-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #FEBB02; }
.tour-rating span { color: var(--text-main); margin-left: 2px; }
.tour-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); line-height: 1.3; }
.tour-features { display: flex; gap: 15px; margin-bottom: 20px; font-size: 12px; color: var(--text-muted); }
.tour-feature { display: flex; align-items: center; gap: 5px; }

.tour-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.price-box { display: flex; flex-direction: column; }
.old-price { font-size: 12px; color: #A0A0A0; text-decoration: line-through; margin-bottom: -2px; }
.current-price { font-size: 20px; font-weight: 700; color: var(--text-main); }
.current-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.book-btn { background-color: var(--accent-color); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background-color 0.2s; }
.book-btn:hover { background-color: #b8972e; }

/* Paginasiya */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--border-color); font-weight: 600; font-size: 14px; color: var(--text-main); transition: all 0.2s; }
.page-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.page-btn.active { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }


@media (max-width: 992px) {
    .tours-page-layout { grid-template-columns: 1fr; }
    .tours-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .nav-links { display: none; }
}

/* ========================================= */
/* 📱 TURLAR SƏHİFƏSİ ÜÇÜN TOTAL RESPONSİVLİK */
/* ========================================= */

/* 1. Planşetlər və Kiçik Monitorlar (Max: 1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 4%; }
    
    .tours-page-layout {
        grid-template-columns: 1fr; /* Sidebar yuxarı qalxır, grid aşağı düşür */
        gap: 30px;
        padding: 20px 0 80px;
    }

    .sidebar-filters {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Filterləri yanaşı düzürük ki, yer tutmasın */
        gap: 20px;
    }

    .filter-section:last-child {
        grid-column: span 2; /* "Filterləri Tətbiq Et" düyməsi tam eni tutsun */
    }
}

/* 2. Standart Mobil Ekranlar (Max: 768px) */
@media (max-width: 768px) {
    /* Hero bölməsi */
    .inner-hero { height: 250px; }
    .inner-hero h1 { font-size: 28px; }

    /* Filter bölməsi mobildə tək sütun olur */
    .sidebar-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    /* Top Bar (Sıralama hissəsi) */
    .tours-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px;
    }

    .sort-box {
        width: 100%;
        justify-content: space-between;
    }

    .sort-box select {
        flex-grow: 1;
        max-width: 200px;
    }

    /* Tur Kartları (Şəkillərin hündürlüyünü azaldırıq ki, ekrana sığsın) */
    .tour-img-wrapper { height: 200px; }
    
    .tour-title { font-size: 17px; }

    .tour-features {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 3. Kiçik Smartfonlar (Max: 480px) */
@media (max-width: 480px) {
    .inner-hero h1 { font-size: 22px; }
    
    .tours-grid {
        grid-template-columns: 1fr; /* Kartlar tam genişlikdə olur */
    }

    .tour-content { padding: 20px; }

    /* Qiymət və Düymə hissəsini daha yığcam edirik */
    .current-price { font-size: 18px; }
    
    .book-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Paginasiya düymələrini kiçildirik */
    .pagination { gap: 5px; }
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    /* Qiymət daxil etmə xanaları (Min/Max) */
    .price-inputs {
        flex-direction: row; /* Yan-yana qalsın, amma kiçilsin */
    }
    
    .price-inputs input {
        padding: 8px;
    }
}

/* Sığorta: Uzun başlıqların daşmaması üçün */
.tour-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}