@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.isletmeler-archive-page{
    width: 100%;
    padding-top: 35px;
    padding-bottom: 35px;
    font-family: "Montserrat", sans-serif !important;
}

.breadcrumb{
    font-size: 12px;
    line-height: 14px;
}

.isletmeler-title{
    margin-top: 35px;
}

.isletmeler-title h1{
    font-size: 48px;
    font-weight: 800 !important
}

.isletmeler-list{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 16px;
    row-gap: 32px;
}

.isletme-featured-image img{
    border-top-left-radius:  8px !important;
    border-top-right-radius:  8px !important;
    width: 100% !important;
    height: 210px !important;
    object-fit: cover !important;
}

.isletme-card{
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.isletme-details{
    padding: 16px;
}

.isletme-name a{
    font-size: 17px;
    font-weight: 600;
}

.isletme-name a:hover{
    text-decoration: underline;
}

.isletme-tax{
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.isletme-tax i{
    font-size: 12px !important;
}

.isletme-tax span{
    font-size: 14px;
}

.isletme-second-tax{
    margin-top: 8px;
}

.isletme-open{
    color: #16a34a !important;
}

.isletme-closed{
    color: #dc2626 !important;
}

.isletme-desc{
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0px;
    height: 60px;
}

.isletme-desc p{
    font-size: 14px;
    line-height: 17px;
    color: #333 !important;
    margin: 0px !important;
}

.isletme-action{
    padding: 16px 0px;
    gap: 8px;
    display: flex;
    align-items: center;
    padding-top: 30px !important;
}

.isletme-arama-buton{
    background-color: #bb1c21;
    color: #fff !important;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.isletme-whatsapp-buton{
    background-color: #0CC143;
    color: #fff !important;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.isletme-action{
    width: 100%;
    display: flex;
    justify-content: end;
}

.isletmeler-list-actions{
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-action-buttons{
    padding: 8px 12px;
    color: #000;
    font-size: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
}

.filter-popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Sayfanın kaymasını engelle */
    overflow: hidden;
}

.filter-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px 16px;
    border: 1px solid #888;
    width: 55vw;
    height: 60vh;
    overflow: hidden; /* Taşmayı gizle */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Dikey düzenleme */
}

.filter-popup-scrollable {
    flex: 1; /* İçerik alanını genişlet */
    overflow-y: auto; /* İçerik taşarsa kaydır */
    padding: 5px 10px;
    margin-top: 15px;
}

#apply-filters {
    align-self: flex-end; /* Butonu sağa hizala */
    margin-top: 20px; /* Buton ile içerik arasında boşluk bırak */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
}

.popup-header .popup-title{
    font-size: 18px;
    font-weight: 800;
}


#apply-filters{
    background-color: #000;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 20px;
    font-weight: 600;
    padding: 10px 16px;
}

#clear-filters{
    background-color: #fff;
    color: #000;
    padding: 0px;
    font-weight: 600;
    font-size: 12px;
}

.filter-popup-content label {
    display: inline-block;
    margin: 5px;

}

#filter-form{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-popup-content input[type="checkbox"] {
    display: none; /* Checkbox'ları gizle */
}

.filter-popup-content label {
    background-color: #fff; 
    border: 1.5px solid #e0e0e0;
    border-radius: 20px; 
    padding: 6px 12px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    font-size: 14px;
    font-weight: 600;
    max-width: max-content !important;
}

.filter-popup-content input[type="checkbox"]:checked + label {
    background-color: #f7f7f7; /* Seçili olduğunda arka plan rengi */
    border: 1.5px solid #000;
}

.filter-title-cs{
    font-size: 14px;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.popup-end-action{
    display: flex;
    width: 100%;
    border-top: 1.5px solid #e0e0e0;
    justify-content: end;
    margin-top: 5px;
    gap: 10px;
    align-items: end;
}

#search-input{
    background: #f7f7f7;
    width: 450px;
    border: none !important;
    padding: 13px 12px;   
}

.pagination{
    width: 100%;
    display: flex;
    margin: 15px 0px;
    justify-content: center;
    gap: 6px;
}

.page-numbers{
    border: 1px solid #ccc;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.alphabetic-filter{
    margin: 15px 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1.5px solid #e0e0e0;
    border-bottom: 1.5px solid #e0e0e0;
    padding: 6px 0px;
}

.alphabet-box{
    border: 1px solid #e0e0e0;
    padding: 3px 5px;
    border-radius: 5px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-text {
    font-size: 24px;
}

.mahalle-container{
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
}

@media only screen and (max-width: 600px) {
   .isletmeler-archive-page{
        padding-top: 0px !important;
   }

   .alphabetic-filter{
    display: none;
   }

   .isletmeler-title h1{
    font-size: 30px;
   }

   .isletmeler-list-actions{
    flex-direction: column;
    gap: 14px;
    align-items: start;
   }

   .isletmeler-list-actions .list-action-buttons{
    width: 100%;
    text-align: center;
   }

   #search-input{
    width: 90%;
   }

   .search-div{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
   }

   .isletmeler-list{
    grid-template-columns: repeat(1, 1fr);
   }

   .filter-popup-content{
    width: 90vw;
    height: 70vh;
   }
  }