/* State page new listings and next auctions */
.sa-new, .sa-teaser, .sa-agenda {
    --sa-ink: #1d2b36;
    --sa-slate: #5b6b77;
    --sa-line: #e3e8ec;
    --sa-surface: #f5f7f9;
    --sa-brand: #0f97c4;
    --sa-deep: #0e5a7a;
    --sa-auction: #e72a57;
    --sa-live: #5fe0a0;
    font-family: inherit;
    color: var(--sa-ink);
    margin: 0 0 32px;
}

.sa-h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--sa-ink);
}

.sa-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--sa-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sa-more:hover, .sa-more:focus { color: var(--sa-brand); }

/* live dot */
.sa-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sa-live);
    box-shadow: 0 0 0 0 rgba(95, 224, 160, .6);
}
@media (prefers-reduced-motion: no-preference) {
    .sa-live { animation: sa-ping 2.4s ease-out infinite; }
}
@keyframes sa-ping {
    0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, .55); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(95, 224, 160, 0); }
}

/* new listings strip */
.sa-new {
    background: rgb(248, 248, 249);
    border-radius: 6px;
    padding: 18px 20px 12px;
}
.sa-new__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 14px;
}
.sa-new__head .sa-h2 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sa-new__head .sa-more { margin-top: 0; }
.sa-new__flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 11px 3px 9px;
    border-radius: 999px;
    background: #f55a53;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.sa-new .sa-live { background: #fff; width: 7px; height: 7px; animation-name: sa-ping-white; }
@keyframes sa-ping-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    70%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
.sa-new__pulse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 6px 0 4px;
    font-size: 13px;
    color: #5b6b77;
}
.sa-new__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; margin-right: 6px; }
.sa-new__bars i { width: 5px; min-height: 2px; background: #9fc7d8; border-radius: 1px; }
.sa-new__bars i:last-child { background: #0e5a7a; }
.sa-new__label { font-weight: 600; }
.sa-new__cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sa-new__cities a {
    display: inline-block;
    padding: 2px 10px;
    background: #fff;
    border: 1px solid #d6dee4;
    border-radius: 999px;
    color: #0e5a7a;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.sa-new__cities a b { font-weight: 400; color: #5b6b77; }
.sa-new__cities a:hover, .sa-new__cities a:focus { border-color: #0f97c4; color: #0f97c4; }
.sa-new__since { margin-left: auto; color: #5b6b77; }
.sa-new__since b { color: #f55a53; }
.sa-card__media { position: relative; }
.sa-card__added {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .94);
    color: #0e5a7a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(14, 90, 122, .2);
}
.sa-card__added--today { background: #f55a53; color: #fff; padding: 1px 6px; font-size: 12px; }
.sa-card__link { box-shadow: 0 1px 2px rgba(14, 90, 122, .06); transition: box-shadow .15s ease, border-color .15s ease; }
.sa-card__link:hover, .sa-card__link:focus { box-shadow: 0 4px 12px rgba(14, 90, 122, .14); }
.sa-new__track {
    list-style: none;
    margin: 0;
    padding: 2px 2px 10px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 228px;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.sa-card { scroll-snap-align: start; }
.sa-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--sa-line);
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.sa-card__link:hover, .sa-card__link:focus { border-color: #b9c7d1; color: inherit; text-decoration: none; }
.sa-card__media {
    aspect-ratio: 4 / 3;
    background: var(--sa-surface);
}
.sa-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.sa-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sa-card__price { font-size: 20px; font-weight: 800; line-height: 1.2; }
.sa-card__price small { font-size: 14px; font-weight: 600; }
.sa-card__place { font-size: 13px; color: var(--sa-slate); }
.sa-card__hook { font-size: 12px; font-weight: 600; color: #19734a; }

.sa-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    background: #e6f1f6;
    color: var(--sa-deep);
    white-space: nowrap;
}
.sa-badge--auction { background: var(--sa-auction); color: #fff; }
.sa-badge--pre { background: #fff1db; color: #8a5300; }

/* auction teaser on the state page */
.sa-teaser { margin: 0 0 32px; color: #1d2b36; }
.sa-teaser__head, .sa-agenda__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.sa-teaser__head .sa-h2, .sa-agenda__head .sa-h2 { margin: 0; }
.sa-teaser__head .sa-more { margin-top: 0; }
.sa-teaser__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sa-teaser__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f5f7f9;
    border-radius: 8px;
}
.sa-teaser__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 48px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 6px;
    line-height: 1;
}
.sa-teaser__date b { font-size: 22px; font-weight: 800; color: #0e5a7a; }
.sa-teaser__date span { font-size: 10px; font-weight: 600; color: #5b6b77; margin-top: 3px; }
.sa-teaser__text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: #5b6b77; }
.sa-teaser__text a { font-size: 14px; font-weight: 700; color: #1d2b36; line-height: 1.3; }
.sa-teaser__text a:hover, .sa-teaser__text a:focus { color: #0f97c4; }

/* this week's auctions on /{state}/auctions/ */
.sa-agenda {
    margin: 20px 0 24px;
    padding: 12px 18px 10px;
    background: rgb(248, 248, 249);
    border-radius: 6px;
    color: #1d2b36;
}
.sa-agenda__head .sa-h2 { font-size: 18px; }
.sa-agenda .sa-agenda__head { margin-bottom: 8px; }
.sa-agenda__total { font-size: 13px; font-weight: 600; color: #5b6b77; }
.sa-agenda__total b { color: #e72a57; font-weight: 800; }
/* one column per sale day */
.sa-agenda__days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--sa-days, 4), minmax(0, 1fr));
    border-top: 1px solid #e3e8ec;
}
.sa-agenda__day { display: flex; flex-direction: column; padding: 8px 14px 6px; border-left: 1px solid #e3e8ec; min-width: 0; }
.sa-agenda__day:first-child { border-left: 0; padding-left: 0; }
.sa-agenda__date { display: flex; align-items: baseline; gap: 6px; line-height: 1; margin-bottom: 4px; }
.sa-agenda__date b { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #0e5a7a; }
.sa-agenda__day:first-child .sa-agenda__date b { color: #e72a57; }
.sa-agenda__date span { font-size: 12px; font-weight: 600; color: #5b6b77; white-space: nowrap; }
.sa-agenda__when { display: block; font-size: 12px; font-weight: 600; color: #5b6b77; margin-bottom: 6px; }
.sa-agenda__when a { color: inherit; text-decoration: underline; text-decoration-color: #c5d0d8; text-underline-offset: 2px; }
.sa-agenda__when a:hover, .sa-agenda__when a:focus { color: #0f97c4; text-decoration-color: currentColor; }
.sa-agenda__sales { display: flex; flex-direction: column; flex: 1; }
.sa-agenda__sales ul { list-style: none; margin: 0; padding: 0; }
.sa-agenda__sales li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.3; padding: 2px 0; }
.sa-agenda__sales li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #1d2b36; }
.sa-agenda__sales li a:hover, .sa-agenda__sales li a:focus { color: #0f97c4; }
.sa-agenda__sales li span { flex: none; color: #5b6b77; font-size: 13px; font-variant-numeric: tabular-nums; }
/* pinned to the bottom so the links line up across days */
.sa-agenda__more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0e5a7a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sa-agenda__more span { font-weight: 400; color: #5b6b77; }
.sa-agenda__more:hover, .sa-agenda__more:focus { color: #0f97c4; }
.sa-teaser a:focus-visible, .sa-agenda a:focus-visible { outline: 2px solid #0f97c4; outline-offset: 2px; }

@media (max-width: 991px) {
    .sa-teaser__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .sa-new__track { grid-auto-columns: 62%; }
    .sa-new__cities { flex-wrap: nowrap; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
    .sa-new__since { margin-left: 0; }
    .sa-teaser__list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .sa-agenda__days { display: block; }
    .sa-agenda__day:nth-child(n) { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-left: 0; border-top: 1px solid #e3e8ec; }
    .sa-agenda__sales li { max-width: 320px; }
    .sa-agenda__date { flex-direction: column; align-items: flex-start; gap: 3px; margin: 0; }
    .sa-agenda__day:first-child { border-top: 0; }
}

/* live line under the hero search */
.sa-liveline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6b77;
}
.sa-liveline a { color: #5b6b77; text-decoration: none; }
.sa-liveline b { color: #1d2b36; }
.sa-liveline a:hover, .sa-liveline a:focus { color: #0f97c4; text-decoration: underline; text-underline-offset: 3px; }
.sa-liveline a:focus-visible { outline: 2px solid #0f97c4; outline-offset: 2px; }
.sa-liveline__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 10px; }
.sa-liveline__bars i { width: 3px; min-height: 2px; background: #9fc7d8; border-radius: 1px; }
.sa-liveline__bars i:last-child { background: #0e5a7a; }
.sa-liveline__sep { width: 1px; height: 12px; background: #cfd8de; margin: 0 12px; }
@media (max-width: 600px) {
    .sa-liveline__sep { display: none; }
    .sa-liveline__sep + a { flex-basis: 100%; }
}

/* state page map shading and county popup */
.boxmap { position: relative; }
.sa-map__shade { position: absolute; pointer-events: none; }
.sa-map__shade polygon { fill: #2850a0; stroke: rgba(255, 255, 255, .5); stroke-width: .5; transition: fill .12s ease; }
.sa-map__shade polygon.on { fill: #e72a57; fill-opacity: .6 !important; }
.sa-map__key { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px 50px; font-size: 12px; color: #5b6b77; }
.sa-map__key span { width: 110px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #a0b8e0, #2c4f94); }
.sa-map__tip {
    position: absolute;
    z-index: 5;
    min-width: 190px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d6dee4;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(14, 90, 122, .18);
    font-size: 13px;
    color: #1d2b36;
    pointer-events: none;
}
.sa-map__tip strong { display: block; margin-bottom: 6px; font-size: 15px; }
.sa-map__tip ul { list-style: none; margin: 0; padding: 0; }
.sa-map__tip li { display: flex; justify-content: space-between; gap: 16px; color: #5b6b77; line-height: 1.6; }
.sa-map__tip li b { color: #1d2b36; }
.sa-map__tip em { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: #0e5a7a; }

/* state info box next to the map */
.sa-state { padding: 4px 6px 6px; color: #1d2b36; }
.sa-state__title { margin: 4px 0 2px; font-size: 18px; font-weight: 700; color: #e72a57; }
.sa-state__total { margin: 0 0 10px; font-size: 13px; color: #5b6b77; }
.sa-state__total b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; color: #0e5a7a; }
.sa-state__list { list-style: none; margin: 0; padding: 0; }
.sa-state__list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    padding: 7px 0 8px;
    border-top: 1px solid #e3e8ec;
    color: #1d2b36;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.sa-state__list b { font-weight: 700; color: #0e5a7a; }
.sa-state__list i { grid-column: 1 / -1; height: 4px; min-width: 3%; border-radius: 2px; background: #0f97c4; opacity: .75; }
.sa-state__list a:hover, .sa-state__list a:focus { color: #0f97c4; text-decoration: none; }
.sa-state__list a:hover i { opacity: 1; }
.sa-state__list a:focus-visible { outline: 2px solid #0f97c4; outline-offset: 2px; }
@media (min-width: 992px) {
    .sa-state-col { background: rgb(248, 248, 249); padding: 10px; margin-bottom: 20px; }
}
/* phones and tablets: slim strip with type chips */
@media (max-width: 991px) {
    #statePageWrap { display: flex; flex-direction: column; }
    #statePageWrap > .row { display: contents; }
    #statePageWrap > .row::before, #statePageWrap > .row::after { display: none; }
    #statePageWrap > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
    .sa-new { order: 1; }
    .sa-teaser { order: 2; }
    .sa-state-col { order: 3; margin: 0 0 24px; }
    .sa-ref { order: 4; }
    .sa-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; background: rgb(248, 248, 249); border-radius: 6px; }
    .sa-state__title { margin: 0; font-size: 16px; }
    .sa-state__total { margin: 0; font-size: 13px; }
    .sa-state__total b { display: inline; font-size: 18px; letter-spacing: 0; margin-right: 2px; }
    .sa-state__list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
    .sa-state__list a { display: inline-flex; gap: 6px; padding: 3px 11px; border: 1px solid #d6dee4; border-radius: 999px; background: #fff; font-size: 13px; }
    .sa-state__list a b { font-weight: 400; color: #5b6b77; }
    .sa-state__list a:hover, .sa-state__list a:focus { border-color: #0f97c4; }
    .sa-state__list i { display: none; }
}

/* intro above the new listings */
.sa-intro { margin: 4px 0 22px; }
.sa-intro > p + p { margin-top: 6px; }
/* auctions page: lead-in right above the auctions board */
.sa-intro--lead { margin: 26px 0 0; }
.sa-intro--lead > h2 { font-size: 22px; margin-bottom: 8px; }
.sa-intro--lead > p { max-width: 780px; }
.sa-intro--lead + .sa-agenda { margin-top: 16px; }
.sa-intro--split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 60px; align-items: start; }
.sa-intro--split .sa-intro__copy > p { max-width: 680px; }
.sa-intro__copy > h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.3; color: #1d2b36; }
.sa-intro__copy > p { margin: 0; padding: 0; font-size: 15px; line-height: 1.65; color: #5b6b77; }
.sa-intro__copy > p + p { margin-top: 8px; }
/* auctions page: State Info look for the top counties */
.sa-state--counties { padding: 12px 16px 10px; background: rgb(248, 248, 249); border-radius: 6px; }
@media (min-width: 992px) {
    .sa-state--counties .sa-state__total { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #e3e8ec; }
    .sa-state--counties .sa-state__total b { display: inline; font-size: 18px; letter-spacing: 0; margin-right: 2px; }
    .sa-state--counties .sa-state__list a { grid-template-columns: 96px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 3px 0; border-top: 0; }
    .sa-state--counties .sa-state__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sa-state--counties .sa-state__list i { grid-column: 2; grid-row: 1; height: 6px; }
    .sa-state--counties .sa-state__list b { grid-column: 3; text-align: right; }
}
@media (max-width: 767px) {
    .sa-intro--split { grid-template-columns: minmax(0, 1fr); }
}
/* keep featured listings level with the sidebar */
#foreclosureLTMain > .col-sm-8 > .mt-4:first-child { margin-top: 0 !important; }
.sa-intro__title, .sa-intro > h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #1d2b36; }
#statePageWrap .sa-intro__text, .sa-intro > p { margin: 0; padding: 0; font-size: 14px; line-height: 1.6; color: #5b6b77; }
@media (max-width: 991px) {
    .sa-intro { order: 1; }
}

/* reference area below the auctions, full width */
.sa-ref { margin-top: 16px; padding-top: 28px; border-top: 1px solid #e3e8ec; }
.sa-law { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 20px 28px 22px; }
.sa-law h2 { margin: 4px 0 10px !important; font-size: 22px !important; }
.sa-law .law_title:before, .sa-law .how_title:before { font-size: 22px; }
.sa-law__laws { padding-right: 32px; }
.sa-law__buy { padding-left: 32px; border-left: 1px solid #eceff3; }
.sa-law__keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.sa-law__keys div { padding: 10px 12px; background: rgb(248, 248, 249); border-radius: 6px; }
.sa-law__keys dt { font-size: 12px; font-weight: 600; color: #5b6b77; }
.sa-law__keys dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: #1d2b36; }
.sa-law__more summary { padding: 6px 0; font-weight: 600; color: #0e5a7a; cursor: pointer; list-style: none; }
.sa-law__more summary::-webkit-details-marker { display: none; }
.sa-law__more summary i { width: 12px; transition: transform .15s ease; }
.sa-law__more[open] summary i { transform: rotate(90deg); }
.sa-law__more summary:hover { color: #0f97c4; }
.sa-law__more .law-features li { flex-wrap: wrap; }
.sa-law #faq_results { margin: 14px 0 0; }

.sa-alerts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    margin: 0 0 32px;
    padding: 18px 24px;
    background: rgb(248, 248, 249);
    border-radius: 6px;
}
.sa-alerts h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; color: #e72a57; }
.sa-alerts h2 i { color: #0f97c4; }
.sa-alerts p { margin: 0; color: #5b6b77; }
.sa-alerts__form { flex: 0 1 420px; }
.sa-alerts .sa-alerts__btn { background: #0f97c4; border-color: #2ca4cc; color: #fff; font-weight: 700; }
.sa-links { margin-bottom: 32px; }

@media (max-width: 991px) {
    .sa-law { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
    .sa-law__laws { padding-right: 0; }
    .sa-law__buy { padding: 16px 0 0; margin-top: 16px; border-left: 0; border-top: 1px solid #eceff3; }
    .sa-alerts__form { flex-basis: 100%; }
}
@media (max-width: 480px) {
    .sa-law__keys { grid-template-columns: 1fr; }
}
.sa-links .tabContent ul { padding-left: 0; column-count: 3; column-gap: 24px; }
.sa-links .tabContent ul li { width: auto; float: none; break-inside: avoid; }
.sa-links #topNeighborhoodList { column-count: 4; }
@media (max-width: 991px) {
    .sa-links .tabContent ul, .sa-links #topNeighborhoodList { column-count: 2; }
}
