/* ── Commercial page overrides ───────────────────────────────────────────── */

/* Slightly different gradient tint — deeper navy with a hint of teal */
.comm-page-bg {
    background: linear-gradient(
        to bottom,
        #080f1a 0%,
        #0a1628 10%,
        #112238 20%,
        #0e2240 32%,
        #1a3a50 42%,
        #2c5469 52%,
        #4a7a8c 60%,
        #72a5b5 68%,
        #a3c8d4 74%,
        #c8dfe8 80%,
        #e4eef5 86%,
        #e8f0f6 100%
    );
}

/* Hero */
.comm-hero {
    padding: 80px 0 100px;
}

.comm-hero-split {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.comm-hero-copy {
    color: #f0f6ff;
    text-align: left;
}

.comm-hero-copy .res-hero-sub {
    margin-left: 0;
    margin-right: 0;
    max-width: 48ch;
}

.comm-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

/* Valero image in hero */
.comm-hero-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

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

.comm-hero-img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(10, 18, 32, 0.82);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 860px) {
    .comm-hero-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .comm-hero-copy {
        text-align: center;
    }
    .comm-hero-copy .res-hero-sub {
        margin: 0 auto 32px;
    }
    .comm-hero-img {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Shell — less top margin since there are no chips */
.comm-shell {
    margin-top: 0;
}

/* Single-column form layout on commercial (no listings to compete with) */
.comm-form-layout {
    grid-template-columns: 1fr 1.6fr;
}

@media (max-width: 860px) {
    .comm-form-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Sold Properties Section ─────────────────────────────────────────────── */
.comm-sold-section {
    padding: 40px 24px 48px;
    position: relative;
    z-index: 1;
}

/* Featured split: copy left, Valero right */
.comm-sold-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}

.comm-sold-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comm-sold-copy .mono-label {
    margin: 0;
}

.comm-sold-heading {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
    color: var(--ink);
    line-height: 1.2;
}

.comm-sold-heading {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 4px 0 24px;
    color: var(--ink);
}

.comm-sold-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* ── Total Value Banner ─────────────────────────────────────────────────── */
.comm-total-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 24px;
    gap: 12px;
}

.comm-total-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.comm-total-value {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
}

/* Shared card styles */
.comm-sold-card {
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    transition: transform 220ms ease, border-color 220ms ease;
}

.comm-sold-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 93, 231, 0.38);
}

.comm-sold-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #e8ecf0;
}

.comm-sold-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comm-sold-name {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0;
}

.comm-sold-value {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

@media (max-width: 600px) {
    .comm-sold-grid {
        grid-template-columns: 1fr;
    }
    .comm-total-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
