/* GW-855: lower blue box on listing cards + video badge (improxy/display_3_by_3.php).
   Loaded on every page by header.php. Every rule is scoped to .gw855-card, the class on the
   card wrapper, because the homepage highlights reuse .headline_properties_box and .overlay. */

/* The public card uses background-size: 100% (width), so a 4:3 photo leaves a white
   strip at the bottom that the old 80px box hid. With the lower box the photo must cover. */
.gw855-card .headline_properties_box {
    background-size: cover !important;
    background-position: center center !important;
}

.gw855-card .overlay .additional-info {
    display: block;
    height: auto;
    padding: 0;
}

.gw855-card .gw855-box {
    box-sizing: border-box;
    height: 58px;
    padding: 6px 50px 6px 12px;
    line-height: 1.35;
    color: #fff;
    text-align: left;
}

.gw855-card .gw855-title,
.gw855-card .gw855-loc,
.gw855-card .gw855-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gw855-card .gw855-title {
    font-family: 'Maven Pro', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.gw855-card .gw855-loc {
    font-size: 11px;
}

.gw855-card .gw855-meta {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.gw855-card .gw855-price {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.gw855-card .gw855-icons {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gw855-card .gw855-icons span {
    padding-left: 5px;
}

/* Energy rating icon: keep it inside the lower box, vertically centred on the right. */
.gw855-card .overlay .additional-info.display-ce {
    background-size: auto 30px;
    background-position: right 12px center;
}

/* Video badge on the photo. */
.gw855-card .gw855-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
}

/* mobile7.css sets .overlay .additional-info to 135px under 1400px; the block above
   already resets height, but the media query below keeps the box height explicit on
   small screens and shrinks the type slightly. */
@media only screen and (max-width: 767px) {
    .gw855-card .gw855-box {
        height: 58px;
        padding-right: 46px;
    }
    .gw855-card .gw855-title,
    .gw855-card .gw855-meta {
        font-size: 11px;
    }
    .gw855-card .gw855-loc {
        font-size: 10px;
    }
}
