/* Archive Layout */
.bpa-archive { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }

.bpa-header { margin-bottom: 8px; }
.bpa-header h1 { font-size: 32px; font-weight: 700; color: #1e3a5f; margin: 40px 0 8px; line-height: 1.2; }
.bpa-header .bpa-subtitle { font-size: 15px; color: #6b7280; margin: 0 0 20px; }

/* Mobile Filter Toggle */
.bpa-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bpa-filter-toggle svg { flex-shrink: 0; }
.bpa-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: 4px;
}

/* Search Panel */
.bpa-search-panel { margin-bottom: 24px; }
.bpa-search-panel .bps-container { max-width: 100%; }
.bpa-search-panel .bps-form-container { margin-bottom: 0; }

/* Active Filters */
.bpa-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.bpa-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.bpa-clear-filters { color: #dc2626; font-size: 13px; text-decoration: none; font-weight: 500; }
.bpa-clear-filters:hover { text-decoration: underline; }

/* Results Bar */
.bpa-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 12px;
}
.bpa-count { font-size: 15px; color: #374151; }
.bpa-count strong { font-weight: 600; }

/* Sort Dropdown */
.bpa-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Property Grid */
.bpa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bpa-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bpa-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.bpa-card a { text-decoration: none; color: inherit; display: block; }

/* Card Image */
.bpa-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f3f4f6; }
.bpa-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.bpa-card:hover .bpa-card-img img { transform: scale(1.03); }
.bpa-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bpa-card-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
}

/* Card Content */
.bpa-card-body { padding: 16px; }
.bpa-card-price { font-size: 22px; font-weight: 700; color: #1e3a5f; margin-bottom: 4px; }
.bpa-card-price .bpa-price-suffix { font-size: 14px; font-weight: 400; color: #6b7280; }
.bpa-card-address { font-size: 15px; color: #374151; margin: 0 0 10px; line-height: 1.3; }
.bpa-card-meta { display: flex; gap: 16px; font-size: 13px; color: #6b7280; }
.bpa-card-meta span { display: flex; align-items: center; gap: 4px; }

/* No Results */
.bpa-empty { text-align: center; padding: 80px 20px; background: #f9fafb; border-radius: 12px; }
.bpa-empty-icon { font-size: 48px; margin-bottom: 16px; }
.bpa-empty h2 { font-size: 22px; color: #374151; margin: 0 0 8px; }
.bpa-empty p { color: #6b7280; margin: 0 0 20px; }
.bpa-empty a {
    display: inline-block;
    padding: 12px 32px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Pagination */
.bpa-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.bpa-pagination a,
.bpa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.bpa-pagination a { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.bpa-pagination a:hover { border-color: #1e3a5f; color: #1e3a5f; }
.bpa-pagination span.current { background: #1e3a5f; color: #fff; border: 1px solid #1e3a5f; }

/* Tablet */
@media (max-width: 900px) {
    .bpa-grid { grid-template-columns: repeat(2, 1fr); }
    .bpa-header h1 { font-size: 26px; }
}

/* Mobile */
@media (max-width: 768px) {
    .bpa-filter-toggle { display: flex; }
    .bpa-search-panel { display: none; }
    .bpa-search-panel.show { display: block; }
}

@media (max-width: 600px) {
    .bpa-archive { padding: 0 16px 40px; }
    .bpa-grid { grid-template-columns: 1fr; gap: 16px; }
    .bpa-header h1 { font-size: 22px; margin: 24px 0 8px; }
    .bpa-card-price { font-size: 20px; }
    .bpa-card-body { padding: 12px; }
    .bpa-card-meta { gap: 10px; font-size: 12px; }
    .bpa-results-bar { margin-bottom: 16px; padding-bottom: 10px; }
    .bpa-empty { padding: 50px 16px; }
    .bpa-pagination { margin-top: 30px; }
    .bpa-pagination a,
    .bpa-pagination span { min-width: 36px; height: 36px; font-size: 13px; padding: 0 8px; }
}
