/* The map view: everywhere in a region on one map, full screen.
 *
 * Lifted out of `_ours.css` on 9 September 2026, unchanged. The page it
 * dresses was the last on the site still naming a 2023 stylesheet, and the
 * 2023 stylesheet gave it nothing: these rules were the only ones it used,
 * and they were reaching it through `_ours.css`, which only loaded because a
 * 2023 sheet had been named. Two sheets to use half of one.
 *
 * Hand-written, like `_ours.css` and `_listing.css`. There is no mock for the
 * map view and no builder to re-run; if it is redrawn, it is redrawn here.
 *
 * `RegionController@map` names it. The tokens it reads come from
 * `_shared.css`, which every page loads.
 */

/* Peat at 16% and at 9%. Both are declared at the top of every 2023 redesign
   file and nowhere in _shared.css, which is how these rules have been getting
   them; without the 2023 sheet behind it this sheet has to say them itself. */
.mv {
  --hairline: rgba(65, 64, 66, .16);
  --hairline-soft: rgba(65, 64, 66, .09);
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #e8e6dd;
    font-family: var(--sans);
}

.mv-map { position: absolute; inset: 0 }
.mv-canvas { position: absolute; inset: 0 }

.mv-off {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    margin: 0 auto;
    padding: 30px;
    max-width: 34ch;
    text-align: center;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink-55);
}

/* ---- the panel --------------------------------------------------- */

.mv-side {
    position: absolute;
    top: clamp(12px, 2vh, 22px);
    left: clamp(12px, 2vh, 22px);
    bottom: clamp(12px, 2vh, 22px);
    width: min(380px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(251, 249, 246, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(65, 64, 66, .22);
}

.mv-head {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(16px, 2.4vh, 24px) clamp(16px, 2vw, 22px) 0;
}

.mv-kick {
    margin: 0 0 4px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-55);
}

.mv-head h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: min(clamp(24px, 2.2vw, 31px), 28px + (clamp(24px, 2.2vw, 31px) - 28px) * 0.6);
    line-height: 1.05;
    letter-spacing: -.024em;
    color: var(--ink);
}

.mv-shut {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.mv-shut:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) }

/* ---- searching and filtering ------------------------------------- */

.mv-find { flex: none; padding: clamp(12px, 1.8vh, 18px) clamp(16px, 2vw, 22px) 0 }

.mv-find input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(65, 64, 66, .04);
    border: 1px solid var(--hairline-soft);
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink);
}

.mv-find input:focus {
    outline: none;
    border-color: var(--moss);
    background: var(--paper);
}

.mv-kinds {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px clamp(16px, 2vw, 22px);
}

.mv-kinds button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    background: none;
    border: 1px solid var(--hairline-soft);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--ink);
    transition: border-color .2s, color .2s, background .2s;
}

/* The colour this group's pins are drawn in, so the filter bar is the
   map's legend rather than a second thing to learn. */
.mv-ink {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
}

.mv-kinds button.on .mv-ink { box-shadow: 0 0 0 2px rgba(251, 249, 246, .5) }

.mv-kinds button i {
    font-style: normal;
    font-size: 8.5px;
    opacity: .65;
    font-variant-numeric: tabular-nums;
}

.mv-kinds button:hover { border-color: var(--hairline); color: var(--ink) }

.mv-kinds button.on {
    background: var(--forest, #2B301D);
    border-color: var(--forest, #2B301D);
    color: var(--paper);
}

.mv-count {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 clamp(16px, 2vw, 22px) 10px;
    font-size: 9.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-55);
    border-bottom: 1px solid var(--hairline-soft);
    padding-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.mv-follow { display: inline-flex; align-items: center; gap: 6px; cursor: pointer }
.mv-follow input { accent-color: var(--moss); width: 13px; height: 13px }

/* ---- the places -------------------------------------------------- */

.mv-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 clamp(10px, 1.4vw, 14px) 14px;
    list-style: none;
}

/* Four hundred rows with a photograph each: let the browser skip the
   ones nobody has scrolled to. */
.mv-list li { content-visibility: auto; contain-intrinsic-size: auto 62px }

.mv-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    text-decoration: none;
    transition: background .2s var(--ease, ease);
}

.mv-list li.on a { background: rgba(192, 140, 61, .13) }
.mv-list a:hover { background: rgba(65, 64, 66, .05) }

.mv-shot {
    flex: none;
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: var(--hairline-soft);
}

.mv-shot img { width: 100%; height: 100%; object-fit: cover; display: block }
.mv-none { display: block; width: 100%; height: 100% }

.mv-said { min-width: 0 }

.mv-said b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-said i {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-55);
}

.mv-empty {
    padding: 22px 8px;
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink-55);
}

.mv-empty button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--moss);
    text-decoration: underline;
    cursor: pointer;
}

/* ---- what you last pointed at ------------------------------------ */

.mv-peek {
    position: absolute;
    right: clamp(12px, 2vh, 22px);
    bottom: clamp(12px, 2vh, 22px);
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(320px, calc(100vw - 24px));
    padding: 9px;
    background: rgba(251, 249, 246, .97);
    box-shadow: 0 18px 44px rgba(65, 64, 66, .24);
    text-decoration: none;
    animation: mv-peek-in .3s var(--ease, ease) both;
}

@keyframes mv-peek-in {
    from { opacity: 0; transform: translateY(10px) }
    to   { opacity: 1; transform: none }
}

.mv-peek img { flex: none; width: 58px; height: 58px; object-fit: cover; display: block }
.mv-peek span { min-width: 0 }

.mv-peek b {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: var(--ink);
}

.mv-peek i {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-55);
}

@media (max-width: 720px) {
    /* The panel takes the bottom half and the map keeps the top, so
       both are usable with a thumb. */
    .mv-side {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 58vh;
        box-shadow: 0 -14px 40px rgba(65, 64, 66, .2);
    }

    .mv-peek { bottom: calc(58vh + 12px); right: 12px; left: 12px; width: auto }
}

@media (prefers-reduced-motion: reduce) {
    .mv-peek { animation: none }
}
