/* Main Layout */
.bo-listing-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
}

.bo-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Left Column */
.bo-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 24px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bo-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.bo-sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.bo-reset-filters-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
}

.bo-reset-filters-btn:hover {
    color: #333;
}

/* Search */
.bo-search-wrapper {
    margin-bottom: 20px;
}

.bo-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    background: #f8f8f8;
}

.bo-search-input:focus {
    outline: none;
    border-color: #2c7a4d;
    background: white;
}

/* Badge Filters */
.bo-badge-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.bo-badge-btn {
    flex: 1;
    padding: 8px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.bo-badge-btn.is-active {
    background: #2c7a4d;
    border-color: #2c7a4d;
    color: white;
}

/* Categories List */
.bo-categories-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.bo-cat-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.bo-cat-item input {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.bo-cat-item__label {
    flex: 1;
    cursor: pointer;
    color: #333;
}

.bo-cat-count {
    color: #999;
    font-size: 12px;
}

/* Sidebar Footer */
.bo-sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.bo-apply-filters-btn {
    width: 100%;
    padding: 12px;
    background: #2c7a4d;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bo-apply-filters-btn:hover {
    background: #1e5a38;
}

/* Main Content */
.bo-main {
    flex: 1;
    padding: 24px 32px;
}

/* Map Container */
.bo-map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#bo-map {
    width: 100%;
    height: 100%;
}

/* Results Header */
.bo-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bo-results-count {
    color: #666;
    font-size: 14px;
}

.bo-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bo-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.bo-active-filter button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

/* Grid */
.bo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Card */
.bo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
}

.bo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.bo-card__image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.bo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bo-card__content {
    padding: 16px;
}

.bo-card__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.bo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.bo-badge--featured {
    background: #fff3e0;
    color: #e67e22;
}

.bo-badge--new {
    background: #e8f5e9;
    color: #2c7a4d;
}

.bo-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.bo-cat-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.bo-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.bo-card__location {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
}

.bo-card__offer {
    font-size: 13px;
    color: #2c7a4d;
    background: #e8f5e9;
    padding: 8px;
    border-radius: 8px;
    margin: 8px 0;
}

.bo-card__details-btn {
    background: none;
    border: none;
    color: #2c7a4d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0 0;
    margin-top: 8px;
}

.bo-card__details-btn:hover {
    text-decoration: underline;
}

/* Pagination */
.bo-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bo-page-btn {
    min-width: 36px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.bo-page-btn.is-current {
    background: #2c7a4d;
    border-color: #2c7a4d;
    color: white;
}

/* Modal */
.bo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.bo-modal.is-open {
    display: flex;
}

.bo-modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bo-modal-close {
    position: sticky;
    top: 12px;
    right: 12px;
    float: right;
    background: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Modal Body */
.bo-modal-body {
    padding: 32px;
}

.bo-modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bo-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.bo-modal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bo-modal-location {
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bo-modal-offer {
    background: #e8f5e9;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
}

.bo-modal-offer h4 {
    margin: 0 0 8px 0;
    color: #2c7a4d;
}

.bo-modal-details {
    margin: 20px 0;
}

.bo-modal-details p {
    margin: 8px 0;
}

.bo-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.bo-modal-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.bo-modal-btn--website {
    background: #f0f0f0;
    color: #333;
}

.bo-modal-btn--phone {
    background: #2c7a4d;
    color: white;
}

.bo-modal-btn--email {
    background: #e8f5e9;
    color: #2c7a4d;
}

/* Loading */
.bo-loading {
    text-align: center;
    padding: 60px;
}

.bo-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #2c7a4d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* No Results */
.bo-no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .bo-layout {
        flex-direction: column;
    }
    
    .bo-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .bo-main {
        padding: 20px;
    }
    
    .bo-map-container {
        height: 300px;
    }
    
    .bo-grid {
        grid-template-columns: 1fr;
    }
}