/**
 * Estatify MLS - Property Archive & Search Templates Styles
 * Combined stylesheet for archive and search default templates
 */

/* CSS Variables */
:root {
    --estatify-primary: #1e3a5f;
    --estatify-primary-hover: #2c4a73;
    --estatify-primary-light: rgba(30, 58, 95, 0.1);
    --estatify-secondary: #f5f5f5;
    --estatify-accent: #d4a853;
    --estatify-accent-hover: #c49a48;
    --estatify-text: #333333;
    --estatify-text-light: #666666;
    --estatify-text-muted: #999999;
    --estatify-border: #e0e0e0;
    --estatify-bg: #ffffff;
    --estatify-bg-alt: #f8f9fa;
    --estatify-bg-dark: #f0f0f0;
    --estatify-success: #28a745;
    --estatify-danger: #dc3545;
    --estatify-warning: #ffc107;
    --estatify-radius: 8px;
    --estatify-radius-lg: 12px;
    --estatify-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --estatify-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --estatify-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --estatify-transition: all 0.3s ease;
    --estatify-max-width: 1400px;
    --estatify-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --estatify-sidebar-width: 320px;
}

/* ========== BASE STYLES ========== */
.estatify-property-archive,
.estatify-property-search {
    font-family: var(--estatify-font);
    color: var(--estatify-text);
    line-height: 1.6;
    background: var(--estatify-bg);
    padding: 32px 0 64px;
    min-height: 100vh;
}

.estatify-property-archive *,
.estatify-property-search * {
    box-sizing: border-box;
}

.estatify-container {
    max-width: var(--estatify-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .estatify-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .estatify-container {
        padding: 0 32px;
    }
}

/* ========== BUTTONS ========== */
.estatify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--estatify-radius);
    cursor: pointer;
    transition: var(--estatify-transition);
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
}

.estatify-btn-primary {
    background: var(--estatify-primary);
    color: white;
    border-color: var(--estatify-primary);
}

.estatify-btn-primary:hover {
    background: var(--estatify-primary-hover);
    border-color: var(--estatify-primary-hover);
}

.estatify-btn-outline {
    background: transparent;
    border-color: var(--estatify-border);
    color: var(--estatify-text);
}

.estatify-btn-outline:hover {
    background: var(--estatify-bg-alt);
    border-color: var(--estatify-primary);
    color: var(--estatify-primary);
}

.estatify-btn-full {
    width: 100%;
}

/* ========== ARCHIVE HEADER ========== */
.estatify-archive-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--estatify-border);
}

.estatify-archive-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--estatify-text);
    margin: 0 0 12px 0;
}

.estatify-archive-stats {
    font-size: 15px;
    color: var(--estatify-text-light);
}

/* ========== SEARCH HEADER ========== */
.estatify-search-header {
    text-align: center;
    margin-bottom: 40px;
}

.estatify-search-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--estatify-text);
    margin: 0 0 12px 0;
}

.estatify-search-subtitle {
    font-size: 16px;
    color: var(--estatify-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ARCHIVE CONTROLS ========== */
.estatify-archive-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--estatify-bg-alt);
    border-radius: var(--estatify-radius-lg);
}

.estatify-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--estatify-bg);
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--estatify-transition);
}

.estatify-filter-toggle:hover {
    border-color: var(--estatify-primary);
    color: var(--estatify-primary);
}

.estatify-active-filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--estatify-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
}

.estatify-sort-wrapper,
.estatify-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.estatify-sort-wrapper label,
.estatify-per-page-wrapper label {
    color: var(--estatify-text-muted);
    white-space: nowrap;
}

.estatify-sort-select,
.estatify-per-page-select,
.estatify-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    background: var(--estatify-bg);
    font-size: 14px;
    color: var(--estatify-text);
    cursor: pointer;
    transition: var(--estatify-transition);
}

.estatify-sort-select:focus,
.estatify-per-page-select:focus,
.estatify-filter-select:focus {
    outline: none;
    border-color: var(--estatify-primary);
}

/* ========== ACTIVE FILTERS ========== */
.estatify-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--estatify-primary-light);
    border-radius: var(--estatify-radius-lg);
}

.estatify-active-filters-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--estatify-text);
}

.estatify-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.estatify-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--estatify-bg);
    border: 1px solid var(--estatify-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--estatify-text);
}

.estatify-active-filter-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--estatify-text-muted);
    transition: var(--estatify-transition);
}

.estatify-active-filter-tag button:hover {
    color: var(--estatify-danger);
}

.estatify-clear-all-filters {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--estatify-danger);
    background: none;
    border: 1px solid var(--estatify-danger);
    border-radius: var(--estatify-radius);
    cursor: pointer;
    transition: var(--estatify-transition);
}

.estatify-clear-all-filters:hover {
    background: var(--estatify-danger);
    color: white;
}

/* ========== ARCHIVE LAYOUT ========== */
.estatify-archive-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .estatify-archive-layout {
        grid-template-columns: var(--estatify-sidebar-width) 1fr;
    }
}

/* ========== FILTERS SIDEBAR ========== */
.estatify-filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--estatify-bg);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--estatify-shadow-xl);
}

.estatify-filters-sidebar.estatify-open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .estatify-filters-sidebar {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        transform: none;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
}

.estatify-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--estatify-transition);
}

.estatify-filters-overlay.estatify-open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .estatify-filters-overlay {
        display: none;
    }
}

.estatify-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--estatify-border);
}

.estatify-filters-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.estatify-filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--estatify-bg-alt);
    border: none;
    border-radius: var(--estatify-radius);
    cursor: pointer;
    font-size: 18px;
    color: var(--estatify-text);
}

@media (min-width: 1024px) {
    .estatify-filters-close {
        display: none;
    }
}

/* ========== FILTER GROUPS ========== */
.estatify-filter-group {
    margin-bottom: 24px;
}

.estatify-filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--estatify-text);
    margin-bottom: 12px;
}

.estatify-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.estatify-checkbox-label,
.estatify-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--estatify-text-light);
    cursor: pointer;
    transition: var(--estatify-transition);
}

.estatify-checkbox-label:hover,
.estatify-radio-label:hover {
    color: var(--estatify-text);
}

.estatify-checkbox-label input,
.estatify-radio-label input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--estatify-primary);
}

/* Filter Listing Type (Radio as buttons) */
.estatify-filter-listing-type {
    display: flex;
    gap: 8px;
}

.estatify-filter-listing-type .estatify-radio-label {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    background: var(--estatify-bg-alt);
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
}

.estatify-filter-listing-type .estatify-radio-label input {
    display: none;
}

.estatify-filter-listing-type .estatify-radio-label:has(input:checked) {
    background: var(--estatify-primary);
    border-color: var(--estatify-primary);
    color: white;
}

/* Price Range Inputs */
.estatify-price-range-inputs,
.estatify-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.estatify-price-range-inputs input,
.estatify-range-inputs input,
.estatify-range-inputs select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    font-size: 14px;
    transition: var(--estatify-transition);
}

.estatify-price-range-inputs input:focus,
.estatify-range-inputs input:focus,
.estatify-range-inputs select:focus {
    outline: none;
    border-color: var(--estatify-primary);
}

/* Filter Actions */
.estatify-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--estatify-border);
}

.estatify-filter-actions .estatify-btn {
    flex: 1;
}

/* Show More/Less Features */
.estatify-show-more-features,
.estatify-show-less-features {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--estatify-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.estatify-show-less-features {
    margin-top: 8px;
    border-top: 1px solid var(--estatify-border);
    width: 100%;
}

/* ========== HIERARCHICAL PROPERTY TYPES ========== */
.estatify-property-types-hierarchical {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.estatify-property-type-parent {
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    background: var(--estatify-bg);
    transition: var(--estatify-transition);
}

.estatify-property-type-parent:hover {
    border-color: var(--estatify-primary-light);
}

.estatify-property-type-parent.expanded {
    border-color: var(--estatify-primary);
    box-shadow: 0 2px 8px var(--estatify-primary-light);
}

.estatify-property-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.estatify-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--estatify-bg-alt);
    border: none;
    border-radius: var(--estatify-radius);
    cursor: pointer;
    color: var(--estatify-text-light);
    transition: var(--estatify-transition);
    flex-shrink: 0;
}

.estatify-expand-toggle:hover {
    background: var(--estatify-primary-light);
    color: var(--estatify-primary);
}

.estatify-expand-toggle i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.estatify-property-type-parent.expanded .estatify-expand-toggle i {
    transform: rotate(90deg);
}

.estatify-parent-label {
    flex: 1;
    font-weight: 500;
    color: var(--estatify-text);
    margin: 0;
}

.estatify-parent-label input[type="checkbox"]:indeterminate {
    accent-color: var(--estatify-primary);
}

.estatify-child-count {
    font-size: 12px;
    color: var(--estatify-text-muted);
    margin-left: 4px;
    transition: var(--estatify-transition);
}

.estatify-child-count.has-selection {
    color: var(--estatify-primary);
    font-weight: 600;
}

.estatify-property-type-children {
    padding: 0 12px 12px 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--estatify-border);
    margin-top: 4px;
    padding-top: 12px;
}

.estatify-child-label {
    font-size: 13px;
    color: var(--estatify-text-light);
    margin: 0;
}

.estatify-child-label:hover {
    color: var(--estatify-text);
}

/* Parent without children - no expand button */
.estatify-property-type-parent:not(:has(.estatify-property-type-children)) .estatify-expand-toggle {
    visibility: hidden;
    pointer-events: none;
}

/* ========== SEARCH FORM ========== */
.estatify-search-form-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
}

.estatify-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* NLP Search Input */
.estatify-nlp-search {
    position: relative;
}

.estatify-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--estatify-bg);
    border: 2px solid var(--estatify-border);
    border-radius: var(--estatify-radius-lg);
    transition: var(--estatify-transition);
}

.estatify-search-input-wrapper:focus-within {
    border-color: var(--estatify-primary);
    box-shadow: 0 0 0 4px var(--estatify-primary-light);
}

.estatify-search-input-wrapper > i:first-child {
    font-size: 20px;
    color: var(--estatify-text-muted);
    margin-left: 8px;
}

.estatify-search-input {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--estatify-text);
}

.estatify-search-input:focus {
    outline: none;
}

.estatify-search-input::placeholder {
    color: var(--estatify-text-muted);
}

.estatify-voice-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--estatify-bg-alt);
    border: none;
    border-radius: var(--estatify-radius);
    cursor: pointer;
    font-size: 18px;
    color: var(--estatify-text-light);
    transition: var(--estatify-transition);
}

.estatify-voice-search:hover {
    background: var(--estatify-primary-light);
    color: var(--estatify-primary);
}

.estatify-search-submit {
    padding: 12px 28px;
    font-size: 16px;
}

/* Quick Filters */
.estatify-quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.estatify-quick-filter {
    flex: 1;
    min-width: 140px;
}

.estatify-quick-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    background: var(--estatify-bg);
    font-size: 14px;
    color: var(--estatify-text);
    cursor: pointer;
}

/* Listing Type Toggle */
.estatify-listing-type-toggle {
    flex: 0 0 auto;
}

.estatify-toggle-group {
    display: flex;
    background: var(--estatify-bg-alt);
    border-radius: var(--estatify-radius);
    padding: 4px;
}

.estatify-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--estatify-radius);
    transition: var(--estatify-transition);
}

.estatify-toggle-label input {
    display: none;
}

.estatify-toggle-label:has(input:checked) {
    background: var(--estatify-primary);
    color: white;
}

/* Advanced Filters Toggle */
.estatify-advanced-filters-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--estatify-bg-alt);
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--estatify-text);
    white-space: nowrap;
}

.estatify-advanced-filters-toggle:hover {
    border-color: var(--estatify-primary);
    color: var(--estatify-primary);
}

/* Advanced Filters Panel */
.estatify-advanced-filters {
    padding: 24px;
    background: var(--estatify-bg-alt);
    border-radius: var(--estatify-radius-lg);
    margin-top: 8px;
}

.estatify-advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.estatify-advanced-filter label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--estatify-text);
    margin-bottom: 10px;
}

.estatify-range-selects {
    display: flex;
    align-items: center;
    gap: 8px;
}

.estatify-range-selects select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    background: var(--estatify-bg);
    font-size: 14px;
}

.estatify-advanced-filters-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--estatify-border);
}

/* ========== RESULTS WRAPPER ========== */
.estatify-results-wrapper {
    position: relative;
}

/* Loading Overlay */
.estatify-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.estatify-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--estatify-border);
    border-top-color: var(--estatify-primary);
    border-radius: 50%;
    animation: estatify-spin 1s linear infinite;
}

@keyframes estatify-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== PROPERTY GRID ========== */
.estatify-property-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .estatify-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .estatify-property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== NO RESULTS ========== */
.estatify-no-results,
.estatify-search-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    color: var(--estatify-text-light);
}

.estatify-no-results i,
.estatify-search-no-results i {
    font-size: 64px;
    color: var(--estatify-border);
    margin-bottom: 24px;
}

.estatify-no-results h3,
.estatify-search-no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--estatify-text);
    margin: 0 0 12px 0;
}

.estatify-no-results p,
.estatify-search-no-results p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 0 24px 0;
}

/* ========== SEARCH EMPTY STATE ========== */
.estatify-search-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.estatify-search-empty-content {
    text-align: center;
    max-width: 500px;
}

.estatify-search-empty-content i {
    font-size: 72px;
    color: var(--estatify-border);
    margin-bottom: 24px;
}

.estatify-search-empty-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--estatify-text);
    margin: 0 0 12px 0;
}

.estatify-search-empty-content p {
    font-size: 16px;
    color: var(--estatify-text-light);
    margin: 0 0 32px 0;
}

.estatify-search-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.estatify-search-example {
    padding: 10px 18px;
    background: var(--estatify-bg-alt);
    border: 1px solid var(--estatify-border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--estatify-text-light);
    cursor: pointer;
    transition: var(--estatify-transition);
}

.estatify-search-example:hover {
    background: var(--estatify-primary-light);
    border-color: var(--estatify-primary);
    color: var(--estatify-primary);
}

/* ========== SEARCH RESULTS HEADER ========== */
.estatify-search-results-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--estatify-bg-alt);
    border-radius: var(--estatify-radius-lg);
}

.estatify-search-results-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--estatify-text);
}

.estatify-search-results-count span {
    color: var(--estatify-primary);
}

.estatify-search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.estatify-search-sort label {
    color: var(--estatify-text-muted);
}

/* ========== PAGINATION ========== */
.estatify-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.estatify-page-numbers {
    display: flex;
    gap: 4px;
}

.estatify-page-link {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--estatify-text);
    background: var(--estatify-bg);
    border: 1px solid var(--estatify-border);
    border-radius: var(--estatify-radius);
    cursor: pointer;
    transition: var(--estatify-transition);
}

.estatify-page-link:hover:not(.estatify-active) {
    border-color: var(--estatify-primary);
    color: var(--estatify-primary);
}

.estatify-page-link.estatify-active {
    background: var(--estatify-primary);
    border-color: var(--estatify-primary);
    color: white;
}

.estatify-page-link.estatify-prev,
.estatify-page-link.estatify-next {
    padding: 0 16px;
}

.estatify-page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--estatify-text-muted);
}

/* ========== LOAD MORE ========== */
.estatify-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.estatify-load-more {
    padding: 14px 32px;
    font-size: 15px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 767px) {
    .estatify-property-archive,
    .estatify-property-search {
        padding: 20px 0 40px;
    }
    
    .estatify-archive-title,
    .estatify-search-title {
        font-size: 24px;
    }
    
    .estatify-archive-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .estatify-sort-wrapper,
    .estatify-per-page-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .estatify-sort-select,
    .estatify-per-page-select {
        flex: 1;
    }
    
    .estatify-quick-filters {
        flex-direction: column;
    }
    
    .estatify-quick-filter {
        width: 100%;
    }
    
    .estatify-toggle-group {
        width: 100%;
    }
    
    .estatify-toggle-label {
        flex: 1;
    }
    
    .estatify-search-input-wrapper {
        flex-wrap: wrap;
    }
    
    .estatify-search-input {
        width: 100%;
        order: -1;
    }
    
    .estatify-search-submit {
        width: 100%;
        margin-top: 8px;
    }
    
    .estatify-pagination {
        flex-wrap: wrap;
    }
    
    .estatify-page-link.estatify-prev,
    .estatify-page-link.estatify-next {
        width: 100%;
        justify-content: center;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .estatify-spinner,
    .estatify-property-grid,
    .estatify-btn,
    .estatify-page-link {
        animation: none;
        transition: none;
    }
}

/* Focus styles */
.estatify-btn:focus-visible,
.estatify-page-link:focus-visible,
.estatify-filter-toggle:focus-visible,
.estatify-search-input:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--estatify-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .estatify-filters-sidebar,
    .estatify-archive-controls,
    .estatify-pagination,
    .estatify-load-more-wrapper {
        display: none !important;
    }
    
    .estatify-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
