/* ================================================
   Query Controls — Filter Panel, Pagination
   Matches the existing VillaBooking design system
   ================================================ */

/* Filter Panel Container */
.qc-panel {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

/* Toggle Button */
.qc-toggle-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}

.qc-toggle-btn:hover,
.qc-toggle-btn:focus {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.qc-toggle-btn[aria-expanded="true"] .qc-chevron {
    transform: rotate(180deg);
}

.qc-chevron {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Form Area */
.qc-form {
    padding: 1.25rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Labels */
.qc-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

/* Inputs & Selects */
.qc-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.qc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.qc-input:focus {
    border-color: rgba(14, 165, 233, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
    outline: none;
}

/* Select dropdown arrow */
.qc-input option {
    background: #1e293b;
    color: #fff;
}

/* Reset Button */
.qc-btn-reset {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.qc-btn-reset:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ================================================
   Pagination
   ================================================ */

.qc-pagination-wrap {
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.qc-page-info {
    color: var(--color-text-light, #64748b);
    font-size: 0.88rem;
}

.qc-pagination .page-link {
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text, #334155);
    border-radius: 10px !important;
    margin: 0 2px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.qc-pagination .page-link:hover {
    background: rgba(14, 165, 233, 0.05); /* very light accent */
    border-color: rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
}

.qc-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.qc-pagination .page-item.disabled .page-link {
    background: var(--color-surface-alt, #f8fafc);
    border-color: var(--color-border, #e2e8f0);
    color: var(--color-text-light, #64748b);
    opacity: 0.5;
    cursor: not-allowed;
}
