/* ASK Real Estate Search Results CSS - Matches Listings Style */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Variables */
:root {
    --askre-primary-color: #FF5A5F;
    --askre-primary-dark: #e54c51;
    --askre-orange: #FF8C00;
    --askre-orange-dark: #e07b00;
    --askre-text-color: #222222;
    --askre-secondary-text: #717171;
    --askre-light-bg: #f8f9fa;
    --askre-border-color: #e2e2e2;
    --askre-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --askre-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.12);
    --askre-radius: 12px;
    --askre-radius-sm: 10px;
    --askre-font: 'Poppins', Arial, sans-serif;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
.askre-results-container {
    font-family: var(--askre-font);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    color: var(--askre-text-color);
    background-color: #fff;
}

/* ============================================
   RESULTS HEADER
   ============================================ */
.askre-results-header {
    margin-bottom: 25px;
}

.askre-results-title h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--askre-text-color);
    line-height: 1.3;
}

.askre-results-count {
    color: var(--askre-secondary-text);
    font-size: 15px;
    margin: 0;
}

.askre-results-count strong {
    color: var(--askre-orange);
    font-weight: 600;
}

.askre-results-subtitle {
    color: var(--askre-secondary-text);
    font-size: 15px;
    margin-top: 8px;
}

/* ============================================
   FILTERS BAR
   ============================================ */
.askre-filters-bar {
    background-color: #fff;
    border-radius: var(--askre-radius);
    box-shadow: var(--askre-shadow);
    padding: 25px;
    margin-bottom: 25px;
    width: 100%;
}

.askre-filters-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.askre-filter-group {
    flex: 1;
    min-width: 140px;
}

.askre-filter-group.askre-filter-search {
    flex: 2;
    min-width: 200px;
}

.askre-filter-group.askre-filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.askre-filter-group.askre-filter-price .askre-filter-input {
    flex: 1;
    min-width: 80px;
}

.askre-price-separator {
    color: var(--askre-secondary-text);
    font-weight: 500;
}

.askre-filter-input,
.askre-filter-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    font-size: 14px;
    font-family: var(--askre-font);
    color: var(--askre-text-color);
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.askre-filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 40px;
    cursor: pointer;
}

.askre-filter-input:focus,
.askre-filter-select:focus {
    border-color: var(--askre-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    outline: none;
}

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

.askre-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--askre-orange);
    color: white;
    border: none;
    border-radius: var(--askre-radius-sm);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--askre-font);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
    white-space: nowrap;
}

.askre-btn-search:hover {
    background-color: var(--askre-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.askre-btn-search svg {
    width: 18px;
    height: 18px;
}

.askre-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background-color: var(--askre-light-bg);
    color: var(--askre-secondary-text);
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--askre-font);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.askre-btn-clear:hover {
    background-color: #e9ecef;
    color: var(--askre-text-color);
    border-color: #ccc;
}

/* ============================================
   ACTIVE FILTERS
   ============================================ */
.askre-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--askre-light-bg);
    border-radius: var(--askre-radius-sm);
}

.askre-active-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--askre-secondary-text);
    margin-right: 5px;
}

.askre-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: var(--askre-orange);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
}

.askre-remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 140, 0, 0.15);
    color: var(--askre-orange);
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
}

.askre-remove-filter:hover {
    background-color: var(--askre-orange);
    color: white;
}

/* ============================================
   VIEW CONTROLS
   ============================================ */
.askre-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.askre-sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.askre-sort-options label {
    font-size: 14px;
    font-weight: 500;
    color: var(--askre-secondary-text);
}

.askre-sort-select {
    padding: 10px 35px 10px 14px;
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    font-size: 14px;
    font-family: var(--askre-font);
    color: var(--askre-text-color);
    background-color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    transition: all 0.3s ease;
}

.askre-sort-select:focus {
    border-color: var(--askre-orange);
    outline: none;
}

.askre-view-toggle {
    display: flex;
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    overflow: hidden;
}

.askre-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--askre-secondary-text);
}

.askre-view-btn:first-child {
    border-right: 1px solid var(--askre-border-color);
}

.askre-view-btn:hover {
    background-color: var(--askre-light-bg);
}

.askre-view-btn.active {
    background-color: var(--askre-text-color);
    color: white;
}

.askre-view-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESULTS GRID
   ============================================ */
.askre-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

/* ============================================
   PROPERTY CARD
   ============================================ */
.askre-property-card {
    background-color: #fff;
    border-radius: var(--askre-radius);
    box-shadow: var(--askre-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.askre-property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--askre-shadow-hover);
}

.askre-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.askre-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--askre-light-bg);
}

.askre-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.askre-property-card:hover .askre-card-image img {
    transform: scale(1.08);
}

.askre-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--askre-light-bg);
    color: var(--askre-secondary-text);
    font-size: 14px;
}

.askre-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.askre-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.askre-badge-purpose {
    background-color: var(--askre-orange);
    color: white;
}

.askre-badge-type {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.askre-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.askre-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.askre-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--askre-text-color);
    line-height: 1.2;
}

.askre-price-period {
    font-size: 13px;
    color: var(--askre-secondary-text);
    font-weight: 400;
}

.askre-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--askre-text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.askre-card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--askre-secondary-text);
    line-height: 1.4;
}

.askre-card-location svg {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--askre-orange);
    width: 14px;
    height: 14px;
}

.askre-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.askre-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--askre-secondary-text);
}

.askre-feature svg {
    width: 14px;
    height: 14px;
    color: var(--askre-orange);
    flex-shrink: 0;
}

/* ============================================
   LIST VIEW
   ============================================ */
.askre-results-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.askre-results-grid.list-view .askre-property-card {
    height: auto;
}

.askre-results-grid.list-view .askre-card-link {
    flex-direction: row;
    align-items: stretch;
}

.askre-results-grid.list-view .askre-card-image {
    width: 320px;
    min-width: 320px;
    height: 200px;
}

.askre-results-grid.list-view .askre-card-content {
    flex: 1;
    padding: 20px;
    justify-content: center;
}

.askre-results-grid.list-view .askre-card-title {
    font-size: 18px;
    min-height: auto;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.askre-results-grid.list-view .askre-price-amount {
    font-size: 22px;
}

.askre-results-grid.list-view .askre-card-features {
    gap: 20px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.askre-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: var(--askre-radius);
    box-shadow: var(--askre-shadow);
    margin-top: 30px;
}

.askre-empty-icon {
    margin-bottom: 25px;
}

.askre-empty-icon svg {
    opacity: 0.8;
}

.askre-empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--askre-text-color);
    margin: 0 0 15px 0;
}

.askre-empty-state p {
    color: var(--askre-secondary-text);
    font-size: 15px;
    margin: 0 0 10px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.askre-empty-state a {
    color: var(--askre-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.askre-empty-state a:hover {
    color: var(--askre-orange-dark);
    text-decoration: underline;
}

.askre-empty-suggestions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.askre-empty-suggestions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--askre-text-color);
    margin: 0 0 20px 0;
}

.askre-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.askre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: var(--askre-orange);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.askre-tag:hover {
    background: var(--askre-orange);
    border-color: var(--askre-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.askre-tag-count {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   PAGINATION
   ============================================ */
.askre-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid #f0f0f0;
}

.askre-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    color: var(--askre-text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--askre-font);
    transition: all 0.3s ease;
}

.askre-page-btn:hover {
    border-color: var(--askre-orange);
    color: var(--askre-orange);
    transform: translateY(-1px);
}

.askre-page-btn svg {
    width: 16px;
    height: 16px;
}

.askre-page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.askre-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--askre-border-color);
    border-radius: var(--askre-radius-sm);
    color: var(--askre-text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--askre-font);
    transition: all 0.3s ease;
}

.askre-page-num:hover {
    border-color: var(--askre-orange);
    color: var(--askre-orange);
}

.askre-page-num.askre-current {
    background: var(--askre-orange);
    border-color: var(--askre-orange);
    color: #fff;
    cursor: default;
}

.askre-page-dots {
    padding: 0 8px;
    color: var(--askre-secondary-text);
    font-size: 14px;
}

/* ============================================
   NO RESULTS
   ============================================ */
.askre-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--askre-light-bg);
    border-radius: var(--askre-radius);
    color: var(--askre-secondary-text);
    width: 100%;
}

.askre-no-results-icon {
    margin-bottom: 20px;
}

.askre-no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--askre-text-color);
    margin: 0 0 10px 0;
}

.askre-no-results p {
    margin: 0;
    line-height: 1.6;
}

.askre-no-results a {
    color: var(--askre-orange);
    text-decoration: none;
    font-weight: 500;
}

.askre-no-results a:hover {
    text-decoration: underline;
}

/* ============================================
   ERROR STATE
   ============================================ */
.askre-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: var(--askre-radius);
    font-family: var(--askre-font);
    text-align: center;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .askre-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .askre-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .askre-results-grid.list-view .askre-card-image {
        width: 260px;
        min-width: 260px;
    }
    
    .askre-filter-group {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .askre-results-container {
        padding: 15px;
    }
    
    .askre-filters-bar {
        padding: 20px;
    }
    
    .askre-filters-bar form {
        flex-direction: column;
    }
    
    .askre-filter-group,
    .askre-filter-group.askre-filter-search,
    .askre-filter-group.askre-filter-price {
        width: 100%;
        min-width: 100%;
    }
    
    .askre-filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .askre-btn-search,
    .askre-btn-clear {
        flex: 1;
    }
    
    .askre-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .askre-results-grid.list-view .askre-card-link {
        flex-direction: column;
    }
    
    .askre-results-grid.list-view .askre-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    
    .askre-view-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .askre-results-title h1 {
        font-size: 24px;
    }
    
    .askre-card-image {
        height: 180px;
    }
    
    .askre-pagination {
        flex-wrap: wrap;
    }
    
    .askre-active-filters {
        padding: 12px;
    }
    
    .askre-filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .askre-results-grid {
        grid-template-columns: 1fr;
    }
    
    .askre-card-content {
        padding: 15px;
    }
    
    .askre-card-title {
        font-size: 15px;
        min-height: 42px;
    }
    
    .askre-price-amount {
        font-size: 18px;
    }
    
    .askre-card-image {
        height: 200px;
    }
    
    .askre-page-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .askre-page-num {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    .askre-empty-state {
        padding: 40px 20px;
    }
    
    .askre-empty-state h2 {
        font-size: 20px;
    }
    
    .askre-suggestion-tags {
        gap: 8px;
    }
    
    .askre-tag {
        padding: 10px 16px;
        font-size: 13px;
    }
}