:root{
    --h-row1: 52px;
    --h-row2: 145px;
    --header-h: calc(var(--h-row1) + var(--h-row2));
    --bg: #ffffff;
    --fg: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #f59e0b; /* botón vistoso */
    --shadow: 0 8px 20px rgba(15,23,42,.10);
    --radius: 14px;
}

.m-body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--fg); background:#f8fafc; }
.m-noscroll{ overflow:hidden; }
.m-main{ padding-top: var(--header-h); min-height: 100dvh; }

.m-header{
    position: fixed; top:0; left:0; right:0;
    height: var(--header-h);
    background: var(--bg);
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

.m-header__row1{
    height: var(--h-row1);
    display:flex; align-items:center; gap:8px;
    padding: 8px 10px;
}

.m-iconbtn{
    width:40px; height:40px;
    display:grid; place-items:center;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    color: var(--fg);
    text-decoration:none;
}

.m-brand{ flex:1; display:flex; align-items:center; min-width:0; }
.m-brand__title{
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-header__row2{
    height: var(--h-row2);
    display:flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 10px 10px;
}

.m-mode{
    display:flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    overflow:hidden;
    flex: 0 0 auto;
}

.m-mode__btn{
    appearance:none;
    border:0;
    background:transparent;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    display:flex; align-items:center; gap:6px;
    min-width: 0;
    justify-content:center;
}

.m-mode__btn.is-active{
    background: rgba(245,158,11,.16);
    color: var(--fg);
}

.m-mode__dot{
    width:8px; height:8px; border-radius:999px;
    background: currentColor;
    opacity: .7;
}

.m-search{
    display: flex;
    align-items: center;
    height: 100%;
}
.m-search__panel{
    display: grid;
    grid-template-columns: 1fr 56px; /* inputs + botón */
    grid-template-rows: 40px 40px;   /* A y B */
    gap: 6px 8px;
    align-items: stretch;
    width: 100%;
}

.m-search__stack{
    display: contents; /* los inputs pasan al grid */
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.m-search__panel[data-panel="route"] .m-input:nth-of-type(1){
    grid-column: 1;
    grid-row: 1;
}

.m-search__panel[data-panel="route"] .m-input:nth-of-type(2){
    grid-column: 1;
    grid-row: 2;
}

.m-search__panel[data-panel="route"] .m-go{
    grid-column: 2;
    grid-row: 1 / span 2;      /* botón alto */
    height: 100%;
}

.m-search__panel[data-panel="search"]{
    grid-template-rows: 44px;
}
.m-search__panel[data-panel="search"] .m-input{
    grid-row: 1;
}
.m-search__panel[data-panel="search"] .m-go{
    grid-row: 1;
}

.m-input{
    width:100%;
    box-sizing:border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background:#fff;
    outline:none;
}
.m-input--single{ height: 44px; }

.m-go{
    width: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #111827;
    font-weight: 900;
}

.is-hidden{ display:none !important; }

/* Drawer */
.m-overlay{
    position: fixed; inset:0;
    background: rgba(2,6,23,.45);
    z-index: 60;
}
.m-drawer{
    position: fixed; top:0; left:0;
    width: min(82vw, 320px);
    height: 100dvh;
    background:#fff;
    z-index: 1001;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
    border-right: 1px solid var(--border);
}
.m-drawer.is-open{ transform: translateX(0); }

.m-drawer__top{
    height: var(--h-row1);
    display:flex; align-items:center; justify-content:space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.m-drawer__title{ font-weight: 800; }

.m-drawer__nav{ padding: 10px; display:flex; flex-direction:column; gap:6px; }
.m-drawer__link{
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration:none;
    color: var(--fg);
    border: 1px solid var(--border);
    background:#fff;
}
.m-drawer__link:active{ background:#f1f5f9; }

/*SEARCH*/

/* 1) El wrapper de TomSelect debe comportarse como input */
.m-search .ts-wrapper{
    width: 100%;
    position: relative;
}

/* 2) La caja visible pasa a ser .ts-control (no el input) */
.m-search .ts-control{
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* 3) Quita el “cuadro interno”: el input dentro de ts-control */
.m-search .ts-control input{
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

/* 4) Si TomSelect crea items, evita bordes raros */
.m-search .ts-control .item{
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--fg);
}

/* 5) Placeholder y texto */
.m-search .ts-control::after{ display:none; } /* quita caret si aparece */
.m-search .ts-control .placeholder{
    color: var(--muted);
    font-size: 14px;
}

/* 6) Dropdown alineado con tu estilo */
.m-search .ts-dropdown{
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.m-search .ts-dropdown .option{
    padding: 10px 12px;
    font-size: 14px;
}
.m-search .ts-dropdown .option.active{
    background: rgba(15,23,42,.06);
}

/* 7) Importante: evita que tu clase .m-input aplique borde al input original
      cuando TomSelect lo esconde. */
.m-search input.m-input.ts-hidden-accessible{
    border: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.m-search input.ts-hidden-accessible{
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Cuando un select está enfocado, súbelo por encima del resto */
.m-search .ts-wrapper.focus{
    z-index: 2000;
}

/* Dropdown SIEMPRE por encima de mapa/header */
.ts-dropdown,
.ts-dropdown-content{
    z-index: 3000 !important;
}

/* Opcional: mismo estilo que tu UI */
.ts-dropdown{
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
}
.ts-dropdown .option{
    padding: 10px 12px;
    font-size: 14px;
}
.ts-dropdown .option.active{
    background: rgba(15,23,42,.06);
}

.m-header .m-search .ts-wrapper + .m-input,
.m-header .m-search .m-input.ts-hidden-accessible{
    border: 0 !important;
    background: transparent !important;
}


/*BODY*/
/* Contenedor principal del módulo mapa */
.m-mapShell{
    position: relative;
    width: 100%;
    /* Ajuste: el módulo vive bajo el header */
    margin-top: 0;
    z-index: 1;
}

/* El mapa ocupa 80% del viewport disponible bajo el header */
.m-mapWrap{
    position: relative;
    width: 100%;
    height: calc((100dvh - var(--header-h)) * 0.80);
    background: #E0E0E0;
    overflow: hidden;
}

/* Modo expandido: mapa ocupa TODO bajo el header */
body.is-map-expanded .m-mapWrap{
    height: calc(100dvh - var(--header-h));
}

body.is-map-expanded #dirMini{
    bottom: 50px;
}

/* Leaflet container */
#map{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #E0E0E0;
    z-index: 2;
}

/* Placeholder + loader (rápida percepción de carga) */
.map-placeholder{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    transition: opacity .2s ease;
    pointer-events: none;
}
.map-loader{
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none; /* lo activas desde JS */
    place-items: center;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(2px);
    pointer-events: none;
    justify-content: center;
}
.map-loader::after{
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(15,23,42,.20);
    border-top-color: rgba(15,23,42,.75);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Estados de visibilidad */
.map-hidden{ visibility: hidden; }
.tiles-hidden{ opacity: 0; } /* tú ya lo usas */

/* Overlay del mapa: breadcrumb + chips + expand */
.m-mapOverlay{
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    pointer-events: none; /* para no bloquear el mapa */
    z-index: 9;
}

/* Breadcrumb */
.m-mapCrumb{ grid-column: 1 / span 1; grid-row: 1; pointer-events: auto; }
.m-crumb{
    margin: 0;
    padding: 8px 10px;
    list-style: none;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}
.m-crumb li{ display: inline-flex; align-items:center; gap: 6px; }
.m-crumb li:not(:last-child)::after{ content: "›"; color: var(--muted); }
.m-crumb a{ text-decoration:none; color: var(--fg); }
.m-crumb strong{ color: var(--fg); }

/* Chips */
.m-mapChips{
    grid-column: 1 / span 1;
    grid-row: 2;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}
.m-chip{
    border: 1px solid var(--border);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    color: var(--fg);
    line-height: 1;
}
.m-chip.is-active{
    border-color: rgba(245,158,11,.45);
    background: rgba(245,158,11,.18);
}

/* Botón expand */
.m-mapExpand{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    color: var(--fg);
    font-size: 18px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

/* Panel direcciones: lo conservamos, pero no debe “comerse” el mapa */
.m-dirPanel{
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    pointer-events: auto;
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
}

/* Si NO lo quieres en el rediseño mobile, descomenta: */
/* .m-dirPanel{ display:none; } */

.m-dirForm{ display:flex; align-items:center; gap:10px; }
.m-btn{ border:0; border-radius:12px; padding:10px 12px; font-weight:800; }
.m-btn--secondary{ background:#0f172a; color:#fff; }

/* Controles Leaflet con tu estética */
#map .leaflet-control-zoom,
#map .leaflet-bar{
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
}
#map .leaflet-bar a{
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--fg);
    border-bottom: 1px solid var(--border) !important;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
}
#map .leaflet-bar a:last-child{ border-bottom: 0 !important; }

/* Asegura que el header quede por encima */
.m-header{ z-index: 1000; }

.leaflet-top{
    top: 85px !important;
}

/* Drawer de indicaciones */
.dirDrawer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200; /* por encima del mapa; por debajo del header si quieres */
    height: min(62dvh, 520px);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
    transform: translateY(105%);
    transition: transform .20s ease;
    display: grid;
    grid-template-rows: 54px auto 1fr;
    pointer-events: auto;
}

.dirDrawer.is-open{ transform: translateY(0); }
.dirDrawer.is-hidden{ display:none; }

.dirDrawer__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.dirDrawer__title{ font-weight: 900; }
.dirDrawer__close{
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 22px;
    line-height: 1;
}

.dirDrawer__summary{
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.dirDrawer__steps{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 18px;
}

/* Step item */
.dirStep{
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.dirStep__main{ font-weight: 800; font-size: 14px; }
.dirStep__meta{ color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Mini panel inferior (cuando cierras el drawer) */
.dirMini{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1190;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 10px 12px;
    pointer-events: auto;
}

.dirMini.is-hidden{ display:none; }

.dirMini__line1{ font-weight: 900; font-size: 14px; }
.dirMini__line2{ margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Cuando el drawer está abierto, oculta el mini */
.dirMini.is-suspended{ display:none; }

/* Importante: no bloquear mapa con overlays generales */
.m-mapOverlay{ pointer-events: none; }
.m-mapOverlay .m-mapExpand,
.m-mapOverlay .m-mapChips,
.m-mapOverlay .m-mapCrumb{ pointer-events: auto; }

.dirStep.is-active{
    border-color: rgba(245,158,11,.55);
    background: rgba(245,158,11,.14);
}

.material-symbols-outlined{
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    font-size: 22px;
    line-height: 1;
}

.dirStep{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
}

.dirStep__icon{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.dirStep__main{ font-weight: 900; }

.dirMini__row{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
}

#dirMiniIcon.material-symbols-outlined{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    font-size: 20px;
    line-height: 1;
}

.m-popup{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}
.m-popup__title{ font-weight: 900; margin-bottom: 4px; }
.m-popup__desc{ color: #334155; }

/*CONTENIDO*/

/* Sheet (zona inferior con scroll) */
.m-sheet{
    width: 100%;
    padding: 10px 12px 14px;
    background: rgba(248,250,252,.96);
    border-top: 1px solid var(--border);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.m-sheet__handle{
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15,23,42,.18);
    margin: 2px auto 10px;
}

/* Cards */
.m-card{
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 10px;
}

.m-card__head{
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.m-card__head--row{
    display:flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.m-card__title{
    font-weight: 900;
    font-size: 14px;
    color: var(--fg);
}
.m-card__subtitle{
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}
.m-card__body{ padding: 12px; }

.m-text{ margin: 0 0 8px; font-size: 13px; color: var(--fg); }
.m-text--muted{ color: var(--muted); margin: 0; }

/* Servicios: tiles */
.m-grid--services{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.m-tile{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.m-tile__icon{
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.m-tile__count{
    font-weight: 900;
    font-size: 16px;
    line-height: 1.1;
}

.m-tile__label{
    font-size: 12px;
    color: var(--fg);
    font-weight: 800;
}

.m-tile__cta{
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* POI list */
.m-list{ display: flex; flex-direction: column; gap: 10px; }

.m-poi{
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
}

.m-poi__icon{
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.m-poi__name{ font-weight: 900; font-size: 13px; }
.m-poi__desc{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.m-poi__row{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Chips */
.m-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.9);
    font-size: 12px;
    color: var(--fg);
    text-decoration: none;
}
.m-chip--muted{ color: var(--muted); }
.m-chip__ico{ font-size: 13px; line-height: 1; }

/* Responsive: a partir de 480px, 3 columnas en servicios */
@media (min-width: 480px){
    .m-grid--services{ grid-template-columns: 1fr 1fr 1fr; }
}

/* Grid responsive */
.m-grid--services{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (min-width: 480px){
    .m-grid--services{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 900px){
    .m-grid--services{ grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Form wrapper */
.m-tileForm{ margin: 0; }
.m-hidden{ display:none; }

/* Tile (botón completo clicable) */
.m-tile{
    width: 100%;
    text-align: left;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    display: grid;

    /* 2 columnas, 2 filas */
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;

    align-items: start;
    box-shadow: var(--shadow);
    cursor: pointer;
    min-height: 84px; /* un poco más grande */
}

/* Icono queda arriba a la izquierda */
.m-tile__iconWrap{
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.85);
    display: grid;
    place-items: center;
}

.m-tile__iconWrap .bi{
    font-size: 22px;
    line-height: 1;
}

/* Meta ocupa la columna derecha, fila 1 */
.m-tile__meta{
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* SIN ellipsis: permitimos wrap */
.m-tile__label{
    font-weight: 900;
    font-size: 12.5px;      /* un poco más pequeño */
    line-height: 1.15;
    color: var(--fg);
    white-space: normal;     /* <-- wrap */
    overflow: visible;
    text-overflow: unset;
}

/* CTA abajo a la izquierda (fila 2, col 2) */
.m-tile__cta{
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    color: var(--muted);
}

/* Badge abajo a la derecha (fila 2, col 1-2, alineado end) */
.m-tile__badge{
    grid-column: 2;
    grid-row: 2;
    justify-self: end;

    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: var(--fg);
}

/*DESCRIPCION*/
.m-text--lead{
    font-size: 13.5px;
    line-height: 1.35;
}

.m-links{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(15,23,42,.06);
}

.m-links__list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.m-links__a{
    display: flex;
    gap: 8px;
    align-items: baseline;
    text-decoration: none;
    color: var(--fg);
    padding: 10px;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    background: rgba(248,250,252,.85);
}

.m-links__a:active{ transform: translateY(1px); }

.m-address{
    margin-top: 10px;
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.60);
}

.m-address__label{
    font-weight: 800;
    color: var(--fg);
}

/*POIS*/
.m-poiList{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-poiCard{
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
}

.m-poiCard__head{
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
}

.m-poiCard__icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.85);
    display: grid;
    place-items: center;
    color: var(--fg);
}
.m-poiCard__icon .bi{ font-size: 20px; line-height: 1; }

.m-poiCard__title{
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

.m-poiCard__type{ margin: 4px 0 0; }

.m-poiCard__desc{
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
}

.m-poiCard__body{ margin-top: 10px; }

.m-poiCard__address{
    margin: 0 0 10px;
    font-style: normal;
    font-size: 12px;
    color: var(--fg);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.m-poiActions{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m-poiActions li{
    display: flex;
    align-items: center;
}

/* Área inferior: scroll interno */
.m-poiScroll{
    max-height: 46vh;            /* ajusta según tu layout 80/20 */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;          /* evita que el scroll “muerda” */
}

/* Evita overflow horizontal global */
.m-card, .m-poiCard, .m-poiList, .m-poiScroll{
    max-width: 100%;
}

.m-poiCard{
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
    overflow: hidden;          /* clave: recorta sombras/chips */
}

.m-poiCard__head{
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
}

.m-poiCard__titleWrap{ min-width: 0; }

.m-poiCard__title{
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    word-break: break-word;
}

.m-poiCard__type{ margin: 6px 0 0; }

/* Descripción: limita altura para que no descompense */
.m-poiCard__desc{
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;       /* evita cards gigantes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Acciones alineadas en grid, no flex-wrap */
.m-poiActions{
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 8px;
}

/* En pantallas algo mayores, 3 columnas */
@media (min-width: 480px){
    .m-poiActions{ grid-template-columns: 1fr 1fr 1fr; }
}

/* Chips: recorte y wrap seguro */
.m-chip{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-height: 26px;
}

.m-chip span{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Para email/web largos: permitir romper sin salir */
.m-chip{
    word-break: break-word;
}

/*ESPLORA*/
.m-listPage{
    padding: 10px 12px 14px;
}

/* Breadcrumb compacto */
.m-crumb{ margin: 2px 0 10px; }
.m-crumb__ol{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}
.m-crumb__li{ display:flex; gap:6px; align-items:center; }
.m-crumb__li::after{
    content: "›";
    opacity: .35;
}
.m-crumb__li:last-child::after{ content: ""; }
.m-crumb__a{ text-decoration:none; color: var(--muted); }
.m-crumb__current{ color: var(--fg); font-weight: 800; }

/* Head */
.m-listHead{ margin: 0 0 10px; }
.m-listHead__title{
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--fg);
}
.m-listHead__subtitle{
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

/* Grid */
.m-listGrid{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Item */
.m-listItem{
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
}

.m-listItem__icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.85);
    display: grid;
    place-items: center;
}
.m-listItem__icon .bi{ font-size: 20px; }

.m-listItem__main{ min-width: 0; display:flex; flex-direction:column; gap:2px; }
.m-listItem__title{
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    white-space: normal; /* no ellipsis */
    word-break: break-word;
}
.m-listItem__meta{
    font-size: 12px;
    color: var(--muted);
    line-height: 1.2;
}
.m-listItem__meta--muted{ opacity: .9; }

.m-listItem__badge{
    min-width: 30px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: var(--fg);
}

.m-listItem__chev{
    font-size: 20px;
    opacity: .35;
}

/* Pager */
.m-pager{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.m-pager__btn{
    text-decoration: none;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 10px 12px;
    text-align: center;
    font-weight: 900;
    font-size: 12.5px;
    color: var(--fg);
}

.m-pager__btn.is-disabled{
    opacity: .45;
    pointer-events: none;
}

.m-pager__mid{
    font-size: 12px;
    color: var(--muted);
    font-weight: 900;
}








