/* =====================================================
   FİLTRELER OVERLAY
===================================================== */

.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.filters-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* =====================================================
   PANEL YERLEŞİMİ
===================================================== */

.filters-panel-wrapper {
    width: 100%;
    padding-top: 110px;
    display: flex;
    justify-content: center;
}

/* =====================================================
   PANEL
===================================================== */

.filters-panel {
    width: 900px;
    max-width: calc(100vw - 48px);
    min-height: 500px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.filters-overlay.show .filters-panel {
    animation: filtersPanelOpen 0.32s ease forwards;
}

@keyframes filtersPanelOpen {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =====================================================
   HEADER
===================================================== */

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.filters-header h2 {
    font-size: 28px;
    color: #111;
}

.filters-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.filters-close:hover {
    background: #e8e8e8;
}

/* =====================================================
   BODY
===================================================== */

.filters-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    background: #fff;
}

.filter-section {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 20px 18px;
    min-height: 320px;
}

.filter-section h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #111;
}

/* =====================================================
   CHECKBOXLAR
===================================================== */

.filter-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 16px;
    color: #222;
    line-height: 1.4;
}

.filter-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #222;
    cursor: pointer;
}

.filter-check span {
    flex: 1;
}

/* =====================================================
   FOOTER
===================================================== */

.filters-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #ececec;
    background: #fff;
}

.filters-clear,
.filters-apply {
    min-width: 110px;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 15px;
    cursor: pointer;
}

.filters-clear {
    background: #f3f3f3;
    border: 1px solid #d8d8d8;
    color: #222;
}

.filters-clear:hover {
    background: #e9e9e9;
}

.filters-apply {
    background: #222;
    border: 1px solid #222;
    color: white;
}

.filters-apply:hover {
    background: #111;
}