/* EduGenaro Maps: capa independiente de lugares comunitarios. */
.leaflet-overlay-pane svg path{fill-opacity:.24!important;stroke-opacity:.88!important}
.egme-community-pin{background:transparent!important;border:0!important}
.egme-community-pin>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#fff;border:3px solid #bd1e59;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.egme-community-pin b{font-size:20px;line-height:1;transform:rotate(45deg)}
.egme-community-popup{font:14px/1.4 system-ui;color:#172033;min-width:245px;max-width:310px}
.egme-community-popup img{width:100%;height:135px;object-fit:cover;border-radius:10px;margin:0 0 8px}
.egme-community-popup strong,.egme-community-popup small{display:block}.egme-community-popup small{color:#667085;margin-top:4px}
.egme-community-popup p{margin:8px 0}.egme-community-popup nav{display:flex;gap:7px;flex-wrap:wrap}
.egme-community-popup a{background:#124e78;color:#fff!important;text-decoration:none;padding:8px 11px;border-radius:999px;font-weight:800}
.egme-community-popup a:first-child{background:#bd1e59}
#egme-community-search{position:absolute;z-index:10050;background:#fff;border:1px solid #d8e0ea;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);height:min(390px,62vh);overflow:hidden;display:none;font:14px/1.3 system-ui}
#egme-community-search .egme-search-columns{display:grid;grid-template-columns:minmax(220px,42%) minmax(280px,58%);height:100%;min-width:620px}
#egme-community-search .egme-search-column{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:#fff}
#egme-community-search .egme-search-column+.egme-search-column{border-left:2px solid #dbe4ee}
#egme-community-search .egme-search-column-list{overflow:auto;min-height:0}
#egme-community-search .egme-column-empty{margin:0;padding:18px 12px;color:#667085;text-align:center;font-size:12px}
#egme-community-search .egme-search-title{padding:9px 12px;background:#f3f6fa;color:#475467;font-weight:900;position:sticky;top:0;z-index:2}
#egme-community-search .egme-search-title.is-premium{background:linear-gradient(90deg,#fff4c7,#fffaf0);color:#7a4b00;border-top:1px solid #efc44f}
#egme-community-search .egme-search-title.is-places{background:#eef6ff;color:#153f72;border-top:1px solid #c9ddf3}
#egme-community-search button{display:block;width:100%;border:0;border-bottom:1px solid #eef2f6;background:#fff;text-align:left;padding:11px 13px;cursor:pointer;color:#172033}
#egme-community-search button:hover{background:#f5f8fc}#egme-community-search small{display:block;color:#667085;margin-top:3px}
#egme-community-search .egme-kind{display:inline-block;margin-right:7px;padding:2px 7px;border-radius:999px;background:#eaf2ff;color:#174ea6;font-size:11px;font-weight:900;vertical-align:1px}
#egme-community-search .egme-kind-place{background:#fff1f2;color:#9f1239}
#egme-community-search .egme-kind-premium{background:#5b3a00;color:#ffe69a;border:1px solid #d9aa32}
#egme-community-search .egme-premium-result{background:linear-gradient(90deg,#fffdf6,#fff)!important}
#egme-community-search .egme-exact{box-shadow:inset 4px 0 0 #16a34a;background:#f0fdf4}
#egme-community-search .egme-search-empty{padding:12px;color:#667085}
#egme-community-toggle{position:fixed;right:16px;bottom:22px;z-index:10040;border:0;border-radius:999px;padding:12px 16px;background:#9d174d;color:#fff;font:800 14px system-ui;box-shadow:0 10px 28px rgba(0,0,0,.25);cursor:pointer}
#egme-community-panel{position:fixed;right:16px;bottom:78px;z-index:10039;width:min(360px,calc(100vw - 32px));max-height:62vh;overflow:hidden;background:#fff;border:1px solid #dbe3ee;border-radius:17px;box-shadow:0 18px 50px rgba(0,0,0,.25);font:14px/1.35 system-ui;color:#172033}
#egme-community-panel[hidden]{display:none!important}#egme-community-panel header{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #edf1f5}
#egme-community-panel header strong{font-size:15px}#egme-community-panel header button{border:0;background:#f2f4f7;border-radius:50%;width:30px;height:30px;cursor:pointer}
#egme-community-list{max-height:calc(62vh - 58px);overflow:auto}#egme-community-list button{display:grid;grid-template-columns:42px 1fr;gap:10px;width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left;padding:11px 13px;cursor:pointer;color:#172033}
#egme-community-list button:hover{background:#f6f8fb}#egme-community-list .egme-list-icon{width:40px;height:40px;border-radius:12px;background:#f8e8ef;display:grid;place-items:center;font-size:21px}
#egme-community-list b,#egme-community-list small,#egme-community-list time{display:block}#egme-community-list small,#egme-community-list time{color:#667085;font-size:12px;margin-top:2px}
#egme-community-empty{padding:24px;text-align:center;color:#667085}

#egme-community-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:8px;border-bottom:1px solid #edf1f5;background:#f8fafc}
#egme-community-tabs button{border:0;border-radius:9px;padding:8px 5px;background:#eef2f6;color:#344054;font-weight:800;cursor:pointer}
#egme-community-tabs button.is-active{background:#9d174d;color:#fff}
.egme-community-view[hidden]{display:none!important}
#egme-territory-list{max-height:calc(62vh - 104px);overflow:auto}
#egme-territory-list button{display:block;width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left;padding:11px 13px;color:#172033;cursor:pointer}
#egme-territory-list small{display:block;color:#667085;margin-top:3px}
#egme-request-view{padding:13px;max-height:calc(62vh - 104px);overflow:auto}
#egme-request-view input,#egme-request-view textarea{box-sizing:border-box;width:100%;border:1px solid #cfd8e3;border-radius:10px;padding:10px;margin:5px 0 9px;font:14px system-ui;color:#172033;background:#fff}
#egme-request-view textarea{min-height:78px;resize:vertical}
#egme-request-view .egme-request-send{width:100%;border:0;border-radius:10px;background:#9d174d;color:#fff;padding:10px;font-weight:900;cursor:pointer}
#egme-request-feed{margin-top:12px;border-top:1px solid #edf1f5}
#egme-request-feed article{padding:9px 2px;border-bottom:1px solid #edf1f5;color:#172033}
#egme-request-feed small{display:block;color:#667085;margin-top:3px}
.egme-community-popup .egme-popup-author{display:flex;align-items:center;gap:8px;margin:9px 0;padding:8px;border:1px solid #e3e8ef;border-radius:12px;background:#f8fafc;color:#172033;text-decoration:none}.egme-community-popup .egme-popup-author img{width:38px;height:38px;border-radius:50%;object-fit:cover;margin:0}.egme-community-popup .egme-popup-author span,.egme-community-popup .egme-popup-author small,.egme-community-popup .egme-popup-author b{display:block}.egme-community-popup .egme-popup-author small{color:#667085;font-size:10px}.egme-community-popup .egme-popup-author b{font-size:13px}
.egme-community-popup .egme-popup-counts{display:flex;gap:8px;margin:9px 0}.egme-community-popup .egme-popup-counts span{padding:5px 9px;border:1px solid #e3e8ef;border-radius:999px;background:#f8fafc;font-weight:800}.egme-community-popup .egme-popup-events{display:grid;gap:4px;margin:9px 0;padding:9px;border:1px solid #f0d391;border-radius:11px;background:#fff9e9}.egme-community-popup .egme-popup-events a{color:#9d174d;font-weight:800;text-decoration:none}

@media(max-width:700px){#egme-community-toggle{right:10px;bottom:15px}#egme-community-panel{left:10px;right:10px;bottom:68px;width:auto;max-height:55vh}#egme-community-list{max-height:calc(55vh - 58px)}}

/* Conserva los marcadores permanentes, pero elimina el panel duplicado
   "Lugares publicados" que ocupaba espacio en el mapa. */
#edg-places-panel,#edg-places-toggle{display:none!important}

@media(max-width:700px){
  #egme-community-search{height:min(390px,58vh);border-radius:10px;font-size:12px}
  #egme-community-search .egme-search-columns{grid-template-columns:minmax(125px,40%) minmax(185px,60%);min-width:0}
  #egme-community-search button{padding:9px 8px}
  #egme-community-search .egme-kind{display:block;width:max-content;margin:0 0 4px;font-size:9px}
  #egme-community-search small{font-size:10px}
  .egme-static-account-nav{max-width:100vw;overflow-x:auto;white-space:nowrap}
}

/* v5.2.63 — buscador y controles centrados únicamente dentro de la app. */
@media(display-mode:standalone) and (max-width:700px){
  #egme-community-search{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;height:min(360px,48dvh)!important}
  #egme-community-search .egme-search-columns{width:100%!important;min-width:0!important;grid-template-columns:minmax(118px,40%) minmax(0,60%)!important}
  #egme-community-panel{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;bottom:calc(68px + env(safe-area-inset-bottom))!important}
  #egme-community-toggle{right:10px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}
  .egme-community-popup{width:auto!important;min-width:0!important;max-width:calc(100vw - 54px)!important}
  .egme-static-account-nav{left:6px!important;right:6px!important;top:6px!important;width:auto!important;max-width:none!important;justify-content:center!important;overflow-x:auto!important}
}
@media(max-width:700px){
  html.egme-map-app #egme-community-search{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;height:min(360px,48dvh)!important}
  html.egme-map-app #egme-community-search .egme-search-columns{width:100%!important;min-width:0!important;grid-template-columns:minmax(118px,40%) minmax(0,60%)!important}
  html.egme-map-app #egme-community-panel{left:10px!important;right:10px!important;width:auto!important;max-width:none!important;bottom:calc(68px + env(safe-area-inset-bottom))!important}
  html.egme-map-app #egme-community-toggle{right:10px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}
  html.egme-map-app .egme-community-popup{width:auto!important;min-width:0!important;max-width:calc(100vw - 54px)!important}
  html.egme-map-app .egme-static-account-nav{left:6px!important;right:6px!important;top:6px!important;width:auto!important;max-width:none!important;justify-content:center!important;overflow-x:auto!important}
}
