﻿.takas-compact {
    --ink: #0f172a;
    --muted: #64748b;
    --ring: rgba(2,6,23,.08);
    --bg: #fff;
    --shadow: 0 6px 18px rgba(2,6,23,.06);
    background: var(--bg);
    color: var(--ink);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 14px 16px 16px;
    margin-bottom: 25px;
}

.tc-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.tc-media {
    --ring: rgba(2,6,23,.08);
    --media-img: none;
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    min-height: 128px;
    background-image: var(--media-img), linear-gradient(180deg,#f5f7fb,#eef2f7);
    background-size: cover, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px var(--ring);
}

/* Overlay varsayılan: masaüstünde kapalı */
.tc-overlay {
    display: none
}

/* gerekirse kaldır */
.tc-media img.tc-fallback {
    background: repeating-linear-gradient(45deg,#eef2f7 0 12px,#f7f9fc 12px 24px);
    height: 100%;
}

/* Content */
.tc-main {
    min-width: 0
}

.tc-title {
    margin: 2px 0 0;
    font-weight: 800;
    font-size: 25px;
    letter-spacing: .2px;
    line-height:25px;
}

.tc-variant {
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 10px;
    letter-spacing: .3px;
}

/* Top row: left (title+variant) | right (plate+price) */
.tc-head {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: start;
    gap: 16px;
}

.tc-head-r {
    min-width: 260px; /* sağ kutu genişlik garantisi */
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.tc-plate {
    color: var(--muted);
    font-weight: 600
}

.tc-head-r .tc-price {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1.1;
}

.tc-price .tc-currency {
    font-weight: 800
}

/* Thin meta row (dot-separated) */
.tc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 0;
    border-top: 1px solid var(--ring);
    border-bottom: 1px solid var(--ring);
    color: #334155;
    font-weight: 600;
}

    .tc-meta span {
        position: relative;
        padding-right: 14px
    }

        .tc-meta span + span::before {
            content: "•";
            position: absolute;
            left: -10px;
            color: #cbd5e1;
        }


/* --- Toggle yerleşimi (kırmızı alan) --- */
.tc-toggle-row {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
}

.tc-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--ring);
    background: #000000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .06s ease, background .2s ease;
    position: absolute;
    margin-top: -2px;
}

    .tc-toggle:hover {
        box-shadow: 0 8px 18px rgba(2,6,23,.08)
    }

    .tc-toggle:active {
        transform: translateY(1px)
    }

.tc-toggle-ghost {
    background: #70f46d !important;
    color: #000;
}

    .tc-toggle-ghost .tc-ico {
        fill: #000;
    }

.tc-ico {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex: 0 0 auto;
    fill: #fff;
}
/* --- Çökmeli gövde + bar --- */
.takas-compact.is-collapsible {
    overflow: hidden;
    position: relative
}

.tc-body {
    max-height: 900px;
    transition: max-height .35s ease, opacity .25s ease
}

.tc-collapsed-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 42px;
    background: #fff;
    margin: 4px;
    padding: 4px 8px;
}

/* Çökmüş durum */
.takas-compact.tc-collapsed {
    padding: 6px 8px
}

    .takas-compact.tc-collapsed .tc-body {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .takas-compact.tc-collapsed .tc-collapsed-bar {
        display: flex
    }

.tc-year-badge {
    display: none
}

.takas-result .alimKriteri li {
    line-height: 20px;
}

@media (max-width:991px) {
    .takas-compact {
        padding: 8px 10px;
        width: 95%;
    }

    .tc-wrap {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .tc-media {
        aspect-ratio: 4/3;
        min-height: unset;
        border-radius: 12px
    }

    .tc-title {
        font-size: 16px;
        margin: 0;
        line-height: 20px;
    }

    .tc-variant {
        font-size: 13px;
        margin: 0px 0 6px;
        letter-spacing: .1px
    }
    /* Başlık altında plaka + fiyat tek satır */
    .tc-head {
        display: block
    }

    .tc-head-r {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 8px;
        padding-top: 6px;
        margin-top: 4px;
        border-top: 1px solid var(--ring);
        min-width: 0;
    }

    .tc-plate {
        font-size: 12px;
        white-space: nowrap
    }

    .tc-head-r .tc-price {
        font-size: 22px;
        margin: 0;
        white-space: nowrap
    }
    /* Özet satırı tek satır, yatay scroll */
    .tc-meta {
        border: 0;
        padding: 6px 0 0;
        margin: 0;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        color: #475569;
        font-weight: 600;
    }

        .tc-meta::-webkit-scrollbar {
            display: none
        }

        .tc-meta span {
            display: inline-block;
            padding: 0 8px;
            position: relative;
            font-size: 12px;
        }

            .tc-meta span:nth-child(2) {
                padding-left: 0
            }

            .tc-meta span + span::before {
                content: "•";
                position: absolute;
                left: -6px;
                color: #cbd5e1;
            }
    /* Toggle küçült */
    .tc-toggle-row {
        padding-top: 15px
    }

    .tc-toggle {
        padding: 4px 12px;
        font-size: 13px;
        margin-top: -10px !important;
    }

    .tc-toggle-ghost {
        margin-top: 0px !important;
    }

    .tc-ico {
        width: 16px;
        height: 16px
    }

    .tc-media {
        aspect-ratio: 16/9;
        min-height: unset;
        border-radius: 12px;
        position: relative
    }
    /* Sağ üst plaka+fiyat bloğunu gizle ki tekrar olmasın */
    .tc-head {
        display: block
    }

    .tc-head-r {
        display: none !important
    }
    /* Overlay açılır */
    .tc-overlay {
        display: flex;
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 8px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
        background: rgba(255,255,255,.9);
        backdrop-filter: saturate(140%) blur(2px);
        box-shadow: 0 4px 12px rgba(2,6,23,.12);
        z-index: 2;
    }

    .tc-year-badge {
        display: inline-flex;
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 3;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .2px;
        color: #000;
        background: #70f46dd4 !important;
        backdrop-filter: saturate(140%) blur(2px);
        box-shadow: 0 2px 10px rgba(0,0,0,.15), inset 0 0 0 1px rgba(255,255,255,.06);
        /* istersen marka rengi:
            background:#d10000; backdrop-filter:none; */
    }

    .mobil-hide {
        display: none !important;
    }

    .tc-plate-b {
        font-size: 12px;
        font-weight: 700;
        color: #334155;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tc-price-b {
        font-size: 18px;
        font-weight: 900;
        color: #0f172a;
        white-space: nowrap;
        line-height: 1;
    }

        .tc-price-b .tc-cur {
            font-weight: 800
        }
}

@media (max-width:520px) {
    .tc-meta {
        gap: 8px 12px
    }
}


/* Basit, merkezde, satır satır */
.tr-dealer-simple {
    margin: 12px auto 0;
    text-align: center;
    max-width: 760px;
}

.tr-dealer-title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: clamp(16px,2vw,18px);
    color: #6b7280; /* hafif, opsiyonel başlık */
}

.tr-dealer-lines {
    line-height: 1.4
}

.tr-line {
    display: block
}

.tr-name {
    font-size: clamp(18px,2.4vw,22px);
    font-weight: 900;
    color: #111827; /* koyu */
}

.tr-addr {
    margin-top: 2px;
    color: #6b7280; /* daha soluk */
    font-weight: 600;
}

.tr-tel {
    margin-top: 4px;
    color: #0f172a;
    font-weight: 900;
    text-decoration: none;
    font-size: 18px;
}

 

/* Gri "pill" link */
.tr-pill-link {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #d2a851 !important;
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
}

    .tr-pill-link:hover {
        filter: brightness(1.03)
    }
