/**
 * Property Archive Filters Styles
 */

/* Archive Filters */
.property-archive-filters {
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.filters-container {
    width: 100%;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.filters-title svg {
    flex-shrink: 0;
}

.filters-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filters-content {
    padding: 30px 25px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Filter Field */
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-field label svg {
    color: #eb3729;
    flex-shrink: 0;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffffff;
    color: #1a1a2e;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #eb3729;
    box-shadow: 0 0 0 3px rgba(235, 55, 41, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23eb3729' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Price Range */
.filter-field-price {
    grid-column: span 1;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input {
    flex: 1;
}

.price-separator {
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
}

/* Filter Actions */
.filters-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.filter-submit-button,
.filter-reset-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.filter-submit-button {
    background: linear-gradient(135deg, #eb3729 0%, #7e1416 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(235, 55, 41, 0.3);
}

.filter-submit-button:hover {
    background: linear-gradient(135deg, #ff3d30 0%, #9e1a1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 55, 41, 0.5);
}

.filter-reset-button {
    background: #ffffff;
    color: #666;
    border: 2px solid #e0e0e0;
}

.filter-reset-button:hover {
    background: #f8f9fa;
    border-color: #eb3729;
    color: #eb3729;
}

.filter-submit-button svg,
.filter-reset-button svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-field-price {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .filters-toggle {
        display: flex;
    }
    
    .filters-content {
        display: none;
        padding: 20px;
    }
    
    .filters-content.active {
        display: block;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-field-price {
        grid-column: span 1;
    }
    
    .price-range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-separator {
        transform: rotate(90deg);
    }
    
    .filters-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .filters-header {
        padding: 15px 20px;
    }
    
    .filters-title {
        font-size: 1.1rem;
    }
    
    .filters-content {
        padding: 15px;
    }
    
    .filter-submit-button,
    .filter-reset-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .property-type-modal {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        max-width: calc(100vw - 40px);
        min-width: auto;
        width: calc(100vw - 40px);
        top: 50% !important;
        max-height: 85vh;
    }

    .property-type-content {
        max-height: 250px;
    }

    .property-type-tab {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .property-type-actions {
        flex-direction: column;
    }

    .property-type-reset,
    .property-type-done {
        width: 100%;
    }
}

/* Property Type Selector Styles (same as hero section) */
.filter-field-property-type {
    position: relative;
}

.property-type-selector {
    position: relative;
    width: 100%;
}

.property-type-trigger {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    font-family: inherit;
}

.property-type-trigger:hover,
.property-type-selector.active .property-type-trigger {
    border-color: #eb3729;
    box-shadow: 0 0 0 3px rgba(235, 55, 41, 0.1);
}

.property-type-trigger svg {
    color: #eb3729;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.property-type-selector.active .property-type-trigger svg {
    transform: rotate(180deg);
}

.trigger-text {
    flex: 1;
    color: #1a1a2e;
}

.property-type-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: none;
    backdrop-filter: blur(2px);
}

.property-type-modal-backdrop.active {
    display: block;
}

.property-type-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 500px;
    max-width: 600px;
    max-height: 80vh;
    background: #ffffff;
    border: 2px solid #eb3729;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    z-index: 100000;
    display: none;
    overflow: hidden;
}

.property-type-selector.active .property-type-modal {
    display: block;
}

.property-type-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #f8f9fa;
    padding: 0 20px;
}

.property-type-tab {
    flex: 1;
    padding: 20px 24px;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-type-tab:hover {
    color: #eb3729;
    background: rgba(235, 55, 41, 0.05);
}

.property-type-tab.active {
    color: #eb3729;
    border-bottom-color: #eb3729;
    background: #ffffff;
}

.property-type-modal .property-type-content {
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}

.property-type-panel {
    display: none;
}

.property-type-panel.active {
    display: block;
}

.property-type-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.property-type-option:last-child {
    margin-bottom: 0;
}

.property-type-option:hover {
    background: rgba(235, 55, 41, 0.08);
    border-color: rgba(235, 55, 41, 0.2);
    transform: translateX(4px);
}

.property-type-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.property-type-option input[type="checkbox"]:checked + .checkbox-custom {
    background: #eb3729;
    border-color: #eb3729;
}

.property-type-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.option-label {
    flex: 1;
    color: #1a1a2e;
    font-size: 1.05rem;
    font-weight: 500;
}

.property-type-option:hover .option-label {
    color: #eb3729;
}

.no-types {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.property-type-actions {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
}

.property-type-reset,
.property-type-done {
    flex: 1;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-type-reset {
    background: #ffffff;
    color: #1a1a2e;
}

.property-type-reset:hover {
    border-color: #eb3729;
    color: #eb3729;
}

.property-type-done {
    background: #eb3729;
    color: #ffffff;
    border-color: #eb3729;
}

.property-type-done:hover {
    background: #d32f1f;
    border-color: #d32f1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 55, 41, 0.3);
}

