/* ==================================================
   KONUT SAYFASI – ANA LAYOUT
================================================== */
.content {
    flex: 1;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 30px;
}

/* ==================================================
   SOL FİLTRE ALANI
================================================== */
.filter {
    width: 230px;
    background: #fff;
    border-right: 1px solid rgba(201, 162, 39, 0.6);
    padding: 20px 15px;
}

.filter h3 {
    color: #c9a227;
    margin-bottom: 15px;
    font-size: 18px;
}

.filter label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #111;
}

/* ==================================================
   SAĞ İÇERİK ALANI
================================================== */
.listing {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 30px;
}

/* --- ÜST: Satılık / Kiralık --- */
.listing-top {
    height: 230px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 40px;
    align-items: center;
    padding: 15px;
}

/* --- ALT: İlanlar --- */
.listing-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    min-height: 300px;
}

/* ==================================================
   SATILIK / KİRALIK SEÇİM KARTLARI
================================================== */
.card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: 12px;
    height: 200px;
    padding: 28px 18px;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h2 {
    color: #c9a227;
    font-size: 22px;
    margin-bottom: 10px;
}

.card p {
    color: #111;
    font-size: 14px;
    opacity: 0.85;
    max-width: 260px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(201, 162, 39, 0.22);
}

/* ==================================================
   İLAN KARTLARI (ANA KART)
================================================== */
.listing-card {
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 0px;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* --- Kart Gövde Renkleri --- */
.listing-card.satilik {
    background: linear-gradient(
        to bottom,
        rgba(140, 110, 214, 0.22),
        rgba(140, 110, 214, 0.12)
    );
}

.listing-card.kiralik {
    background: linear-gradient(
        to bottom,
        rgba(255, 159, 67, 0.22),
        rgba(255, 159, 67, 0.12)
    );
}

/* ==================================================
   FOTOĞRAF ALANI
================================================== */
.listing-card .image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
}

.listing-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ==================================================
   ALT BİLGİ BANDI
================================================== */
.info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Alt Bant Renkleri --- */
.listing-card.satilik .info-bar {
    background: linear-gradient(to right, #6b46c1, #805ad5);
    color: #fff;
}

.listing-card.kiralik .info-bar {
    background: linear-gradient(to right, #f97316, #fb923c);
    color: #fff;
}

.info-bar .price {
    font-weight: 600;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 900px) {
    .content {
        flex-direction: column;
    }

    .filter {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(201, 162, 39, 0.6);
    }

    .listing {
        padding: 40px 20px;
    }

    .listing-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .listing-bottom {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   FİLTRELEME – ACCORDION
================================================== */
.filter-group {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 8px 0;
}

.filter-title {
    width: 100%;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 6px 0;
    color: #111;
}

.filter-content {
    display: none;
    padding-top: 8px;
}

.filter-group.active .filter-content {
    display: block;
}

.filter-content label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    cursor: pointer;
}

/* ==================================================
   SCROLL (5+ SEÇENEK)
================================================== */
.filter-content.scrollable {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 4px;
}

/* ==================================================
   FİYAT INPUTLARI
================================================== */
.range-inputs {
    display: flex;
    gap: 10px;
}

.range-inputs input {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ==================================================
   m² SLIDER
================================================== */
.slider {
    width: 100%;
    margin-top: 6px;
}

.slider-value {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    text-align: center;
}
/* m² slider görünürlüğü */
.slider-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider {
    width: 100%;
    height: 6px;
    margin: 0;
    padding: 0;
    appearance: auto;        /* tarayıcı default slider'ı */
    -webkit-appearance: auto;
}
.listing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-top .card {
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.listing-top .card.active {
    opacity: 1;
    border: 2px solid #111;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.listing-top .card:hover {
    opacity: 1;
}
/* ==================================================
   İLAN ÜST BAŞLIK BAR’I
================================================== */
.card-header {
    width: 100%;
    height: 28px;                 /* 🔴 SABİT BAR YÜKSEKLİĞİ */
    display: flex;
    align-items: center;          /* dikey ortalama */
    justify-content: center;      /* yatay ortalama */

    background: rgba(255,255,255,0.6);  /* 🔴 ALT BAR MANTIĞI */
    backdrop-filter: blur(2px);

    padding: 0 12px;
    box-sizing: border-box;
}

.listing-card.satilik .card-header {
    background: rgba(107, 70, 193, 0.18);
}

.listing-card.kiralik .card-header {
    background: rgba(249, 115, 22, 0.18);
}

.card-title {
    margin: 0;
    font-size: 14px;              /* 🔴 Yazı küçük ama bar sabit */
    font-weight: 600;
    line-height: 1.2;
    color: #444;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ==================================================
   PAGINATION
================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f3f3f3;
}

.page-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
    pointer-events: none;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* Hover */
.pagination a:hover {
    background: #caa84a;
    color: white;
    border-color: #caa84a;
}

/* Aktif sayfa */
.pagination .active {
    background: #caa84a;
    color: white;
    border-color: #caa84a;
    font-weight: 600;
}
.pagination a,
.pagination span {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.filter-apply {
    width: 100%;
    padding: 12px;
    background: #caa84a;          /* altın tonu */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.filter-apply:hover {
    background: #b8953c;
    transform: translateY(-1px);
}

.filter-apply:active {
    transform: translateY(0);
}
