/* ASK Real Estate - Filter Page Styles */

.askre-filter-container {
    max-width: 1480px; /* Increased from 1400px to accommodate 4 cards */
    margin: 0 auto;
    padding: 20px;
}

/* Active Filters */
.askre-active-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.askre-active-filters h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.askre-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.askre-filter-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
}

.askre-filter-tag button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.askre-filter-tag button:hover {
    color: #ff6b35;
}

.askre-clear-all {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.askre-clear-all:hover {
    background: #ff5722;
}

/* Filter Bar */
.askre-filter-bar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

#askre-filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.askre-filter-input {
    flex: 1;
    min-width: 300px;
}

.askre-filter-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.askre-filter-input input:focus {
    border-color: #ff6b35;
}

#askre-filter-form select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: white;
}

#askre-filter-form select:focus {
    border-color: #ff6b35;
}

.askre-filter-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.askre-filter-btn:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

/* Results Section */
.askre-filter-results {
    margin-top: 30px;
}

.askre-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.askre-results-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.askre-view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.view-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.view-btn svg {
    fill: currentColor;
}

/* Property Grid - UPDATED FOR 4 COLUMNS */
.askre-property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.askre-property-grid.list-view {
    grid-template-columns: 1fr;
}

.askre-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.askre-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.askre-property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    width: max-content;
}

.askre-property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.askre-property-content {
    padding: 20px;
}

.askre-property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.askre-property-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.askre-property-location svg {
    fill: #ff6b35;
}

.askre-property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.askre-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.askre-feature svg {
    fill: #999;
}

.askre-property-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.askre-property-price .price {
    font-size: 22px;
    font-weight: 700;
    color: #ff6b35;
}

.askre-property-price .period {
    font-size: 14px;
    color: #999;
}

/* No Results */
.no-properties-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-properties-found svg {
    fill: #999;
    margin-bottom: 20px;
}

.no-properties-found h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-properties-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.askre-btn-secondary {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.askre-btn-secondary:hover {
    background: #ff6b35;
    color: white;
}

/* Responsive Design - UPDATED */
/* Extra Large Screens - 4 cards */
@media (min-width: 1400px) {
    .askre-property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Screens - 3 cards */
@media (max-width: 1399px) and (min-width: 1024px) {
    .askre-filter-container {
        max-width: 1200px;
    }
    
    .askre-property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens (Tablets) - 2 cards */
@media (max-width: 1023px) and (min-width: 768px) {
    .askre-filter-container {
        max-width: 900px;
    }
    
    .askre-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens - 1 card */
@media (max-width: 767px) {
    .askre-filter-container {
        padding: 15px;
    }
    
    #askre-filter-form {
        flex-direction: column;
    }

    .askre-filter-input {
        width: 100%;
        min-width: auto;
    }

    #askre-filter-form select,
    .askre-filter-btn {
        width: 100%;
    }

    .askre-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .askre-property-grid {
        grid-template-columns: 1fr;
    }
    
    .askre-property-image {
        height: 200px;
    }
    
    .askre-property-content {
        padding: 15px;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .askre-property-title {
        font-size: 16px;
    }
    
    .askre-property-price .price {
        font-size: 20px;
    }
    
    .askre-property-features {
        gap: 10px;
    }
    
    .askre-feature {
        font-size: 13px;
    }
}