/* Commercial building landing — consolidated page */

.commercial-building-page .page-content {
    background-color: #f4f5f6;
}

/* Office landing has no left sidebar — reclaim the microsite gutter */
.main-content.microsite.commercial-building-page {
    padding-left: 0;
}

/* Match the header/footer container (.fluid-container) so all three line up */
.main-content.microsite.commercial-building-page .page-content .body-wrap .section-outer .section-inner.cb-inner {
    width: auto;
    max-width: none;
    margin-left: 8vw;
    margin-right: 8vw;
    padding: 30px 0 60px;
}

@media (min-width: 768px) {
    .main-content.microsite.commercial-building-page .page-content .body-wrap .section-outer .section-inner.cb-inner {
        margin-left: 7.29vw;
        margin-right: 7.29vw;
    }
}

/* Hero header */
.cb-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.cb-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cb-hero-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cb-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cb-hero-title {
    margin: 0;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #00529B;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
}

.cb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    line-height: 1.2;
}

/* styles.css has `a:visited { color:#00529B; text-decoration: underline !important }`
   which otherwise turns visited download links blue-on-black. */
.cb-btn,
.cb-btn:link,
.cb-btn:visited,
.cb-btn:hover,
.cb-btn:focus,
.cb-btn:active {
    text-decoration: none !important;
}

.cb-btn:hover {
    opacity: 0.88;
}

.cb-btn-dark,
.cb-btn-dark:link,
.cb-btn-dark:visited,
.cb-btn-dark:hover,
.cb-btn-dark:focus {
    color: #fff;
}

.cb-btn-blue,
.cb-btn-blue:link,
.cb-btn-blue:visited,
.cb-btn-blue:hover,
.cb-btn-blue:focus {
    color: #fff;
}

.cb-btn-outline,
.cb-btn-outline:link,
.cb-btn-outline:visited,
.cb-btn-outline:hover,
.cb-btn-outline:focus {
    color: #111;
}

.cb-btn-outline {
    background: #fff;
    color: #111;
    border-color: #111;
}

.cb-btn-dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cb-btn-blue {
    background: #00529B;
    color: #fff;
    border-color: #00529B;
}

.cb-btn-full {
    width: 100%;
}

.cb-btn-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.cb-btn-download {
    flex-shrink: 0;
}

/* Brochure + Site Plan buttons sit side by side next to the title */
.cb-overview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Line Awesome icons inside buttons */
.cb-btn i,
.cb-load-more i {
    font-size: 17px;
    line-height: 1;
}

/* Gallery — masonry: two tall images + two stacked, all in one row */
.cb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 165px;
    gap: 12px;
    margin-bottom: 36px;
}

.cb-gallery-item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #ddd;
}

/* First two previews are full-height, remaining two stack in the last column.
   Position classes (.cb-gallery-pos-N) rather than :nth-child — tiles 2-4 sit inside
   the mobile thumbnail wrapper, so DOM order no longer equals grid order. */
.cb-gallery-count-4 .cb-gallery-pos-1,
.cb-gallery-count-4 .cb-gallery-pos-2 {
    grid-row: span 2;
}

/* Fewer than 4 previews — keep the row balanced */
.cb-gallery-count-1 {
    grid-template-columns: 1fr;
}

.cb-gallery-count-1 .cb-gallery-item,
.cb-gallery-count-2 .cb-gallery-item,
.cb-gallery-count-3 .cb-gallery-pos-1,
.cb-gallery-count-3 .cb-gallery-pos-2 {
    grid-row: span 2;
}

.cb-gallery-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep the tile shape if a gallery image fails to load */
.cb-gallery-item {
    background-color: #e9ecef;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 44px 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b2bb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

/* "View All" sits on the 4th preview when more images exist */
.cb-gallery-item-viewall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.cb-gallery-viewall-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
}

/* Mobile-only gallery pieces — invisible on desktop so the masonry grid is unchanged */
.cb-gallery-thumbs,
.cb-gallery-thumbs-track {
    display: contents;
}

.cb-gallery-hidden,
.cb-gallery-arrow,
.cb-gallery-viewall-mobile {
    display: none;
}

/* Overview row — stretch so left description can match enquiry box height */
.cb-overview-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-bottom: 48px;
    align-items: stretch;
}

.cb-overview-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Title row — brochure button sits inline with the building name */
.cb-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d5d9dd;
}

.cb-overview-head-text {
    min-width: 0;
}

.cb-overview-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #00529B;
}

.cb-overview-address {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* Desktop: stats sit side by side at their natural width with a fixed gap,
   instead of being stretched into equal columns across the full row. */
.cb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin: 0 0 8px;
}

.cb-stat {
    margin: 0;
    flex: 0 0 auto;
}

.cb-stat dt {
    font-size: 11px;
    font-weight: 700;
    color: #00529B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.cb-stat dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.cb-description {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cb-description-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #00529B;
    letter-spacing: 0.02em;
}

/* Plain-text preview — height follows content (no forced gap before Read more) */
.cb-description-preview {
    max-width: 100%;
    flex: 0 1 auto;
    max-height: 420px;
    overflow: hidden;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

.cb-description-preview p {
    margin: 0;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cb-description p {
    margin: 0 0 14px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.cb-desc-full-src {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.cb-description p:last-child {
    margin-bottom: 0;
}

.cb-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: none;
    color: #00529B;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cb-read-more:hover,
.cb-read-more:focus {
    color: #003d75;
}

/* Description Read More modal — ~94% of browser */
.cb-desc-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
}

.cb-desc-modal[hidden] {
    display: none !important;
}

.cb-desc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
}

.cb-desc-modal-dialog {
    position: relative;
    z-index: 1;
    width: 94vw;
    height: 94vh;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    padding: 20px 22px 18px;
}

.cb-desc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #222;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cb-desc-modal-close:hover {
    background: #e5e7eb;
}

.cb-desc-modal-title {
    flex: 0 0 auto;
    margin: 0 48px 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #00529B;
}

.cb-desc-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
}

.cb-desc-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: 0;
    background: #fff;
}

body.cb-desc-modal-open {
    overflow: hidden;
}

/* Enquiry form */
.cb-enquiry {
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    padding: 24px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cb-enquiry-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #00529B;
}

/* Collapsed-form pill — mobile only */
.main-content.microsite.commercial-building-page .cb-enquiry-toggle {
    display: none;
}

.cb-enquiry-form .cb-field {
    margin-bottom: 14px;
}

.cb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cb-enquiry-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cb-required {
    color: #c0392b;
}

/* Explicit colours: .page-content is color:#fff and Bootstrap's `input { color: inherit }`
   would otherwise render white-on-white (type="tel" isn't covered by the global rules). */
.main-content.microsite.commercial-building-page .cb-enquiry-form input[type="text"],
.main-content.microsite.commercial-building-page .cb-enquiry-form input[type="email"],
.main-content.microsite.commercial-building-page .cb-enquiry-form input[type="tel"],
.main-content.microsite.commercial-building-page .cb-enquiry-form textarea {
    width: 100%;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.5;
    color: #222;
    -webkit-text-fill-color: #222;
    caret-color: #222;
    background-color: #fff;
    box-sizing: border-box;
}

.main-content.microsite.commercial-building-page .cb-enquiry-form input:focus,
.main-content.microsite.commercial-building-page .cb-enquiry-form textarea:focus {
    outline: none;
    border-color: #00529B;
    box-shadow: 0 0 0 2px rgba(0, 82, 155, 0.15);
}

.main-content.microsite.commercial-building-page .cb-enquiry-form input::placeholder,
.main-content.microsite.commercial-building-page .cb-enquiry-form textarea::placeholder {
    color: #999;
    -webkit-text-fill-color: #999;
}

.main-content.microsite.commercial-building-page .cb-enquiry-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Honeypot — off-screen, not display:none (some bots skip hidden inputs) */
.cb-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Validation states */
.main-content.microsite.commercial-building-page .cb-enquiry-form input.cb-input-error,
.main-content.microsite.commercial-building-page .cb-enquiry-form textarea.cb-input-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.cb-field-error {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
    color: #c0392b;
}

/* reCAPTCHA widget */
.cb-recaptcha-field .g-recaptcha {
    min-height: 78px;
}

.cb-recaptcha-field .g-recaptcha > div {
    max-width: 100%;
}

/* Submission response */
.cb-form-response {
    display: none;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.cb-form-response-error {
    background: #fdecea;
    border: 1px solid #f1b4ae;
    color: #8f2318;
}

.cb-form-response-success {
    background: #eaf6ee;
    border: 1px solid #b7dfc3;
    color: #1f6b3a;
}

.cb-btn-busy {
    opacity: 0.7;
    cursor: progress;
}

/* Available spaces list */
.cb-spaces-title {
    margin: 0 0 20px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #00529B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Fully leased (no visible units) — mirrors the old floorplans "is fully leased" block */
.cb-spaces-empty {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
}

.cb-spaces-empty-rule {
    width: 100%;
    max-width: 520px;
    height: 1px;
    margin: 0 auto;
    background: #00529B;
}

.main-content.microsite.commercial-building-page .cb-spaces-empty-title {
    margin: 0;
    padding: 18px 10px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #00529B;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.main-content.microsite.commercial-building-page .cb-spaces-empty-desc {
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: center;
}

.cb-spaces-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .cb-spaces-empty {
        padding: 28px 16px;
    }

    .main-content.microsite.commercial-building-page .cb-spaces-empty-title {
        font-size: 24px;
    }

    .cb-spaces-empty-actions .cb-btn {
        width: 100%;
    }
}

.cb-space-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cb-space-hidden {
    display: none;
}

.cb-space-thumb {
    width: 100px;
    height: 72px;
    flex: 0 0 100px;
    padding: 0;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.cb-space-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cb-space-thumb:hover {
    border-color: #00529B;
}

/* Units with supporting images: small "stack" badge so users know there's a gallery */
.cb-space-thumb {
    position: relative;
}

.cb-space-thumb-multi::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.6);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='14' height='14' rx='2'/%3E%3Cpath d='M3 17V5a2 2 0 0 1 2-2h12'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cb-popup-count {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
}

/* No floor plan image uploaded (or the file failed to load) */
.cb-space-thumb-empty {
    cursor: default;
    background-color: #f1f3f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b2bb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='1.5'/%3E%3Cpath d='M3 10h8M11 10V3M11 14h10M15 21v-7'/%3E%3C/svg%3E");
}

.cb-space-thumb-empty:hover {
    border-color: #ccc;
}

.cb-space-info {
    flex: 1 1 180px;
    min-width: 140px;
    max-width: 180px;
}

.cb-space-sqft {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.cb-space-sqft span {
    font-size: inherit;
    font-weight: 500;
    color: inherit;
}

.cb-space-floor {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.cb-space-meta {
    display: flex;
    gap: 32px;
    flex: 1 1 220px;
    min-width: 160px;
}

.main-content.microsite.commercial-building-page .cb-space-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.main-content.microsite.commercial-building-page .cb-space-actions .icon-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.main-content.microsite.commercial-building-page .cb-space-actions .icon-list li {
    display: block;
    float: none;
    margin: 0;
    overflow: visible;
    line-height: 0;
}

/* Round share controls — same pill feel as .cb-btn (border-radius: 999px) */
.main-content.microsite.commercial-building-page .cb-space-actions .icon-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.main-content.microsite.commercial-building-page .cb-space-actions .icon-list li a:hover {
    opacity: 0.88;
}

.main-content.microsite.commercial-building-page .cb-space-actions .icon-list li img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.cb-space-meta-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cb-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #00529B;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cb-meta-value {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.main-content.microsite.commercial-building-page .cb-space-actions .cb-btn {
    font-size: 11px;
    padding: 10px 18px;
}

.cb-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: none;
    border: none;
    color: #00529B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
}

.cb-load-more:hover {
    text-decoration: underline;
}

/* Map — fills the content container */
.cb-map-wrap {
    margin-top: 40px;
}

.cb-map-wrap #map_wrap_outer {
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}

/* "Get Directions" under the map — mobile only (per mockup) */
.main-content.microsite.commercial-building-page .cb-map-directions {
    display: none;
    margin: 10px 0 0;
    text-align: right;
    font-size: 13px;
}

.main-content.microsite.commercial-building-page .cb-map-directions a,
.main-content.microsite.commercial-building-page .cb-map-directions a:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00529B;
    font-weight: 600;
    text-decoration: underline !important;
}

.main-content.microsite.commercial-building-page .cb-map-directions a i {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 991px) {
    .cb-gallery-grid {
        grid-auto-rows: 120px;
    }

    .cb-overview-row {
        grid-template-columns: 1fr;
    }

    .cb-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .cb-space-item {
        flex-wrap: wrap;
    }

    .cb-space-info {
        flex: 1 1 auto;
    }

    .cb-space-meta {
        flex: 1 1 100%;
    }

    .main-content.microsite.commercial-building-page .cb-space-actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------------ */
/* Mobile (per mobile mockup)                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
    /* Extra top padding clears the site's fixed .navbar-burger (ends ~108px from the top) */
    .main-content.microsite.commercial-building-page .page-content .body-wrap .section-outer .section-inner.cb-inner {
        margin-left: 16px;
        margin-right: 16px;
        padding: 56px 0 40px;
    }

    /* Hero: logo + name on one row, two half-width pills underneath */
    .cb-hero-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 20px;
    }

    .cb-hero-brand {
        gap: 12px;
    }

    .cb-hero-logo {
        width: 56px;
        height: 56px;
    }

    .cb-hero-title {
        font-size: 22px;
    }

    .cb-hero-actions {
        flex-wrap: nowrap;
        width: 100%;
    }

    .cb-hero-actions .cb-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Gallery: one main photo + horizontal thumbnail strip with arrows */
    .cb-gallery-grid,
    .cb-gallery-count-1,
    .cb-gallery-count-2,
    .cb-gallery-count-3,
    .cb-gallery-count-4 {
        display: block;
        margin-bottom: 28px;
    }

    .cb-gallery-main {
        display: block;
        width: 100%;
        height: 230px;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    /* Desktop "View All" overlay lives on the 4th tile; on mobile it moves onto the main photo */
    .cb-gallery-item-viewall::before,
    .cb-gallery-item-viewall .cb-gallery-viewall-label:not(.cb-gallery-viewall-mobile) {
        display: none;
    }

    .cb-gallery-viewall-mobile {
        display: block;
        top: auto;
        left: auto;
        right: 12px;
        bottom: 12px;
        transform: none;
        padding: 8px 14px;
        font-size: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    }

    .cb-gallery-thumbs {
        display: block;
        position: relative;
        padding: 0 28px;
    }

    .cb-gallery-thumbs-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cb-gallery-thumbs-track::-webkit-scrollbar {
        display: none;
    }

    .cb-gallery-thumbs-track .cb-gallery-item,
    .cb-gallery-hidden {
        display: block;
        flex: 0 0 calc((100% - 16px) / 3);
        height: 76px;
        border-radius: 4px;
        scroll-snap-align: start;
    }

    .cb-gallery-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 36px;
        padding: 0;
        border: none;
        background: none;
        color: #00529B;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .cb-gallery-arrow-prev {
        left: 0;
    }

    .cb-gallery-arrow-next {
        right: 0;
    }

    .cb-gallery-arrow[disabled] {
        opacity: 0.3;
        cursor: default;
    }

    /* Hide arrows when all thumbnails already fit */
    .cb-gallery-thumbs.cb-gallery-thumbs-fit {
        padding: 0;
    }

    .cb-gallery-thumbs.cb-gallery-thumbs-fit .cb-gallery-arrow {
        display: none;
    }

    /* Overview: stacked, full-width brochure / site plan buttons */
    .cb-overview-row {
        gap: 20px;
        margin-bottom: 36px;
    }

    .cb-overview-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 18px;
    }

    .cb-overview-name {
        font-size: 20px;
    }

    .cb-overview-actions {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
    }

    .cb-overview-actions .cb-btn {
        width: 100%;
    }

    .cb-stats {
        gap: 16px 12px;
        margin-bottom: 4px;
    }

    .cb-description {
        margin-top: 18px;
    }

    /* Enquiry: collapsed behind a pill until tapped */
    .cb-enquiry {
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .main-content.microsite.commercial-building-page .cb-enquiry-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 12px 18px 12px 22px;
        color: #00529B;
        border-color: #00529B;
        background: #fff;
    }

    .main-content.microsite.commercial-building-page .cb-enquiry-toggle span {
        flex: 1 1 auto;
        text-align: center;
    }

    .main-content.microsite.commercial-building-page .cb-enquiry-toggle i {
        transition: transform 0.2s;
    }

    .cb-enquiry.is-open .cb-enquiry-toggle i {
        transform: rotate(180deg);
    }

    .cb-enquiry .cb-enquiry-title {
        display: none;
    }

    .cb-enquiry .cb-enquiry-form {
        display: none;
        margin-top: 12px;
        padding: 20px 16px;
        background: #fff;
        border: 1px solid #d8dde3;
        border-radius: 6px;
    }

    .cb-enquiry.is-open .cb-enquiry-form {
        display: block;
    }

    .cb-field-row {
        grid-template-columns: 1fr;
    }

    /* Available spaces: centered title, stacked cards */
    .cb-spaces-title {
        text-align: center;
        font-size: 20px;
    }

    .cb-space-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 12px 14px;
        border-radius: 8px;
    }

    .cb-space-thumb {
        width: 100%;
        height: 180px;
        flex-basis: auto;
        border-radius: 6px;
    }

    /* sqft on the left, floor on the right */
    .cb-space-info {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        flex: 1 1 auto;
        width: 100%;
    }

    .cb-space-sqft {
        font-size: 20px;
    }

    .cb-space-floor {
        margin-top: 0;
        text-align: right;
    }

    /* Condition / Availability as a two-column grid */
    .cb-space-meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        flex: 1 1 auto;
        width: 100%;
    }

    .cb-space-meta:empty {
        display: none;
    }

    /* Full-width stacked buttons; share icons centered underneath */
    .main-content.microsite.commercial-building-page .cb-space-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
        margin-left: 0;
    }

    .main-content.microsite.commercial-building-page .cb-space-actions .cb-btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 12px;
    }

    .main-content.microsite.commercial-building-page .cb-space-actions .icon-list {
        order: 3;
        justify-content: center;
        gap: 10px;
        margin-top: 6px;
    }

    .cb-load-more {
        margin-top: 4px;
    }

    /* Map + directions */
    .cb-map-wrap {
        margin-top: 28px;
    }

    .main-content.microsite.commercial-building-page .cb-map-directions {
        display: block;
    }
}
