﻿
body {
    user-select: none; /* Standard */
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* ===== CONTAINER ===== */

.filters-container {
    max-width: 640px;
    margin: 70px auto;
    font-family: 'Poppins', sans-serif;
}

/* ===== FILTER CARD ===== */

.filter-group {
    margin-bottom: 32px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 25px 60px rgba(111,84,151,0.22), 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

    .filter-group:hover {
        transform: translateY(-5px);
        box-shadow: 0 40px 80px rgba(111,84,151,0.32), 0 15px 35px rgba(0,0,0,0.08);
    }

    /* ===== HEADER ===== */

    .filter-group legend {
        padding: 22px 28px;
        font-weight: 600;
        font-size: 1.05rem;
        color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #7D669C, #6F5497);
        border-radius: 22px;
    }

    .filter-group.active legend {
        border-radius: 22px 22px 0 0;
        box-shadow: inset 0 -6px 20px rgba(0,0,0,0.2);
    }

    /* ===== ARROW ===== */

    .filter-group .arrow {
        transition: transform 0.4s ease;
        margin-left: 15px;
    }

    .filter-group.active .arrow {
        transform: rotate(90deg);
    }

/* ===== CONTENT ===== */

.filter-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    background: linear-gradient(to bottom, #faf9fd, #f4f1fa);
    transition: max-height 0.6s cubic-bezier(.4,0,.2,1), padding 0.4s ease;
    border-top: none;
    display: flex;
    flex-direction: column; /* pionowo */
    gap: 16px;
}

.filter-group.active .filter-content {
    max-height: 600px;
    padding: 28px;
    border-top: 1px solid rgba(111,84,151,0.12);
    border-radius: 0 0 22px 22px;
    overflow-y: auto; /* scroll przy większej ilości opcji */
}

/* ===== INPUTY 100% ===== */

.filter-content input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e6e0f1;
    background: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .filter-content input:focus {
        border-color: #6F5497;
        box-shadow: 0 0 0 4px rgba(111,84,151,0.15), 0 10px 25px rgba(111,84,151,0.1);
        outline: none;
    }

/* ===== OPCJE (CHECKBOX / TAG / PŁEĆ) – JEDNO POD DRUGIM ===== */
/* =======================================
   PREMIUM SLIDERS – Dostępność czasowa
======================================= */

.dzien-container {
    margin-bottom: 25px;
}

.dzien-opis {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Kontener slidera */
#kalendarz-filtrow .noUi-target {
    background: #f4f1fa;
    border-radius: 14px;
    height: 12px;
    box-shadow: inset 0 2px 6px rgba(111,84,151,0.15);
}

#slider {
    margin-top: 15px;
}

/* Połączony kolor (connect) */
#kalendarz-filtrow .noUi-connect {
    background: linear-gradient(135deg, #7D669C, #6F5497);
    border-radius: 14px;
}

/* Uchwyty */
#kalendarz-filtrow .noUi-handle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #6F5497;
    box-shadow: 0 6px 15px rgba(111,84,151,0.3);
    cursor: grab;
    transition: all 0.25s ease;
}

    #kalendarz-filtrow .noUi-handle:hover {
        transform: scale(1.15);
        box-shadow: 0 10px 25px rgba(111,84,151,0.45);
    }

    /* Focus (klawiatura) */
    #kalendarz-filtrow .noUi-handle:focus {
        outline: none;
        box-shadow: 0 0 0 6px rgba(125,102,156,0.2);
    }

/* Tick marks (opcjonalnie) */
#kalendarz-filtrow .noUi-tick {
    background: rgba(111,84,151,0.2);
    width: 2px;
    height: 6px;
}

/* Labelki czasu */
.czas-label {
    font-weight: 500;
    color: #6F5497;
    font-size: 0.95rem;
}
.checkbox-grid,
.gender-select {
    display: flex;
    flex-direction: column; /* pionowo */
    gap: 14px;
}

/* ukrywamy input */
.checkbox-card input,
.checkbox-tag input,
.gender-option input {
    display: none;
}

/* pełna szerokość */
.checkbox-card span,
.checkbox-tag span,
.gender-option span {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #ece7f6;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-align: left;
}

    /* hover */

    .checkbox-card span:hover,
    .checkbox-tag span:hover,
    .gender-option span:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(111,84,151,0.18);
    }

/* selected */

.checkbox-card input:checked + span,
.checkbox-tag input:checked + span,
.gender-option input:checked + span {
    background: linear-gradient(135deg, #7D669C, #6F5497);
    color: #fff;
    border: none;
    box-shadow: 0 18px 40px rgba(111,84,151,0.35);
}

/* ===== PRICE ===== */

.price-range {
    display: flex;
    gap: 14px;
}

    .price-range input {
        flex: 1;
    }

.price-separator {
    align-self: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: #6F5497;
}

/* ===== BUTTONS ===== */

.filter-buttons {
    display: flex;
    gap: 18px;
    margin-top: 20px;
}

    .filter-buttons button,
    .filter-buttons a {
        flex: 1;
        padding: 14px;
        border-radius: 18px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
        background: #ffffff;
        border: 1px solid rgba(111,84,151,0.4);
        color: #6F5497;
        box-shadow: 0 10px 25px rgba(111,84,151,0.15);
    }

        .filter-buttons button:hover,
        .filter-buttons a:hover {
            transform: translateY(-4px);
            background: linear-gradient(135deg, #7D669C, #6F5497);
            color: #ffffff;
            border: none;
            box-shadow: 0 25px 50px rgba(111,84,151,0.4);
        }

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
    }

        .filter-buttons button,
        .filter-buttons a {
            width: 100%;
        }
}
/* ================================
   PREMIUM SORTING
================================ */

.sort-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.sort-card {
    width: 100%;
    padding: 22px 26px;
    border-radius: 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 20px 50px rgba(111,84,151,0.22), 0 6px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sort-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #6F5497;
}

/* SELECT WRAPPER */

.sort-select-wrapper {
    position: relative;
}

/* SELECT */

.sort-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e6e0f1;
    background: #ffffff;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

    /* hover */

    .sort-select:hover {
        border-color: #7D669C;
        box-shadow: 0 8px 18px rgba(111,84,151,0.18);
    }

    /* focus */

    .sort-select:focus {
        outline: none;
        border-color: #6F5497;
        box-shadow: 0 0 0 4px rgba(111,84,151,0.15), 0 10px 25px rgba(111,84,151,0.15);
    }

/* custom arrow */

.sort-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6F5497;
    pointer-events: none;
}
/* ======================================
   DAY SCHEDULER PREMIUM
====================================== */

.dzien-container {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid #ece7f6;
    transition: all 0.35s ease;
}

    /* hover */

    .dzien-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(111,84,151,0.15);
    }

/* nagłówek dnia */

.dzien-opis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

    /* nazwa dnia */

    .dzien-opis strong {
        font-weight: 600;
        color: #6F5497;
    }

/* godziny w jednej linii */

.czas-label {
    white-space: nowrap;
    font-weight: 500;
    color: #6F5497;
    font-size: 0.95rem;
}

/* ======================================
   OKRĄGŁY CHECKBOX
====================================== */

/* ======================================
   OKRĄGŁY CHECKBOX (POPRAWIONY)
====================================== */

.dzien-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid #6F5497;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex: 0 0 18px; /* zapobiega rozciąganiu w flex */
}

    /* hover */

    .dzien-checkbox:hover {
        transform: scale(1.1);
    }

    /* zaznaczony */

    .dzien-checkbox:checked {
        background: linear-gradient(135deg,#7D669C,#6F5497);
        border-color: transparent;
    }

        /* kropka w środku */

        .dzien-checkbox:checked::after {
            content: "";
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
/* ======================================
   ANIMACJA SLIDERA
====================================== */

.slider-target {
    transform: scaleY(0.85);
    opacity: 0;
    transition: all 0.35s ease;
}

/* gdy dzień aktywny */

.dzien-container:has(.dzien-checkbox:checked) .slider-target {
    transform: scaleY(1);
    opacity: 1;
}

/* ======================================
   WYŁĄCZONY DZIEŃ
====================================== */

.dzien-container:has(.dzien-checkbox:not(:checked)) {
    opacity: 0.45;
    background: #f5f3fa;
}

    /* slider wyłączony */

    .dzien-container:has(.dzien-checkbox:not(:checked)) .noUi-target {
        opacity: 0.35;
    }

    /* godziny gdy wyłączone */

    .dzien-container:has(.dzien-checkbox:not(:checked)) .czas-label {
        color: #aaa;
    }