.mls-card {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
}

.mls-photo {
    width: 320px;
    flex-shrink: 0;
}

.mls-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.mls-details {
    flex: 1;
}

.mls-address {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mls-city {
    margin-bottom: 10px;
}

.mls-price {
	/*
    font-size: 42px;
    font-weight: 500;
	*/
    margin-top: 15px;
    margin-bottom: 10px;
}

.mls-stats {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mls-description {
    line-height: 1.5;
}

.mls-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 15px;
}

.mls-primary-photo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {

    .mls-card {
        flex-direction: column;
    }

    .mls-photo {
        width: 100%;
    }

    .mls-photo img {
        width: 100%;
        height: auto;
    }

    .mls-details {
        width: 100%;
    }

    .entry-title {
        margin-top: 15px;
    }

}

.mls-features {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px 30px;
}

.mls-feature {
    line-height:1.6;
}

@media (max-width:767px) {

    .mls-features {
        grid-template-columns:1fr;
    }

}



.mls-gallery-main {
    margin-bottom: 15px;
}

.mls-gallery-main img {
    width: 100%;
    display: block;
}

.mls-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mls-gallery-thumb {
    width: 100px;
    cursor: pointer;
}

.mls-gallery-thumb img {
    width: 100%;
    display: block;
}

.et_gallery_item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------------ */
/* Added for [mls_listing_agent]                                       */
/* ------------------------------------------------------------------ */

.mls-agent {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.mls-agent + .mls-agent {
    margin-top: 15px;
    padding-top: 15px;
}

.mls-agent-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin-bottom: 4px;
}

.mls-agent-name,
.mls-agent-office {
    /* Font size and weight are set inline per-request (from TFM MLS
       Integration > Agent Card settings, or shortcode attributes), so
       both stay in sync with each other instead of drifting apart via
       separate CSS rules. */
    font-family: inherit;
    margin-bottom: 4px;
}

.mls-agent-contact a {
    display: inline-block;
    margin-right: 15px;
    margin-top: 4px;
    /* Inherit size/weight/color from .mls-agent-contact's inline style
       (set from TFM MLS Integration > Agent Card, or shortcode
       attributes) instead of the theme's own link styling. */
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.mls-agent-admin-notice {
    background: #fff8e5;
    border: 1px solid #e0c46c;
    border-top: none;
    padding: 12px 15px;
    font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Added for [mls_results] pagination                                  */
/* ------------------------------------------------------------------ */

.mls-pagination {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.mls-pagination a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.mls-pagination-next {
    margin-left: auto;
}

/* ------------------------------------------------------------------ */
/* Added for [mls_search_form]                                         */
/* ------------------------------------------------------------------ */

.tfm-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tfm-field-wrap {
    position: relative;
    display: inline-block;
}

.tfm-address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tfm-address-suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.tfm-address-suggestion-item:last-child {
    border-bottom: none;
}

.tfm-address-suggestion-item:hover {
    background: #f0f0f0;
}
