.es-listing__image {
    position: relative;
}

.es-listing-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;

    background: #69c200; /* highlight color */
    color: #1a1a1a;

    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    border-radius: 20px; /* pill shape */
    z-index: 99;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Optional icon style (if you add one later) */
.es-listing-status-badge::before {
    content: ">";
    font-size: 12px;
    line-height: 1;
}


.es-listing-status-badge.sold {
    background: red;
}

.es-listing-status-badge.under-contract {
    background: #ffb300;

}

@media (max-width: 767px) {
    .es-listing .es-listing__image .es-property__control {
      top: 5em !important;
    }

    .es-single__header-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .es-single__header-right .es-btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}
/* Keep same card size as image */
.es-listing__video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

/* Video fits perfectly */
.es-listing__video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure clickable overlay still works */
.es-listing__video-wrapper .es-listings__image__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.es-listings.es-listings--list .is-video {
  padding-top: 0% !important;
}
.es-gallery__image.is-video {
    padding-top: 0 !important;
}

.es-gallery__video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

.es-gallery__video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

