/* Mover search page: list + US map layout (/movers/search). All classes are msm- prefixed. */
.msm {
    --msm-bg: #f5f7fb;
    --msm-surface: #ffffff;
    --msm-ink: #131a2b;
    --msm-muted: #5b6479;
    --msm-line: #e2e7f0;
    --msm-brand: #1d4ed8;
    --msm-brand-ink: #ffffff;
    --msm-brand-soft: #e8eefc;
    --msm-pin: #f59e0b;
    --msm-pin-ink: #1b1403;
    --msm-pin-hot: #1d4ed8;
    --msm-land: #e6ebf3;
    --msm-land-hover: #d5def0;
    --msm-land-active: #c9d6f4;
    --msm-border: #ffffff;
    --msm-sea: #f0f4fa;
    --msm-good: #15803d;
    --msm-star: #f59e0b;
    --msm-shadow: 0 10px 30px rgba(19, 26, 43, .12), 0 2px 6px rgba(19, 26, 43, .08);
    --msm-container: 1260px;
    --msm-gutter: max(20px, calc((100% - var(--msm-container)) / 2));

    background: var(--msm-surface);
    color: var(--msm-ink);
    font: 14px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.msm *,
.msm *::before,
.msm *::after {
    box-sizing: border-box;
}

.msm [hidden] {
    display: none !important;
}

.msm h1,
.msm h2,
.msm h3,
.msm h4,
.msm h5 {
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    text-wrap: balance;
    margin: 0;
    color: var(--msm-ink);
    letter-spacing: normal;
    text-transform: none;
}

.msm p {
    margin: 0;
}

/* zero-specificity resets so component classes below always win */
:where(.msm) a {
    color: inherit;
}

:where(.msm) :is(button, input, select) {
    font: inherit;
    color: inherit;
}

.msm :focus-visible {
    outline: 2px solid var(--msm-brand);
    outline-offset: 2px;
}

.msm mark {
    background: #fdefc8;
    color: inherit;
    padding: 0 1px;
    border-radius: 3px;
}

/* buttons */
.msm-btn {
    border: 1px solid var(--msm-line);
    background: var(--msm-surface);
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--msm-ink);
    line-height: 1.5;
}

.msm-btn:hover {
    border-color: var(--msm-muted);
    color: var(--msm-ink);
}

.msm-btn.pri {
    background: var(--msm-brand);
    color: var(--msm-brand-ink);
    border-color: var(--msm-brand);
}

.msm-btn.pri:hover {
    filter: brightness(1.08);
    color: var(--msm-brand-ink);
}

.msm-btn.soft {
    background: var(--msm-brand-soft);
    color: var(--msm-brand);
    border-color: transparent;
}

.msm-btn.soft:hover {
    background: #d9e3fb;
    border-color: transparent;
    color: var(--msm-brand);
}

/* page heading */
.msm-intro {
    background: var(--msm-surface);
    padding: 14px var(--msm-gutter) 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.msm-intro h1 {
    font-size: 24px;
    line-height: 1.2;
}

.msm-intro p {
    color: var(--msm-muted);
    font-size: 13px;
}

/* filter bar */
.msm-bar {
    background: var(--msm-surface);
    border-bottom: 1px solid var(--msm-line);
    padding: 12px var(--msm-gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.msm-field {
    position: relative;
    display: flex;
    align-items: center;
}

.msm-field > svg {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--msm-muted);
    pointer-events: none;
}

.msm-field input,
.msm-field select {
    height: 40px;
    border: 1px solid var(--msm-line);
    background: var(--msm-bg);
    border-radius: 10px;
    padding: 0 12px 0 34px;
    min-width: 0;
    margin: 0;
    box-shadow: none;
}

.msm-field input:focus,
.msm-field select:focus {
    border-color: var(--msm-brand);
    outline: none;
}

.msm-field select {
    padding-left: 12px;
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--msm-muted) 50%), linear-gradient(135deg, var(--msm-muted) 50%, transparent 50%);
    background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.msm-f-loc input {
    width: 230px;
    padding-right: 34px;
}

.msm-f-name input {
    width: 220px;
}

.msm-locx {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--msm-muted);
    font-size: 17px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.msm-locx:hover {
    background: var(--msm-line);
    color: var(--msm-ink);
}

.msm-locerr {
    position: absolute;
    left: 4px;
    top: calc(100% + 3px);
    font-size: 11.5px;
    color: #b42318;
    white-space: nowrap;
    z-index: 2;
}

.msm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.msm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--msm-brand-soft);
    color: var(--msm-ink);
    border-radius: 999px;
    padding: 4px 6px 4px 11px;
    font-size: 12.5px;
    font-weight: 600;
}

.msm-chip button {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--msm-muted);
    padding: 0;
}

.msm-chip button:hover {
    background: var(--msm-surface);
}

.msm-badge-n {
    background: var(--msm-brand);
    color: var(--msm-brand-ink);
    border-radius: 999px;
    font-size: 11px;
    padding: 0 7px;
    line-height: 18px;
}

.msm-clearall {
    border: 0;
    background: none;
    color: #b42318;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 4px;
}

.msm-clearall:hover {
    text-decoration: underline;
}

/* main split */
.msm-main {
    display: grid;
    grid-template-columns: minmax(380px, 44%) 1fr;
    width: 100%;
    max-width: var(--msm-container);
    margin-inline: auto;
    border-inline: 1px solid var(--msm-line);
    border-bottom: 1px solid var(--msm-line);
    height: calc(100vh - 90px);
    height: calc(100svh - 90px);
    min-height: 560px;
    max-height: 980px;
}

@media (max-width: 1300px) {
    .msm-main {
        border-inline: 0;
    }
}

.msm-list {
    overflow-y: auto;
    padding: 16px 20px 28px;
    border-right: 1px solid var(--msm-line);
    min-height: 0;
    position: relative;
}

.msm-list.is-loading #msm-results {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s;
}

.msm-ajax-message {
    background: #fef3f2;
    color: #b42318;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.msm-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.msm-list-head h2 {
    font-size: 20px;
    line-height: 1.3;
}

.msm-list-head p {
    margin: 2px 0 0;
    color: var(--msm-muted);
    font-size: 13px;
}

.msm-cards {
    display: grid;
    gap: 10px;
}

.msm-card {
    background: var(--msm-surface);
    border: 1px solid var(--msm-line);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.msm-card:hover,
.msm-card.hot {
    border-color: var(--msm-brand);
    box-shadow: 0 0 0 3px var(--msm-brand-soft);
}

.msm-av {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--msm-brand-soft);
    color: var(--msm-brand);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
}

.msm-av img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.msm-card h3 {
    font-size: 15.5px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.msm-card h3 a {
    text-decoration: none;
}

.msm-card h3 a:hover {
    text-decoration: underline;
}

.msm-ver {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--msm-good);
    font-size: 11.5px;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.msm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 5px;
    color: var(--msm-muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.msm-meta b {
    color: var(--msm-ink);
}

.msm-loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.msm-stars {
    color: var(--msm-star);
    letter-spacing: 1px;
}

.msm-acts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msm-acts .msm-btn {
    padding: 6px 12px;
    font-size: 12.5px;
    justify-content: center;
}

.msm-empty {
    padding: 40px 10px;
    text-align: center;
    color: var(--msm-muted);
}

.msm-empty .msm-btn {
    margin-top: 12px;
}

.msm-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    color: var(--msm-muted);
    font-size: 12.5px;
}

.msm-more .msm-btn {
    min-width: 220px;
    justify-content: center;
    padding: 10px 18px;
}

/* sponsored */
.msm-card.sponsored {
    background: #fffaeb;
    border-color: #f3d48a;
}

.msm-card.sponsored:hover,
.msm-card.sponsored.hot {
    border-color: #e0a82e;
    box-shadow: 0 0 0 3px #fdefc8;
}

.msm-card.sponsored .msm-av {
    background: #fdefc8;
    color: #8a5a00;
}

.msm-sp-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8a5a00;
    background: #fdefc8;
    border-radius: 4px;
    padding: 1px 6px;
    margin-bottom: 4px;
}

.msm-sp-sep {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--msm-muted);
    font-weight: 700;
    margin: 6px 2px 0;
}

/* map */
.msm-mapwrap {
    position: relative;
    background: var(--msm-sea);
    min-height: 0;
    overflow: hidden;
}

#msm-map {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
    user-select: none;
}

#msm-map.drag {
    cursor: grabbing;
}

.msm-st {
    fill: var(--msm-land);
    stroke: var(--msm-border);
    stroke-width: .8;
    transition: fill .15s;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.msm-st:hover,
.msm-st.hov {
    fill: var(--msm-land-hover);
}

.msm-st.on {
    fill: var(--msm-land-active);
}

.msm-st.dim {
    opacity: .55;
}

.msm-slab {
    fill: #4a5572;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    letter-spacing: .02em;
    paint-order: stroke;
    stroke: var(--msm-land);
    stroke-width: 2px;
    stroke-linejoin: round;
}

.msm-slab.on {
    fill: var(--msm-brand);
}

.msm-slead {
    stroke: #9aa5bd;
    stroke-width: .6;
    vector-effect: non-scaling-stroke;
}

.msm-pin {
    cursor: pointer;
}

.msm-pin circle {
    fill: var(--msm-pin);
    stroke: var(--msm-surface);
    vector-effect: non-scaling-stroke;
    stroke-width: 2;
    transition: fill .15s;
}

.msm-pin text {
    fill: var(--msm-pin-ink);
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.msm-pin.hot circle {
    fill: var(--msm-pin-hot);
}

.msm-pin.hot text {
    fill: #fff;
}

.msm-pin .halo {
    fill: var(--msm-pin);
    opacity: .25;
    stroke: none;
}

.msm-pin.hot .halo {
    fill: var(--msm-pin-hot);
}

.msm-mapctl {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msm-mapctl button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--msm-line);
    background: var(--msm-surface);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--msm-shadow);
    padding: 0;
    color: var(--msm-ink);
}

.msm-mapnote {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--msm-surface);
    border: 1px solid var(--msm-line);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: var(--msm-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.msm-mapnote button {
    border: 0;
    background: none;
    color: var(--msm-brand);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.msm-legend {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-size: 12px;
    color: var(--msm-muted);
    background: var(--msm-surface);
    border: 1px solid var(--msm-line);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msm-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--msm-pin);
    display: inline-block;
}

/* map popups */
.msm-pop {
    position: absolute;
    z-index: 5;
    width: 280px;
    background: var(--msm-surface);
    border: 1px solid var(--msm-line);
    border-radius: 14px;
    box-shadow: var(--msm-shadow);
    padding: 12px;
    transform: translate(-50%, calc(-100% - 18px));
    pointer-events: auto;
}

.msm-pop.below {
    transform: translate(-50%, 18px);
}

.msm-pop::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--msm-surface);
    border-right: 1px solid var(--msm-line);
    border-bottom: 1px solid var(--msm-line);
    transform: translateX(-50%) rotate(45deg);
}

.msm-pop.below::after {
    bottom: auto;
    top: -7px;
    transform: translateX(-50%) rotate(225deg);
}

.msm-pop h4 {
    margin: 0 0 2px;
    font-size: 13.5px;
}

.msm-pop .sub {
    color: var(--msm-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.msm-pop ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    max-height: 210px;
    overflow-y: auto;
}

.msm-pop li a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.msm-pop li a:hover {
    background: var(--msm-brand-soft);
}

.msm-pop li a span:first-child {
    font-weight: 600;
    line-height: 1.3;
}

.msm-pop li small {
    color: var(--msm-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.msm-pop li small b {
    color: var(--msm-star);
}

.msm-pop .msm-sp-tag {
    margin: 0 0 0 6px;
    font-size: 9.5px;
    vertical-align: 1px;
}

.msm-spop {
    width: 270px;
}

.msm-sp-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.msm-sp-head .ab {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--msm-brand);
    color: var(--msm-brand-ink);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .03em;
}

.msm-sp-head .sub {
    margin: 0;
}

.msm-sp-acts {
    display: grid;
    gap: 6px;
}

.msm-sp-acts .msm-btn {
    justify-content: center;
    padding: 7px 12px;
    font-size: 13px;
}

.msm-nopage {
    font-size: 12.5px;
    color: var(--msm-muted);
    text-align: center;
    padding: 4px 0;
}

/* filter drawer */
.msm-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 25, .4);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.msm-scrim.open {
    opacity: 1;
    pointer-events: auto;
}

.msm-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(360px, 92vw);
    background: var(--msm-surface);
    z-index: 1041;
    transform: translateX(-102%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--msm-shadow);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    visibility: hidden;
}

.msm-drawer.open {
    transform: none;
    visibility: visible;
}

.msm-dh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--msm-line);
}

.msm-dh h2 {
    font-size: 18px;
}

.msm-dh button {
    border: 0;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--msm-muted);
    width: 32px;
    height: 32px;
    padding: 0;
}

.msm-db {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: grid;
    gap: 22px;
    align-content: start;
}

.msm-grp h5 {
    margin: 0 0 8px;
    /* headerpage.css sets every heading to Noto Serif !important */
    font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--msm-muted);
}

.msm-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.msm-seg label {
    position: relative;
    margin: 0;
}

.msm-seg input {
    position: absolute;
    opacity: 0;
}

.msm-seg span {
    display: inline-block;
    border: 1px solid var(--msm-line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.msm-seg input:checked + span {
    background: var(--msm-brand);
    border-color: var(--msm-brand);
    color: var(--msm-brand-ink);
}

.msm-seg input:focus-visible + span {
    outline: 2px solid var(--msm-brand);
    outline-offset: 2px;
}

.msm-svc {
    display: grid;
    gap: 4px;
}

.msm-svc label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    font-size: 13.5px;
    cursor: pointer;
    margin: 0;
}

.msm-svc input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: none;
    accent-color: var(--msm-brand);
}

.msm-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.msm-toggle input {
    width: 40px;
    height: 22px;
    margin: 0;
    accent-color: var(--msm-brand);
}

.msm-df {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--msm-line);
}

.msm-df .msm-btn {
    flex: 1;
    justify-content: center;
}

/* mobile */
.msm-mtabs,
.msm-m-filters,
.msm-m-only {
    display: none;
}

@media (max-width: 860px) {
    .msm {
        --msm-gutter: 16px;
    }

    .msm-intro {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4px 12px;
        padding-block: 14px 0;
    }

    .msm-intro p {
        grid-column: 1 / -1;
    }

    .msm-intro h1 {
        font-size: 19px;
    }

    .msm-m-filters {
        display: inline-flex;
        padding: 7px 12px;
        font-size: 13px;
    }

    .msm-m-only {
        display: block;
    }

    #msm-open-filters,
    .msm-bar .msm-f-rating,
    .msm-bar .msm-f-service,
    .msm-bar .msm-f-sort {
        display: none;
    }

    .msm-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 16px;
    }

    .msm-bar .msm-f-loc,
    .msm-bar .msm-f-name {
        min-width: 0;
    }

    .msm-bar .msm-chips,
    .msm-bar .msm-clearall {
        grid-column: 1 / -1;
    }

    .msm-bar .msm-clearall {
        justify-self: start;
        padding: 0 4px;
    }

    .msm-field input,
    .msm-f-loc input,
    .msm-f-name input {
        min-width: 0;
        width: 100%;
    }

    .msm-main {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
        border-bottom: 0;
    }

    .msm-list {
        overflow: visible;
        padding: 14px 16px 90px;
        border-right: 0;
    }

    .msm-mapwrap {
        display: none;
    }

    .msm.show-map .msm-list {
        display: none;
    }

    .msm.show-map .msm-mapwrap {
        display: block;
        height: calc(100svh - 150px);
        min-height: 420px;
    }

    .msm-mtabs {
        display: flex;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 30;
        background: var(--msm-ink);
        border-radius: 999px;
        padding: 4px;
        box-shadow: var(--msm-shadow);
        transition: opacity .2s;
    }

    .msm-mtabs.off {
        opacity: 0;
        pointer-events: none;
    }

    .msm-mtabs button {
        border: 0;
        background: none;
        color: var(--msm-bg);
        padding: 9px 18px;
        border-radius: 999px;
        font-weight: 700;
        cursor: pointer;
    }

    .msm-mtabs button.on {
        background: var(--msm-bg);
        color: var(--msm-ink);
    }

    .msm-card {
        grid-template-columns: 40px 1fr;
    }

    .msm-av {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .msm-acts {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .msm-acts .msm-btn {
        flex: 1;
    }

    .msm-legend {
        display: none;
    }
}

/* keep the List/Map switch above the site's mobile bottom bar (.section_bottom_header) */
@media (max-width: 767.98px) {
    .msm-mtabs {
        bottom: calc(69px + env(safe-area-inset-bottom, 0px));
    }

    .msm-list {
        padding-bottom: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msm * {
        transition: none !important;
    }
}
