.community-archive-toolbar {
    padding: 16px 24px;
    background: var(--color-white);
    border-bottom: 1px solid #e7edf5;
}

.community-archive-toolbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.community-archive-toolbar__inner-wrapper {
    display: flex;
    gap: 6px;
}

.community-archive-toolbar__filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.community-archive-toolbar__field {
    min-width: 120px;
}

.community-archive-toolbar__field select {
    width: 100%;
    padding: 10px 36px 10px 16px; 
    border-radius: 4px;
    border: 1px solid var(--color-gray-light);
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    background-image: url(../../assets/icons/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: right center;
    /* Можна додати inline svg стрілочки як background-image, якщо потрібно */
}

.community-archive-toolbar__sort {
    min-width: 160px;
}


.community-archive-wrapper {
    display: flex;
    flex-direction: row;
    background: var(--color-white);
    min-height: calc(100vh - 80px); 
}

.community-archive-map {
    width: 50%;
    position: relative;
    background: #f9fafb;
    border-right: 1px solid #e7edf5; 
}

.community-archive-map__canvas {
    width: 100%;
    height: 100%;
    border-radius: 0; 
    box-shadow: none;
}

.community-archive-listings {
    width: 50%;
    padding: 8px 0 40px;
    overflow-y: auto; 
    max-height: calc(100vh - 80px);
}

.community-archive-listings__header {
    padding: 0 32px 5px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e7edf5;
}

.community-archive-listings__count {
    font-size: 24px; 
    color: #0d1b2a;
    font-weight: 700;
    text-transform: none; 
    letter-spacing: normal;
}

.community-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.community-view-toggle:hover {
    background: transparent;
    color: #0d1b2a;
}

.community-view-toggle__icon {
    width: 24px;
    height: 24px;
    background-image: url(../../assets/icons/list.svg);
}

.community-archive-listings__grid {
    padding-left: 32px;
    padding-right: 32px;
    display: grid;
    gap: 32px 24px; 
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-archive-listings--list .community-archive-listings__grid {
    grid-template-columns: 1fr;
}

.community-card {
    background: transparent; 
    border-radius: 0;
    overflow: visible;
    border: none; 
    box-shadow: none;
    transition: none;
}
.community-card::after {
    background: transparent;
}

.community-card:hover {
    transform: none;
    box-shadow: none;
}

.community-card .property-card__image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-base);
    border-radius: var(--radius-xs);
    padding-bottom: 16px;
}

.community-card__badge {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    background: rgba(238, 244, 255, 0.95);
    color: #0033ff;
    border: 1px solid #0033ff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: none;
}

.community-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover;
}

.community-card__content {
    padding: 0; 
}

.community-card__title {
    font-size: 24px;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.community-card__address {
    line-height: var(--leading-relaxed);
    color: var(--color-gray);
    margin-bottom: 8px;
}

.community-card__homes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f4f8ff;
    border-radius: 14px;
}

.community-card__homes-count ,
.community-card__homes-label {
    color: #33475b;
    font-size: 14px;
    line-height: 1.4;
}

.community-card__homes-count {
    font-weight: 700;
}

.community-card__homes-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.community-card__info {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #7a8b9e;
    border-bottom: 1px solid #e7edf5;
    padding-bottom: 16px;
}

.community-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1;
    padding: 0 4px 0 0;
    width: fit-content;
    color: var(--color-primary);
    background: transparent;
    overflow: visible;
    transition: color 0.2s ease;
    text-decoration: none!important;
}

.community-card__link::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url(../../assets/icons/arrow-orange.svg);
    transition: var(--transition-base);
}

.community-card__link:hover {
    background: transparent;
    color: #e05e00;
    text-decoration: 1px underline #e05e00;
}

@media (max-width: 991px) {
    .community-archive-listings__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .community-archive-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .community-archive-toolbar__inner-wrapper {
        flex-wrap: wrap;
    }

    .community-archive-map {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e7edf5;
    }

    .community-archive-listings {
        width: 100%;
        max-height: none;
        padding: 24px 16px;
    }

    .community-view-toggle {
        display: none;
    }

    .community-archive-listings__header {
        padding-bottom: 8px;
    }
}