/* Classe essencial para controle de exibição */
.hidden {
    display: none !important;
}

.modal-explorar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-explorar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-explorar-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 32px 32px 0 0;
    padding: 40px;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(100%);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .modal-explorar-overlay {
        align-items: center;
    }

    .modal-explorar-content {
        border-radius: 28px;
        transform: scale(0.95);
        margin-bottom: 0;
    }
}

.modal-explorar-overlay.active .modal-explorar-content {
    transform: translateY(0) scale(1);
}

.explorar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.explorar-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Multi-select estilizado */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-selected {
    width: 100%;
    padding: 14px 18px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    transition: 0.3s;
}

.multiselect-selected:hover {
    border-color: var(--primary);
}

.multiselect-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    z-index: 3100;
    border: 1px solid #f1f5f9;
    display: none;
    padding: 8px;
}

.multiselect-options.active {
    display: block;
    animation: fadeInDown 0.3s forwards;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
}

.option-item:hover {
    background: #fffdf2;
}

/* Estilização Customizada do Checkbox (Amarelo) */
.option-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.option-info input[type="checkbox"],
.day-checkbox,
#exp-open-now {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    background: white;
    flex-shrink: 0;
    /* Impede que o checkbox amasse */
}

/* O clique é tratado pela linha inteira da opção */
.option-info input[type="checkbox"] {
    pointer-events: none;
}

.option-info input[type="checkbox"]:checked,
.day-checkbox:checked,
#exp-open-now:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.option-info input[type="checkbox"]:checked::after,
.day-checkbox:checked::after,
#exp-open-now:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark);
    font-size: 12px;
    font-weight: 900;
}

.count-badge {
    background: #f1f5f9;
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Dias da Semana - CORREÇÃO DE ALINHAMENTO */
.days-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.day-item {
    display: flex;
    align-items: center;
    /* Alinha o checkbox e o texto verticalmente */
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--light);
    padding: 12px 10px;
    border-radius: 10px;
    transition: 0.2s;
}

.day-item span {
    line-height: 1;
    /* Remove margens extras do texto */
}

.day-item:hover {
    background: #fffdf2;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 700;
    color: var(--dark);
}

/* SKELETONS - CORREÇÃO VISUAL */
.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-explorar {
    width: 100%;
    height: 55px;
    /* Altura aproximada do select customizado */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 16px;
}

.skeleton-days {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.skeleton-day-item {
    height: 45px;
    background: #f0f0f0;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.btn-aplicar-filtro {
    width: 100%;
    background: var(--dark);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-aplicar-filtro:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .modal-explorar-content {
        padding: 28px 20px;
    }

    .days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
