body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container11 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0px;
}

.custom-card-container11 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Ortalar */
    max-width: 1250px;
    margin: 0 auto;
    padding: 0px;
    gap: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    margin-top: 3px;
}

.custom-card {
    width: calc(20% - 10px); /* 5 sütun ayarı */
    min-height: 350px; /* Sabit yükseklik yerine minimum yükseklik */
    background-color: #ffffff;
    border: 1px solid #007782;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
    position: relative;
    box-sizing: border-box;
}

.custom-card-header {
    display: flex;
    align-items: center;
    min-height: 1.4rem; /* Sabit yükseklik yerine minimum yükseklik */
    padding: 1px;
    
}

.custom-profile-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.custom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Görsellerin eşit boyutta olması */
}

.custom-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-username {
    font-size: 14px;
    color: #333333;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-trend-icon {
    color: #007782;
    font-size: 20px;
    margin-left: -5px;
}

.custom-card-image {
    width: 100%;
    max-width: 255px;
    height: 235px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.custom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resimleri doğru şekilde boyutlandırmak için */
}

.custom-fav-icon {
    color: #007782;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    background: white;
    border-radius: 61px;
    padding: 3px;
    top: 3px;
    right: 9px;
    z-index: 1;
    padding: 5px 5px;
}

.custom-fav-icon {
    color: #007782;
    font-size: 22px;
    cursor: pointer;
    position: absolute;
    background: white;
    border-radius: 61px;
    padding: 3px;
    top: 3px;
    right: 9px;
    z-index: 1;
    padding: 5px 5px;
}

.custom-fav-icon.clicked {
    color: red;
}
#favori-message {
    background: #007782;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    position: absolute;
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease-in-out;
}




.custom-card-title {
    color: #333333;
    font-size: 16px !important;
    margin: -5px 0;
    text-transform: capitalize;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.custom-card-price-fav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.custom-price {
    color: #007782;
    font-size: 19px;
    font-weight: bold;
    margin-left: 3px;
    margin-top: 1px;
}



.custom-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: gray;
}

.custom-location,
.custom-date {
    font-size: 13px;
    margin-left: 3px;
}

.loading-text {
    text-align: center;
    font-size: 16px;
    color: #007782;
    padding: 10px;
}

.favori-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    align-items: stretch; /* Kartları aynı yükseklikte hizala */
}

/* Kartın maksimum yüksekliğini belirleyelim */
.favori-card {
    width: calc(20% - 10px);
    background-color: #ffffff;
    border: 1px solid #007782;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    min-height: 380px; /* Minimum yükseklik ayarlayalım */
    max-height: 400px; /* Kartların en fazla ne kadar uzayabileceğini belirleyelim */
}

/* Resimlerin sabit yükseklikte olması için */
.favori-card-image img {
    width: 100%;
    height: 180px; /* Sabit resim yüksekliği */
    object-fit: cover; /* Resimleri kırpmadan ayarla */
}

/* Kart içeriğinin fazla uzun olmaması için başlık alanını sınırla */
.favori-card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    height: 40px; /* Başlık alanı belirli bir yükseklikte sabit kalsın */
    overflow: hidden; /* Çok uzun başlıklar taşmasın */
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kartın içeriğini alt kısımda hizala */
.favori-card-footer {
    margin-top: auto; /* En alt kısımda dursun */
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: gray;
    display: flex;
    justify-content: space-between;
}

/* Responsive Tasarım */

/* Tablet (1024px - 1365px): 3 sütun */
@media (min-width: 901px) and (max-width: 1000px) {
    .custom-card {
        width: calc(25.00% - 10px); /* 3 sütun */
    }
}


/* Tablet (1024px - 1365px): 3 sütun */
@media (min-width: 800px) and (max-width: 900px) {
    .custom-card {
        width: calc(33.33% - 10px); /* 3 sütun */
    }
}

/* Mobil (0px - 768px): 2 sütun */
@media (max-width: 768px) {
    .custom-card {
        width: calc(50% - 10px); /* 2 sütun */
        min-height: 260px; /* Mobil için daha küçük yükseklik */
    }

    .favori-card {
        width: calc(50% - 10px);
        min-height: 320px;
        max-height: 350px;
    }

    .favori-card-image img {
        height: 150px;
    }


    .custom-card-image {
        height: 160px; /* Mobil için resim boyutu küçült */
        max-height: 185px;
    }

    .custom-trend-icon {
        font-size: 15px;
       
    }



    .custom-username {
        font-size: 13px;
    }

    .custom-profile-image {
        width: 23px;
        height: 23px;
    }

    .custom-price {
        font-size: 16px; /* Mobil için fiyat boyutu küçült */
        margin-top: -5px;
    }

    .custom-card-title {
        font-size: 14px;
        margin-top: -6px;
    }
}

/* Sticky Sekmeler */
.tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #f1f5ff;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    max-width: 1250px; /* Sekmelerin de 1250px’i aşmamasını sağlar */
    margin: 0 auto;
}
/* kartlar.css */
.trend-star-icon {
    color: #ff0b0b; /* İkonun rengi, fiyatla uyumlu olsun */
    font-size: 18px; /* İkon boyutu */
    margin-left: 5px; /* Fiyat ile ikon arasında boşluk */
    vertical-align: middle; /* Fiyatla aynı hizada olsun */
    margin-top: -4px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #007782;
    margin-top: -9px;
}

.tab i {
    margin-right: 5px;
    padding: 0;
}

.tab-content {
    display: none;
    padding: 0px;
    background-color: #fdfdfd;
    max-width: 1250px; /* İçeriğin de 1250px’i aşmamasını sağlar */
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.tab.active {
    background-color: #fff;
    color: #007782;
    border-bottom: 1px solid #007782;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    width: 73rem;
}

/* Yeni eklenen stiller: Aktif olmayan sekme için zemin rengi */
.tab:not(.active) {
    background-color: #f4f4f4; /* "Sana Yakın" butonunun varsayılan zemin rengi */
}

/* "Sana Yakın" butonunun BAŞLANGICI */
/* Yukarı Çık Butonu */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007782;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s;
}

#back-to-top:hover {
    background-color: #005d6e;
    opacity: 0.9;
}

/* Butonun kaydırıldığında görünmesini sağlar */
#back-to-top.show {
    display: flex;
}

/* "YUKARI ÇIK BUTONU BİTİŞİ */