.category-accordion {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

.category-accordion summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    transition: background .3s;
}

.category-accordion summary:hover {
    background: #f8fbff;
}

.category-accordion summary::-webkit-details-marker {
    display: none;
}

.category-accordion summary .main-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #0061ff;
    font-size: 18px;
}

.category-accordion summary::after {
    content: "❯";
    margin-left: auto;
    font-size: 18px;
    font-weight: 900;
    color: #555;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
    transform: rotate(90deg); 
}

.category-accordion[open] summary::after {
    transform: rotate(270deg); 
}

/* Kategori içerik alanı */
.category-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .6s cubic-bezier(.22,1,.36,1), opacity .35s ease, padding .3s ease;
}

.category-accordion[open] .category-content {
    max-height: 900px;
    opacity: 1;
}

/* Alt Kategori Öğeleri */
.cat-main {
    border-bottom: 1px solid #f0f4f9;
}

.cat-main:last-child {
    border-bottom: none;
}

.cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: color .2s;
}

.cat-title:hover {
    color: #0061ff;
}

.cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Ok işareti */
.cat-title .toggle-arrow {
    font-size: 16px;
    font-weight: 900;
    color: #888;
    transition: transform .3s ease;
    display: inline-block;
}

.cat-main.active .toggle-arrow {
    transform: rotate(90deg);
}

.sub-list{
    max-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:8px;
    padding-top:0;
    transition:max-height .4s ease-in-out, margin-bottom .4s ease-in-out, padding-top .3s ease;
}

.cat-main.active .sub-list{
    max-height:500px;
    margin-bottom:12px;
    padding-top:8px;
}
.sub-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 6px 0;
    transition: color .2s;
}

.sub-item:hover {
    color: #0061ff;
}


.widget-accordion {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.widget-accordion summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    transition: background .3s;
}

.widget-accordion summary:hover {
    background: #f8fbff;
}

.widget-accordion summary::-webkit-details-marker {
    display: none;
}

.widget-accordion summary i:first-child {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #0061ff;
    font-size: 18px;
}

.widget-accordion summary::after {
    content: "❯";
    margin-left: auto;
    font-size: 18px;
    font-weight: 900;
    color: #555;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
    transform: rotate(90deg); /* Kapalıyken (açılmamış detay etiketinde) okun aşağı bakması için 90 derece döndürüldü */
}

.widget-accordion[open] summary::after {
    transform: rotate(270deg); /* Açıkken okun yukarı bakması için 270 dereceye (veya -90) ayarlandı */
}

/* Yumuşak açılma */
.widget-content{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:
        max-height .6s cubic-bezier(.22,1,.36,1),
        opacity .35s ease;
}

.widget-accordion[open] .widget-content{
    max-height:250px;
    opacity:1;
}

.content-wrapper{
    padding:0 18px 18px;
    transform:translateY(-12px);
    transition:transform .45s ease;
}

.widget-accordion[open] .content-wrapper{
    transform:translateY(0);
}

.premium-search-box{
    position:relative;
    padding-top:2px;
}

.premium-search-box input{
    width:100%;
    height:52px;
    padding:0 52px 0 16px;
    border:1px solid #e4e7ec;
    border-radius:14px;
    outline:none;
    font-size:15px;
    transition:.3s;
    box-sizing:border-box;
}

.premium-search-box input:hover{
    border-color:#b8d0ff;
}

.premium-search-box input:focus{
    border-color:#0061ff;
    box-shadow:0 0 0 4px rgba(0,97,255,.12);
}

.premium-search-box .bi-search{
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    color:#0061ff;
    font-size:18px;
    pointer-events:none;
}



*{
    box-sizing:border-box;
}

/* CONTAINER */
.cat-container{
    display:flex;
    gap:20px;
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* SIDEBAR */
.sidebar{
    width:300px;
    background:#fff;
    border-radius:18px;
    border:1px solid #eee;
    padding:15px;
    height:max-content;
}

.sidebar-head{
    margin-bottom:15px;
    font-size:20px;
}

/* Premium Arama Kutusu Stili */
.premium-search-box {
    position: relative;
    margin-bottom: 15px;
}

.premium-search-box input {
    width: 100%;
    height: 42px;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.premium-search-box input:focus {
    border-color: #0061ff;
}

.premium-search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.cat-main{
    margin-bottom:10px;
}

.cat-title{
    padding:12px 14px;
    background:#f5f5f5;
    border-radius:12px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:600;
    transition:.2s;
}

.cat-title:hover{
    background:#ededed;
}

.cat-left{
    display:flex;
    align-items:center;
    gap:8px;
}

.cat-icon{
    width:18px;
    height:18px;
    object-fit:contain;
}
 

.sub-item{
    padding:10px 12px;
    border-radius:10px;
    cursor:pointer;
    transition:.2s;
    font-size:14px;
}

.sub-item:hover{
    background:#f3f3f3;
}

/* FİLTRE BÖLÜMLERİ */
.filter-divider {
    border: 0; 
    border-top: 1px solid #eee; 
    margin: 15px 0;
}

.filter-group h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.location-selects {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    font-size: 14px;
}

.filter-input:focus {
    border-color: #0061ff;
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

.radio-list label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-clear {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    background: #fff;
    border: 1px solid #0061ff;
    color: #0061ff;
    cursor: pointer;
    transition: 0.2s;
}

.btn-clear:hover {
    background:#0061ff;
    color: #fff;
}

/* CONTENT */
.content{
    flex:1;
    position:relative;
    min-height:400px;
}

/* TOP BAR */
.top-bar{
    background:#fff;
    padding:12px;
    border:1px solid #eee;
    border-radius:12px;
    margin-bottom:15px;
}

.desktop-top-bar{
    display:flex;
    gap:10px;
    align-items:center;
}

.search{
    flex:1;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 10px;
}

.search input{
    border:none;
    outline:none;
    width:100%;
}

.desktop-top-bar input{
    height:42px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 10px;
}

.mobile-top-bar{
    display:none;
}

/* SORT ROW */
.sort-row{
    display:flex;
    gap:8px;
    overflow-x:auto;
    margin-bottom:10px;
}

.sort-btn{
    border:1px solid #ddd;
    padding:8px 12px;
    border-radius:20px;
    white-space:nowrap;
    cursor:pointer;
}

.sort-btn.active{
    background:#0061ff;
    color:#fff;
}

/* GRID & CARDS */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:18px;
}

.grid .empty-box{
    grid-column:1/-1;
}

.card{
    background:#fff;
    border-radius:18px;
    border:1px solid #eee;
    overflow:hidden;
    text-decoration:none;
    transition:.25s;
    display:block;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.card-image{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}

.card-body{
    padding:12px;
}

.card-title{
    font-size:15px;
    font-weight:600;
    color:#222;
    line-height:1.4;
    margin-bottom:4px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.card-price{
    font-size:15px;
    font-weight:700;
    color:#555;
    line-height:1.2;
    margin-bottom:8px;
}

/* 📍 KONUM VE ZAMAN SATIRI */
.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.card-location{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    color:#888;
    line-height:1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.card-location i{
    font-size:13px;
}

.card-time {
    font-size: 12px;
    color: #888;
    opacity: 0.8;
    white-space: nowrap;
}

/* EMPTY STATE */
.kategori-bos-btn{display: flex; align-items: center; gap: 5px; background: #0061ff; color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 25px rgba(0, 97, 255, .25); transition: .3s;}
.empty-box{ width:100%; max-width:500px; margin:40px auto; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 30px; border-radius:18px; background:linear-gradient(145deg,#fff,#f3f4f6); box-shadow:0 10px 30px rgba(0,0,0,.08); text-align:center; position:relative; }.kategori-bos-icon{ width:90px; height:90px; min-width:90px; border-radius:24px; background:#0061ff; display:flex; align-items:center; justify-content:center; color:#fff; font-size:40px; box-shadow:0 15px 35px rgba(0,97,255,.25); }
.empty-box .emoji{ font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.empty-box h2{ margin: 0; font-size: 22px; font-weight: 700; color: #222; white-space: nowrap; }
.empty-box p{ margin-top: 8px; font-size: 14px; color: #777; white-space: nowrap; }

/* FAVORITE BUTTON STYLES */
.emx-fav i{
    color:#444;
    transition:.2s;
    font-size:14px;
}
.emx-fav.active i{
    color:#ef4444;
}
.emx-fav{
    position:absolute;
    top:10px;
    right:10px;
    background:rgba(255, 255, 255, 0.9);
    backdrop-filter:blur(4px);
    width:32px;
    height:32px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    z-index:5;
    transition:.2s;
    cursor:pointer;
}
.emx-fav:hover{
    transform:scale(1.1);
    background:#fff;
}
.empty-box img{
    width:120px;
    height:auto;
    margin-bottom:15px;
}
.mobile-only-sort{
    display:none;
}
@media (max-width:768px){
    .empty-box{
        width:calc(100% - 30px);
        max-width:340px;
        padding:25px 20px;
    }
    .kategori-bos-icon{
        width:70px;
        height:70px;
        min-width:70px;
        font-size:30px;
        border-radius:18px;
    }
    .empty-box h2{
        font-size:18px;
        white-space:normal;
        text-align:center;
    }
    .empty-box p{
        font-size:13px;
        white-space:normal;
        line-height:1.5;
        text-align:center;
    }
    .kategori-bos-btn{max-width: 100px; width:100%; justify-content:center; padding:12px 18px; font-size:14px; gap:8px;margin: 0 auto 50px;}
    .kategori-bos-content{
        flex-direction:column !important;
        text-align:center;
        gap:15px;
    }
}
@media(max-width:768px){
    .grid .empty-box{
        width:100%;
        max-width:none;
        margin:20px 0;
    }
}
/* RESPONSIVE DESIGN */
@media (max-width:768px){
    .desktop-top-bar,
    .desktop-sort-row{
        display:none;
    }
    .mobile-top-bar{
        display:block;
    }
    .mobile-top-bar input{
        width:100%;
        height:42px;
        border:1px solid #ddd;
        border-radius:10px;
        padding:0 10px;
        margin-bottom:10px;
    }
    .mobile-price-row{
        display:flex;
        gap:10px;
        margin-bottom:10px;
    }
    .mobile-only-sort{
        display:flex;
        gap:10px;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        padding:8px 0;
        white-space:nowrap;
    }
    .mobile-only-sort .sort-btn{
        flex:0 0 auto;
        display:flex;
        align-items:center;
        gap:6px;
        padding:8px 14px;
        border:1px solid #ddd;
        border-radius:20px;
        background:#fff;
        cursor:pointer;
        white-space:nowrap;
        font-size:14px;
    }
    .mobile-only-sort .sort-btn i{
        font-size:14px;
    }
    .mobile-only-sort .sort-btn.active{
        background:#0061ff;
        color:#fff;
        border-color:#6a3f8f;
    }
    .mobile-only-sort::-webkit-scrollbar{
        display:none;
    }
    .cat-container{
        flex-direction:column;
        padding:10px;
    }
    .sidebar{
        width:100%;
    }
    .grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }
    .card-image{
        height:160px;
    }
    .card-body{
        padding:10px;
    }
    .card-title{
        font-size:14px;
    }
    .card-price{
        font-size:15px;
    }
    .card-location{
        font-size:12px;
    }
    .card-time {
        font-size: 11px;
    }
}
