/* Listing enrichments: YouTube then Matterport (view + property-details) */
.listing-media-section {
    padding: 56px 0;
    background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
    border-top: 1px solid #e7eef2;
    border-bottom: 1px solid #e7eef2;
}
.listing-media-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.listing-media-header { margin-bottom: 22px; }
.listing-media-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2e8da0;
    margin-bottom: 8px;
}
.listing-media-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: #103d4f;
    line-height: 1.15;
}
.listing-media-lead {
    margin: 0;
    color: #64748b;
    max-width: 62ch;
    line-height: 1.55;
}

/* Stacked blocks: video → Matterport (PDFs follow in their own section) */
.listing-media-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.listing-media-block-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #103d4f;
    display: flex;
    align-items: center;
    gap: 10px;
}
.listing-media-block-title i {
    color: #2e8da0;
    font-size: 1rem;
}

.listing-media-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(16, 61, 79, 0.18);
    border: 1px solid rgba(46, 141, 160, 0.25);
}
.listing-media-frame::before {
    content: '';
    display: block;
    padding-top: 56.25%;
    pointer-events: none;
}
.listing-media-frame--matterport::before { padding-top: 62%; }
.listing-media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    background: #000;
}

/* Click-to-play facade — removed entirely once the iframe loads */
.listing-media-yt-facade {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: #0f172a;
    display: block;
    width: 100%;
    height: 100%;
}
.listing-media-yt-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}
.listing-media-yt-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    pointer-events: none;
    transition: background .2s ease;
}
.listing-media-yt-facade:hover .listing-media-yt-shade,
.listing-media-yt-facade:focus-visible .listing-media-yt-shade {
    background: rgba(15, 23, 42, 0.4);
}
.listing-media-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform .2s ease, background .2s ease;
}
.listing-media-yt-play i {
    margin-left: 3px; /* optical center for play triangle */
}
.listing-media-yt-facade:hover .listing-media-yt-play,
.listing-media-yt-facade:focus-visible .listing-media-yt-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #ef4444;
}
.listing-media-frame.is-playing .listing-media-yt-facade {
    display: none !important;
}

.listing-media-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #2e8da0;
    font-weight: 600;
    text-decoration: none;
}
.listing-media-external:hover { color: #103d4f; text-decoration: underline; }
.property-description-note,
.mag-description-note {
    margin: 0 0 12px;
    font-size: .82rem;
    font-weight: 600;
    color: #2e8da0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 640px) {
    .listing-media-section { padding: 40px 0; }
    .listing-media-stack { gap: 22px; }
    .listing-media-yt-play { width: 60px; height: 60px; font-size: 1.15rem; }
}
