/* ============================================================
   Commercial Property Styles
   Listings: .comm-   |   Detail: .cpd-
   ============================================================ */

/* ── Listings Page ─────────────────────────────────────────── */

.comm-page {
    max-width: 1420px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.comm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
}

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

/* Card */
.comm-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px;
    margin-bottom: 32px;
}

.comm-card:hover,
.comm-card:hover * {
    text-decoration: none;
}

.comm-card__name-header {
    padding: 10px 0 0 30px;
    font-size: 1.95rem;
    font-weight: 900;
    color: #1c1c1c;
    line-height: 1.0;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 12px;
}

.comm-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-color: #68717a;
    box-shadow: inset 0 90px 80px -30px rgba(0,0,0,0.65);
    transition: box-shadow 0.4s ease;
}

.comm-card:hover .comm-card__media {
    box-shadow: inset 0 -90px 80px -30px rgba(0,0,0,0.65);
}

.comm-card__name-on-photo {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 0 0 30px;
    font-size: 1.95rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    z-index: 4;
    pointer-events: none;
}

.comm-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.35s ease;
    z-index: 2;
}

.comm-card:hover .comm-card__overlay {
    background: rgba(0,0,0,0.3);
}

.comm-card__arrow {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.comm-card:hover .comm-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.comm-card__footer {
    padding: 10px 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comm-card__city {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-slate-gray);
}

.comm-card__address {
    font-size: 0.82rem;
    color: #666;
}

/* ── Hero ──────────────────────────────────────────────────── */

.cpd-page {
    overflow: hidden;
}

.cpd-fullbleed {
    width: 100%;
    position: relative;
}

.cpd-hero {
    min-height: 56vh;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-slate-gray);
    display: flex;
    flex-direction: column;
}

.cpd-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(104, 113, 122, 0.55);
}

.cpd-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 28px 24px 32px;
    box-sizing: border-box;
}

.cpd-hero__top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cpd-hero__location {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cpd-hero__location-sub {
    font-weight: 400;
    font-size: 0.9rem;
}

.cpd-hero__inquire-btn {
    display: inline-block;
    background: var(--brand-slate-gray);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cpd-hero__inquire-btn:hover {
    background: var(--brand-battleship-gray);
    color: #fff;
    text-decoration: none;
}

.cpd-hero__title-block {
    margin-top: 8vh;
    padding-bottom: 20px;
}

.cpd-hero__title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0 0 6px;
    line-height: 1.15;
}

.cpd-hero__address {
    color: rgba(255,255,255,0.82);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── Big Ideas Section ─────────────────────────────────────── */

.cpd-ideas-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
}

.cpd-ideas-left {
    background-color: #c5bfb5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 48px;
}

.cpd-ideas-tagline {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.cpd-ideas-right {
    background-color: #e8e3db;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
    gap: 20px;
}

.cpd-description {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.75;
}

.cpd-description p { margin-bottom: 0.75rem; }
.cpd-description p:last-child { margin-bottom: 0; }

.cpd-amenities {
    color: var(--neutral-700);
    font-size: 0.9rem;
    line-height: 1.7;
}

.cpd-learn-btn {
    display: inline-block;
    align-self: flex-start;
    background: var(--brand-slate-gray);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 11px 26px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 4px;
}

.cpd-learn-btn:hover {
    background: var(--brand-battleship-gray);
    color: #fff;
    text-decoration: none;
}

/* ── Photos Grid ───────────────────────────────────────────── */

.cpd-photos-section {
    padding: 40px 0;
    background: #f5f4f2;
}

.cpd-photos-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.cpd-photo-thumb {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.cpd-photo-thumb:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* ── Lightbox ──────────────────────────────────────────────── */

.cpd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpd-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpd-lightbox__img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.7);
    object-fit: contain;
}

.cpd-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}
.cpd-lightbox__close:hover { opacity: 1; }

.cpd-lightbox__prev,
.cpd-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 6px;
    opacity: .75;
    transition: opacity .15s, background .15s;
}

.cpd-lightbox__prev:hover,
.cpd-lightbox__next:hover { opacity: 1; background: rgba(255,255,255,.22); }

.cpd-lightbox__prev { left: 12px; }
.cpd-lightbox__next { right: 12px; }

.cpd-lightbox__counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ── Map ───────────────────────────────────────────────────── */

.cpd-map-section {
    width: 100%;
    height: 420px;
    display: block;
}

.cpd-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Back link ─────────────────────────────────────────────── */

.cpd-back-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 40px;
}

.cpd-back-btn {
    color: var(--brand-slate-gray);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.cpd-back-btn:hover {
    color: var(--brand-battleship-gray);
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .cpd-ideas-section {
        grid-template-columns: 1fr;
    }

    .cpd-ideas-left {
        padding: 40px 24px;
        min-height: 180px;
    }

    .cpd-ideas-tagline {
        font-size: 2rem;
    }

    .cpd-ideas-right {
        padding: 36px 24px;
    }
}

@media (max-width: 640px) {
    .cpd-hero {
        min-height: 40vh;
    }

    .cpd-hero__title {
        font-size: 1.5rem;
    }

    .cpd-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpd-map-section {
        height: 300px;
    }
}
