/* =========================================
   SUITESGO OTEL LİSTELEME SAYFASI STİLLERİ
   ========================================= */

:root {
    --primary-color: #2563eb;
    --secondary-color: #0f172a;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-hover-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    background-color: var(--bg-light);
}

/* --- 1. SIDEBAR & FİLTRELER --- */
.filter-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 100px; /* Scroll yaparken üstte kalır */
}

.filter-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-dark);
}

.filter-group {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: block;
}

/* Özel Checkbox Tasarımı */
.custom-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.custom-check input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.custom-check:hover {
    color: var(--primary-color);
}

/* --- 2. OTEL KARTI (Yatay Tasarım) --- */
.hotel-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row; /* Masaüstünde Yan Yana */
}

.hotel-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.hotel-img-wrap {
    width: 35%; /* Resim Genişliği */
    position: relative;
    overflow: hidden;
}

.hotel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-img-wrap img {
    transform: scale(1.05);
}

.hotel-content {
    width: 65%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Başlık ve Lokasyon */
.hotel-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-decoration: none;
}

.hotel-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

/* Olanak Rozetleri */
.feature-badges span {
    font-size: 0.75rem;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 5px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

/* Puan Kutusu */
.review-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.score-box {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px 6px 6px 0;
}

/* Fiyat ve Aksiyon Alanı (Alt Kısım) */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.price-area {
    text-align: right;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.btn-detail {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-detail:hover {
    background: #1e40af;
    color: #fff;
    transform: translateY(-2px);
}

/* --- 3. MOBİL UYUMLULUK (Responsive) --- */
@media (max-width: 991px) {
    /* Mobilde kartları dikey yap */
    .hotel-card {
        flex-direction: column;
    }
    
    .hotel-img-wrap {
        width: 100%;
        height: 200px;
    }
    
    .hotel-content {
        width: 100%;
    }

    .card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .price-area {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .btn-detail {
        width: 100%;
        text-align: center;
    }

    /* Mobilde Sidebar'ı gizle (Offcanvas kullanılacak) */
    .desktop-filter {
        display: none;
    }
}

/* Mobil Filtre Butonu */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

/* --- 1. SIDEBAR & FİLTRELER (GÜNCELLENDİ: SCROLL & BOYUT) --- */
.filter-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 90px; /* Header altı boşluk */
    /* Bu satırlar SCROLL özelliğini açar */
    max-height: calc(100vh - 110px); 
    overflow-y: auto; 
    scrollbar-width: thin; /* Firefox ince scroll */
}

/* Chrome/Safari için ince scrollbar */
.filter-box::-webkit-scrollbar { width: 6px; }
.filter-box::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.filter-header {
    background: var(--bg-light);
    padding: 12px 15px; /* Küçültüldü */
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: sticky; top: 0; z-index: 10; /* Başlık sabit kalsın */
}

.filter-group {
    padding: 15px; /* Küçültüldü */
    border-bottom: 1px solid var(--border-color);
}

.filter-title {
    font-size: 0.85rem; /* Küçültüldü */
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox Tasarımı (Daha kibar) */
.custom-check {
    display: flex;
    align-items: center;
    margin-bottom: 6px; /* Araları sıkılaştırıldı */
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: 0.2s;
}
.custom-check:hover { color: var(--primary-color); }
.custom-check input { width: 16px; height: 16px; margin-right: 8px; accent-color: var(--primary-color); }

/* --- 2. OTEL KARTI (DİKEY KART MODUNA GEÇİŞ) --- */
.hotel-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%; /* Sütun boyunu doldur */
    display: flex;
    flex-direction: column; /* Her zaman dikey (resim üstte) */
}

.hotel-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.hotel-img-wrap {
    width: 100%;
    height: 200px; /* Resim yüksekliği sabitlendi */
    position: relative;
}
.hotel-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hotel-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hotel-name {
    font-size: 1rem; font-weight: 800; color: var(--text-dark);
    margin-bottom: 4px; text-decoration: none; line-height: 1.3;
    display: block;
}

/* Fiyat Alanı */
.card-bottom {
    margin-top: 15px; padding-top: 10px; border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
}
.price-value { font-size: 1.2rem; font-weight: 800; color: var(--primary-color); }