.mls-page { --mls-accent: #9c302a; --mls-ink: #26332e; background: #f5f6f3; color: var(--mls-ink); font-family: Arial, Helvetica, sans-serif; }
.mls-page .container { width: min(1240px, 100%); }
.mls-page a:focus-visible, .mls-page button:focus-visible, .mls-page input:focus-visible, .mls-page select:focus-visible { outline: 3px solid var(--mls-accent); outline-offset: 3px; }
.mls-page .mls-intro { padding-top: 40px; padding-bottom: 24px; }
.mls-page .mls-eyebrow { margin-bottom: 10px; color: #647069; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mls-page .mls-intro h1 { margin: 0 0 12px; color: var(--mls-ink); font: 400 clamp(30px, 4vw, 46px)/1.15 Georgia, serif; }
.mls-page .mls-intro > p:last-child { max-width: 650px; margin-bottom: 0; color: #59635e; font-size: 15px; line-height: 1.7; }
.mls-page .search-area { padding: 0; background: none; }
.mls-page .search-area-inner { padding: 0; background: none; }
.mls-page .search-contents { padding: 24px; border: 1px solid #e1e5dc; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(32,45,37,.04); }
.mls-page .mls-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mls-page .mls-filter-heading h2 { margin: 0; color: var(--mls-ink); font-size: 19px; font-weight: 600; }
.mls-page .mls-filter-heading a { color: var(--mls-accent); font-size: 13px; text-decoration: underline; }
.mls-page .search-contents > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 16px; margin: 0 0 16px; }
.mls-page .search-contents > .row::before, .mls-page .search-contents > .row::after { display: none; }
.mls-page .search-contents > .row > [class*="col-"] { float: none; width: auto; min-width: 0; padding: 0; }
.mls-page .search-contents > .mls-filter-secondary { grid-template-columns: 1fr 1fr 2fr 1fr; margin-bottom: 0; }
.mls-page .search-contents .form-group { margin: 0; }
.mls-page .search-contents .form-group > .row { margin: 0 -6px; }
.mls-page .search-contents .form-group > .row > [class*="col-"] { padding: 0 6px; }
.mls-page .search-contents label { display: block; margin: 0 0 7px; color: #34443b; font-size: 12px; font-weight: 600; }
.mls-page .search-fields { width: 100%; height: 46px; padding: 0 10px; border: 1px solid #c8d0c3; border-radius: 5px; background: #fff; color: var(--mls-ink); font: 14px Arial, sans-serif; }
.mls-page .search-fields::placeholder { color: #6a746e; opacity: 1; }
.mls-page .search-button { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--mls-accent); border-radius: 5px; background: var(--mls-accent); color: #fff; font: 600 14px Arial, sans-serif; }
.mls-page .search-button:hover { background: #78251f; }
.mls-page #mls-search-error { margin: 16px 0 0; color: #9c302a; font-size: 14px; }
.mls-page .recently-properties { margin: 0; padding: 30px 0 50px; }
.mls-page .option-bar { margin-bottom: 24px; padding: 0; border: 0; background: none; box-shadow: none; }
.mls-page .option-bar > .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; }
.mls-page .option-bar > .row::before, .mls-page .option-bar > .row::after { display: none; }
.mls-page .option-bar [class*="col-"] { float: none; width: auto; min-width: 0; padding: 0; }
.mls-page .option-bar h2 { margin: 0 0 7px; color: var(--mls-ink); font: 400 29px Georgia, serif; }
.mls-page .option-bar p { margin: 0; color: #647069; font-size: 13px; }
.mls-page .option-bar select { max-width: 270px; }
.mls-page .mls-results { padding: 0 15px; }
.mls-page .mls-listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mls-page .mls-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e1e5dc; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(32,45,37,.08); }
.mls-page .mls-card-photo { display: block; position: relative; flex-shrink: 0; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 8px 8px 0 0; background: #e9ece5; }
.mls-page .mls-card-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; transform: scale(1.5); transform-origin: center; }
.mls-page .mls-card-tag { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 3px; background: #fff; color: var(--mls-accent); font-size: 11px; font-weight: 700; }
.mls-page .mls-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 17px 12px; }
.mls-page .mls-card-price { margin: 0 0 10px; color: var(--mls-accent); font-size: 25px; font-weight: 700; line-height: 1.3; }
.mls-page .mls-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.mls-page .mls-card h3 a { color: var(--mls-ink); }
.mls-page .mls-card h3 a:hover { color: var(--mls-accent); }
.mls-page .mls-card-location { margin: 0 0 12px; color: #647069; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.mls-page .mls-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0 0 18px; color: #59635e; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.mls-page .mls-card-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: auto 0 12px; padding: 13px 0 0; border-top: 1px solid #e7eae3; color: #34443b; list-style: none; font-size: 12px; }
.mls-page .mls-card-facts i { margin-right: 3px; color: #647069; }
.mls-page .mls-card-number { margin: 0; color: #647069; font-size: 11px; }
.mls-page .mls-card-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px; border-top: 1px solid #e7eae3; background: #f8f6f2; color: var(--mls-accent); font-size: 13px; font-weight: 700; }
.mls-page .mls-card-more:hover { background: var(--mls-accent); color: #fff; }
.mls-page .mls-empty { grid-column: 1 / -1; padding: 40px 24px; border: 1px solid #e1e5dc; border-radius: 8px; background: #fff; text-align: center; }
.mls-page .mls-empty h3 { font-size: 22px; }
.mls-page .mls-empty a { color: var(--mls-accent); text-decoration: underline; }
.mls-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 32px; }
.mls-page .pagination > li > a { margin: 0; border-radius: 4px; color: var(--mls-accent); }
.mls-page .pagination > .active > a { border-color: var(--mls-accent); background: var(--mls-accent); color: #fff; }
@media (max-width: 1100px) {
    .mls-page .mls-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 850px) {
    .mls-page .search-contents > .row, .mls-page .search-contents > .mls-filter-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mls-page .mls-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .mls-page .mls-intro { padding-top: 26px; }
    .mls-page .search-contents { padding: 18px 14px; }
    .mls-page .search-contents > .row { gap: 16px 12px; }
    .mls-page .search-contents > .mls-filter-primary > [class*="col-"]:first-child { grid-column: 1 / -1; }
    .mls-page .search-contents > .mls-filter-secondary > [class*="col-"]:nth-child(3), .mls-page .search-contents > .mls-filter-secondary > [class*="col-"]:last-child { grid-column: 1 / -1; }
    .mls-page .option-bar > .row { align-items: stretch; flex-direction: column; gap: 15px; }
    .mls-page .option-bar .text-right { text-align: left; }
    .mls-page .option-bar select { max-width: none; }
    .mls-page .mls-listing-grid { grid-template-columns: 1fr; gap: 22px; }
}
