/* The RealHomes results template keeps its banner image, form, list, grid and map. */
body.leaf-native-search-style .rh_wrap > :is(.rh_banner, .rh_prop_search, #properties-listing),
body.leaf-native-listing-views .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing,
body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing {
    --leaf-search-navy: #0c283b;
    --leaf-search-ink: #18313e;
    --leaf-search-muted: #526570;
    --leaf-search-paper: #fffefa;
    --leaf-search-soft: #f5f4ee;
    --leaf-search-line: #dad7cb;
    --leaf-search-gold: #aa956e;
    --leaf-search-serif: "LEH Cormorant", Georgia, serif;
    --leaf-search-sans: "LEH Jost", Arial, sans-serif;
}

body.leaf-native-search-style.leaf-native-search-rental .rh_wrap > :is(.rh_banner, .rh_prop_search, #properties-listing) {
    --leaf-search-ink: #252422;
    --leaf-search-muted: #625f58;
    --leaf-search-paper: #f8f6f0;
    --leaf-search-soft: #eeece3;
    --leaf-search-gold: #b09969;
}

body.leaf-native-search-style .rh_wrap > .rh_banner .rh_banner__cover {
    background: linear-gradient(0deg, #0c283bd9, #0c283b38 84%);
    opacity: 1;
}

body.leaf-native-search-style .rh_wrap > .rh_banner .rh_banner__title {
    color: #fffefa;
    font-family: var(--leaf-search-serif) !important;
    font-size: clamp(36px, 4.2vw, 62px);
    font-weight: 500 !important;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 0 !important;
    overflow-wrap: anywhere;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > .rh_banner .rh_banner__controls .rh_view_type {
    gap: 8px;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > .rh_banner .rh_banner__controls .rh_view_type > a:is(.list, .grid) {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    background: #0c283bdb;
    border: 1px solid #fffefa80;
    color: #fffefa;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > .rh_banner .rh_banner__controls .rh_view_type > a:is(.list, .grid):is(.active, :hover) {
    background: #fffefa;
    color: #0c283b;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > .rh_banner .rh_banner__controls .rh_view_type > a:is(.list, .grid) svg {
    fill: currentColor;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > .rh_banner .rh_banner__controls .rh_view_type > a:is(.list, .grid):focus-visible {
    outline: 2px solid #fffefa;
    outline-offset: 3px;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form,
body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form .rh_prop_search__option {
    background-color: var(--leaf-search-paper);
    border-color: var(--leaf-search-line);
    color: var(--leaf-search-ink);
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form .rh_prop_search__option > label {
    color: var(--leaf-search-muted);
    font: 500 11px/1.5 var(--leaf-search-sans) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form :is(.rh_prop_search__option input[type="text"], .rh_prop_search__option input[type="number"], .bootstrap-select > .dropdown-toggle),
body.leaf-native-search-style .rh_wrap > #properties-listing .rh_sort_controls :is(select, .bootstrap-select > .dropdown-toggle) {
    background-color: var(--leaf-search-paper);
    border-color: var(--leaf-search-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--leaf-search-ink);
    font: 400 14px/1.5 var(--leaf-search-sans) !important;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form .dropdown-menu,
body.leaf-native-search-style .rh_wrap > #properties-listing .rh_sort_controls .dropdown-menu {
    background-color: var(--leaf-search-paper);
    border-color: var(--leaf-search-line);
    border-radius: 0;
    color: var(--leaf-search-ink);
    font-family: var(--leaf-search-sans) !important;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form :is(.rh_prop_search__searchBtn, .rh_btn__prop_search, .rh_prop_search__advance_btn) {
    background-color: var(--leaf-search-navy);
    border-color: var(--leaf-search-navy);
    border-radius: 0;
    color: #fffefa;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form .rh_btn__prop_search {
    font: 500 14px/1.5 var(--leaf-search-sans) !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.leaf-native-search-style .rh_wrap > .rh_prop_search form.advance-search-form :is(.rh_btn__prop_search, .rh_prop_search__advance_btn):is(:hover, :focus-visible) {
    background-color: #284759;
    color: #fffefa;
}

body.leaf-native-search-style .rh_wrap > #properties-listing {
    background-color: var(--leaf-search-paper);
    color: var(--leaf-search-ink);
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__head {
    border-bottom: 1px solid var(--leaf-search-line);
    padding-bottom: 22px;
    margin-bottom: 26px;
}

body.leaf-native-search-style .rh_wrap > #properties-listing :is(.rh_pagination__stats, .rh_list_card__excerpt, .rh_prop_card__excerpt) {
    color: var(--leaf-search-muted);
    font: 400 14px/1.6 var(--leaf-search-sans) !important;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(.rh_list_card__wrap, .rh_prop_card__wrap) {
    background-color: var(--leaf-search-paper);
    border: 1px solid var(--leaf-search-line);
    border-radius: 0;
    box-shadow: none;
}

/* The native grid class is absent in List. The archive grid omits #properties-listing. */
body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid:has(> article.rh_prop_card--listing) {
    --leaf-native-grid-gap: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(300px, calc((100% - var(--leaf-native-grid-gap)) / 2))), 1fr));
    gap: var(--leaf-native-grid-gap);
    margin-inline: 0;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing > .rh_prop_card__wrap {
    flex: 1;
    min-width: 0;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing .rh_prop_card__thumbnail {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing .rh_prop_card__thumbnail > .rh_figure_property_one {
    height: 100%;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing .rh_prop_card__details {
    padding: 20px 18px 8px !important;
}

body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid > article.rh_prop_card--listing > .le-card-contact {
    padding-inline: 18px;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) > article.rh_list_card > .rh_list_card__wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) > article.rh_list_card > .rh_list_card__wrap > :is(.rh_list_card__thumbnail, .rh_list_card__details_wrap) {
    min-width: 0;
    margin: 0;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) > article.rh_list_card > .rh_list_card__wrap > .rh_list_card__thumbnail {
    align-self: stretch;
    width: 100%;
    height: auto;
    background-color: var(--leaf-search-soft);
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail > .rh_figure_property_list_one,
:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail > .rh_figure_property_list_one > a:first-of-type {
    display: block;
    height: 100%;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail .post_thumbnail {
    min-height: 100%;
    aspect-ratio: 4 / 3;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__details_wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
    padding: clamp(16px, 2vw, 26px);
    background: var(--leaf-search-paper);
    border-radius: 0;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__details {
    width: auto;
    min-width: 0;
    padding: 0;
}

:is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__priceLabel {
    width: auto;
    margin-top: auto;
    padding: 10px 0 0;
    border-top: 1px solid var(--leaf-search-line);
}

/* The commercial page shortcode adds empty paragraphs around the original card fragments. */
body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing > article.rh_list_card > .rh_list_card__wrap > p {
    grid-column: 1 / -1;
    margin: 0;
}

@media (min-width: 901px) {
    body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing > article.rh_list_card > .rh_list_card__wrap > .rh_list_card__thumbnail {
        grid-area: 1 / 1;
    }

    body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing > article.rh_list_card > .rh_list_card__wrap > .rh_list_card__details_wrap {
        grid-area: 1 / 2;
    }
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing :is(.rh_list_card__details, .rh_prop_card__details) :is(h3, h3 a),
body.leaf-native-search-style .rh_wrap > #properties-listing .rh_sidebar .widget > .title {
    color: var(--leaf-search-ink);
    font: 500 clamp(24px, 2.15vw, 32px)/1.15 var(--leaf-search-serif) !important;
    letter-spacing: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing :is(.rh_list_card__details, .rh_prop_card__details) h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--leaf-search-gold);
    text-underline-offset: .15em;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing :is(.rh_list_card__price, .rh_prop_card__price) .status,
body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing .rh_prop_card__meta .rh_meta_titles {
    color: var(--leaf-search-muted);
    font: 500 11px/1.5 var(--leaf-search-sans) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing .rh_prop_card__meta :is(.figure, .label),
body.leaf-native-search-style .rh_wrap > #properties-listing .rh_sidebar .widget > ul {
    color: var(--leaf-search-ink);
    font: 400 14px/1.55 var(--leaf-search-sans) !important;
}

/* Keep each property detail and its value together at narrow card widths. */
body.leaf-native-listing-views :is(.rh_page__listing_page.rh_page__main > .rh_page__listing, :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(article.rh_list_card, article.rh_prop_card--listing) .rh_prop_card_meta_theme_stylish {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px 16px !important;
}

body.leaf-native-listing-views :is(.rh_page__listing_page.rh_page__main > .rh_page__listing, :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(article.rh_list_card, article.rh_prop_card--listing) .rh_prop_card_meta_theme_stylish > .rh_prop_card__meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 0 1 auto !important;
    max-width: 100%;
    gap: 4px !important;
    margin: 0 !important;
}

body.leaf-native-listing-views :is(.rh_page__listing_page.rh_page__main > .rh_page__listing, :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(article.rh_list_card, article.rh_prop_card--listing) .rh_prop_card_meta_theme_stylish .rh_meta_titles {
    margin: 0 !important;
    overflow-wrap: anywhere;
}

body.leaf-native-listing-views :is(.rh_page__listing_page.rh_page__main > .rh_page__listing, :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(article.rh_list_card, article.rh_prop_card--listing) .rh_prop_card_meta_theme_stylish .rh_meta_icon_wrapper {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 4px !important;
    margin: 0 !important;
}

body.leaf-native-listing-views :is(.rh_page__listing_page.rh_page__main > .rh_page__listing, :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) :is(article.rh_list_card, article.rh_prop_card--listing) .rh_prop_card_meta_theme_stylish .rh_meta_icon_wrapper :is(svg, .figure, .label) {
    margin: 0 !important;
    padding: 0 !important;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__listing :is(.rh_list_card__price, .rh_prop_card__price) .price {
    color: var(--leaf-search-ink);
    font: 500 25px/1.15 var(--leaf-search-serif) !important;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_pagination__btn {
    background: var(--leaf-search-paper);
    border: 1px solid var(--leaf-search-line);
    border-radius: 0;
    color: var(--leaf-search-ink);
    font: 500 13px/1.5 var(--leaf-search-sans) !important;
}

body.leaf-native-search-style .rh_wrap > #properties-listing .rh_pagination__btn:is(.current, :hover, :focus-visible) {
    background: var(--leaf-search-navy);
    border-color: var(--leaf-search-navy);
    color: #fffefa;
}

body.leaf-native-search-style .rh_wrap > :is(.rh_prop_search, #properties-listing) :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--leaf-search-gold);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    :is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) > article.rh_list_card > .rh_list_card__wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    body.leaf-native-search-style .rh_wrap > #properties-listing .rh_page__head {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    :is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail > .rh_figure_property_list_one,
    :is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail > .rh_figure_property_list_one > a:first-of-type {
        height: auto;
    }

    :is(body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing, body.leaf-native-listing-views :where(#post-57447, #post-57352) .rh_content.entry-content > .rh_page__listing) .rh_list_card__thumbnail .post_thumbnail {
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 767px) {
    body:is(.leaf-native-search-style, .leaf-native-listing-views) .rh_wrap > section.rh_section > .rh_page__listing_page.rh_page__main > .rh_page__listing_grid:has(> article.rh_prop_card--listing) {
        grid-template-columns: minmax(0, 1fr);
    }
}
