.selected-homes-sidebar {
    /* Raleway's default figures sit low. */
    font-variant-numeric: lining-nums;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 60px;
    min-width: 60px;
    background: #fff;
    border: solid 1px #f5f3f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.25s ease, min-width 0.25s ease;
}

.selected-homes-toggle-btn {
    width: 36px;
    height: 19px;
    border: none;
    border-radius: 16px;
    background-color: #e0e0e0;
    color: var(--hoa-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.selected-homes-toggle-btn .material-symbols-outlined {
    font-size: 16px;
}

.selected-homes-sidebar-collapsed {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.selected-homes-sidebar-label {
    transform: rotate(90deg);
    white-space: nowrap;
    margin-top: 66px;
}

.selected-homes-sidebar-expanded {
    display: none;
}

.selected-homes-sidebar.is-expanded {
    width: 362px;
    min-width: 362px;
    box-shadow: inset 0 0 0 1px #c0c0c0;
    align-items: stretch;
}

.selected-homes-sidebar.is-expanded .selected-homes-sidebar-collapsed {
    display: none;
}

.selected-homes-sidebar.is-expanded .selected-homes-sidebar-expanded {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px 11px 8px 12px;
    overflow-y: auto;
}

.selected-homes-sidebar.is-expanded .selected-homes-toggle-btn {
    margin-top: 0;
    margin-bottom: 0;
}

.selected-homes-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.selected-homes-expanded-header h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.71;
    color: var(--hoa-dark-blue);
}

.selected-homes-expanded-header .selected-homes-toggle-btn {
    flex-shrink: 0;
}

.selected-homes-tabs {
    display: flex;
    align-items: center;
    background: var(--hoa-cream);
    border-radius: 20px;
    height: 24px;
    margin: 2px 1px 12px 0;
}

.selected-homes-tab {
    flex: 1;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--hoa-medium-grey);
    border-radius: 14px;
    padding: 0 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: normal;
    letter-spacing: -0.28px;
}

.selected-homes-tab.is-active {
    background: var(--hoa-beige);
    color: var(--hoa-dark-blue);
    font-weight: 600;
    letter-spacing: normal;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(10, 19, 9, 0.08);
}

.selected-homes-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f2933;
}

.selected-homes-empty-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #f8efea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.selected-homes-empty-icon-wrap img {
    width: 30px;
    height: 30px;
}

.selected-homes-empty-title {
    margin-bottom: 0.5rem;
}

.selected-homes-empty-subtitle {
    font-style: italic;
}

.selected-homes-empty-divider {
    width: 2rem;
    height: 0.125rem;
    background: #b5b8bc;
    border-radius: 0.125rem;
    margin: 1.5rem 0;
}

.selected-homes-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0.25rem 0;
}

.selected-homes-list.is-loading {
    pointer-events: none;
}

.selected-homes-list.is-single-layout {
    padding: 0;
}

.selected-home-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: stretch;
}

.selected-home-image-wrap {
    flex: 0 0 46.2%;
    max-width: 46.2%;
    background: #dfe3e7;
}

.selected-home-single-image-link {
    display: block;
    width: 100%;
    height: 100%;
}
.selected-home-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.selected-home-image-wrap .hoa-photo-frame {
    width: 100%;
    /* Fills the card when its text is taller than the 3:2 photo. */
    height: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px 0 0 6px;
}

.selected-home-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 8px 6px;
}

.selected-home-status-wrap {
    display: flex;
    justify-content: space-between;
}

.selected-home-status-wrap .selected-home-status-tag {
    margin: 6px 0;
}

.selected-home-status-tag {
    background: var(--hoa-beige);
    padding: 3px 7px;
    border-radius: 0;
    border-bottom-right-radius: 10px;
    margin-bottom: 4px;
    line-height: 1.4 !important;
}

.selected-home-address {
    margin-bottom: 2px;
    line-height: 1.25;
}

.selected-home-stats {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 11px;
    line-height: 1.27;
}

.selected-home-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-home-type-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-home-details-link {
    margin-top: auto;
    width: fit-content;
    margin-left: auto;
    color: var(--hoa-rust);
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.selected-home-details-link .material-symbols-outlined {
    font-size: 14px;
    color: var(--hoa-rust);
}

.selected-home-remove-btn {
    margin-left: auto;
    border: none;
    background: transparent;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
}

.selected-home-remove-btn .material-symbols-outlined {
    font-size: 1.25rem;
    color: #66707a;
}

.selected-home-single-card {
    background: #fff;
    overflow: hidden;
}

.selected-home-single-card.is-refreshing {
    animation: selected-home-refresh-in 220ms ease-out both;
}

.selected-home-single-image-wrap {
    width: 100%;
    margin: 0 0 6px;
    --hoa-photo-aspect-ratio: 339 / 210;
}

.selected-home-single-image-wrap .hoa-photo-frame {
    border-radius: 0 10px 10px 10px;
}

.selected-home-detail-btn-link {
    text-decoration: none;
}

.selected-home-single-content {
    display: flex;
    flex-direction: column;
    color: var(--hoa-dark-blue);
}

.selected-home-single-status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 6px 1px;
}

.selected-home-single-status-row .selected-home-status-tag {
    width: fit-content;
    margin-bottom: 0;
    padding: 6px 14px 6px 10px;
    border-radius: 0 4px 20px 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5 !important;
    color: var(--hoa-dark-blue);
}

.selected-home-single-status-row .selected-home-status-tag .font-semibold {
    font-weight: 500;
}

.selected-home-single-address {
    margin: 0 0 6px 1px;
    line-height: 1.1;
}

.selected-home-single-stats {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 4px;
}

.selected-home-single-stats-divider {
    margin: 0 5.5px 1px 7px;
    font-weight: 300;
}

.selected-home-single-meta {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.57;
    margin-left: 1px;
}

.selected-home-single-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-home-single-description {
    margin: 0 0 0 1px;
    font-size: 14px;
    line-height: 1.5;
}

.selected-home-single-description .hoa-text-sm {
    line-height: 1.5;
}

.selected-home-single-description p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    line-height: 1.5;
    color: var(--hoa-dark-blue);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--selected-home-description-lines, 3);
    line-clamp: var(--selected-home-description-lines, 3);
}

.selected-home-single-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.selected-home-single-actions .hoa-btn {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.selected-home-single-footnote {
    margin-top: 0.875rem;
    color: var(--hoa-dark-grey);
    line-height: 1.3;
}

.selected-home-single-card-skeleton .selected-home-single-image-wrap {
    border-radius: 0 10px 10px 10px;
    overflow: hidden;
}

.selected-home-single-content-skeleton {
    padding-top: 0.5rem;
}

.selected-home-skeleton-row {
    margin-bottom: 0.5rem;
}

.selected-home-skeleton-block {
    display: flex;
    border-radius: 0.375rem;
    /* Horizontal shimmer gives users immediate "loading new data" feedback. */
    background: linear-gradient(90deg, #f1f2f4 25%, #e7eaee 50%, #f1f2f4 75%);
    background-size: 200% 100%;
    animation: selected-home-skeleton-shimmer 900ms linear infinite;
}

.selected-home-skeleton-image {
    width: 100%;
}

.selected-home-skeleton-pill {
    width: 11.5rem;
    height: 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

.selected-home-skeleton-title {
    width: 88%;
    height: 1.5rem;
}

.selected-home-skeleton-stats {
    width: 66%;
    height: 1.125rem;
}

.selected-home-skeleton-meta {
    width: 55%;
    height: 1.125rem;
}

.selected-home-skeleton-description {
    width: 100%;
    height: 3.125rem;
    margin-top: 0.375rem;
}

.selected-home-skeleton-button {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
}

@keyframes selected-home-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes selected-home-refresh-in {
    /* Subtle fade/slide so similar listings still feel updated. */
    0% {
        opacity: 0.65;
        transform: translateY(0.25rem);
        filter: saturate(0.93);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

.building-card {
    color: var(--hoa-dark-blue);
    font-variant-numeric: lining-nums;
}

.building-card-stats {
    margin: 10px 0 1px 1px;
    font-size: 14px;
    line-height: 2.29;
}

.building-card-figure {
    font-weight: 500;
}

.building-card-name {
    margin: 1px 0 3px 1px;
    font-family: 'Rufina', serif;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.1;
}

.building-card-price {
    margin: 3px 0 15px 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.17;
    color: var(--hoa-rust);
}

.building-card-text {
    margin: 15px 0 18px 1px;
    font-size: 14px;
    line-height: 1.5;
}

.building-card-button {
    width: 100%;
    min-height: 40px;
    height: 40px;
    margin: 21px 0 0 1px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.selected-homes-compare-helper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem 1.75rem;
}

.selected-homes-compare-helper-icon-wrap {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 50%;
    background: rgba(183, 99, 62, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.selected-homes-compare-helper-icon-wrap img {
    width: 1.875rem;
    height: 1.875rem;
}

.selected-homes-compare-helper-subtitle {
    font-style: italic;
    color: var(--hoa-dark-grey);
}

@media (max-width: 768px) {
    .selected-homes-sidebar {
        display: none;
    }
}