﻿/* #region Masaüstü Tablo */
.filtered-estates-table td, .filtered-estates-table th {
    vertical-align: middle;
    text-align: center;
}

a.title-link {
    text-decoration: none;
    color: inherit;
}

    a.title-link:hover {
        color: #007bff;
    }

.filtered-estates-table {
    border-top: 0 !important;
}

    .filtered-estates-table thead tr:nth-child(1) th, .filtered-estates-table thead tr:nth-child(3) th {
        background: transparent !important;
        border: none !important;
        padding: 3px !important;
        line-height: 1 !important;
    }

        .filtered-estates-table thead tr:nth-child(1) th a, .filtered-estates-table thead tr:nth-child(3) th a {
            text-decoration: none !important;
            color: #444;
            display: inline-block;
            margin: 0 auto;
        }

    .filtered-estates-table thead tr:nth-child(2) th:nth-child(1), .filtered-estates-table thead tr:nth-child(2) th:nth-child(2) {
        background: transparent !important;
    }

    .filtered-estates-table.table-hover tbody tr:hover td, .filtered-estates-table.table-hover tbody tr:hover th {
        background: #e6f0ff !important;
    }

.sort-square {
    width: 70px;
    height: 25px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    color: #0d6efd;
}

    .sort-square:hover {
        background: #f0f0f0;
    }



/* #region Mobil Liste — Minimal & Dengeli (rounded yok) */
.ad-list-mobile .ad-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    background: #f9f9f9;
    margin-bottom: 12px;
    padding: 3px;
}

.ad-list-mobile .ad-top {
    display: flex;
    gap: 3px;
    background: transparent;
}

.ad-list-mobile .ad-thumb {
    width: 32%;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ad-list-mobile .ad-thumb a {
        display: block;
        width: 100%;
    }

    .ad-list-mobile .ad-thumb img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        display: block;
    }

.ad-list-mobile .ad-body {
    width: 68%;
    padding: 8px;
    background: #fcfcfc;
    display: flex;
    align-items: center;
}

.ad-list-mobile .ad-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .ad-list-mobile .ad-title a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.ad-list-mobile .ad-muni {
    color: #009CFF;
}


.ad-list-mobile .ad-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3px;
    background: transparent;
    margin-top: 3px;
    padding-top: 0;
    border-top: 0 !important;
}

.ad-list-mobile .ad-stat {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #333;
    border: none;
}


/* EN SON EKLENEN KUTUCUK SİSTEMİ */
/* 4×2 sabit grid, iki satır; kutu yüksekliği sabit */
.ad-stats {
    --chip-h: 2.25rem; /* kutu yüksekliği */
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--chip-h); 
    gap: .5rem .5rem;
}

/* Tek satır, taşanı '...' ile kes; kutu yüksekliği sabit kalsın */
.ad-stat {
    display: flex;
    align-items: center; /* dikey hizalama */
    height: var(--chip-h);
    min-width: 0; /* ellipsis'in çalışması için şart */
    padding: 0 .55rem;
    background: #f6f8fc;
    border: 1px solid #e6e8ef;
    border-radius: 6px;
    font-size: .90rem;
    line-height: 1; /* tek satır yüksekliği kontrolü */
    white-space: nowrap; /* satır kırma yok */
    overflow: hidden; /* taşanı gizle */
    text-overflow: ellipsis; /* … */
}

/* Çok dar telefonlarda harf taşmasını yumuşat (opsiyonel) */
@media (max-width: 360px) {
    .ad-stat {
        font-size: .82rem;
    }
}

/* (Opsiyonel) ad başlığı iki satırla sınırla */
.ad-title.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

