/* ==========================================================================
   Glopy · Mapa de viviendas (escritorio) — maqueta del cliente, 14 sep 2026.
   Cabecera (título + buscador) · chips de prefiltros · cuerpo con el mapa.
   Solo escritorio: por debajo de 900px la plantilla reenvía a /explorar.
   Reutiliza feed_list.css para los chips y las hojas de filtros.
   ========================================================================== */

.mp-only-phone { display: none !important; }
.mp-body { margin: 0; background: var(--gl-surface); color: var(--gl-text); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.gl-shell--full .mp-app {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--gl-surface);
}

/* ---- Cabecera ---------------------------------------------------------- */
.mp-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 32px 0;
}
.mp-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.mp-search { flex: 1 1 auto; min-width: 0; }
.mp-search__box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 16px 0 18px;
    border-radius: 14px;
    background: var(--gl-surface-sunken);
    border: 1px solid var(--gl-border-strong);
    cursor: text;
}
.mp-search__box:focus-within { border-color: var(--gl-blue); box-shadow: 0 0 0 3px rgba(16, 96, 255, 0.18); }
.mp-search__box > i { color: var(--gl-text-muted); font-size: 1.2rem; flex: none; }
.mp-search__box input {
    flex: 1 1 auto; min-width: 0;
    background: none; border: 0; outline: 0;
    color: var(--gl-text); font: inherit; font-size: 1.05rem;
}
.mp-search__box input::placeholder { color: var(--gl-text-muted); }
.mp-search__box input::-webkit-search-cancel-button { display: none; }
.mp-search__clear {
    flex: none;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; background: none;
    color: var(--gl-text-soft); font-size: 0.95rem; cursor: pointer;
}
.mp-search__clear:hover { background: var(--gl-surface-hover); color: var(--gl-text); }
.mp-search__clear[hidden] { display: none; }

/* ---- Chips --------------------------------------------------------------- */
.mp-filters { padding: 16px 32px 0; }
.gl-shell--full .mp-filters .fl-chips { margin: 0; padding: 0 0 2px; gap: 8px; }
/* Los ocho chips caben en una fila desde 1440px (maqueta): algo más
   compactos que en el listado, donde hay sitio de sobra. */
.gl-shell--full .mp-filters .fl-chip { height: 40px; padding: 0 12px; font-size: 0.9rem; gap: 6px; }
/* Por debajo de 1440px no caben los ocho: una sola fila desplazable (como
   en móvil) en vez de dos filas que le roban altura al mapa y al listado. */
@media (max-width: 1439px) {
    .gl-shell--full .mp-filters .fl-chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-right: 32px; margin-right: -32px; }
    .gl-shell--full .mp-filters .fl-chips::-webkit-scrollbar { display: none; }
}

/* ---- Cuerpo: listado + mapa ---------------------------------------------- */
.mp-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 16px;
    padding: 14px 32px 24px;
}

/* Listado lateral: scroll propio, independiente del mapa. */
.mp-list {
    flex: 0 0 300px;
    width: 300px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* Cabecera del listado: contador + acciones en la primera línea, orden en
   la segunda (en 300px no cabe todo en una). */
.mp-list__head {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    column-gap: 10px; row-gap: 2px;
    padding: 2px 0 10px;
}
.mp-count { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-count b { font-size: 1.15rem; }
.mp-count__scope { font-size: 0.78rem; font-weight: 600; color: var(--gl-text-soft); }
.mp-count { grid-row: 1; grid-column: 1; }
.mp-list__actions { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 8px; justify-self: end; }
.mp-sort { grid-row: 2; grid-column: 1 / -1; }
.mp-main:not([data-view="grid"]) .mp-only-grid { display: none !important; }
.mp-main[data-view="grid"] .mp-only-split { display: none !important; }

.mp-sort { position: relative; font-size: 0.82rem; color: var(--gl-text-soft); }
.mp-sort summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mp-sort summary::-webkit-details-marker { display: none; }
.mp-sort summary i { font-size: 0.7rem; }
.mp-sort__lbl { color: var(--gl-text-muted); }
.mp-sort__menu {
    position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
    min-width: 180px; padding: 6px;
    background: var(--gl-card-2, #11182a); border: 1px solid var(--gl-border-strong);
    border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.mp-sort__opt {
    display: block; width: 100%; text-align: left;
    padding: 8px 10px; border: 0; border-radius: 8px; background: none;
    color: var(--gl-text); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.mp-sort__opt:hover { background: var(--gl-surface-hover); }
.mp-sort__opt.is-active { color: var(--gl-blue-soft); font-weight: 700; }

.mp-iconbtn {
    width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gl-surface-raised); border: 1px solid var(--gl-border);
    color: var(--gl-text); font-size: 0.95rem; cursor: pointer;
}
.mp-iconbtn:hover { border-color: var(--gl-border-strong); }
.mp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px; border-radius: 10px;
    border: 1px solid var(--gl-border-strong); background: var(--gl-surface-raised);
    color: var(--gl-text); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
    text-decoration: none; white-space: nowrap;
}
.mp-btn:hover { border-color: var(--gl-blue-soft); }
.mp-btn--primary { background: var(--gl-blue); border-color: var(--gl-blue); color: #fff; }
.mp-btn--primary:hover { filter: brightness(1.08); }

.mp-nocoords {
    margin: 0 0 8px; padding: 8px 10px; border-radius: 10px;
    background: rgba(245, 196, 81, 0.1); border: 1px solid rgba(245, 196, 81, 0.35);
    color: var(--gl-text-soft); font-size: 0.78rem; line-height: 1.35;
}
.mp-nocoords[hidden] { display: none; }

.mp-list__scroll {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: var(--gl-border-strong) transparent;
}
.mp-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mp-cards.is-loading { opacity: 0.45; pointer-events: none; }

/* Tarjeta */
.mp-card {
    position: relative;
    border-radius: 16px; overflow: hidden; cursor: pointer;
    background: var(--gl-surface-raised);
    border: 1.5px solid var(--gl-border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mp-card:hover { border-color: var(--gl-border-strong); }
.mp-card.is-selected { border-color: var(--gl-blue); box-shadow: 0 0 0 3px rgba(16, 96, 255, 0.25); }
.mp-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--gl-surface-sunken); }
.mp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mp-card__price { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.mp-card__price small { font-size: 0.8rem; font-weight: 600; color: var(--gl-text-soft); }
.mp-card__loc { font-size: 0.88rem; color: var(--gl-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-card__specs { display: flex; gap: 4px; font-size: 0.82rem; color: var(--gl-text-muted); }
.mp-card__specs span + span::before { content: "·"; margin-right: 4px; }
.mp-card__none { font-style: italic; }
.mp-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.mp-card__source {
    flex: none; padding: 3px 8px; border-radius: 6px;
    background: rgba(16, 96, 255, 0.16); color: var(--gl-blue-soft);
    font-size: 0.72rem; font-weight: 700;
}
.mp-card__approx {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; color: var(--gl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-card__open {
    display: none; align-self: flex-end; margin-top: 6px;
    padding: 8px 14px; border-radius: 9px;
    background: var(--gl-blue); color: #fff; font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.mp-card__open:hover { filter: brightness(1.08); }
.mp-card.is-selected .mp-card__open { display: inline-block; }

.mp-empty, .mp-error {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 40px 18px; text-align: center; color: var(--gl-text-soft); font-size: 0.9rem;
}
.mp-empty i, .mp-error i { font-size: 2rem; color: var(--gl-text-muted); }
.mp-empty b, .mp-error b { color: var(--gl-text); font-size: 1rem; }
.mp-empty[hidden], .mp-error[hidden], .mp-more[hidden] { display: none; }
.mp-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
a.mp-btn { text-decoration: none; }
a.mp-btn[hidden] { display: none; }
.mp-notice__btn {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
    height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--gl-border-strong);
    background: var(--gl-surface-raised); color: var(--gl-text); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.mp-notice__btn:hover { border-color: var(--gl-blue-soft); }
.mp-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: var(--gl-text-muted); font-size: 0.85rem; }
.mp-spinner {
    width: 16px; height: 16px; border-radius: 50%; flex: none;
    border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gl-blue-soft);
    animation: mp-spin 0.8s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* ---- Mapa ------------------------------------------------------------------ */
.mp-map-col { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; }
.mp-map-wrap {
    position: relative;
    /* Contexto de apilamiento propio: los panes de Leaflet llevan z-index
       400-1000 y, sin esto, tapaban la hoja de filtros (z-index 90). */
    z-index: 0;
    isolation: isolate;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gl-border);
    background: #0b1730;
}
.mp-map { position: absolute; inset: 0; height: 100%; width: 100%; background: #0b1730; }
/* Teselas OSM invertidas para el aspecto oscuro de la maqueta (igual que
   /explorar); en tema claro se dejan tal cual. */
.mp-map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(0.9) contrast(0.9) saturate(1.2); }
:root[data-theme="light"] .mp-map .leaflet-tile-pane { filter: none; }
.mp-map .leaflet-control-zoom a {
    background: var(--gl-surface-raised); color: var(--gl-text);
    border-color: var(--gl-border-strong);
}
.mp-map .leaflet-control-zoom a:hover { background: var(--gl-surface-hover); }
.mp-map .leaflet-control-attribution { background: rgba(7, 9, 15, 0.7); color: var(--gl-text-muted); }
.mp-map .leaflet-control-attribution a { color: var(--gl-text-soft); }
.mp-map .leaflet-bar { border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
/* El zoom baja para dejar sitio al selector de vista. */
.mp-map .leaflet-top.leaflet-right .leaflet-control-zoom { margin-top: 64px; }

/* Marcadores: precio (vivienda) y círculo con número (grupo). */
.mp-pin-wrap, .mp-cluster-wrap { background: none !important; border: 0 !important; }
.mp-pin {
    position: relative; display: inline-block; transform: translate(-50%, -100%);
    padding: 5px 9px; border-radius: 999px;
    background: #fff; color: #0b1730; font: 700 0.78rem/1 'Inter', system-ui, sans-serif;
    white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(11, 23, 48, 0.15);
    cursor: pointer; transition: transform 0.12s ease;
}
.mp-pin::after {
    content: ""; position: absolute; left: 50%; bottom: -9px;
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
    transform: translateX(-50%); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.mp-pin:hover { transform: translate(-50%, -100%) scale(1.06); }
.mp-pin.is-selected { background: var(--gl-blue); color: #fff; border-color: var(--gl-blue-soft); }
.mp-pin.is-selected::after { background: var(--gl-blue); }
.mp-cluster {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 96, 255, 0.35); color: #fff;
    border: 2.5px solid #fff; font: 800 0.85rem 'Inter', system-ui, sans-serif;
    box-shadow: 0 0 0 6px rgba(16, 96, 255, 0.22), 0 6px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px); cursor: pointer;
}
.mp-cluster--m { width: 46px; height: 46px; font-size: 0.92rem; }
.mp-cluster--l { width: 54px; height: 54px; font-size: 1rem; }
.mp-map .leaflet-marker-icon.mp-pin-wrap,
.mp-map .leaflet-marker-icon.mp-cluster-wrap { width: 0 !important; height: 0 !important; overflow: visible; }
.mp-map .leaflet-marker-icon.is-selected-wrap { z-index: 1000 !important; }

/* ---- Dibujar zona (§3) ------------------------------------------------------ */
.mp-drawbtn, .mp-zonechip {
    position: absolute; z-index: 1100; top: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 12px; border: 0;
    background: #fff; color: #0b1730; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mp-drawbtn:hover { background: #f0f4ff; }
.mp-drawbtn[hidden], .mp-zonechip[hidden] { display: none; }
.mp-zonechip { cursor: default; padding-right: 8px; }
.mp-zonechip__lbl { display: inline-flex; align-items: center; gap: 8px; }
.mp-zonechip__sep { width: 1px; height: 18px; background: rgba(11, 23, 48, 0.2); margin: 0 2px; }
.mp-zonechip__act {
    border: 0; background: none; padding: 6px 8px; border-radius: 8px;
    color: var(--gl-blue); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.mp-zonechip__act:hover { background: rgba(16, 96, 255, 0.1); }
.mp-zonechip__x { display: none; }
.mp-zonetag {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px; border-radius: 10px;
    background: rgba(16, 96, 255, 0.16); border: 1px solid rgba(61, 134, 255, 0.5);
    color: var(--gl-text); font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}
.mp-zonetag[hidden] { display: none !important; }
.mp-main[data-view="grid"] .mp-zonetag:not([hidden]) { display: inline-flex; }

/* Modo dibujo: el ratón dibuja, no arrastra. */
.mp-map-wrap.is-drawing .mp-map { cursor: crosshair; }
.mp-map-wrap.is-drawing .mp-map .leaflet-interactive { cursor: crosshair; }
.mp-map-wrap.is-drawing .mp-viewtoggle,
.mp-map-wrap.is-drawing .mp-drawbtn,
.mp-map-wrap.is-drawing .mp-zonechip,
.mp-map-wrap.is-drawing .mp-searchhere { display: none; }
/* Mientras se dibuja, los marcadores no reaccionan al ratón. */
.mp-map-wrap.is-drawing .leaflet-marker-pane { pointer-events: none; }

.mp-drawhint {
    position: absolute; z-index: 1100; top: 14px; left: 14px;
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(9, 14, 26, 0.94); border: 1px solid var(--gl-border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px);
}
.mp-drawhint[hidden] { display: none; }
.mp-drawhint > i { font-size: 1.1rem; color: var(--gl-blue-soft); margin-top: 2px; }
.mp-drawhint b { display: block; font-size: 0.98rem; }
.mp-drawhint span { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--gl-text-soft); }
.mp-drawhint.is-ready > i { color: var(--gl-green, #22c55e); }

.mp-drawbar {
    position: absolute; z-index: 1100; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px;
    padding: 6px; border-radius: 14px;
    background: rgba(9, 14, 26, 0.94); border: 1px solid var(--gl-border-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
    white-space: nowrap;
}
.mp-drawbar[hidden] { display: none; }
.mp-drawbar__status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 12px; font-size: 0.9rem; font-weight: 700; color: var(--gl-text);
}
.mp-drawbar__status i { color: var(--gl-blue-soft); }
.mp-drawbar__btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
    background: none; color: var(--gl-text-soft); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.mp-drawbar__btn:hover { background: var(--gl-surface-hover); color: var(--gl-text); }
.mp-drawbar__btn--primary { background: var(--gl-blue); color: #fff; border-color: var(--gl-blue-soft); }
.mp-drawbar__btn--primary:hover { background: var(--gl-blue); filter: brightness(1.08); }
.mp-drawbar__btn[hidden], .mp-drawbar__status[hidden] { display: none; }
.mp-drawbar__aux { display: contents; }
/* Trazo y relleno del contorno (SVG de Leaflet) */
.mp-map .mp-stroke { stroke: var(--gl-blue-soft); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.mp-map .mp-poly { stroke: var(--gl-blue-soft); stroke-width: 2.5; fill: var(--gl-blue-soft); fill-opacity: 0.16; }
.mp-map .mp-poly--old { stroke: rgba(255, 255, 255, 0.55); stroke-dasharray: 6 6; fill: rgba(255, 255, 255, 0.06); }

/* ---- Crear alerta (§8) --------------------------------------------------------- */
.mp-alertbtn {
    position: absolute; z-index: 1100; left: 14px; bottom: 18px;
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 12px;
    background: rgba(9, 14, 26, 0.92); border: 1px solid var(--gl-border-strong);
    color: var(--gl-text); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
}
.mp-alertbtn:hover { border-color: var(--gl-blue-soft); }
.mp-map-wrap.is-drawing .mp-alertbtn { display: none; }
.mp-card__source--multi { background: rgba(34, 197, 94, 0.16); color: #4ade80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; flex: 0 1 auto; }

.mp-dialog { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; }
.mp-dialog[hidden] { display: none; }
.mp-dialog__backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, 0.6); }
.mp-dialog__panel {
    position: relative; z-index: 2; width: min(460px, calc(100vw - 48px)); box-sizing: border-box;
    margin: 0; padding: 26px 26px 22px; border-radius: 20px;
    background: var(--gl-card-2, #11182a); border: 1px solid var(--gl-border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.mp-dialog__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--gl-surface-hover); color: var(--gl-text); cursor: pointer; }
.mp-dialog__title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.mp-dialog__title i { color: var(--gl-blue-soft); }
.mp-dialog__text { margin: 0 0 16px; font-size: 0.9rem; color: var(--gl-text-soft); line-height: 1.4; }
.mp-dialog__field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--gl-text-soft); }
.mp-dialog__field input {
    height: 46px; padding: 0 14px; border-radius: 12px;
    background: var(--gl-surface-sunken); border: 1px solid var(--gl-border-strong);
    color: var(--gl-text); font: inherit; font-size: 1rem; outline: 0;
}
.mp-dialog__field input:focus { border-color: var(--gl-blue); }
.mp-dialog__err { margin: 10px 0 0; font-size: 0.85rem; color: #f87171; }
.mp-dialog__err[hidden] { display: none; }
.mp-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Selector de vista (arriba a la derecha del mapa) */
.mp-viewtoggle {
    position: absolute; z-index: 1100; top: 14px; right: 14px;
    display: flex; gap: 4px; padding: 4px;
    background: rgba(9, 14, 26, 0.9); border: 1px solid var(--gl-border-strong);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
}
.mp-viewtoggle__btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 12px; border-radius: 9px; border: 0;
    background: none; color: var(--gl-text-soft); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.mp-viewtoggle__btn:hover { color: var(--gl-text); }
.mp-viewtoggle__btn.is-active { background: var(--gl-blue); color: #fff; }

/* "Buscar en esta zona" (abajo, centrado) y estado de carga */
.mp-searchhere {
    position: absolute; z-index: 1100; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gl-blue-soft);
    background: var(--gl-blue); color: #fff; font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 28px rgba(16, 96, 255, 0.45);
    white-space: nowrap;
}
.mp-searchhere[hidden] { display: none; }
.mp-searchhere:hover { filter: brightness(1.08); }
.mp-loading {
    position: absolute; z-index: 1100; left: 50%; top: 14px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(9, 14, 26, 0.92); border: 1px solid var(--gl-border-strong);
    color: var(--gl-text); font-size: 0.85rem; font-weight: 600;
}
.mp-loading[hidden] { display: none; }

.mp-toast {
    position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
    padding: 10px 16px; border-radius: 12px;
    background: rgba(9, 14, 26, 0.95); border: 1px solid var(--gl-border-strong); color: var(--gl-text);
    font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Vistas: Solo mapa / listado ampliado ---------------------------------- */
.mp-main[data-view="map"] .mp-list { display: none; }
.mp-main[data-view="grid"] .mp-map-col { display: none; }
.mp-main[data-view="grid"] .mp-list { flex: 1 1 auto; width: auto; }
.mp-main[data-view="grid"] .mp-list__head { grid-template-columns: auto 1fr auto; padding-bottom: 14px; }
.mp-main[data-view="grid"] .mp-sort { grid-row: 1; grid-column: 2; }
.mp-main[data-view="grid"] .mp-list__actions { grid-column: 3; }
.mp-main[data-view="grid"] .mp-count { font-size: 1.25rem; }
.mp-main[data-view="grid"] .mp-count b { font-size: 1.4rem; }
.mp-main[data-view="grid"] .mp-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mp-main[data-view="grid"] .mp-card__open { display: none !important; }

/* Aviso "ubicación no encontrada" (§9): flotante sobre el mapa, arriba a la
   izquierda; no sustituye la ciudad por otra. */
.mp-notice {
    position: absolute; z-index: 1100;
    top: 16px; left: 16px;
    max-width: 420px;
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(9, 14, 26, 0.92);
    border: 1px solid var(--gl-border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}
.mp-notice > i { font-size: 1.2rem; color: var(--gl-amber, #f5c451); margin-top: 1px; }
.mp-notice b { display: block; font-size: 0.98rem; }
.mp-notice span { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--gl-text-soft); }


/* ---- Mi ubicación (ambas disposiciones) ------------------------------------- */
.mp-locate {
    position: absolute; z-index: 1100; right: 14px; top: 132px;
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(9, 14, 26, 0.92); border: 1px solid var(--gl-border-strong);
    color: var(--gl-text); font-size: 1.1rem; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mp-locate:hover { border-color: var(--gl-blue-soft); }
.mp-locate.is-busy i { animation: mp-spin 0.9s linear infinite; }
.mp-map-wrap.is-drawing .mp-locate { display: none; }
.mp-me { background: none !important; border: 0 !important; }
.mp-me span {
    display: block; width: 16px; height: 16px; border-radius: 50%;
    background: var(--gl-blue-soft); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(61, 134, 255, 0.3);
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   MÓVIL (< 900px): mapa a pantalla completa, panel inferior deslizable.
   Maqueta móvil del cliente (15 sep 2026). Sin barra de navegación.
   ========================================================================== */
@media (max-width: 899px) {
    .mp-only-phone { display: inline-flex !important; }
    .mp-body { overflow: hidden; height: 100dvh; }
    .gl-shell.gl-shell--full { height: 100dvh; }
    .gl-shell--full > .anav { display: none; }
    /* El marco es el hijo flexible del shell (appshell.css): sin barra de
       navegación ocupa la pantalla entera. */
    .gl-shell .mp-app { display: flex; flex-direction: column; flex: 1 1 0; height: auto; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: var(--gl-surface); }

    /* Cabecera: chevrón · buscador · filtros */
    .mp-header { gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0; }
    .mp-title { display: none; }
    .mp-back, .mp-filtersbtn {
        flex: none; width: 46px; height: 46px; border-radius: 12px;
        align-items: center; justify-content: center;
        background: var(--gl-surface-sunken); border: 1px solid var(--gl-border-strong);
        color: var(--gl-text); font-size: 1.15rem; text-decoration: none; cursor: pointer; position: relative;
    }
    .mp-back { background: none; border: 0; width: 36px; }
    .mp-filtersbtn__n {
        position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
        border-radius: 10px; background: var(--gl-blue); color: #fff; font-size: 0.72rem; font-weight: 800;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .mp-filtersbtn__n[hidden] { display: none; }
    .mp-search__box { height: 46px; padding: 0 10px 0 14px; }
    .mp-search__box input { font-size: 1rem; }

    /* Chips: una fila desplazable, altura cómoda de pulsación (≥44px). */
    .mp-filters { padding: 10px 0 0; }
    .gl-shell--full .mp-filters .fl-chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0; padding: 2px 12px 10px; gap: 8px; }
    .gl-shell--full .mp-filters .fl-chips::-webkit-scrollbar { display: none; }
    .gl-shell--full .mp-filters .fl-chip { height: 44px; padding: 0 14px; font-size: 0.95rem; }

    /* Cuerpo: el mapa ocupa todo; el panel se superpone abajo. */
    /* z-index 0 + isolate: el panel (600) y los controles del mapa (1100)
       se quedan dentro y no tapan la hoja de filtros (90), el diálogo (95)
       ni la pre-pantalla de cuenta. */
    .mp-main { position: relative; z-index: 0; isolation: isolate; flex: 1 1 auto; min-height: 0; padding: 0; gap: 0; display: block; }
    .mp-map-col { position: absolute; inset: 0; display: block; }
    .mp-map-wrap { position: absolute; inset: 0; border-radius: 0; border: 0; background: var(--gl-surface); }
    /* «Dibujar zona» y «Mi ubicación» flotan sobre el mapa, como en la
       maqueta original (cliente, 07/10/2026: fuera la franja oscura). */
    .mp-map { top: 0; height: auto; }
    .mp-map .leaflet-control-zoom { display: none; }          /* pellizco para zoom */
    .mp-map .leaflet-bottom { bottom: var(--mp-sheet-h, 150px); }
    .mp-viewtoggle { display: none; }
    .mp-locate { top: 14px; right: 14px; width: 48px; height: 48px; }
    .mp-drawbtn, .mp-zonechip { height: 44px; }
    .mp-alertbtn { display: none; }                             /* la campana va en el panel */
    .mp-searchhere { bottom: calc(var(--mp-sheet-h, 150px) + 14px); height: 44px; }
    .mp-loading { top: 70px; }
    .mp-notice { left: 12px; right: 12px; max-width: none; top: 70px; }
    .mp-map-wrap.is-drawing .mp-notice { display: none; }      /* no chocar con el aviso de dibujo */
    .mp-drawhint { left: 12px; right: auto; top: 14px; }

    /* Panel inferior */
    .mp-list {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 600;
        width: auto; flex: none;
        max-height: calc(100% - 8px);
        padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
        border-radius: 22px 22px 0 0;
        background: var(--gl-card-2, #11182a); border: 1px solid var(--gl-border-strong); border-bottom: 0;
        box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45);
        transition: height 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
        touch-action: none;
    }
    .mp-sheet__handle { justify-content: center; padding: 10px 0 4px; cursor: grab; }
    .mp-sheet__handle span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
    .mp-sheet__row { align-items: center; gap: 10px; padding: 6px 0 10px; }
    .mp-sheet__count { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
    .mp-sheet__count b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mp-sheet__count small { font-size: 0.88rem; color: var(--gl-blue-soft); }
    .mp-sheet__count small.mp-sheet__nc { color: var(--gl-muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mp-sheet__nc[hidden] { display: none; }
    .mp-sheet__bell, .mp-sheet__list {
        flex: none; height: 46px; border-radius: 12px;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: none; border: 1px solid var(--gl-border-strong); color: var(--gl-text);
        font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    }
    .mp-sheet__bell { width: 46px; font-size: 1.15rem; }
    .mp-sheet__list { padding: 0 14px; }
    /* Posiciones: reducido (sólo la fila), ampliado (listado). El estado
       vacío/error también se guarda para el listado ampliado: si no, el
       panel reducido crecía para enseñarlo y tapaba medio mapa. */
    .mp-main[data-panel="reduced"] .mp-list__head,
    .mp-main[data-panel="reduced"] .mp-nocoords,
    .mp-main[data-panel="reduced"] .mp-empty,
    .mp-main[data-panel="reduced"] .mp-error,
    .mp-main[data-panel="reduced"] .mp-list__scroll { display: none; }
    .mp-main[data-panel="expanded"] .mp-list { height: calc(100% - 8px); }
    .mp-list { transition: height 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.22s ease; will-change: transform; }
    .mp-sheet__row { touch-action: none; }
    .mp-main[data-panel="expanded"] .mp-sheet__list { display: none; }
    .mp-main[data-panel="expanded"] .mp-list__scroll { touch-action: pan-y; }
    .mp-list__head { grid-template-columns: 1fr auto; padding: 0 0 8px; }
    .mp-list__head .mp-count { display: none; }                 /* ya está en la fila del panel */
    .mp-list__head .mp-nocoords { margin-top: 0; }
    .mp-list__actions { display: none; }
    .mp-sort { grid-row: auto; grid-column: 1 / -1; font-size: 0.95rem; }
    .mp-count { font-size: 1.1rem; }
    .mp-cards { gap: 14px; }
    .mp-card__media { aspect-ratio: 16 / 10; }
    .mp-card__price { font-size: 1.25rem; }
    .mp-card__open { display: none !important; }
    /* Posición intermedia: tarjeta de la vivienda seleccionada (imagen 3). */
    .mp-sheet__sel { display: block !important; padding: 0 0 4px; }
    .mp-sheet__sel[hidden] { display: none !important; }
    .mp-main[data-panel="mid"] .mp-list__head,
    .mp-main[data-panel="mid"] .mp-nocoords,
    .mp-main[data-panel="mid"] .mp-empty,
    .mp-main[data-panel="mid"] .mp-error,
    .mp-main[data-panel="mid"] .mp-list__scroll { display: none; }
    .mp-main[data-panel="mid"] .mp-sheet__bell { display: none; }   /* la alerta va en la tarjeta */
    .mp-main[data-panel="expanded"] .mp-sheet__sel { display: none !important; }
    .mp-sel {
        position: relative; border-radius: 16px; overflow: hidden;
        background: var(--gl-surface-raised); border: 1.5px solid var(--gl-border-strong);
    }
    .mp-sel__close {
        position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
        border: 0; background: rgba(9, 14, 26, 0.7); color: #fff; font-size: 0.85rem; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .mp-sel__top { display: flex; gap: 12px; min-height: 150px; }
    .mp-sel__media { flex: 0 0 44%; background: var(--gl-surface-sunken); }
    .mp-sel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .mp-sel__body { flex: 1 1 auto; min-width: 0; padding: 12px 44px 10px 0; display: flex; flex-direction: column; gap: 3px; }
    .mp-sel__price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
    .mp-sel__price small { font-size: 0.85rem; font-weight: 600; color: var(--gl-text-soft); }
    .mp-sel__loc { font-size: 0.92rem; color: var(--gl-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mp-sel__specs { display: flex; gap: 4px; font-size: 0.88rem; color: var(--gl-text-muted); }
    .mp-sel__specs span + span::before { content: "·"; margin-right: 4px; }
    .mp-sel .mp-card__source { align-self: flex-start; margin-top: 4px; max-width: 100%; }
    .mp-sel .mp-card__approx { margin-top: 2px; }
    .mp-sel__fav { top: 46px; right: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
    .mp-sel__actions { display: flex; gap: 10px; padding: 10px 12px 12px; }
    .mp-sel__open { flex: 1 1 auto; justify-content: center; height: 46px; font-size: 1rem; }
    .mp-sel__alert { flex: 0 0 auto; height: 46px; padding: 0 18px; }

    /* Dibujar con el dedo (imagen 2): el dedo dibuja, no mueve el mapa; los
       controles se apartan y las acciones van en el sitio del panel. */
    .mp-map-wrap.is-drawing .mp-map, .mp-map-wrap.is-drawing .mp-map * { touch-action: none !important; }
    .mp-map-wrap.is-drawing .leaflet-control-attribution { display: none; }
    .mp-main.is-drawing .mp-list { display: none; }
    .mp-drawhint { top: 14px; left: 12px; right: 12px; max-width: none; }
    .mp-map-wrap.is-drawing .mp-drawhint { right: 76px; }
    .mp-drawbar {
        left: 0; right: 0; bottom: 0; transform: none;
        flex-direction: column; align-items: stretch; gap: 10px;
        padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
        border-radius: 22px 22px 0 0; border-bottom: 0; white-space: normal;
        box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45);
    }
    .mp-drawbar::before { content: ""; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); margin-bottom: 2px; }
    .mp-drawbar__status { padding: 0; font-size: 1.3rem; font-weight: 800; }
    .mp-drawbar__status i { display: none; }
    .mp-drawbar__btn { height: 48px; font-size: 1rem; justify-content: center; }
    .mp-drawbar__btn--primary { order: 1; }
    .mp-drawbar__aux { display: flex; justify-content: space-between; order: 2; }
    .mp-drawbar__aux .mp-drawbar__btn { padding: 0 10px; }
    .mp-zonechip__txt { display: none; }
    .mp-zonechip__x { display: inline; }
    .mp-zonechip__act { padding: 8px 10px; font-size: 0.95rem; }
    .mp-zonechip__sep { display: none; }
    .mp-zonechip { padding-right: 4px; gap: 4px; }
    .mp-zonechip__lbl { padding-right: 6px; }

    /* Estados en el panel reducido (§9): sin resultados y error se ven sin
       tener que ampliar el listado; compactos. */
    .mp-empty, .mp-error { padding: 6px 4px 12px; gap: 6px; }
    .mp-empty i, .mp-error i { font-size: 1.5rem; }
    .mp-empty__actions .mp-btn, .mp-error .mp-btn { height: 46px; }
    /* Objetivos táctiles de al menos 44px. */
    .mp-search__clear { width: 44px; height: 44px; }
    .mp-zonechip__act { min-height: 44px; }
    .mp-sel__close { width: 44px; height: 44px; top: 4px; right: 4px; }
    .mp-sel__fav { width: 44px; height: 44px; top: 52px; right: 4px; }
    .mp-card .fl-fav { width: 44px; height: 44px; }
    .mp-sort summary { min-height: 44px; }
    .mp-drawbar__aux .mp-drawbar__btn { min-width: 44px; }

    .mp-backtomap {
        position: fixed; z-index: 50; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%);
        align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
        background: var(--gl-blue); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
        box-shadow: 0 12px 30px rgba(16, 96, 255, 0.45);
    }
    .mp-backtomap[hidden] { display: none !important; }
    .mp-toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); max-width: calc(100vw - 32px); text-align: center; }
    .mp-dialog__panel { width: calc(100vw - 32px); padding: 22px 18px 18px; }
    .mp-dialog__actions .mp-btn { height: 46px; }
}

/* ---- Mercado: Viviendas | Coches (26 sep 2026: el mapa de coches es esta
   misma pantalla; antes vivía en /explorar con los fallos ya corregidos aquí) */
.mp-market {
    display: inline-flex; flex: none; gap: 4px; padding: 4px;
    border-radius: 14px; background: var(--gl-surface-sunken); border: 1px solid var(--gl-border);
}
.mp-market__tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
    color: var(--gl-text-soft); font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.mp-market__tab:hover { color: var(--gl-text); background: var(--gl-surface-hover); }
.mp-market__tab.is-active { background: var(--gl-blue); color: #fff; }
.mp-market__tab i { font-size: 1.05rem; }
/* Tarjeta de coche: marca y modelo encima de la ubicación. */
.mp-card__title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sel__title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
    /* La cabecera sigue siendo UNA fila (chevrón · buscador · filtros): el
       buscador parte de base 0 para no forzar el salto; las pestañas de
       mercado van debajo, a todo el ancho. */
    .mp-header { flex-wrap: wrap; }
    .mp-header > .mp-search { flex: 1 1 0%; min-width: 0; }
    .mp-header > .mp-back, .mp-header > .mp-filtersbtn { flex: none; }
    .mp-market { order: 10; display: flex; width: 100%; margin-top: 8px; }
    .mp-market__tab { flex: 1 1 0; justify-content: center; min-height: 44px; }
}
/* Elementos que en el mercado de coches aún no aplican (filtros y alertas
   llegan en sus hitos). Va al final: debe ganar a `.mp-only-phone`. */
.mp-hide { display: none !important; }

/* Cabecera del mapa en móvil como la maqueta original (cliente, 07/10/2026):
   volver + buscador, y debajo los chips. Sin el botón de filtros a la derecha
   (ya está el chip «Filtros») ni el conmutador Viviendas | Coches: el mapa
   abre en el mercado en el que está el usuario. En escritorio no cambia. */
@media (max-width: 899px) {
    .mp-header > .mp-filtersbtn.mp-only-phone, .mp-header > .mp-market { display: none !important; }
}

/* ===== Tema claro (punto 17) =====
Mapa en tema claro.
   ========================================================================== */

:root[data-theme="light"] .mp-sort__menu { box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14); border: 1px solid var(--gl-border); }
:root[data-theme="light"] .mp-nocoords { background: rgba(154, 98, 0, 0.06); border-color: rgba(154, 98, 0, 0.25); }
:root[data-theme="light"] .mp-card__source { background: rgba(16, 96, 255, 0.07); }
:root[data-theme="light"] .mp-card__source--multi { background: rgba(8, 130, 74, 0.08); color: var(--gl-green); }
:root[data-theme="light"] .mp-spinner { border-color: rgba(15, 23, 42, 0.14); }
:root[data-theme="light"] .mp-map-wrap, :root[data-theme="light"] .mp-map { background: #e8edf6; }
:root[data-theme="light"] .mp-map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .mp-map .leaflet-bar { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14); }
:root[data-theme="light"] .mp-pin { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22); }
:root[data-theme="light"] .mp-pin::after { box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2); }
:root[data-theme="light"] .mp-cluster { background: rgba(16, 96, 255, 0.78); box-shadow: 0 0 0 6px rgba(16, 96, 255, 0.16), 0 4px 12px rgba(15, 23, 42, 0.2); }
:root[data-theme="light"] .mp-drawbtn, :root[data-theme="light"] .mp-zonechip { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14); border: 1px solid rgba(15, 23, 42, 0.06); }
:root[data-theme="light"] .mp-zonetag { background: rgba(16, 96, 255, 0.07); border-color: rgba(16, 96, 255, 0.35); color: var(--gl-blue); }
/* Paneles flotantes sobre el mapa: cristal claro */
:root[data-theme="light"] .mp-drawhint, :root[data-theme="light"] .mp-drawbar, :root[data-theme="light"] .mp-alertbtn, :root[data-theme="light"] .mp-viewtoggle, :root[data-theme="light"] .mp-loading,
:root[data-theme="light"] .mp-toast, :root[data-theme="light"] .mp-notice, :root[data-theme="light"] .mp-locate {
    background: rgba(255, 255, 255, 0.94);
    color: var(--gl-text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
:root[data-theme="light"] .mp-map .mp-poly--old { stroke: rgba(15, 23, 42, 0.45); fill: rgba(15, 23, 42, 0.05); }
:root[data-theme="light"] .mp-dialog__backdrop { background: rgba(15, 23, 42, 0.38); }
:root[data-theme="light"] .mp-dialog__panel { box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }
:root[data-theme="light"] .mp-dialog__err { color: var(--gl-red); }
:root[data-theme="light"] .mp-searchhere, :root[data-theme="light"] .mp-backtomap { box-shadow: 0 8px 20px rgba(16, 96, 255, 0.28); }
@media (max-width: 899px) {
    :root[data-theme="light"] .mp-list { box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14); }
    :root[data-theme="light"] .mp-sheet__handle span, :root[data-theme="light"] .mp-drawbar::before { background: rgba(15, 23, 42, 0.16); }
    :root[data-theme="light"] .mp-drawbar { box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14); }
    :root[data-theme="light"] .mp-sel__close { background: rgba(255, 255, 255, 0.9); color: var(--gl-text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16); }
}
