/**
 * City Intro Block — [cre_city_intro]
 *
 * Same design tokens as the property listing card
 * (css/property-listing-card.css --fpc-* vars) and the same card
 * border/radius as .ptc-card, so the block sits naturally next to the
 * other city page sections. Fallback values keep it working on a page
 * where that file never loaded. Every rule is scoped under .cci-*.
 */

/* card: intro copy on the left, rent + buildings column on the right */
.cci-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
    background: var(--fpc-white, #ffffff);
    border: 1px solid rgba(122, 122, 122, .2);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    color: var(--fpc-black, #000000);
    box-sizing: border-box;
}

.cci-wrap *,
.cci-wrap *::before,
.cci-wrap *::after {
    box-sizing: border-box;
}

/* small uppercase label with a short rule in front of it */
.cci-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fpc-500, #7A7A7A);
}

.cci-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.cci-heading {
    margin: 0 0 20px;
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--fpc-black, #000000);
}

/* body copy in the sans stack at a comfortable reading size, since the
   site-wide 12px mono body text is too small for long paragraphs */
.cci-body {
    max-width: 68ch;
}

.cci-body p {
    margin: 0 0 14px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 15px;
    line-height: 1.75;
    color: var(--fpc-700, #54595F);
}

.cci-body p:last-child {
    margin-bottom: 0;
}

/* right column */
.cci-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cci-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* live stats tile: black like the site header/footer so it reads as the
   key stat. Every number in it comes straight from the city's listings. */
.cci-live {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 8px;
    background: var(--fpc-black, #000000);
    color: var(--fpc-white, #ffffff);
}

.cci-live .cci-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .6);
}

/* small pulsing dot to signal the numbers are live */
.cci-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ecf8e;
    box-shadow: 0 0 0 0 rgba(62, 207, 142, .6);
    animation: cci-pulse 2.4s ease-out infinite;
}

@keyframes cci-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, .6); }
    70%  { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cci-live-dot {
        animation: none;
    }
}

.cci-live-total {
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.cci-live-total-label {
    display: block;
    margin-top: 2px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .8);
}

.cci-live-rows {
    margin: 18px 0 0;
    padding: 0;
}

.cci-live-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.45;
}

.cci-live-row dt {
    margin: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, .65);
}

.cci-live-row dd {
    margin: 0;
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-weight: 500;
    color: var(--fpc-white, #ffffff);
    text-align: right;
}

/* longer value (type names) drops under its label instead of squeezing */
.cci-live-row-stack {
    flex-direction: column;
    gap: 3px;
}

.cci-live-row-stack dd {
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    text-align: left;
}

.cci-live-note {
    margin-top: 14px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .55);
}

/* office asking rent: only rendered when a city has enough usable listings */
.cci-rate {
    display: flex;
    flex-direction: column;
    padding: 22px 24px;
    border: 1px solid rgba(122, 122, 122, .25);
    border-radius: 8px;
    background: #f8f8f8;
}

.cci-rate .cci-label {
    color: var(--fpc-500, #7A7A7A);
}

.cci-rate-value {
    font-family: var(--fpc-mono, 'Azeret Mono', monospace);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--fpc-black, #000000);
}

.cci-rate-to {
    font-size: 14px;
    font-weight: 400;
    color: var(--fpc-500, #7A7A7A);
}

.cci-rate-unit {
    margin-top: 4px;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.5;
    color: var(--fpc-700, #54595F);
}

.cci-rate-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(122, 122, 122, .2);
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 12px;
    line-height: 1.5;
    color: var(--fpc-500, #7A7A7A);
}

/* notable buildings as chips */
.cci-buildings .cci-label {
    color: var(--fpc-500, #7A7A7A);
}

.cci-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cci-chips li {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(122, 122, 122, .25);
    border-radius: 999px;
    background: #f8f8f8;
    font-family: var(--fpc-sans, Helvetica, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.4;
    color: var(--fpc-black, #000000);
}

/* tablet: stack; stat tiles side by side under the copy, chips full width */
@media (max-width: 991.98px) {
    .cci-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }

    .cci-side {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        align-items: start;
    }

    .cci-buildings {
        grid-column: 1 / -1;
    }

    .cci-body {
        max-width: none;
    }
}

/* mobile: single column throughout */
@media (max-width: 640px) {
    .cci-wrap {
        padding: 24px 20px;
    }

    .cci-heading {
        font-size: 21px;
    }

    .cci-body p {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .cci-side {
        display: flex;
    }

    .cci-live-total {
        font-size: 28px;
    }

    .cci-rate-value {
        font-size: 21px;
    }
}
