/* =========================
   Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   Estilos globales
========================= */
body {
  font-family: "Roboto", sans-serif;
  background-size: 150px 150px; /* Tamaño por defecto del mosaico */
  position: relative;
  color: #333;
}

/* Capa translúcida encima del fondo */
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.70); 
  pointer-events: none; /* No bloquea clics */
  z-index: 0;
}

/* Garantiza que el contenido quede encima */
body * {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
}

  /* =========================
     LOGO
  ========================= */
  .logo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    filter: invert(0) !important;
  }

  .logo .mark {
    width: 45px;
    height: 45px;
    font-family: 'Sweet Affogato';
    border-radius: 12px;
    border: 2px solid #fff;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #7256CF;
    text-shadow: 2px 2px 0 white, -0.6px -0.6px 0 white,
                 2px -0.6px 0 white, -0.6px 2px 0 white;
  }

  /* =========================
     LAYOUT PRINCIPAL
  ========================= */
  .layout {
    display: flex;
    width: 100%;
    height: 100vh;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    font-family: "Poppins", sans-serif;
  }

  .layout hr {
    border: 0.1px solid #C0C0C0;
    margin-bottom: 20px;
  }

  /* =========================
     MAPA
  ========================= */
  .map {
    width: 70%;
    height: 100%;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
    background: #ddd;
  }

  #map {
    width: 100%;
    height: 100%;
  }

  /* =========================
     PANEL DE INFORMACIÓN
  ========================= */
  #panel-nombre {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

  .info {
    width: 28%;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    overflow-y: auto;
    color: black;
    overflow: hidden;
  }

  /* =========================
     PORTADA
  ========================= */
  .cover img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
  }

  /* =========================
     LOGO + NOMBRE
  ========================= */
  .logo-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
  }

  .logo-name img {
    width: 45px;
    height: 45px;
    border-radius: 10%;
    object-fit: cover;
  }

  .logo-name .verificado {
    height: 18px;
    width: 18px;
  }

  /* =========================
     JS MAPA - VERIFICADO
  ========================= */

  .verificado {
    height: 18px;
    width: 18px;
  }

  .logo-name h3 {
    font-size: 17px;
  }

  /* =========================
     INFORMACIÓN GENERAL
  ========================= */
  .informacion i {
    margin-right: 10px;
    margin-bottom: 10px;
    color: black;
    font-size: 20px;
    padding: 8px;
    border-radius: 55%;
    font-weight: 500;
  }

  .informacion p {
    font-size: 13px;
  }

  .informacion h4 {
    font-size: 14px;
  }

  .ver_perfil {
    background: #2196f3;
    color: #fff;
    width: 50%;
    height: 40px;
    padding: 10px;
    border-radius: 10px;
    margin: 10px auto;
    border: none;
    cursor: pointer;
  }

  .ver_perfil:hover {
    background: black;
    color: white;
  }

  /* =========================
     ACCIONES
  ========================= */
  .actions {
    display: flex;
    justify-content: center;
  }

  .action-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
    margin-right: 13px;
  }

  .action-btn:hover {
    background: black;
    color: #fff;
    border-color: #fff;
  }

/* =========================================================
   CUSTOM MARKER
========================================================= */
.custom-marker{
  text-align:center;
  font-size:11px;
  font-weight:600;
}

.marker-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Pin moderno estilo Google Maps */
.marker-pin{
  width:72px;
  height:72px;
  border-radius:50%;
  background:linear-gradient(
    145deg,
    #1877f2,
    #42a5f5
  );
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:
    0 12px 25px rgba(24,119,242,.35);
  border:4px solid rgba(255,255,255,.95);
  transition:transform .25s ease;
}

.marker-pin::after{
  content:"";
  position:absolute;
  bottom:-10px;
  width:18px;
  height:18px;
  background:#1877f2;
  transform:rotate(45deg);
  z-index:-1;
}

.marker-pin:hover{
  transform:scale(1.08);
}

.marker-logo{
  width:56px;
  height:56px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.marker-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.marker-name{
  margin-top:10px;
  background:rgba(255,255,255,.95);
  color:#111827;
  padding:7px 12px;
  border-radius:14px;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  font-size:.74rem;
  max-width:130px;
  line-height:1.35;
  backdrop-filter:blur(8px);
}

.marker-activo {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px #7256CF);
  z-index: 9999;
}

/* =========================================================
   CLUSTER
========================================================= */
.marker-cluster div{
  background:linear-gradient(
    135deg,
    #1877f2,
    #42a5f5
  ) !important;

  color:#fff !important;

  border:4px solid rgba(255,255,255,.8);

  box-shadow:
    0 10px 25px rgba(24,119,242,.35) !important;
}




  /* =========================
     ZOOM AUTOMÁTICO PARA PANTALLAS GRANDES
  ========================= */
  @media (min-width: 1500px) { body { zoom: 110%; } }
  @media (min-width: 1600px) { body { zoom: 125%; } }
  @media (min-width: 1800px) { body { zoom: 133%; } }
  @media (min-width: 2000px) { body { zoom: 150%; } }
  @media (min-width: 2200px) { body { zoom: 200%; } }

  /* =========================
     RESPONSIVE
  ========================= */
  @media (max-width: 800px) {
    .layout {
      flex-direction: column;
      padding: 0;
      gap: 0;
      margin-bottom: 40px;
    }

    .map {
      width: 100%;
      height: 100%;
      border-radius: 0;
      position: relative;
      z-index: 1;
    }

    .map-search {
      position: absolute;
      left: 50%;
      width: 90%;
    }

    .info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: 30%; /* Altura inicial */
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.6);
      background: white;
      padding: 15px;
      overflow-y: hidden !important;
      transition: height 0.3s ease;
      z-index: 10;
      color: black;
    }

    .drag-handle {
      width: 50px;
      height: 6px;
      background: #ccc;
      border-radius: 3px;
      margin: 8px auto;
      cursor: grab;
    }

    .drag-handle:active {
      cursor: grabbing;
    }
  }

  @media (max-width: 500px) {
    .panel-direccion {
      zoom: 90% !important;
    }
    .logo-name {
      font-size: 11px;
    }

    .logo-name h3 {
      font-size: 14px;
    }

    .logo-name img {
      height: 40px;
      width: 40px;
    }

    .logo-name .verificado {
      height: 16px;
      width: 16px;
    }
    .informacion p {
      font-size: 12px;
    }

    .info {
      background: white;
    }
  }