/* Mapa de empresas estilo Airbnb */
.map-page { background: #fff; padding-bottom: 56px; }
.map-page .ed-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #64748b; }
.map-page .ed-crumb a { color: #0d3243; font-weight: 600; text-decoration: none; }
.map-crumb { padding: 118px 0 12px; }
.map-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: #d2591f; margin: 0 0 8px; }
.map-empty { grid-column: 1 / -1; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 48px 32px; text-align: center; }
.map-empty h2 { color: #0f172a; font-size: 1.3rem; margin: 0 0 8px; }
.map-empty p { color: #64748b; margin: 0; }
.map-pin:hover img, .map-pin:hover b { box-shadow: 0 6px 18px rgba(210, 89, 31, .5); }
.map-popup-links { display: flex; gap: 14px; margin-top: 4px; }
.map-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.map-heading h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.map-heading p { color: #64748b; margin: 0; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.map-chip { border: 1px solid #e2e8f0; background: #fff; color: #334155; font-weight: 600; font-size: .82rem; border-radius: 50px; padding: 8px 16px; cursor: pointer; }
.map-chip.active { background: #0d3243; border-color: #0d3243; color: #fff; }
.map-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.map-list { display: flex; flex-direction: column; gap: 12px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.map-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #eef2f6; border-radius: 16px; padding: 12px 14px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.map-card:hover { box-shadow: 0 10px 24px rgba(13, 50, 67, .1); transform: translateY(-2px); }
.map-card-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.map-card-main { display: flex; flex-direction: column; min-width: 0; }
.map-card-type { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #d2591f; }
.map-card-title { font-weight: 700; color: #0f172a; font-size: .95rem; }
.map-card-addr { font-size: .8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); min-height: 480px; }
.map-locate-btn { position: absolute; top: 12px; right: 12px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #e2e8f0; color: #0d3243; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); transition: background .2s, transform .2s; }
.map-locate-btn:hover { background: #f1f5f9; transform: translateY(-1px); }
.map-locate-btn:focus-visible { outline: 3px solid rgba(210, 89, 31, .45); outline-offset: 2px; }
.map-locate-btn.is-loading { opacity: .55; pointer-events: none; }
.map-locate-btn.is-error { color: #dc2626; border-color: #fca5a5; }
#map { width: 100%; height: 100%; min-height: 480px; z-index: 1; }
.map-pin-wrap { background: none; border: none; }
.map-pin { display: block; width: 48px; height: 55px; position: relative; }
.map-pin img, .map-pin b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(13, 50, 67, .35); overflow: hidden; }
.map-pin img { object-fit: cover; }
.map-pin b { color: #0d3243; font-size: 1.15rem; }
.map-pin::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid #fff; filter: drop-shadow(0 2px 2px rgba(13, 50, 67, .25)); }
.map-popup { min-width: 200px; max-width: 240px; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.map-popup-type { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #d2591f; }
.map-popup-title { font-weight: 800; color: #0f172a; margin: 2px 0; }
.map-popup-addr { font-size: .78rem; color: #64748b; margin-bottom: 6px; }
.map-popup a { color: #0d3243; font-weight: 700; font-size: .85rem; text-decoration: none; }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.4; }

/* Mini-mapa del buscador de /empresas */
.mini-map-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); }
#minimap { width: 100%; height: 300px; z-index: 1; }
.mini-map-link { position: absolute; right: 12px; bottom: 12px; z-index: 500; background: #0d3243; color: #fff; font-weight: 700; font-size: .8rem; border-radius: 50px; padding: 8px 16px; text-decoration: none; box-shadow: 0 6px 16px rgba(13, 50, 67, .3); }
.mini-map-link:hover { color: #fff; background: #194c60; }
@media (max-width: 991px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-wrap { order: -1; }
  .map-list { max-height: 320px; }
  .map-wrap, #map { min-height: 420px; }
}
