/* public/css/listeleme.css */

/* Sayfa Genel Ayarları */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f6f8f7;
    color: #333;
}

div.container {
    max-width: 1420px !important;
    margin: 0 auto;
    padding-top: 110px; /* Header (128px) + bant alanı için boşluk */
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #007782; /* Varsayılan renk */
    transition: color 0.3s;
    background-color: white;
    border-radius: 61px;
    padding: 5px 5px;

}


.favorite-icon.clicked {
    color: #ff0000; /* Favorideyse kırmızı */
}

.favori-message {
    display: none;
    position: absolute;
    top: -10px;
    right: 40px;
    background-color: #007782;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
}

/* Özel row gap */
.custom-row-gap {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    --bs-gutter-x: 8px; /* Sütunlar arası boşluk 10px */
}

/* İçerik Alanı */
.main-content {
    margin-left: 400px; /* Sidebar genişliği 280px + 10px boşluk */
    width: calc(100% - 400px);
    padding: 20px 0;
}

/* public/css/listeleme.css */

/* Mevcut stiller korunuyor, sadece gerekli değişiklikler ekleniyor */
.header-band {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    width: 58rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Elemanların tek satırda kalmasını sağlar */
}

.toplam-ilan {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}



.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background-color: #007782 !important;
    border-color: #007782 !important;
    color: #ffffff !important; /* Beyaz yazı rengi */
}

.btn-primary:hover {
    background-color: #005f66 !important; /* Hafif koyu ton hover için */
    border-color: #005f66 !important;
}

.listing-tab {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    color: #007782;
    border-radius: 6px;
}

.listing-tab.active {
    background: #007782;
    color: white;
}

.abone-form button, .btn-outline-primary {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap; /* Buton metninin kırılmasını önler */
}

.btn-outline-primary {
    border: 1px solid #007782;
    color: #007782;
}

.btn-outline-primary:hover {
    background: #e1f1f0;
}

.sorting-section {
    display: flex;
    justify-content: flex-start; /* Sol tarafa hizala */
    align-items: center;
    margin-top: 10px;
    width: 100%; /* Tüm genişliği kapla */
}

.dropdown {
    display: inline-block;
}

.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    font-size: 14px;
    color: #333;
}

.dropdown-item:hover {
    background: #e1f1f0;
}


.sorting-section .dropdown {
    margin-right: 20px;
}

.sorting-section .dropdown-menu {
    min-width: 200px;
}

.sorting-section .dropdown-item {
    font-size: 14px;
    color: #333;
}

.sorting-section .dropdown-item:hover {
    background: #e1f1f0;
}

/* Mevcut diğer stiller korunuyor */

/* Filtreleme Paneli */
.filter-panel {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
}

.filter-panel h5 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #007782;
}

.filter-panel .form-group {
    margin-bottom: 15px;
}

.filter-panel .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-panel .form-check-label {
    font-size: 14px;
    margin-left: 5px;
}

.filter-panel .btn-primary {
    background: #007782;
    border: none;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
}
.btn-primary {
    background-color: #007782;
    border-color: #007782;
    padding: 8px 16px;
    font-weight: bold;
}

.filter-panel .btn-primary:hover {
    background: #005f66;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #007782;
    text-decoration: none;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.category-list a.active {
    font-weight: bold;
    color: #007782;
}

/* İlan Listesi (Galeri Görünümü) */
.listings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    width: 58rem;
}

.listing-item {
    border: 1px solid #007782;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 8px;
    min-height: 370px;
    max-height: 370px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.listing-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.listing-profile-image img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.listing-header .listing-username {
    margin-left: 6px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-username {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Kare oran (1:1) */
    margin-top: 0px !important;
    margin-bottom: 6px;
}

.listing-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}




.listing-title {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    margin: 4px 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 20px;
    flex-grow: 1;
}

.listing-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 8px 8px 8px;
    min-height: 36px;
    margin-top: 0;
}

.listing-price {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
    color: #007782;
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.trend-icon {
    color: red !important;
    font-size: 14px;
    margin-left: 4px;
}

.listing-date {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    margin-bottom: 4px;
}

.listing-footer {
    padding: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #eee;
    min-height: 36px;
}

.listing-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Liste Görünümü */
.listing-tab-content {
    display: none;
}

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

.listing-card {
    display: flex;
    border: 1px solid #007782;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.listing-card-content {
    padding: 10px;
    flex: 1;
}

.listing-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.listing-card-price {
    color: #007782;
    font-weight: bold;
    font-size: 16px;
}

.listing-card-location {
    font-size: 12px;
    color: #777;
}

.listing-card-date {
    font-size: 12px;
    color: #777;
}



.no-listing-image {
    width: 35rem;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.8;
    padding-left: 24rem;
}

.no-listing-message {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.no-listing-message a {
    color: #007782;
    text-decoration: none;
    font-weight: bold;
}

.no-listing-message a:hover {
    text-decoration: underline;
}

/* Sayfalama */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #007782;
}

.pagination a:hover {
    background-color: #e1f1f0;
}

.pagination .active a {
    background-color: #007782;
    color: white;
}

/* Daha Fazla Yükle Butonu */
.load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007782;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.load-more-btn:hover {
    background-color: #005f66;
}

.load-more-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}