﻿/* İlan Kartlarının Konteyneri */
.advert-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}


.advert-card {
    display: flex;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    transition: 0.3s;
    border-radius: 10px;
    justify-content: space-between;
    width: 100%;
    height: 240px;
}

    .advert-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
    }

    .advert-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

.advert-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.advert-image {
    position: relative;
    width: 100%;
    height: 120px;
}

    .advert-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-bottom: 2px solid #eee;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffcc00;
    color: #000;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

    .featured-tag img {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }

.advert-content {
    padding: 10px;
    text-align: left;
}

.advert-price {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.price-missing {
    color: #888;
    font-style: italic;
}

.advert-title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.advert-location {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

/* Favori Butonu */
.fav-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(245, 245, 245); /* Hafif şeffaf arka plan */
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Diğer içeriklerin üstünde kalmasını sağlar */
}

    .fav-button i {
        font-size: 12px;
        color: #004349; /* Kırmızı kalp */
        transition: color 0.3s;
    }
    /* Hover Efekti */
    .fav-button:hover {
        background: rgba(255, 255, 255, 1);
    }

        .fav-button:hover i {
            color: #004349; /* Daha koyu kırmızı */
        }

    .fav-button svg {
        fill: #ccc;
        transition: fill 0.3s;
    }

    .fav-button:hover svg {
        fill: #004349;
    }
/* Fiyat ve Favori Butonunu Aynı Satıra Getirme */
.advert-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Fiyat Stili */
.advert-price {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

/* Fiyat Belirtilmemiş Stili */
.price-missing {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Favori Butonu (Fiyatın En Sağında) */
.fav-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #ccc;
    transition: color 0.3s;
}

    /* Favori Butonuna Hover Efekti */
    .fav-button:hover {
        color: #004349;
    }

    /* Favori İkonu */
    .fav-button i {
        font-size: 12px;
    }
