/* Tenzo Property Search Filters */
.tenzo-filter-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(49, 49, 69, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.tenzo-filter-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uc-primary-color, #aa8453) 0%, #c9a87a 50%, var(--uc-secondary-color, #313145) 100%);
}

.tenzo-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 0;
}

.tenzo-filter-panel__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-family: var(--uc-primary-font, 'Urbanist', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--uc-secondary-color, #313145);
}

.tenzo-filter-panel__title i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(170, 132, 83, 0.15);
    color: var(--uc-primary-color, #aa8453);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.tenzo-filter-panel__hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.tenzo-filter-panel__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.tenzo-filter-grid {
    display: grid;
    gap: 1rem 1.15rem;
    align-items: end;
}

.tenzo-filter-grid--primary {
    grid-template-columns: repeat(5, 1fr);
}

.tenzo-filter-grid--secondary {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e8edf3;
}

.tenzo-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.tenzo-filter-field__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

.tenzo-filter-field .form-control,
.tenzo-filter-field .form-select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--uc-secondary-color, #313145);
    padding: 0.4rem 0.85rem;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tenzo-filter-field .form-control:focus,
.tenzo-filter-field .form-select:focus {
    border-color: var(--uc-primary-color, #aa8453);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(170, 132, 83, 0.12);
}

.tenzo-filter-field--search {
    position: relative;
}

.tenzo-filter-field--search .form-control {
    padding-left: 2.5rem;
    width: 100%;
}

.tenzo-filter-field--search > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--uc-primary-color, #aa8453);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.tenzo-filter-amenities {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e8edf3;
}

.tenzo-filter-amenities__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.65rem;
}

.tenzo-filter-amenities__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tenzo-filter-amenity {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.tenzo-filter-amenity input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tenzo-filter-amenity span {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.2s ease;
    user-select: none;
}

.tenzo-filter-amenity input:checked + span {
    background: rgba(170, 132, 83, 0.15);
    border-color: var(--uc-primary-color, #aa8453);
    color: var(--uc-secondary-color, #313145);
    font-weight: 600;
}

.tenzo-filter-amenity:hover span {
    border-color: #cbd5e1;
}

.tenzo-filter-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef1f5;
}

.tenzo-filter-footer__sort {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 260px;
}

.tenzo-filter-footer__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.tenzo-filter-btn-search {
    min-width: 130px;
    height: 44px;
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-radius: 10px;
    background: var(--uc-primary-color, #aa8453);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.tenzo-filter-btn-search:hover {
    background: #96754a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(170, 132, 83, 0.35);
}

.tenzo-filter-btn-reset {
    min-width: 110px;
    height: 44px;
    padding: 0 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tenzo-filter-btn-reset:hover {
    border-color: var(--uc-secondary-color, #313145);
    color: var(--uc-secondary-color, #313145);
    background: #f8fafc;
}

.listing-filter-bar {
    margin-bottom: 1.5rem;
}

.listing-filter-bar .result-wrapper {
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--uc-primary-color, #aa8453);
}

.listing-filter-bar .ordering-pages {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 1199px) {
    .tenzo-filter-grid--primary,
    .tenzo-filter-grid--secondary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .tenzo-filter-grid--primary,
    .tenzo-filter-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .tenzo-filter-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tenzo-filter-footer__sort {
        max-width: none;
        width: 100%;
    }

    .tenzo-filter-footer__actions {
        margin-left: 0;
        width: 100%;
    }

    .tenzo-filter-btn-search,
    .tenzo-filter-btn-reset {
        flex: 1;
    }
}

@media (max-width: 479px) {
    .tenzo-filter-grid--primary,
    .tenzo-filter-grid--secondary {
        grid-template-columns: 1fr;
    }

    .tenzo-filter-panel__body {
        padding: 1rem;
    }
}
