/* ==========================================================
   LAYOUT GENERAL
========================================================== */
.bm-list-row{
  margin-bottom:10px;
}
.bm-list-title{
  color:#1A8DB7;
  font-weight: bold;
}
#blessmap-map {
  width: 100%;
  height: 100%;
}
.blessmap-info-panel button:hover,
.blessmap-info-panel button:link,
.blessmap-info-panel button:visited,
.blessmap-info-panel button:active{
  background-color: transparent;
  color:#000;
}
.blessmap-mobile-header button:hover,
.blessmap-mobile-header button:link,
.blessmap-mobile-header button:visited,
.blessmap-mobile-header button:active{
  background-color: transparent;
}

.bm-linklike{
  font-size: 14px
}

#blessmap-root {
  display: flex;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blessmap-map-wrapper {
  flex: 1;
  position: relative;
  height: 100vh; /* escritorio: mapa a pantalla completa */
  overflow: hidden;
}

/* Columna fija a la izquierda (solo desktop) */
.blessmap-desktop-column {
  width: 60px;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  box-sizing: border-box;
  border-right: 1px solid #262626; /* línea gris como en el diseño */
}

#blessmap-mainmenu a:hover {
  color: #fff;
  text-decoration: none;
}

/* ==========================================================
   SIDEBAR PRINCIPAL (LISTA / FILTROS)
========================================================== */

.blessmap-sidebar {
  width: 340px;
  max-width: 100%;
  height: 100vh;
  min-height: 0;
  background: #050505;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  overflow-y: auto; /* scroll solo en el lateral */
}

#blessmap-search {
  border-radius: 99px;
}

/* ==========================================================
   HEADER MÓVIL
========================================================== */

.blessmap-mobile-header {
  display: none;
}

/* Ambos botones existen, pero la X está oculta por defecto */
#blessmap-mobile-sidebar-close {
  display: none;
}

/* Cuando el panel está abierto ocultamos la lupa y mostramos la X */
.blessmap-sidebar-open #blessmap-mobile-search {
  display: none;
}

.blessmap-sidebar-open #blessmap-mobile-sidebar-close {
  display: inline-flex;
}

/* ==========================================================
   LOGOS
========================================================== */

.blessmap-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.blessmap-mobile-logo {
  display: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;

  background: linear-gradient(135deg, #ffcc33, #ff4f7b, #5d5dfd);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
}

.logo-text {
  letter-spacing: 0.03em;
}

/* ==========================================================
   FILTROS
========================================================== */

.blessmap-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blessmap-label {
  font-size: 13px;
  opacity: 0.75;
}

.blessmap-filters input,
.blessmap-filters select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid #333;
  background: #101010;
  color: #f5f5f5;

  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.blessmap-filters input::placeholder {
  color: #666;
}

.blessmap-filters-row {
  display: flex;
  gap: 10px;
}

.blessmap-filters-row select {
  flex: 1;
}

/* Botón reset */
.blessmap-reset-btn {
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;

  border: 1px solid #444;
  background: #181818;
  color: #f5f5f5;

  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.blessmap-reset-btn:hover {
  background: #222;
  border-color: #ffcc33;
}

/* ==========================================================
   LISTA DE LUGARES
========================================================== */

.blessmap-places-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.blessmap-places-title {
  font-size: 13px;
  opacity: 0.75;
}

.blessmap-places-list {
  flex: 1;
  padding: 10px;

  background: #050505;
  border-radius: 24px;
  border: 1px solid #333;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;

  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.blessmap-places-list::-webkit-scrollbar {
  width: 6px;
}

.blessmap-places-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.blessmap-place-item {
  padding: 12px 14px;
  border-radius: 20px;

  background: #111;
  border: 1px solid transparent;

  cursor: pointer;
  font-size: 13px;

  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.blessmap-place-item:hover {
  background: #181818;
  border-color: #444;
}

.blessmap-place-item.active {
  border-color: #facc15;
  background: #151008;
}

.blessmap-place-title-row {
  margin-bottom: 5px;
}

.blessmap-place-title {
  margin-bottom: 5px;
  font-weight: 600;
}

.blessmap-place-category-pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.blessmap-place-meta {
  font-size: 12px;
  opacity: 0.85;
}

/* ==========================================================
   PANEL LATERAL INFO (DETALLE LUGAR)
========================================================== */

/* Body del panel (lo que llega por AJAX) */
.bm-panel-body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

/* Cuando ya cargó */
.bm-panel-body.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.blessmap-info-panel {
  position: absolute;
  top: 0;
  right: 0;

  width: 420px;
  max-width: 100%;
  height: 100%;

  background: #fff;
  color: #111;

  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 20;
  box-sizing: border-box;
  padding: 20px 24px;
}

.blessmap-info-panel.open {
  transform: translateX(0);
}

.blessmap-info-close {
  position: absolute;
  top: 14px;
  right: 18px;

  background: transparent;
  border: none;
  cursor: pointer;

  font-size: 24px;
  line-height: 1;
  color: #666;
}

.blessmap-info-content {
  margin-top: 28px;
  height: calc(100% - 28px);
  overflow-y: auto;
  padding-right: 4px;
}

.blessmap-info-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.blessmap-info-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;

  overflow: hidden;
  background: #eee;

  flex-shrink: 0;
}

.blessmap-info-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blessmap-info-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.blessmap-info-address {
  font-size: 13px;
  color: #555;
}

.blessmap-info-category-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;

  font-size: 11px;
  border-radius: 999px;

  background: #111827;
  color: #e5e7eb;
}

/* ==========================================================
   BOTONES DE INTERACCIÓN
========================================================== */


/* Contenedor principal lado derecho */
.blessmap-info-main {
  flex: 1;
}

/* Separación del pill */
.bm-pill-row {
  margin-top: 10px;
}

/* Fila de botones */
.bm-action-row {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}


/* ==========================================================
   CÓMO LLEGAR
========================================================== */

.bm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.bm-directions-wrapper {
  position: relative;
}

.bm-action-row .bm-directions-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 7px 30px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-action-row .bm-directions-btn:hover,
.bm-action-row .bm-directions-btn:active,
.bm-action-row .bm-directions-btn:visited,
.bm-action-row .bm-directions-btn:focus,
.bm-action-row .bm-directions-btn:link,{
  background: #e5e7eb;
}

.bm-directions-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 8px;
  display: none;
  min-width: 200px;
  z-index: 10;
}

.bm-directions-dropdown a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 14px;
  color: #111827;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.bm-directions-dropdown a:hover {
  background: #f3f4f6;
}

.bm-directions-wrapper.open .bm-directions-dropdown {
  display: block;
}

.bm-action-row .bm-directions-btn:hover,
.bm-action-row .bm-directions-btn:active,
.bm-action-row .bm-directions-btn:link,
.bm-action-row .bm-directions-btn:visited,
.bm-action-row .bm-directions-btn:focus{
  color:#666
}



/* ==========================================================
   COMPARTIR PIN
========================================================== */
.bm-share-box {
  margin-top: 16px;
  display: none;    
  gap: 10px;
  align-items: center;
}



.bm-share-box.active {
  display: flex;    
}

.bm-share-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px !important;
  border: 1px solid #CCC !important;
  font-size: 14px;
}

.bm-share-copy-btn {
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  background: #e5e5e5;
  cursor: pointer;
  font-weight: 500;
  font-size:12px;
}

.bm-action-row .bm-share-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 30px;
  border-radius: 30px;
  font-size: 12px;
  cursor: pointer;
}

.bm-action-row .bm-share-btn:hover {
  background: #000;
  color:#fff;
}
/* ==========================================================
   BOTONES (MÓVIL / GENERALES)
========================================================== */

#blessmap-mobile-search,
#blessmap-mobile-menu,
#blessmap-mobile-sidebar-close {
  border: none;
  border-radius: 0; /* antes 'none' (valor inválido) */
}

#blessmap-reset:focus,
#blessmap-reset:visited {
  background-color: transparent !important;
}

#blessmap-mainmenu-close:hover,
#blessmap-mainmenu-close:focus,
#blessmap-mainmenu-close:visited {
  background-color: transparent !important;
}

#blessmap-mainmenu-toggle:hover,
#blessmap-mainmenu-toggle:focus,
#blessmap-mainmenu-toggle:visited {
  background-color: transparent !important;
}

#blessmap-mobile-search img,
#blessmap-mobile-menu img {
  width: auto;
}

/* ==========================================================
   MENÚ PRINCIPAL (LATERAL)
========================================================== */

/* Botón dentro de la columna */
.blessmap-mainmenu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid transparent;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.blessmap-mainmenu-toggle img {
  max-width: 22px;
  max-height: 22px;
}

/* Panel del menú */
.blessmap-mainmenu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  width: 400px;
  max-width: 100%;

  background: #050505;
  color: #fff;

  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.6);
  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 30;
  box-sizing: border-box;

  padding: 24px 32px;

  display: flex;
  flex-direction: column;
}

#blessmap-root.blessmap-mainmenu-open .blessmap-mainmenu {
  transform: translateX(0);
}

.blessmap-mainmenu-close {
  background: transparent;
  border: none;
  color: #fff;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  text-align: right;
  padding: 0;
}

.blessmap-mainmenu-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.blessmap-mainmenu-nav,
.blessmap-mainmenu-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.blessmap-mainmenu-footer {
  font-size: 14px;
}

.blessmap-mainmenu-nav a,
.blessmap-mainmenu-footer a {
  color: #f9fafb;
  text-decoration: none;
}

.blessmap-mainmenu-nav a:hover,
.blessmap-mainmenu-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================
   PANEL LATERAL
========================================================== */

.bm-sec-title { font-weight:700; margin:18px 0 12px; }
.bm-sep { border:0; border-top:1px solid rgba(0,0,0,.08); margin:16px 0; }

.bm-pastor-row { display:flex; gap:14px; align-items:center; margin:12px 0; }
.bm-pastor-photo { width:56px; height:56px; border-radius:14px; overflow:hidden; background:#e9ecef; flex:0 0 auto; }
.bm-pastor-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.bm-pastor-name { font-weight:600; }

.bm-social-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; }
.bm-btn-visit { padding:8px 14px; border-radius:999px; background:#2aa7b8; color:#fff; text-decoration:none; font-weight:600; font-size:13px; }
.bm-btn-visit:hover { opacity:.9; }

.bm-video { border-radius:14px; overflow:hidden; background:#000; aspect-ratio:16/9; }
.bm-video iframe { width:100%; height:100%; border:0; display:block; }

.bm-hour-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.bm-hour-row:last-child { border-bottom:0; }
.bm-hour-time { background:#f3f5f7; padding:6px 10px; border-radius:999px; font-size:13px; }

.bm-pills { display:flex; flex-wrap:wrap; gap:10px; }
.bm-pill { background:#f3f5f7; padding:8px 12px; border-radius:999px; font-size:13px; }

.bm-gallery-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.bm-gallery-cell { border-radius:16px; overflow:hidden; background:#f1f1f1; aspect-ratio:1/1; }
.bm-gallery-cell img { width:100%; height:100%; object-fit:cover; display:block; }

.bm-muted { color:#777; font-size:14px; }

/* ===============================
   BOTÓN FLOTANTE SUPERIOR
================================ */

.blessmap-how-floating {
  position: absolute;
  top: 20px;
  left: 100px;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  z-index: 20;
  transition: .3s ease;
  font-size: 14px;
}

.blessmap-how-floating:hover{
  color:#fff;
  background:#219150;
}

/* ===============================
   IDIOMAS
================================ */

.page-template-blessmap .gt_switcher_wrapper {
  position: fixed;
  top: 20px;
  left:600px;
  z-index: 2;
}

.gt_switcher_wrapper select{
  width: 120px;
  border-radius: 60px;
  border:none;
}

@media (max-width: 900px) {
    .page-template-blessmap .gt_switcher_wrapper {
      position: fixed;
      top: 126px;
      left:90px;
    }
  }
/* ===============================
   FRANJA INFERIOR
================================ */

.blessmap-legend-bar {
  position: absolute;
  bottom: 25px;
  left:50%;
  transform:translateX(-50%);
  background: #ffffff;
  border-radius: 40px;
  padding: 10px 28px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  z-index: 10;
  flex-wrap: wrap;
  width: 710px;
  justify-content: center;
}

.legend-item{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#222;
    white-space:nowrap;
}

/* DOTS */

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
}

/* COLORES (igual que tu sistema) */

.dot-cero{ background:#000; }
.dot-estudio{ background:#27ae60; }
.dot-uno{ background:#17a2b8; }
.dot-dos{ background:#f1c40f; }
.dot-institucional{ background:#e84393; }
.dot-libreria{ background:#6c5ce7; }
.dot-educacion{ background:#3b5bdb; }
.dot-social{ background:#fd7e14; }


/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){

   /* Ocultamos versión desktop */
   .blessmap-legend-bar,
   .blessmap-how-floating{
      display:none;
   }

   /* Mostramos versión móvil */
   .blessmap-mobile-controls{
      display:block;
   }

   /* Botón verde ? */
   .blessmap-how-mobile{
      position:fixed;
      top:120px;
      left:20px;
      width:50px;
      height:50px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:#27ae60;
      color:#fff;
      border-radius:50%;
      font-size:22px;
      text-decoration:none;
      z-index:10;
   }

   /* Colores */
   .blessmap-colors-wrapper{
      position:fixed;
      top:120px;
      right:20px;
      z-index:10;
   }

   .blessmap-colors-toggle{
      background:#fff;
      border:none;
      padding:12px 18px;
      border-radius:30px;
      font-size:16px;
      cursor:pointer;
   }

   .blessmap-colors-panel{
      display:none;
      position:absolute;
      top:60px;
      right:0;
      background:#f5f5f5;
      padding:20px;
      border-radius:20px;
      width:220px;
      box-shadow:0 15px 35px rgba(0,0,0,0.2);
   }

   .blessmap-colors-panel .legend-item{
      margin-bottom:12px;
      font-size:16px;
   }

}
/* ==========================================================
   MEDIA QUERIES
========================================================== */

/* MÓVIL / TABLET */
@media (max-width: 900px) {
  #blessmap-root {
    flex-direction: column;
  }

  .blessmap-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #050505;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    box-sizing: border-box;
  }

  .blessmap-sidebar {
    height: auto;
  }

  .blessmap-map-wrapper {
    margin-top: 0;
    height: 100vh;
    flex: none;
  }

  .blessmap-mobile-logo {
    display: block;
  }

  .blessmap-logo {
    display: none;
  }

  .blessmap-mobile-brand {
    width: 300px;
  }

  .blessmap-sidebar {
    width: 100%;
    padding: 20px 18px;

    position: fixed;
    top: 60px; /* debajo de la barra */
    left: 0;
    right: 0;
    bottom: 0;

    background: #050505;
    overflow-y: auto;

    transform: translateY(100%); /* oculto por defecto */
    transition: transform 0.25s ease;
    z-index: 30;
  }

  /* Cuando abres con la lupa, se muestra */
  #blessmap-root.blessmap-sidebar-open .blessmap-sidebar {
    transform: translateY(0); /* se desliza hacia arriba */
  }

  .blessmap-info-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;

    width: 100%;
    height: 100%;

    z-index:20;
  }

  .blessmap-mobile-sidebar-close {
    display: block;
    margin-left: auto;
    margin-bottom: 4px;

    background: transparent;
    border: none;
    color: #f9fafb;

    font-size: 22px;
    line-height: 1;

    padding: 4px;
    cursor: pointer;
  }

  .blessmap-desktop-column {
    display: none;
  }

  /* Menú principal en móvil: aparece desde la derecha */
  .blessmap-mainmenu {
    width: 100%;
    padding: 24px 24px 32px;

    left: auto;
    right: 0;
    transform: translateX(100%); /* escondido hacia la derecha */
  }

  #blessmap-root.blessmap-mainmenu-open .blessmap-mainmenu {
    transform: translateX(0);
  }
}

/* DESKTOP */
@media (min-width: 901px) {
  #blessmap-mobile-menu {
    display: none; /* en desktop solo usamos el botón de la columna */
  }
}