html, body { height: 100%; margin: 0; }
#map { height: 100vh; width: 100vw; background: #f4f4f4; }

/* Modal PDF */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 5000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-card {
  position: relative;
  width: min(1000px, 92vw);
  height: min(700px, 88vh);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid #e6e6e6;
}
.modal-title { font-weight: 600;font-family: Arial, Helvetica, sans-serif; }
.modal-frame { flex: 1; width: 100%; border: 0; }

/* Botón */
.btn { padding: 6px 10px; border: 1px solid #ccc; background: #fff; border-radius: 8px; }

/* Menú contextual */
.ctx.hidden { display: none; }
.ctx {
  position: fixed;
  z-index: 6000;
  min-width: 220px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow: hidden;
}
.ctx .item {
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}
.ctx .item:hover { background: #f3f3f3; }
.ctx .title { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid #eee;font-family: Arial, Helvetica, sans-serif; }
