/* ==========================================
   v5.23 ADDITIONS
   1. View All Units Button (community page)
   2. View All Units Page (full page styles)
   
   Matches community-property.css patterns:
   - Same breakout: width:100vw + left:50% + translateX(-50%)
   - Same content width: 1200px
   - Same card sizing: calc(50% - 14px) + gap:28px
   - Same responsive breakpoints
   - Same badge colors
========================================== */


/* ==========================================
   PART 1: VIEW ALL UNITS BUTTON
   (on community page, Units section header)
========================================== */

.spc-units-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.spc-units-heading {
    color: var(--spc-primary, #5A4F42);
    font-family: var(--spc-font-heading, 'Sofia Pro', sans-serif);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.spc-view-all-units-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spc-view-all-units-text {
    color: var(--spc-primary, #5A4F42);
    font-size: 18px;
    font-family: var(--spc-font-body, 'Afacad Flux', sans-serif);
    font-weight: 400;
    text-transform: capitalize;
    transition: color 0.2s ease;
}

.spc-view-all-units-icon {
    width: 36px;
    height: 36px;
    background: var(--spc-primary, #5A4F42);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.spc-view-all-units-btn:hover .spc-view-all-units-text {
    color: #928572;
}

.spc-view-all-units-btn:hover .spc-view-all-units-icon {
    background: #928572;
    color: #FFFFFF;
}


/* ==========================================
   PART 2: VIEW ALL UNITS PAGE
   
   .vau-page mirrors .spc-page layout:
   - overflow-x: hidden
   - flex column + center
   - Breakout sections use translateX(-50%)
========================================== */

.vau-page {
    width: 100%;
    background: #FFFFFF;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ---- BREADCRUMB: Same pattern as .spc-breadcrumb ---- */
.vau-breadcrumb {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #EFEDEB;
    display: flex;
    justify-content: center;
}

.vau-breadcrumb-inner {
    width: 100%;
    max-width: 1200px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vau-breadcrumb-link {
    color: #5A4F42;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
    text-decoration: none;
}

.vau-breadcrumb-link:hover {
    opacity: 0.7;
    color: #928572 !important;
}

.vau-breadcrumb-sep {
    color: #5A4F42;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 300;
}

.vau-breadcrumb-current {
    color: #5A4F42;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
}

/* ---- GO BACK LINK ---- */
.vau-back-link-wrap {
    width: 100%;
    max-width: 1200px;
    padding: 32px 0 0;
}

.vau-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5A4F42;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    text-transform: capitalize;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vau-back-link:hover {
    color: #928572;
}

/* ---- UNITS CONTAINER: Same as .spc-content ---- */
.vau-units-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 0 80px;
}

/* ---- GRID: Same as .spc-units-grid ---- */
.vau-units-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.vau-units-row {
    display: flex;
    justify-content: flex-start;
    gap: 28px;
}

/* Cards: Same as .spc-unit-card = calc(50% - 14px) */
.vau-unit-card {
    width: calc(50% - 14px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.vau-unit-card:hover {
    transform: translateY(-4px);
}

.vau-unit-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* ---- UNIT IMAGE: Same as .spc-unit-image ---- */
.vau-unit-image {
    width: 100%;
    height: 329px;
    overflow: hidden;
}

.vau-unit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vau-unit-card:hover .vau-unit-image img {
    transform: scale(1.05);
}

.vau-unit-placeholder {
    width: 100%;
    height: 100%;
    background: #FAF9F7;
    border: 1px solid #E8E5DF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- CARD CONTENT ---- */
.vau-unit-content {
    padding: 20px;
    background: #FFFFFF;
    border-left: 1px solid #E8E5DF;
    border-right: 1px solid #E8E5DF;
    border-bottom: 1px solid #E8E5DF;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================
   BADGES — Same colors as .spc-badge-*
========================================== */
.vau-unit-badges {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
}

.vau-badge {
    padding: 5px 14px;
    border-radius: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: 'Afacad Flux', sans-serif;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

/* Move-in Ready / For Sale - Green #6A8375 */
.vau-badge-move-in-ready {
    background: #6A8375 !important;
    color: #FFFFFF !important;
}

/* Plan Ready Lot - Blue-gray #6B6D80 */
.vau-badge-plan-ready,
.vau-badge-plan-ready-lot {
    background: #6B6D80 !important;
    color: #FFFFFF !important;
}

/* Under Construction - transparent + outline */
.vau-badge-under-construction {
    background: transparent !important;
    outline: 1px solid #5A4F42 !important;
    color: #5A4F42 !important;
}

/* Estimated Completion */
.vau-badge-estimated {
    background: #F5F3F0 !important;
    color: #5A4F42 !important;
}

/* In Contract / Reserved - Gray #666666 */
.vau-badge-in-contract {
    background: #666666 !important;
    color: #FFFFFF !important;
}

/* Sold - Light gray #EEEEEE */
.vau-badge-sold {
    background: #EEEEEE !important;
    color: #5A4F42 !important;
}

/* Coming Soon - Light gray #EEEEEE, NO border */
.vau-badge-coming-soon {
    background: #EEEEEE !important;
    border-radius: 50px !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #5A4F42 !important;
}

/* Default fallback */
.vau-badge-default {
    background: #EEEEEE !important;
    color: #5A4F42 !important;
}

/* Promo badge - white bg + outline */
.vau-badge-promo {
    background: #FFFFFF !important;
    outline: 1px solid #E8E5DF !important;
    color: #5A4F42 !important;
}


/* ---- INFO ROW: Name + Location | Price ---- */
.vau-unit-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
}

.vau-unit-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.vau-unit-name {
    color: #5A4F42;
    font-size: 20px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.vau-unit-location {
    color: #766C61;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
}

.vau-unit-divider-v {
    width: 1px;
    align-self: stretch;
    background: #E8E5DF;
    flex-shrink: 0;
}

.vau-unit-info-right {
    width: 128px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.vau-unit-price-label {
    color: #766C61;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    text-align: right;
    width: 100%;
}

.vau-unit-price-value {
    color: #5A4F42;
    font-size: 20px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 500;
    text-align: right;
    width: 100%;
}

/* ---- DIVIDER ---- */
.vau-unit-divider-h {
    height: 1px;
    background: #E8E5DF;
}

/* ---- SPECS ROW ---- */
.vau-unit-specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vau-unit-spec {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vau-unit-spec svg {
    flex-shrink: 0;
}

.vau-spec-value {
    color: #5A4F42;
    font-size: 18px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
}

.vau-spec-label {
    color: #766C61;
    font-size: 14px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
}

/* ---- PAGINATION ---- */
.vau-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.vau-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5A4F42;
    color: #5A4F42;
    font-size: 20px;
    font-family: 'Afacad Flux', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vau-page-btn:hover {
    background: #5A4F42;
    color: #FFFFFF;
}

.vau-page-active {
    background: #5A4F42;
    color: #FFFFFF;
    cursor: default;
}

.vau-page-next {
    color: #5A4F42;
}


/* ==========================================
   RESPONSIVE — Same breakpoints as community
========================================== */

/* 1200px - 1439px */
@media (max-width: 1439px) {
    .vau-breadcrumb-inner {
        padding: 14px 80px;
    }
    
    .vau-back-link-wrap {
        padding: 32px 80px 0;
    }
    
    .vau-units-container {
        padding: 28px 80px 80px;
    }
}

/* 1024px - 1199px (MacBook) */
@media (max-width: 1199px) {
    .vau-breadcrumb-inner {
        padding: 14px 60px;
    }
    
    .vau-back-link-wrap {
        padding: 32px 60px 0;
    }
    
    .vau-units-container {
        padding: 28px 60px 60px;
    }
    
    .vau-unit-image {
        height: 280px;
    }
}

/* 768px - 1023px */
@media (max-width: 1023px) {
    .vau-breadcrumb-inner {
        padding: 12px 40px;
    }
    
    .vau-back-link-wrap {
        padding: 24px 40px 0;
    }
    
    .vau-units-container {
        padding: 24px 40px 60px;
    }
    
    .vau-units-row {
        flex-direction: column;
    }
    
    .vau-unit-card {
        width: 100%;
    }
    
    .vau-unit-image {
        height: 250px;
    }
    
    .spc-units-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* 481px - 767px */
@media (max-width: 767px) {
    .vau-breadcrumb-inner {
        padding: 10px 20px;
    }
    
    .vau-breadcrumb-link,
    .vau-breadcrumb-sep,
    .vau-breadcrumb-current {
        font-size: 12px;
    }
    
    .vau-back-link-wrap {
        padding: 20px 20px 0;
    }
    
    .vau-back-link {
        font-size: 16px;
    }
    
    .vau-units-container {
        padding: 20px 20px 40px;
    }
    
    .vau-units-grid {
        gap: 20px;
    }
    
    .vau-units-row {
        gap: 30px;
    }
    
    .vau-unit-image {
        height: 200px;
    }
    
    .vau-unit-content {
        padding: 15px;
    }
    
    .vau-unit-name {
        font-size: 18px;
    }
    
    .vau-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .vau-unit-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .vau-unit-divider-v {
        display: none;
    }
    
    .vau-unit-info-right {
        width: 100%;
        align-items: flex-start;
    }
    
    .vau-unit-price-label,
    .vau-unit-price-value {
        text-align: left;
    }
    
    .vau-unit-specs-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .vau-spec-value {
        font-size: 16px;
    }
    
    .vau-pagination {
        margin-top: 40px;
    }
    
    .spc-view-all-units-text {
        font-size: 16px;
    }
    
    .spc-view-all-units-icon {
        width: 32px;
        height: 32px;
    }
    
    .spc-units-heading {
        font-size: 22px;
    }
}

/* 376px - 480px */
@media (max-width: 480px) {
    .vau-breadcrumb-inner {
        padding: 8px 16px;
    }
    
    .vau-breadcrumb-link,
    .vau-breadcrumb-sep,
    .vau-breadcrumb-current {
        font-size: 11px;
    }
    
    .vau-back-link-wrap {
        padding: 16px 16px 0;
    }
    
    .vau-back-link {
        font-size: 15px;
    }
    
    .vau-units-container {
        padding: 16px 16px 30px;
    }
    
    .vau-unit-image {
        height: 180px;
    }
    
    .vau-unit-content {
        padding: 12px;
    }
    
    .vau-unit-name {
        font-size: 16px;
    }
    
    .vau-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .vau-spec-value {
        font-size: 14px;
    }
    
    .vau-spec-label {
        font-size: 12px;
    }
    
    .spc-view-all-units-text {
        font-size: 15px;
    }
    
    .spc-view-all-units-icon {
        width: 30px;
        height: 30px;
    }
    
    .spc-units-heading {
        font-size: 20px;
    }
}

/* iPhone SE (320px - 375px) */
@media (max-width: 375px) {
    .vau-breadcrumb-inner {
        padding: 6px 12px;
    }
    
    .vau-breadcrumb-link,
    .vau-breadcrumb-sep,
    .vau-breadcrumb-current {
        font-size: 10px;
    }
    
    .vau-back-link-wrap {
        padding: 14px 12px 0;
    }
    
    .vau-back-link {
        font-size: 14px;
        gap: 8px;
    }
    
    .vau-units-container {
        padding: 14px 12px 24px;
    }
    
    .vau-units-grid {
        gap: 16px;
    }
    
    .vau-units-row {
        gap: 24px;
    }
    
    .vau-unit-image {
        height: 160px;
    }
    
    .vau-unit-content {
        padding: 10px;
    }
    
    .vau-unit-name {
        font-size: 15px;
    }
    
    .vau-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .vau-spec-value {
        font-size: 13px;
    }
    
    .vau-spec-label {
        font-size: 11px;
    }
    
    .vau-pagination {
        margin-top: 30px;
        gap: 8px;
    }
    
    .vau-page-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .spc-units-heading {
        font-size: 18px;
    }
    
    .spc-view-all-units-text {
        font-size: 14px;
    }
    
    .spc-view-all-units-icon {
        width: 28px;
        height: 28px;
    }
}