/* Keep the directory cards in the inventory's original DOM and reading order. */
#wg-explore[data-mode="list"] .wg-explore-card .wg-card-picture,
#wg-frontdoor-main .home-flagships .card .media {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
#wg-explore[data-mode="list"] .wg-explore-card .wg-card-picture img,
#wg-frontdoor-main .home-flagships .card .media img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: var(--wg-discovery-focus, 50% 50%);
}
#wg-explore .wg-explore-card img[alt="Green Bay Oasis"] { --wg-discovery-focus: 50% 51%; }
#wg-explore .wg-explore-card img[alt="Touchdown Retreat"] { --wg-discovery-focus: 50% 46%; }
#wg-explore .wg-explore-card img[alt="NineSixFive Fieldhouse"] { --wg-discovery-focus: 48% 48%; }
#wg-explore .wg-explore-card img[alt="N°9 Landing"] { --wg-discovery-focus: 50% 53%; }
#wg-explore .wg-explore-card img[alt="Aspen on Shangrila"] { --wg-discovery-focus: 50% 54%; }
#wg-explore .wg-explore-card img[alt="Baronwood Oasis"] { --wg-discovery-focus: 52% 54%; }
#wg-explore .wg-explore-card img[alt="Beulah House"] { --wg-discovery-focus: 52% 51%; }
#wg-explore .wg-explore-card img[alt="Captain’s Quarters"] { --wg-discovery-focus: 50% 54%; }
@media (min-width: 1180px) and (max-width: 1699px) {
    #wg-explore[data-mode="list"] .wg-results-grid {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        column-gap: 24px;
    }
}
@media (min-width: 901px) {
    #wg-explore[data-mode="list"] .wg-map-card-copy {
        gap: 5px;
    }
    #wg-explore[data-mode="list"] .wg-map-card-copy :is(.wg-card-loc,.wg-card-facts,.card-review-line,.wg-card-tags,.wg-card-distance,.price-guide-label,small,em) {
        font-size: 16px !important;
        line-height: 1.4;
    }
    #wg-explore[data-mode="list"] .wg-map-card-copy .card-price strong {
        font-size: 19px;
        line-height: 1.3;
    }
}
/* Desktop WordPress sets a smaller root rem than the phone directory. */
.wg-saved-sheet .wg-saved-home :is(.wg-saved-town,.wg-saved-features,.wg-saved-rating,.wg-saved-facts dt,.wg-saved-price span,.wg-saved-price small),
.wg-saved-sheet .wg-saved-fields label {
    font-size: 16px !important;
    line-height: 1.45;
}
.wg-saved-sheet .wg-saved-home :is(.wg-saved-facts dd,.wg-saved-price strong) {
    font-size: 19px !important;
    line-height: 1.35;
}
.wg-saved-sheet .wg-saved-home .wg-saved-price[data-price-state="quoted"] strong { font-size: 22px !important; }
#wg-frontdoor-main .wg-he-voices .guest-voice blockquote {
    margin: 0;
    padding-inline-start: 18px;
    border-left: 2px solid #a38142;
    font-size: clamp(27px, 2.35vw, 37px);
    line-height: 1.18;
}
#wg-frontdoor-main .wg-he-voices .lead-voice blockquote { font-size: clamp(33px, 3.05vw, 50px); }
#wg-frontdoor-main .wg-he-voices .guest-voice figcaption {
    margin: 12px 0 0;
    font-size: clamp(16px,1.12vw,18px);
    line-height: 1.45;
    color: #384d55;
}
#wg-home-date-picker .wg-range-trigger {
    background: #fffcf6 !important;
    border: 1px solid #8b9698 !important;
    color: #123348 !important;
}
#wg-home-date-picker .wg-range-trigger:focus-visible { outline: 3px solid #82641f; outline-offset: 3px; }
/* The links, state and form controls remain the directory's accessible controls. */
@media (max-width: 900px) {
    #wg-explore .wg-landmark { padding-block: 8px; }
    #wg-explore .wg-landmark form { row-gap: 7px; }
}
#wg-explore .wg-landmark label,
#wg-explore .wg-landmark-help summary,
#wg-explore .wg-landmark a {
    font-size: 14px !important;
    line-height: 1.35;
}
#wg-explore .wg-landmark :is(input:not([type="hidden"]),select,button) {
    font-size: 16px !important;
    min-height: 44px;
    line-height: 1.25;
}
#main-content ul.wg-live-homes {
    grid-template-columns: repeat(auto-fill, minmax(min(100%,245px),1fr));
    column-gap: clamp(16px,2vw,32px);
    align-items: start;
}
#main-content ul.wg-live-homes:has(>li:only-child) { max-width: 420px; }
#main-content .wg-live-homes > li > a > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
#main-content .wg-live-homes > li > a > strong {
    display: block;
    font-size: clamp(21px,1.7vw,28px);
    line-height: 1.2;
    margin-top: 9px;
}
#main-content .wg-hospitality-card-town,
#main-content .wg-hospitality-card-note {
    display: block;
    color: #3b5058;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 4px;
}
#main-content .wg-hospitality-card-note { color: #665019; }
#main-content .guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
#main-content .guide-links .txtlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    font-size: 16px;
}
@media (max-width: 650px) {
    #main-content .guide-links { flex-direction: column; align-items: stretch; gap: 0; }
    #main-content .guide-links .txtlink + .txtlink { border-top: 1px solid #d6cebd; }
}
