/*
 * Ürün, hizmet, bölge ve içerik liste sayfaları
 */

/*
 * Üst başlık dış kutusu
 */

.listing-hero {
    padding: 28px 0 12px;
}

.listing-hero__shell {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 230px;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 38px 40px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            #f8faf7,
            #eef3ee
        );
    box-shadow: var(--shadow-small);
}

.listing-hero__shell::after {
    position: absolute;
    top: -110px;
    right: -85px;
    width: 285px;
    height: 285px;
    border: 48px solid rgba(36, 79, 61, .035);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.listing-hero__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.listing-hero h1 {
    max-width: 790px;
    margin: 7px 0 13px;
    color: var(--color-heading);
    font-size: clamp(35px, 4.3vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.listing-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.65;
}

.listing-hero__count {
    position: relative;
    z-index: 1;
    display: grid;
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
    place-content: center;
    border: 1px solid rgba(36, 79, 61, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    text-align: center;
    box-shadow:
        0 10px 28px rgba(20, 45, 34, .07);
}

.listing-hero__count strong {
    color: var(--color-primary);
    font-size: 34px;
    line-height: 1;
}

.listing-hero__count span {
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/*
 * Kartların dış kutusu
 */

.listing-section {
    padding: 12px 0 44px;
}

.listing-shell {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.listing-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 19px;
}

/*
 * Liste kartı
 */

.listing-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    background: #ffffff;
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 79, 61, .32);
    box-shadow: var(--shadow-hover);
}

.listing-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
    background: #edf2ee;
}

.listing-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .35s ease;
}

.listing-card:hover .listing-card__media img {
    transform: scale(1.035);
}

.listing-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #dfe9e2,
            #f4eddd
        );
    color: var(--color-primary);
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.listing-card__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 21px;
}

.listing-card h2 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-size: 20px;
    line-height: 1.28;
}

.listing-card h2 a {
    transition: color var(--transition-fast);
}

.listing-card h2 a:hover {
    color: var(--color-primary);
}

.listing-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.listing-card__link {
    display: inline-flex;
    width: fit-content;
    min-height: 31px;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 850;
    transition:
        color var(--transition-fast),
        gap var(--transition-fast);
}

.listing-card__link:hover {
    gap: 11px;
    color: var(--color-accent);
}

/*
 * Boş liste
 */

.empty-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 44px 24px;
    border: 1px dashed #ccd6ce;
    border-radius: 16px;
    background: var(--color-surface-muted);
    text-align: center;
}

.empty-state strong {
    color: var(--color-heading);
    font-size: 20px;
}

.empty-state p {
    max-width: 460px;
    margin: 0 0 9px;
    color: var(--color-muted);
}

.empty-state .btn {
    min-width: 200px;
}

/*
 * Tablet
 */

@media (max-width: 900px) {
    .listing-hero__shell {
        min-height: 210px;
        padding: 33px;
    }

    .listing-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/*
 * Mobil
 */

@media (max-width: 600px) {
    .listing-hero {
        padding: 20px 0 9px;
    }

    .listing-hero__shell {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 27px 21px;
        border-radius: 17px;
    }

    .listing-hero h1 {
        margin-top: 6px;
        font-size: 35px;
    }

    .listing-hero p {
        font-size: 15px;
    }

    .listing-hero__count {
        display: flex;
        width: auto;
        height: auto;
        min-height: 40px;
        flex: none;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        border-radius: 999px;
    }

    .listing-hero__count strong {
        font-size: 19px;
    }

    .listing-hero__count span {
        margin: 0;
    }

    .listing-section {
        padding: 9px 0 31px;
    }

    .listing-shell {
        padding: 16px;
        border-radius: 17px;
    }

    .listing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .listing-card {
        border-radius: 14px;
    }

    .listing-card__body {
        padding: 19px;
    }

    .listing-card h2 {
        font-size: 19px;
    }
}
